[02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:53:58]accept exits with 7 [02:53:58]New connection [02:53:58]New thread 3067239780 created [02:53:58]Thread 3067383140 joined [02:53:58]Waiting for new connection... [02:53:58] Sock 7.Parse request [02:53:58]Sock 7.Check first char [02:53:58]Sock 7.First char is OK [02:53:58]request: POST /json_proto HTTP/1.0 [02:53:58]Method: POST [02:53:58]URL: /json_proto [02:53:58]Method is POST - this is cgi request [02:53:58]url: /json_proto [02:53:58]query_string will be loaded in cgi processing [02:53:58]execute_cgi json_proto POST (null) [02:53:58]execute_cgi path=json_proto method=POST [02:53:58]POST find Content-Length [02:53:58]Host: 172.17.45.7:8080 [02:53:58]Content-Length: 819 [02:53:58]Content-Type: application/json [02:53:58] [02:53:58]POST finish read [02:53:58]Found Content-Length = 819 [02:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:53:58]execute_script... [02:53:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:53:58]POST & json_proto [02:53:58]process_json_proto [02:53:58]json parsed OK: [02:53:58]protocol is kg_v1.0 [02:53:58]action value=close_receipt [02:53:58]process_action close_receipt [02:53:58]cmd_close_receipt [02:53:58]MH_GetDate [02:53:58]Write to MH i2c: F0 00 00 69 8E E6 [02:53:58]Write i2c OK [02:53:58]MH_I2C_Read... [02:53:58]Read from MH i2c: F0 [02:53:58]MH_I2C_Read... [02:53:58]Read from MH i2c: F0 09 00 [02:53:58]MH_I2C_Read... [02:53:58]Read from MH i2c: F0 09 00 69 8E 00 CF 55 A8 66 90 0F 3E 66 64 [02:53:58]GetLastDocTimeStamp 1722300778 [02:53:58]current date 1722308047 [02:53:58]FM_GetShiftState [02:53:58]SAM_PROTO_GetShiftState [02:53:58]wFMCommunicate request_size=4 [02:53:58]MH_SAM_APDU [02:53:58]CAPDU: 80 13 01 00 [02:53:58]Write to MH i2c: E2 08 00 6A 8E 80 13 01 00 00 00 00 00 75 [02:53:58]Write i2c OK [02:53:58]MH_I2C_Read... [02:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:53:58]Read from MH i2c: E2 [02:53:58]MH_I2C_Read... [02:53:58]Read from MH i2c: E2 0E 00 [02:53:58]MH_I2C_Read... [02:53:58]Read from MH i2c: E2 0E 00 6A 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 40 [02:53:58]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [02:53:58]wFMCommunicate OK [02:53:58]SAM_PROTO_GetShiftState done [02:53:58]FM_GetShiftState done [02:53:58]opened in 1722298242 [02:53:58]opened+sec_in_day 1722384642 [02:53:58]quantity*price = 200025 [02:53:58]sum+1 = 200026 [02:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 6 30.07.2024 02:54 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118954 ФПД: 55735762441390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025407&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118954&fm=55735762441390&tin=02508201610067®Number=0000000000092660&sum=200000 [02:54:00]StoreToDocumentArchive [02:54:00]shift 435 fd 118954 [02:54:00]save to /storage/0435/doc_00118954 [02:54:00]save last doc name /storage/0435/doc_00118954 to /storage/kkm_last_doc_name [02:54:00]save OK [02:54:00]Clear old archive folders... [02:54:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:54:00]tlvbuf is B6F2A960 [02:54:00]SAM_PROTO_ClearQueue [02:54:00]wFMCommunicate request_size=4 [02:54:00]MH_SAM_APDU [02:54:00]CAPDU: 80 09 00 00 [02:54:00]Write to MH i2c: E2 08 00 77 8E 80 09 00 00 00 00 00 00 77 [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 77 8E 00 90 00 79 [02:54:00]RAPDU: 90 00 [02:54:00]wFMCommunicate OK [02:54:00]SAM_PROTO_ClearQueue done [02:54:00]KKMCreateOFDPacket [02:54:00]OFDProtocolAddRootSTLVToBuf [02:54:00]FM_MakeSignedData [02:54:00]FM_MakeSignedData [02:54:00]SAM_PROTO_SignData [02:54:00]wFMCommunicate request_size=4 [02:54:00]MH_SAM_APDU [02:54:00]CAPDU: 80 0D 01 02 [02:54:00]Write to MH i2c: E2 08 00 78 8E 80 0D 01 02 00 00 00 00 7F [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 78 8E 00 90 00 7A [02:54:00]RAPDU: 90 00 [02:54:00]wFMCommunicate OK [02:54:00]wFMCommunicate request_size=255 [02:54:00]MH_SAM_APDU [02:54:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 CF 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D0 01 00 35 04 06 00 32 B0 FE 52 [02:54:00]Write to MH i2c: E2 02 01 79 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 CF 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D0 01 00 35 04 06 00 32 B0 FE 52 00 00 96 [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 79 8E 00 90 00 7B [02:54:00]RAPDU: 90 00 [02:54:00]wFMCommunicate OK [02:54:00]wFMCommunicate request_size=7 [02:54:00]MH_SAM_APDU [02:54:00]CAPDU: 80 0D 02 02 02 54 AE [02:54:00]Write to MH i2c: E2 0A 00 7A 8E 80 0D 02 02 02 00 54 AE 00 00 88 [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 03 00 7A 8E 00 90 00 7C [02:54:00]RAPDU: 90 00 [02:54:00]wFMCommunicate OK [02:54:00]wFMCommunicate request_size=4 [02:54:00]MH_SAM_APDU [02:54:00]CAPDU: 80 0D 03 02 [02:54:00]Write to MH i2c: E2 08 00 7B 8E 80 0D 03 02 00 00 00 00 84 [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:54:00]OFD Sender: No OFD packet to send [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 0B 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 0B 00 7B 8E 00 42 1B D7 77 16 E3 8F 1F 90 00 D7 [02:54:00]RAPDU: 42 1B D7 77 16 E3 8F 1F 90 00 [02:54:00]wFMCommunicate OK [02:54:00]SAM_PROTO_SignData done [02:54:00]FM_MakeSignedData done [02:54:00]CreateOFDProtocolMessage [02:54:00]wFMCommunicate request_size=4 [02:54:00]MH_SAM_APDU [02:54:00]CAPDU: 80 11 00 00 [02:54:00]Write to MH i2c: E2 08 00 7C 8E 80 11 00 00 00 00 00 00 84 [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:00]Read from MH i2c: E2 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 17 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: E2 17 00 7C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [02:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:54:00]wFMCommunicate OK [02:54:00]CreateOFDProtocolMessage done [02:54:00]OFDSenderStorePacket 118954 [02:54:00]StoreOFDPacket docnum=118954 [02:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1F 96 04 01 8B 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 CF 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D0 01 00 35 04 06 00 32 B0 FE 52 54 AE 42 1B D7 77 16 E3 8F 1F [02:54:00]CheckFolder [02:54:00]dirname=/storage/ofd_packets [02:54:00]CheckFolder done [02:54:00]ProducePacketName [02:54:00]name=ofd_packets/00118954 [02:54:00]NVStorageSaveData ofd_packets/00118954 [02:54:00]File name is /storage/ofd_packets/00118954 [02:54:00]Write 298 bytes [02:54:00]NVStorageSaveData done [02:54:00]OFDSenderStorePacket done [02:54:00]KKMCreateOFDPacket done [02:54:00]NVStorageSaveData kkm_last_timestamp [02:54:00]File name is /storage/kkm_last_timestamp [02:54:00]Write 4 bytes [02:54:00]NVStorageSaveData done [02:54:00]ExternCall_PrintAddStr [02:54:00]wPrintStart [02:54:00]Write to MH i2c: 01 00 00 7D 8E 0B [02:54:00]Write i2c OK [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: 01 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: 01 07 00 [02:54:00]MH_I2C_Read... [02:54:00]Read from MH i2c: 01 07 00 7D 8E 00 00 00 00 00 FF 0F 20 [02:54:00]RasterBufferAndPrint [02:54:00]line Счет N : (1)949871 [02:54:00]line ИНН: 02508201610067 [02:54:00]line Контрольно-Кассовый Чек [02:54:00]line ПРОДАЖА [02:54:00]line ТРК (МРК, ГНК) : 11 [02:54:00]line Товар: 2710194800 [02:54:00]line ДТ-К-5 [02:54:00]line 26.250 * 76.20 [02:54:00]line = 2000.25 [02:54:00]line НДС 12% НСП 1% [02:54:00]line > о реализуемом товаре [02:54:00]line ОКРУГЛЕНИЕ: -0.25 [02:54:00]line ИТОГО: 2000.00 [02:54:00]line НСП 1% : 17.70 [02:54:00]line НДС 12% : 212.42 [02:54:00]line Наличными: 0.00 [02:54:00]line Безнал.: 2000.00 [02:54:00]line Место: АЗС № 134 "Партнер Нефть" [02:54:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:54:00]line СНО: Общий режим [02:54:00]line Чек 6 30.07.2024 02:54 [02:54:00]line Смена: 435 ФФД: 1.0 [02:54:00]line ЗНМ: 0300000044 [02:54:00]line РНМ: 0000000000092660 [02:54:00]line Версия ККМ: 001 [02:54:00]line Платежная система: O! деньги [02:54:00]line ФМ: 0000000000874939 [02:54:00]line ФД: 118954 [02:54:00]line ФПД: 55735762441390 [02:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025407&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118954&fm=55735762441390&tin=02508201610067®Number=0000000000092660&sum=200000 [02:54:00]OFD Sender: Processing packet 118954 [packets to send 86, broken 85] [02:54:00]ProducePacketName [02:54:00]name=ofd_packets/00118954 [02:54:00]OFD Sender: To server: pG, [02:54:00]CommunicateWithHost lk.salyk.kg:30040 [02:54:00]ConnectInit lk.salyk.kg [02:54:00]written 0, free lines is 4095 [02:54:01]Connected sock=10 [02:54:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1F 96 04 01 8B 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 CF 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D0 01 00 35 04 06 00 32 B0 FE 52 54 AE 42 1B D7 77 16 E3 8F 1F [02:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 96 DC 47 00 8C 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D0 01 00 F4 03 04 00 5B 03 A8 66 B6 04 01 00 00 C4 82 21 CB D5 6D A3 2B [02:54:01]CommunicateWithHost err = 0 [02:54:01]CheckOFDResponse [02:54:01]1017 (14) - 77093643461234 [02:54:01]1041 (16) - 0000000000874939 [02:54:01]1040 (4) - 118954 [02:54:01]1012 (4) - 29.07.2024 21:02 [02:54:01]1206 (1) - 0 [02:54:01]OFD Sender: Remove packet 118954 [02:54:01]ProducePacketName [02:54:01]name=ofd_packets/00118954 [02:54:01]NVStorageDeleteData [02:54:01]Write to MH i2c: 01 00 00 A7 8E 35 [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: 01 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: 01 07 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: 01 07 00 A7 8E 00 00 00 00 00 C4 0C 0C [02:54:01]RasterBufferAndPrint [02:54:01]line [02:54:01]line [02:54:01]line [02:54:01]line [02:54:01]line [02:54:01]written 0, free lines is 3274 [02:54:01]MH_Cut [02:54:01]Write to MH i2c: D1 01 00 AE 8E 01 0E [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: D1 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: D1 01 00 [02:54:01]MH_I2C_Read... [02:54:01]Read from MH i2c: D1 01 00 AE 8E 00 0D [02:54:01]Write to MH i2c: 01 00 00 AF 8E 3D [02:54:01]Write i2c OK [02:54:01]MH_I2C_Read... [02:54:01]OFD Sender: No OFD packet to send [02:54:02]*** Cut start [02:54:02]*** Partial cut [02:54:02]*** CUTSNS_PIN = 1 [02:54:02]*** CUTSNS_PIN = 0 [02:54:02]*** Brake cut motor [02:54:02]Read from MH i2c: 01 [02:54:02]MH_I2C_Read... [02:54:02]*** Stop cut motor [02:54:02]*** Cut end [02:54:02]Read from MH i2c: 01 07 00 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: 01 07 00 AF 8E 00 00 00 00 00 FF 0F 52 [02:54:02]process_action close_receipt done [02:54:02]requested_data is exist [02:54:02]produce_requested_data [02:54:02]requested_item fm.sn is exist - process it [02:54:02]wFMCommunicate request_size=4 [02:54:02]MH_SAM_APDU [02:54:02]CAPDU: 80 11 00 00 [02:54:02]Write to MH i2c: E2 08 00 B0 8E 80 11 00 00 00 00 00 00 B8 [02:54:02]Write i2c OK [02:54:02]MH_I2C_Read... [02:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:54:02]Read from MH i2c: E2 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: E2 17 00 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: E2 17 00 B0 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [02:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:54:02]wFMCommunicate OK [02:54:02]requested_item fd.num is exist - process it [02:54:02]SAM_PROTO_GetFieldsCounters [02:54:02]wFMCommunicate request_size=4 [02:54:02]MH_SAM_APDU [02:54:02]CAPDU: 80 13 00 00 [02:54:02]Write to MH i2c: E2 08 00 B1 8E 80 13 00 00 00 00 00 00 BB [02:54:02]Write i2c OK [02:54:02]MH_I2C_Read... [02:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:54:02]Read from MH i2c: E2 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: E2 62 00 [02:54:02]MH_I2C_Read... [02:54:02]Read from MH i2c: E2 62 00 B1 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [02:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:54:02]wFMCommunicate OK [02:54:02]SAM_PROTO_GetFieldsCounters done [02:54:02]requested_item shift.num is exist - process it [02:54:02]requested_item shift.opened is exist - process it [02:54:02]req_shift_opened [02:54:02]FM_GetShiftState [02:54:02]SAM_PROTO_GetShiftState [02:54:02]wFMCommunicate request_size=4 [02:54:02]MH_SAM_APDU [02:54:02]CAPDU: 80 13 01 00 [02:54:02]Write to MH i2c: E2 08 00 B2 8E 80 13 01 00 00 00 00 00 BD [02:54:02]Write i2c OK [02:54:02]MH_I2C_Read... [02:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:54:03]Read from MH i2c: E2 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: E2 0E 00 [02:54:03]MH_I2C_Read... [02:54:03]Read from MH i2c: E2 0E 00 B2 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 88 [02:54:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [02:54:03]wFMCommunicate OK [02:54:03]SAM_PROTO_GetShiftState done [02:54:03]FM_GetShiftState done [02:54:03]req_shift_opened done [02:54:03]requested_item shift.open_date is exist - process it [02:54:03]req_shift_open_date [02:54:03]req_shift_open_date done [02:54:03]produce_requested_data done [02:54:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118954,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [02:54:03]process_action_free close_receipt [02:54:03]json_value_free [02:54:03]json_value_free done [02:54:03]process_json_proto returns [02:54:03]Send response to host [02:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118954,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [02:54:03]free response buf [02:54:03]execute_script done [02:54:03]execute_script returns [02:54:03]free content buf [02:54:03]Sock 7.Close socket [02:54:03]Sock 7.Thread stoped [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:51]accept exits with 9 [03:12:51]New connection [03:12:51]New thread 3067383140 created [03:12:51]Thread 3067239780 joined [03:12:51]Waiting for new connection... [03:12:51] Sock 9.Parse request [03:12:51]Sock 9.Check first char [03:12:51]Sock 9.First char is OK [03:12:51]request: POST /json_proto HTTP/1.0 [03:12:51]Method: POST [03:12:51]URL: /json_proto [03:12:51]Method is POST - this is cgi request [03:12:51]url: /json_proto [03:12:51]query_string will be loaded in cgi processing [03:12:51]execute_cgi json_proto POST (null) [03:12:51]execute_cgi path=json_proto method=POST [03:12:51]POST find Content-Length [03:12:51]Host: 172.17.45.7:8080 [03:12:51]Content-Length: 677 [03:12:51]Content-Type: application/json [03:12:51] [03:12:51]POST finish read [03:12:51]Found Content-Length = 677 [03:12:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [03:12:51]execute_script... [03:12: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)949872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [03:12:51]POST & json_proto [03:12:51]process_json_proto [03:12:51]json parsed OK: [03:12:51]protocol is kg_v1.0 [03:12:51]action value=close_receipt [03:12:51]process_action close_receipt [03:12:51]cmd_close_receipt [03:12:51]MH_GetDate [03:12:51]Write to MH i2c: F0 00 00 B3 8E 30 [03:12:51]Write i2c OK [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: F0 [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: F0 09 00 [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: F0 09 00 B3 8E 00 3C 5A A8 66 90 0F 3E 66 20 [03:12:51]GetLastDocTimeStamp 1722308047 [03:12:51]current date 1722309180 [03:12:51]FM_GetShiftState [03:12:51]SAM_PROTO_GetShiftState [03:12:51]wFMCommunicate request_size=4 [03:12:51]MH_SAM_APDU [03:12:51]CAPDU: 80 13 01 00 [03:12:51]Write to MH i2c: E2 08 00 B4 8E 80 13 01 00 00 00 00 00 BF [03:12:51]Write i2c OK [03:12:51]MH_I2C_Read... [03:12:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:51]Read from MH i2c: E2 [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: E2 0E 00 [03:12:51]MH_I2C_Read... [03:12:51]Read from MH i2c: E2 0E 00 B4 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8A [03:12:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:12:51]wFMCommunicate OK [03:12:51]SAM_PROTO_GetShiftState done [03:12:51]FM_GetShiftState done [03:12:51]opened in 1722298242 [03:12:51]opened+sec_in_day 1722384642 [03:12:51]quantity*price = 22035 [03:12:51]sum+1 = 22036 [03:12:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 7 30.07.2024 03:13 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118955 ФПД: 57217317991943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031300&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118955&fm=57217317991943&tin=02508201610067®Number=0000000000092660&sum=22000 [03:12:52]StoreToDocumentArchive [03:12:52]shift 435 fd 118955 [03:12:52]save to /storage/0435/doc_00118955 [03:12:52]save last doc name /storage/0435/doc_00118955 to /storage/kkm_last_doc_name [03:12:52]save OK [03:12:52]Clear old archive folders... [03:12:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:12:52]tlvbuf is 02068E10 [03:12:52]SAM_PROTO_ClearQueue [03:12:52]wFMCommunicate request_size=4 [03:12:52]MH_SAM_APDU [03:12:52]CAPDU: 80 09 00 00 [03:12:52]Write to MH i2c: E2 08 00 C1 8E 80 09 00 00 00 00 00 00 C1 [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:12:52]Read from MH i2c: E2 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 03 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 03 00 C1 8E 00 90 00 C3 [03:12:52]RAPDU: 90 00 [03:12:52]wFMCommunicate OK [03:12:52]SAM_PROTO_ClearQueue done [03:12:52]KKMCreateOFDPacket [03:12:52]OFDProtocolAddRootSTLVToBuf [03:12:52]FM_MakeSignedData [03:12:52]FM_MakeSignedData [03:12:52]SAM_PROTO_SignData [03:12:52]wFMCommunicate request_size=4 [03:12:52]MH_SAM_APDU [03:12:52]CAPDU: 80 0D 01 02 [03:12:52]Write to MH i2c: E2 08 00 C2 8E 80 0D 01 02 00 00 00 00 C9 [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:52]OFD Sender: No OFD packet to send [03:12:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:12:52]Read from MH i2c: E2 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 03 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 03 00 C2 8E 00 90 00 C4 [03:12:52]RAPDU: 90 00 [03:12:52]wFMCommunicate OK [03:12:52]wFMCommunicate request_size=255 [03:12:52]MH_SAM_APDU [03:12: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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 07 00 00 00 F4 03 04 00 3C 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB D0 01 00 35 04 06 00 34 [03:12:52]Write to MH i2c: E2 02 01 C3 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 07 00 00 00 F4 03 04 00 3C 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB D0 01 00 35 04 06 00 34 00 00 1E [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 C3 8E 00 90 00 C5 [03:12:53]RAPDU: 90 00 [03:12:53]wFMCommunicate OK [03:12:53]wFMCommunicate request_size=10 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 0D 02 02 05 09 F1 E9 F6 07 [03:12:53]Write to MH i2c: E2 0D 00 C4 8E 80 0D 02 02 05 00 09 F1 E9 F6 07 00 00 B6 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 03 00 C4 8E 00 90 00 C6 [03:12:53]RAPDU: 90 00 [03:12:53]wFMCommunicate OK [03:12:53]wFMCommunicate request_size=4 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 0D 03 02 [03:12:53]Write to MH i2c: E2 08 00 C5 8E 80 0D 03 02 00 00 00 00 CE [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 0B 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 0B 00 C5 8E 00 C9 6C 68 57 98 36 DE 74 90 00 E3 [03:12:53]RAPDU: C9 6C 68 57 98 36 DE 74 90 00 [03:12:53]wFMCommunicate OK [03:12:53]SAM_PROTO_SignData done [03:12:53]FM_MakeSignedData done [03:12:53]CreateOFDProtocolMessage [03:12:53]wFMCommunicate request_size=4 [03:12:53]MH_SAM_APDU [03:12:53]CAPDU: 80 11 00 00 [03:12:53]Write to MH i2c: E2 08 00 C6 8E 80 11 00 00 00 00 00 00 CE [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:53]Read from MH i2c: E2 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 17 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: E2 17 00 C6 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [03:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:12:53]wFMCommunicate OK [03:12:53]CreateOFDProtocolMessage done [03:12:53]OFDSenderStorePacket 118955 [03:12:53]StoreOFDPacket docnum=118955 [03:12:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 69 07 01 FA 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 07 00 00 00 F4 03 04 00 3C 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB D0 01 00 35 04 06 00 34 09 F1 E9 F6 07 C9 6C 68 57 98 36 DE 74 [03:12:53]CheckFolder [03:12:53]dirname=/storage/ofd_packets [03:12:53]CheckFolder done [03:12:53]ProducePacketName [03:12:53]name=ofd_packets/00118955 [03:12:53]NVStorageSaveData ofd_packets/00118955 [03:12:53]File name is /storage/ofd_packets/00118955 [03:12:53]Write 301 bytes [03:12:53]NVStorageSaveData done [03:12:53]OFDSenderStorePacket done [03:12:53]KKMCreateOFDPacket done [03:12:53]NVStorageSaveData kkm_last_timestamp [03:12:53]File name is /storage/kkm_last_timestamp [03:12:53]Write 4 bytes [03:12:53]NVStorageSaveData done [03:12:53]ExternCall_PrintAddStr [03:12:53]wPrintStart [03:12:53]Write to MH i2c: 01 00 00 C7 8E 55 [03:12:53]Write i2c OK [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: 01 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: 01 07 00 [03:12:53]MH_I2C_Read... [03:12:53]Read from MH i2c: 01 07 00 C7 8E 00 00 00 00 00 FF 0F 6A [03:12:53]RasterBufferAndPrint [03:12:53]line Счет N : (1)949872 [03:12:53]line ИНН: 02508201610067 [03:12:53]line Контрольно-Кассовый Чек [03:12:53]line ПРОДАЖА [03:12:53]line ТРК (МРК, ГНК) : 51 [03:12:53]line Товар: 2710124130 [03:12:53]line Аи-92-К-4 [03:12:53]line 3.250 * 67.80 [03:12:53]line = 220.35 [03:12:53]line НДС 12% НСП 1% [03:12:53]line > о реализуемом товаре [03:12:53]line ОКРУГЛЕНИЕ: -0.35 [03:12:53]line ИТОГО: 220.00 [03:12:53]line Внесено: 220.00 [03:12:53]line СДАЧА: 0.00 [03:12:53]line НСП 1% : 1.95 [03:12:53]line НДС 12% : 23.40 [03:12:53]line Наличными: 220.00 [03:12:53]line Безнал.: 0.00 [03:12:53]line Место: АЗС № 134 "Партнер Нефть" [03:12:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:12:53]line СНО: Общий режим [03:12:53]line Чек 7 30.07.2024 03:13 [03:12:53]line Смена: 435 ФФД: 1.0 [03:12:53]line ЗНМ: 0300000044 [03:12:53]line РНМ: 0000000000092660 [03:12:53]line Версия ККМ: 001 [03:12:53]line ФМ: 0000000000874939 [03:12:53]line ФД: 118955 [03:12:53]line ФПД: 57217317991943 [03:12:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031300&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118955&fm=57217317991943&tin=02508201610067®Number=0000000000092660&sum=22000 [03:12:53]OFD Sender: Processing packet 118955 [packets to send 86, broken 85] [03:12:53]ProducePacketName [03:12:53]name=ofd_packets/00118955 [03:12:53]OFD Sender: To server: pG, [03:12:53]CommunicateWithHost lk.salyk.kg:30040 [03:12:53]ConnectInit lk.salyk.kg [03:12:53]written 0, free lines is 4095 [03:12:53]Connected sock=10 [03:12:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 86 69 07 01 FA 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 07 00 00 00 F4 03 04 00 3C 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB D0 01 00 35 04 06 00 34 09 F1 E9 F6 07 C9 6C 68 57 98 36 DE 74 [03:12:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 24 A2 47 00 19 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 34 39 33 39 10 04 04 00 AB D0 01 00 F4 03 04 00 C8 07 A8 66 B6 04 01 00 00 34 3E B2 C1 F5 6F D6 C3 [03:12:54]CommunicateWithHost err = 0 [03:12:54]CheckOFDResponse [03:12:54]1017 (14) - 77093643461234 [03:12:54]1041 (16) - 0000000000874939 [03:12:54]1040 (4) - 118955 [03:12:54]1012 (4) - 29.07.2024 21:21 [03:12:54]1206 (1) - 0 [03:12:54]OFD Sender: Remove packet 118955 [03:12:54]ProducePacketName [03:12:54]name=ofd_packets/00118955 [03:12:54]NVStorageDeleteData [03:12:54]Write to MH i2c: 01 00 00 F1 8E 7F [03:12:54]Write i2c OK [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: 01 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: 01 07 00 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: 01 07 00 F1 8E 00 00 00 00 00 DC 0C 6E [03:12:54]RasterBufferAndPrint [03:12:54]line [03:12:54]line [03:12:54]line [03:12:54]line [03:12:54]line [03:12:54]written 0, free lines is 3297 [03:12:54]MH_Cut [03:12:54]Write to MH i2c: D1 01 00 F8 8E 01 58 [03:12:54]Write i2c OK [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: D1 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: D1 01 00 [03:12:54]MH_I2C_Read... [03:12:54]Read from MH i2c: D1 01 00 F8 8E 00 57 [03:12:54]Write to MH i2c: 01 00 00 F9 8E 87 [03:12:54]Write i2c OK [03:12:54]MH_I2C_Read... [03:12:54]OFD Sender: No OFD packet to send [03:12:54]*** Cut start [03:12:54]*** Partial cut [03:12:54]*** CUTSNS_PIN = 1 [03:12:54]*** CUTSNS_PIN = 0 [03:12:55]*** Brake cut motor [03:12:55]Read from MH i2c: 01 [03:12:55]MH_I2C_Read... [03:12:55]*** Stop cut motor [03:12:55]*** Cut end [03:12:55]Read from MH i2c: 01 07 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: 01 07 00 F9 8E 00 00 00 00 00 FF 0F 9C [03:12:55]process_action close_receipt done [03:12:55]requested_data is exist [03:12:55]produce_requested_data [03:12:55]requested_item fm.sn is exist - process it [03:12:55]wFMCommunicate request_size=4 [03:12:55]MH_SAM_APDU [03:12:55]CAPDU: 80 11 00 00 [03:12:55]Write to MH i2c: E2 08 00 FA 8E 80 11 00 00 00 00 00 00 02 [03:12:55]Write i2c OK [03:12:55]MH_I2C_Read... [03:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:55]Read from MH i2c: E2 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 17 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 17 00 FA 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [03:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:12:55]wFMCommunicate OK [03:12:55]requested_item fd.num is exist - process it [03:12:55]SAM_PROTO_GetFieldsCounters [03:12:55]wFMCommunicate request_size=4 [03:12:55]MH_SAM_APDU [03:12:55]CAPDU: 80 13 00 00 [03:12:55]Write to MH i2c: E2 08 00 FB 8E 80 13 00 00 00 00 00 00 05 [03:12:55]Write i2c OK [03:12:55]MH_I2C_Read... [03:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:12:55]Read from MH i2c: E2 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 62 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 62 00 FB 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [03:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:12:55]wFMCommunicate OK [03:12:55]SAM_PROTO_GetFieldsCounters done [03:12:55]requested_item shift.num is exist - process it [03:12:55]requested_item shift.opened is exist - process it [03:12:55]req_shift_opened [03:12:55]FM_GetShiftState [03:12:55]SAM_PROTO_GetShiftState [03:12:55]wFMCommunicate request_size=4 [03:12:55]MH_SAM_APDU [03:12:55]CAPDU: 80 13 01 00 [03:12:55]Write to MH i2c: E2 08 00 FC 8E 80 13 01 00 00 00 00 00 07 [03:12:55]Write i2c OK [03:12:55]MH_I2C_Read... [03:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:55]Read from MH i2c: E2 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 0E 00 [03:12:55]MH_I2C_Read... [03:12:55]Read from MH i2c: E2 0E 00 FC 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D2 [03:12:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:12:55]wFMCommunicate OK [03:12:55]SAM_PROTO_GetShiftState done [03:12:55]FM_GetShiftState done [03:12:55]req_shift_opened done [03:12:55]requested_item shift.open_date is exist - process it [03:12:55]req_shift_open_date [03:12:55]req_shift_open_date done [03:12:55]produce_requested_data done [03:12:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118955,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [03:12:55]process_action_free close_receipt [03:12:55]json_value_free [03:12:55]json_value_free done [03:12:55]process_json_proto returns [03:12:55]Send response to host [03:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118955,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [03:12:55]free response buf [03:12:55]execute_script done [03:12:55]execute_script returns [03:12:55]free content buf [03:12:55]Sock 9.Close socket [03:12:55]Sock 9.Thread stoped [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]accept exits with 7 [03:14:14]New connection [03:14:14]New thread 3067239780 created [03:14:14]Thread 3067383140 joined [03:14:14]Waiting for new connection... [03:14:14] Sock 7.Parse request [03:14:14]Sock 7.Check first char [03:14:14]Sock 7.First char is OK [03:14:14]request: POST /json_proto HTTP/1.0 [03:14:14]Method: POST [03:14:14]URL: /json_proto [03:14:14]Method is POST - this is cgi request [03:14:14]url: /json_proto [03:14:14]query_string will be loaded in cgi processing [03:14:14]execute_cgi json_proto POST (null) [03:14:14]execute_cgi path=json_proto method=POST [03:14:14]POST find Content-Length [03:14:14]Host: 172.17.45.7:8080 [03:14:14]Content-Length: 734 [03:14:14]Content-Type: application/json [03:14:14] [03:14:14]POST finish read [03:14:14]Found Content-Length = 734 [03:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118955, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [03:14:14]execute_script... [03:14:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118955, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [03:14:14]POST & json_proto [03:14:14]process_json_proto [03:14:14]json parsed OK: [03:14:14]protocol is kg_v1.0 [03:14:14]action value=close_receipt [03:14:14]process_action close_receipt [03:14:14]cmd_close_receipt [03:14:14]MH_GetDate [03:14:14]Write to MH i2c: F0 00 00 FD 8E 7A [03:14:14]Write i2c OK [03:14:14]MH_I2C_Read... [03:14:14]Read from MH i2c: F0 [03:14:14]MH_I2C_Read... [03:14:14]Read from MH i2c: F0 09 00 [03:14:14]MH_I2C_Read... [03:14:14]Read from MH i2c: F0 09 00 FD 8E 00 8E 5A A8 66 90 0F 3E 66 BC [03:14:14]GetLastDocTimeStamp 1722309180 [03:14:14]current date 1722309262 [03:14:14]FM_GetShiftState [03:14:14]SAM_PROTO_GetShiftState [03:14:14]wFMCommunicate request_size=4 [03:14:14]MH_SAM_APDU [03:14:14]CAPDU: 80 13 01 00 [03:14:14]Write to MH i2c: E2 08 00 FE 8E 80 13 01 00 00 00 00 00 09 [03:14:14]Write i2c OK [03:14:14]MH_I2C_Read... [03:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:14]Read from MH i2c: E2 [03:14:14]MH_I2C_Read... [03:14:14]Read from MH i2c: E2 0E 00 [03:14:14]MH_I2C_Read... [03:14:14]Read from MH i2c: E2 0E 00 FE 8E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D4 [03:14:14]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:14:14]wFMCommunicate OK [03:14:14]SAM_PROTO_GetShiftState done [03:14:14]FM_GetShiftState done [03:14:14]opened in 1722298242 [03:14:14]opened+sec_in_day 1722384642 [03:14:14]quantity*price = 22035 [03:14:14]sum+1 = 22036 [03:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 8 30.07.2024 03:14 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118955 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118956 ФПД: 242582994004617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031422&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118956&fm=242582994004617&tin=02508201610067®Number=0000000000092660&sum=22000 [03:14:15]StoreToDocumentArchive [03:14:15]shift 435 fd 118956 [03:14:15]save to /storage/0435/doc_00118956 [03:14:15]save last doc name /storage/0435/doc_00118956 to /storage/kkm_last_doc_name [03:14:15]save OK [03:14:15]Clear old archive folders... [03:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=279 [03:14:15]tlvbuf is 01E4D0D0 [03:14:15]SAM_PROTO_ClearQueue [03:14:15]wFMCommunicate request_size=4 [03:14:15]MH_SAM_APDU [03:14:15]CAPDU: 80 09 00 00 [03:14:15]Write to MH i2c: E2 08 00 0D 8F 80 09 00 00 00 00 00 00 0E [03:14:15]Write i2c OK [03:14:15]MH_I2C_Read... [03:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:15]Read from MH i2c: E2 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 0D 8F 00 90 00 10 [03:14:15]RAPDU: 90 00 [03:14:15]wFMCommunicate OK [03:14:15]SAM_PROTO_ClearQueue done [03:14:15]KKMCreateOFDPacket [03:14:15]OFDProtocolAddRootSTLVToBuf [03:14:15]FM_MakeSignedData [03:14:15]FM_MakeSignedData [03:14:15]SAM_PROTO_SignData [03:14:15]wFMCommunicate request_size=4 [03:14:15]MH_SAM_APDU [03:14:15]CAPDU: 80 0D 01 02 [03:14:15]Write to MH i2c: E2 08 00 0E 8F 80 0D 01 02 00 00 00 00 16 [03:14:15]Write i2c OK [03:14:15]MH_I2C_Read... [03:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:15]Read from MH i2c: E2 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 0E 8F 00 90 00 11 [03:14:15]RAPDU: 90 00 [03:14:15]wFMCommunicate OK [03:14:15]wFMCommunicate request_size=255 [03:14:15]MH_SAM_APDU [03:14:15]CAPDU: 80 0D 02 02 FA 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 08 00 00 00 F4 03 04 00 8E 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 AB D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [03:14:15]Write to MH i2c: E2 02 01 0F 8F 80 0D 02 02 FA 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 08 00 00 00 F4 03 04 00 8E 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 AB D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 EC [03:14:15]Write i2c OK [03:14:15]MH_I2C_Read... [03:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:15]Read from MH i2c: E2 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 0F 8F 00 90 00 12 [03:14:15]RAPDU: 90 00 [03:14:15]wFMCommunicate OK [03:14:15]wFMCommunicate request_size=38 [03:14:15]MH_SAM_APDU [03:14:15]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D0 01 00 35 04 06 00 DC A0 C1 2F AA 89 [03:14:15]Write to MH i2c: E2 29 00 10 8F 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D0 01 00 35 04 06 00 DC A0 C1 2F AA 89 00 00 C6 [03:14:15]Write i2c OK [03:14:15]MH_I2C_Read... [03:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:15]Read from MH i2c: E2 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 [03:14:15]MH_I2C_Read... [03:14:15]Read from MH i2c: E2 03 00 10 8F 00 90 00 13 [03:14:15]RAPDU: 90 00 [03:14:15]wFMCommunicate OK [03:14:15]wFMCommunicate request_size=4 [03:14:15]MH_SAM_APDU [03:14:15]CAPDU: 80 0D 03 02 [03:14:15]Write to MH i2c: E2 08 00 11 8F 80 0D 03 02 00 00 00 00 1B [03:14:15]Write i2c OK [03:14:15]MH_I2C_Read... [03:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:16]Read from MH i2c: E2 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: E2 0B 00 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: E2 0B 00 11 8F 00 C9 D5 DE A4 0F D5 B0 07 90 00 D7 [03:14:16]RAPDU: C9 D5 DE A4 0F D5 B0 07 90 00 [03:14:16]wFMCommunicate OK [03:14:16]SAM_PROTO_SignData done [03:14:16]FM_MakeSignedData done [03:14:16]CreateOFDProtocolMessage [03:14:16]wFMCommunicate request_size=4 [03:14:16]MH_SAM_APDU [03:14:16]CAPDU: 80 11 00 00 [03:14:16]Write to MH i2c: E2 08 00 12 8F 80 11 00 00 00 00 00 00 1B [03:14:16]Write i2c OK [03:14:16]MH_I2C_Read... [03:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:16]Read from MH i2c: E2 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: E2 17 00 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: E2 17 00 12 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [03:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:14:16]wFMCommunicate OK [03:14:16]CreateOFDProtocolMessage done [03:14:16]OFDSenderStorePacket 118956 [03:14:16]StoreOFDPacket docnum=118956 [03:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 A4 EB 23 01 6F 75 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 08 00 00 00 F4 03 04 00 8E 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 AB D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D0 01 00 35 04 06 00 DC A0 C1 2F AA 89 C9 D5 DE A4 0F D5 B0 07 [03:14:16]CheckFolder [03:14:16]dirname=/storage/ofd_packets [03:14:16]CheckFolder done [03:14:16]ProducePacketName [03:14:16]name=ofd_packets/00118956 [03:14:16]NVStorageSaveData ofd_packets/00118956 [03:14:16]File name is /storage/ofd_packets/00118956 [03:14:16]Write 329 bytes [03:14:16]NVStorageSaveData done [03:14:16]OFDSenderStorePacket done [03:14:16]KKMCreateOFDPacket done [03:14:16]NVStorageSaveData kkm_last_timestamp [03:14:16]File name is /storage/kkm_last_timestamp [03:14:16]Write 4 bytes [03:14:16]NVStorageSaveData done [03:14:16]ExternCall_PrintAddStr [03:14:16]wPrintStart [03:14:16]Write to MH i2c: 01 00 00 13 8F A2 [03:14:16]Write i2c OK [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: 01 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: 01 07 00 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: 01 07 00 13 8F 00 00 00 00 00 FF 0F B7 [03:14:16]RasterBufferAndPrint [03:14:16]line Счет N : (1)949872 [03:14:16]line ИНН: 02508201610067 [03:14:16]line Контрольно-Кассовый Чек [03:14:16]line ВОЗВРАТ ПРОДАЖИ [03:14:16]line ТРК (МРК, ГНК) : 51 [03:14:16]line Товар: 2710124130 [03:14:16]line Аи-92-К-4 [03:14:16]line 3.250 * 67.80 [03:14:16]line = 220.35 [03:14:16]line НДС 12% НСП 1% [03:14:16]line > о реализуемом товаре [03:14:16]line ОКРУГЛЕНИЕ: -0.35 [03:14:16]line ИТОГО: 220.00 [03:14:16]line НСП 1% : 1.95 [03:14:16]line НДС 12% : 23.40 [03:14:16]line Наличными: 220.00 [03:14:16]line Безнал.: 0.00 [03:14:16]line Место: АЗС № 134 "Партнер Нефть" [03:14:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:14:16]line СНО: Общий режим [03:14:16]line Чек 8 30.07.2024 03:14 [03:14:16]line Смена: 435 ФФД: 1.0 [03:14:16]line ЗНМ: 0300000044 [03:14:16]line РНМ: 0000000000092660 [03:14:16]line Версия ККМ: 001 [03:14:16]line ФД осн.: 118955 [03:14:16]line ФМ осн.: 0000000000874939 [03:14:16]line ФМ: 0000000000874939 [03:14:16]line ФД: 118956 [03:14:16]line ФПД: 242582994004617 [03:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031422&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118956&fm=242582994004617&tin=02508201610067®Number=0000000000092660&sum=22000 [03:14:16]OFD Sender: Processing packet 118956 [packets to send 86, broken 85] [03:14:16]ProducePacketName [03:14:16]name=ofd_packets/00118956 [03:14:16]OFD Sender: To server: pG, [03:14:16]CommunicateWithHost lk.salyk.kg:30040 [03:14:16]ConnectInit lk.salyk.kg [03:14:16]written 0, free lines is 4095 [03:14:16]Connected sock=10 [03:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 A4 EB 23 01 6F 75 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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 08 00 00 00 F4 03 04 00 8E 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 AB D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D0 01 00 35 04 06 00 DC A0 C1 2F AA 89 C9 D5 DE A4 0F D5 B0 07 [03:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 37 47 00 99 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D0 01 00 F4 03 04 00 1B 08 A8 66 B6 04 01 00 00 0A E5 2F 88 8E 9E CB 83 [03:14:16]CommunicateWithHost err = 0 [03:14:16]CheckOFDResponse [03:14:16]1017 (14) - 77093643461234 [03:14:16]1041 (16) - 0000000000874939 [03:14:16]1040 (4) - 118956 [03:14:16]1012 (4) - 29.07.2024 21:22 [03:14:16]1206 (1) - 0 [03:14:16]OFD Sender: Remove packet 118956 [03:14:16]ProducePacketName [03:14:16]name=ofd_packets/00118956 [03:14:16]NVStorageDeleteData [03:14:16]Write to MH i2c: 01 00 00 3D 8F CC [03:14:16]Write i2c OK [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: 01 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: 01 07 00 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: 01 07 00 3D 8F 00 00 00 00 00 EC 0C CB [03:14:16]RasterBufferAndPrint [03:14:16]line [03:14:16]line [03:14:16]line [03:14:16]line [03:14:16]line [03:14:16]written 0, free lines is 3317 [03:14:16]MH_Cut [03:14:16]Write to MH i2c: D1 01 00 44 8F 01 A5 [03:14:16]Write i2c OK [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: D1 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: D1 01 00 [03:14:16]MH_I2C_Read... [03:14:16]Read from MH i2c: D1 01 00 44 8F 00 A4 [03:14:16]Write to MH i2c: 01 00 00 45 8F D4 [03:14:16]Write i2c OK [03:14:16]MH_I2C_Read... [03:14:17]OFD Sender: No OFD packet to send [03:14:17]*** Cut start [03:14:17]*** Partial cut [03:14:17]*** CUTSNS_PIN = 1 [03:14:17]*** CUTSNS_PIN = 0 [03:14:17]*** Brake cut motor [03:14:18]Read from MH i2c: 01 [03:14:18]MH_I2C_Read... [03:14:18]*** Stop cut motor [03:14:18]*** Cut end [03:14:18]Read from MH i2c: 01 07 00 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: 01 07 00 45 8F 00 00 00 00 00 FF 0F E9 [03:14:18]process_action close_receipt done [03:14:18]requested_data is exist [03:14:18]produce_requested_data [03:14:18]requested_item fm.sn is exist - process it [03:14:18]wFMCommunicate request_size=4 [03:14:18]MH_SAM_APDU [03:14:18]CAPDU: 80 11 00 00 [03:14:18]Write to MH i2c: E2 08 00 46 8F 80 11 00 00 00 00 00 00 4F [03:14:18]Write i2c OK [03:14:18]MH_I2C_Read... [03:14:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:18]Read from MH i2c: E2 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: E2 17 00 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: E2 17 00 46 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [03:14:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:14:18]wFMCommunicate OK [03:14:18]requested_item fd.num is exist - process it [03:14:18]SAM_PROTO_GetFieldsCounters [03:14:18]wFMCommunicate request_size=4 [03:14:18]MH_SAM_APDU [03:14:18]CAPDU: 80 13 00 00 [03:14:18]Write to MH i2c: E2 08 00 47 8F 80 13 00 00 00 00 00 00 52 [03:14:18]Write i2c OK [03:14:18]MH_I2C_Read... [03:14:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:18]Read from MH i2c: E2 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: E2 62 00 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: E2 62 00 47 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [03:14:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:14:18]wFMCommunicate OK [03:14:18]SAM_PROTO_GetFieldsCounters done [03:14:18]requested_item shift.num is exist - process it [03:14:18]requested_item shift.opened is exist - process it [03:14:18]req_shift_opened [03:14:18]FM_GetShiftState [03:14:18]SAM_PROTO_GetShiftState [03:14:18]wFMCommunicate request_size=4 [03:14:18]MH_SAM_APDU [03:14:18]CAPDU: 80 13 01 00 [03:14:18]Write to MH i2c: E2 08 00 48 8F 80 13 01 00 00 00 00 00 54 [03:14:18]Write i2c OK [03:14:18]MH_I2C_Read... [03:14:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:18]Read from MH i2c: E2 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: E2 0E 00 [03:14:18]MH_I2C_Read... [03:14:18]Read from MH i2c: E2 0E 00 48 8F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 1F [03:14:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:14:18]wFMCommunicate OK [03:14:18]SAM_PROTO_GetShiftState done [03:14:18]FM_GetShiftState done [03:14:18]req_shift_opened done [03:14:18]requested_item shift.open_date is exist - process it [03:14:18]req_shift_open_date [03:14:18]req_shift_open_date done [03:14:18]produce_requested_data done [03:14:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118956,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [03:14:18]process_action_free close_receipt [03:14:18]json_value_free [03:14:18]json_value_free done [03:14:18]process_json_proto returns [03:14:18]Send response to host [03:14:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118956,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [03:14:18]free response buf [03:14:18]execute_script done [03:14:18]execute_script returns [03:14:18]free content buf [03:14:18]Sock 7.Close socket [03:14:18]Sock 7.Thread stoped [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:39]accept exits with 9 [03:14:39]New connection [03:14:39]New thread 3067383140 created [03:14:39]Thread 3067239780 joined [03:14:39]Waiting for new connection... [03:14:39] Sock 9.Parse request [03:14:39]Sock 9.Check first char [03:14:39]Sock 9.First char is OK [03:14:39]request: POST /json_proto HTTP/1.0 [03:14:39]Method: POST [03:14:39]URL: /json_proto [03:14:39]Method is POST - this is cgi request [03:14:39]url: /json_proto [03:14:39]query_string will be loaded in cgi processing [03:14:39]execute_cgi json_proto POST (null) [03:14:39]execute_cgi path=json_proto method=POST [03:14:39]POST find Content-Length [03:14:39]Host: 172.17.45.7:8080 [03:14:39]Content-Length: 677 [03:14:39]Content-Type: application/json [03:14:39] [03:14:39]POST finish read [03:14:39]Found Content-Length = 677 [03:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [03:14:39]execute_script... [03:14: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)949873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.250, "sum" : 220.35, "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" ] } } [03:14:39]POST & json_proto [03:14:39]process_json_proto [03:14:39]json parsed OK: [03:14:39]protocol is kg_v1.0 [03:14:39]action value=close_receipt [03:14:39]process_action close_receipt [03:14:39]cmd_close_receipt [03:14:39]MH_GetDate [03:14:39]Write to MH i2c: F0 00 00 49 8F C7 [03:14:39]Write i2c OK [03:14:39]MH_I2C_Read... [03:14:39]Read from MH i2c: F0 [03:14:39]MH_I2C_Read... [03:14:39]Read from MH i2c: F0 09 00 [03:14:39]MH_I2C_Read... [03:14:39]Read from MH i2c: F0 09 00 49 8F 00 A8 5A A8 66 90 0F 3E 66 23 [03:14:39]GetLastDocTimeStamp 1722309262 [03:14:39]current date 1722309288 [03:14:39]FM_GetShiftState [03:14:39]SAM_PROTO_GetShiftState [03:14:39]wFMCommunicate request_size=4 [03:14:39]MH_SAM_APDU [03:14:39]CAPDU: 80 13 01 00 [03:14:39]Write to MH i2c: E2 08 00 4A 8F 80 13 01 00 00 00 00 00 56 [03:14:39]Write i2c OK [03:14:39]MH_I2C_Read... [03:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:39]Read from MH i2c: E2 [03:14:39]MH_I2C_Read... [03:14:39]Read from MH i2c: E2 0E 00 [03:14:39]MH_I2C_Read... [03:14:39]Read from MH i2c: E2 0E 00 4A 8F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 21 [03:14:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:14:39]wFMCommunicate OK [03:14:39]SAM_PROTO_GetShiftState done [03:14:39]FM_GetShiftState done [03:14:39]opened in 1722298242 [03:14:39]opened+sec_in_day 1722384642 [03:14:39]quantity*price = 22035 [03:14:39]sum+1 = 22036 [03:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.40 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 9 30.07.2024 03:14 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118957 ФПД: 40101468094929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031448&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118957&fm=40101468094929&tin=02508201610067®Number=0000000000092660&sum=22000 [03:14:40]StoreToDocumentArchive [03:14:40]shift 435 fd 118957 [03:14:40]save to /storage/0435/doc_00118957 [03:14:40]save last doc name /storage/0435/doc_00118957 to /storage/kkm_last_doc_name [03:14:40]save OK [03:14:40]Clear old archive folders... [03:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:14:40]tlvbuf is 01FD3550 [03:14:40]SAM_PROTO_ClearQueue [03:14:40]wFMCommunicate request_size=4 [03:14:40]MH_SAM_APDU [03:14:40]CAPDU: 80 09 00 00 [03:14:40]Write to MH i2c: E2 08 00 57 8F 80 09 00 00 00 00 00 00 58 [03:14:40]Write i2c OK [03:14:40]MH_I2C_Read... [03:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:40]Read from MH i2c: E2 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 03 00 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 03 00 57 8F 00 90 00 5A [03:14:40]RAPDU: 90 00 [03:14:40]wFMCommunicate OK [03:14:40]SAM_PROTO_ClearQueue done [03:14:40]KKMCreateOFDPacket [03:14:40]OFDProtocolAddRootSTLVToBuf [03:14:40]FM_MakeSignedData [03:14:40]FM_MakeSignedData [03:14:40]SAM_PROTO_SignData [03:14:40]wFMCommunicate request_size=4 [03:14:40]MH_SAM_APDU [03:14:40]CAPDU: 80 0D 01 02 [03:14:40]Write to MH i2c: E2 08 00 58 8F 80 0D 01 02 00 00 00 00 60 [03:14:40]Write i2c OK [03:14:40]MH_I2C_Read... [03:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:40]Read from MH i2c: E2 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 03 00 [03:14:40]MH_I2C_Read... [03:14:40]Read from MH i2c: E2 03 00 58 8F 00 90 00 5B [03:14:40]RAPDU: 90 00 [03:14:40]wFMCommunicate OK [03:14:40]wFMCommunicate request_size=255 [03:14:40]MH_SAM_APDU [03:14: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 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 09 00 00 00 F4 03 04 00 A8 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD D0 01 00 35 04 06 00 24 [03:14:40]Write to MH i2c: E2 02 01 59 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 09 00 00 00 F4 03 04 00 A8 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD D0 01 00 35 04 06 00 24 00 00 15 [03:14:40]Write i2c OK [03:14:40]MH_I2C_Read... [03:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:41]Read from MH i2c: E2 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 03 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 03 00 59 8F 00 90 00 5C [03:14:41]RAPDU: 90 00 [03:14:41]wFMCommunicate OK [03:14:41]wFMCommunicate request_size=10 [03:14:41]MH_SAM_APDU [03:14:41]CAPDU: 80 0D 02 02 05 78 D9 C2 C1 D1 [03:14:41]Write to MH i2c: E2 0D 00 5A 8F 80 0D 02 02 05 00 78 D9 C2 C1 D1 00 00 12 [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:41]Read from MH i2c: E2 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 03 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 03 00 5A 8F 00 90 00 5D [03:14:41]RAPDU: 90 00 [03:14:41]wFMCommunicate OK [03:14:41]wFMCommunicate request_size=4 [03:14:41]MH_SAM_APDU [03:14:41]CAPDU: 80 0D 03 02 [03:14:41]Write to MH i2c: E2 08 00 5B 8F 80 0D 03 02 00 00 00 00 65 [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:41]Read from MH i2c: E2 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 0B 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 0B 00 5B 8F 00 2B 6C 5C 81 03 DB A5 D8 90 00 35 [03:14:41]RAPDU: 2B 6C 5C 81 03 DB A5 D8 90 00 [03:14:41]wFMCommunicate OK [03:14:41]SAM_PROTO_SignData done [03:14:41]FM_MakeSignedData done [03:14:41]CreateOFDProtocolMessage [03:14:41]wFMCommunicate request_size=4 [03:14:41]MH_SAM_APDU [03:14:41]CAPDU: 80 11 00 00 [03:14:41]Write to MH i2c: E2 08 00 5C 8F 80 11 00 00 00 00 00 00 65 [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:41]Read from MH i2c: E2 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 17 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: E2 17 00 5C 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [03:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:14:41]wFMCommunicate OK [03:14:41]CreateOFDProtocolMessage done [03:14:41]OFDSenderStorePacket 118957 [03:14:41]StoreOFDPacket docnum=118957 [03:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 65 FD 07 01 0D 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 09 00 00 00 F4 03 04 00 A8 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD D0 01 00 35 04 06 00 24 78 D9 C2 C1 D1 2B 6C 5C 81 03 DB A5 D8 [03:14:41]CheckFolder [03:14:41]dirname=/storage/ofd_packets [03:14:41]CheckFolder done [03:14:41]ProducePacketName [03:14:41]name=ofd_packets/00118957 [03:14:41]NVStorageSaveData ofd_packets/00118957 [03:14:41]File name is /storage/ofd_packets/00118957 [03:14:41]Write 301 bytes [03:14:41]NVStorageSaveData done [03:14:41]OFDSenderStorePacket done [03:14:41]KKMCreateOFDPacket done [03:14:41]NVStorageSaveData kkm_last_timestamp [03:14:41]File name is /storage/kkm_last_timestamp [03:14:41]Write 4 bytes [03:14:41]NVStorageSaveData done [03:14:41]ExternCall_PrintAddStr [03:14:41]wPrintStart [03:14:41]Write to MH i2c: 01 00 00 5D 8F EC [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: 01 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: 01 07 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: 01 07 00 5D 8F 00 00 00 00 00 FF 0F 01 [03:14:41]RasterBufferAndPrint [03:14:41]line Счет N : (1)949873 [03:14:41]line ИНН: 02508201610067 [03:14:41]line Контрольно-Кассовый Чек [03:14:41]line ПРОДАЖА [03:14:41]line ТРК (МРК, ГНК) : 51 [03:14:41]line Товар: 2710124130 [03:14:41]line Аи-92-К-4 [03:14:41]line 3.250 * 67.80 [03:14:41]line = 220.35 [03:14:41]line НДС 12% НСП 1% [03:14:41]line > о реализуемом товаре [03:14:41]line ОКРУГЛЕНИЕ: -0.35 [03:14:41]line ИТОГО: 220.00 [03:14:41]line Внесено: 220.00 [03:14:41]line СДАЧА: 0.00 [03:14:41]line НСП 1% : 1.95 [03:14:41]line НДС 12% : 23.40 [03:14:41]line Наличными: 220.00 [03:14:41]line Безнал.: 0.00 [03:14:41]line Место: АЗС № 134 "Партнер Нефть" [03:14:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:14:41]line СНО: Общий режим [03:14:41]line Чек 9 30.07.2024 03:14 [03:14:41]line Смена: 435 ФФД: 1.0 [03:14:41]line ЗНМ: 0300000044 [03:14:41]line РНМ: 0000000000092660 [03:14:41]line Версия ККМ: 001 [03:14:41]line ФМ: 0000000000874939 [03:14:41]line ФД: 118957 [03:14:41]line ФПД: 40101468094929 [03:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031448&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118957&fm=40101468094929&tin=02508201610067®Number=0000000000092660&sum=22000 [03:14:41]written 0, free lines is 4095 [03:14:41]OFD Sender: Processing packet 118957 [packets to send 86, broken 85] [03:14:41]ProducePacketName [03:14:41]name=ofd_packets/00118957 [03:14:41]OFD Sender: To server: pG, [03:14:41]CommunicateWithHost lk.salyk.kg:30040 [03:14:41]ConnectInit lk.salyk.kg [03:14:41]Connected sock=10 [03:14:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 65 FD 07 01 0D 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B2 0C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 13 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 09 00 00 00 F4 03 04 00 A8 5A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD D0 01 00 35 04 06 00 24 78 D9 C2 C1 D1 2B 6C 5C 81 03 DB A5 D8 [03:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 ED 3B 47 00 5A 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 34 39 33 39 10 04 04 00 AD D0 01 00 F4 03 04 00 34 08 A8 66 B6 04 01 00 00 90 66 95 D3 8B B2 64 B8 [03:14:41]CommunicateWithHost err = 0 [03:14:41]CheckOFDResponse [03:14:41]1017 (14) - 77093643461234 [03:14:41]1041 (16) - 0000000000874939 [03:14:41]1040 (4) - 118957 [03:14:41]1012 (4) - 29.07.2024 21:23 [03:14:41]1206 (1) - 0 [03:14:41]OFD Sender: Remove packet 118957 [03:14:41]ProducePacketName [03:14:41]name=ofd_packets/00118957 [03:14:41]NVStorageDeleteData [03:14:41]Write to MH i2c: 01 00 00 87 8F 16 [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: 01 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: 01 07 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: 01 07 00 87 8F 00 00 00 00 00 D9 0C 02 [03:14:41]RasterBufferAndPrint [03:14:41]line [03:14:41]line [03:14:41]line [03:14:41]line [03:14:41]line [03:14:41]written 0, free lines is 3297 [03:14:41]MH_Cut [03:14:41]Write to MH i2c: D1 01 00 8E 8F 01 EF [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: D1 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: D1 01 00 [03:14:41]MH_I2C_Read... [03:14:41]Read from MH i2c: D1 01 00 8E 8F 00 EE [03:14:41]Write to MH i2c: 01 00 00 8F 8F 1E [03:14:41]Write i2c OK [03:14:41]MH_I2C_Read... [03:14:42]OFD Sender: No OFD packet to send [03:14:42]*** Cut start [03:14:42]*** Partial cut [03:14:42]*** CUTSNS_PIN = 1 [03:14:42]*** CUTSNS_PIN = 0 [03:14:42]*** Brake cut motor [03:14:43]Read from MH i2c: 01 [03:14:43]MH_I2C_Read... [03:14:43]*** Stop cut motor [03:14:43]*** Cut end [03:14:43]Read from MH i2c: 01 07 00 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: 01 07 00 8F 8F 00 00 00 00 00 FF 0F 33 [03:14:43]process_action close_receipt done [03:14:43]requested_data is exist [03:14:43]produce_requested_data [03:14:43]requested_item fm.sn is exist - process it [03:14:43]wFMCommunicate request_size=4 [03:14:43]MH_SAM_APDU [03:14:43]CAPDU: 80 11 00 00 [03:14:43]Write to MH i2c: E2 08 00 90 8F 80 11 00 00 00 00 00 00 99 [03:14:43]Write i2c OK [03:14:43]MH_I2C_Read... [03:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:43]Read from MH i2c: E2 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: E2 17 00 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: E2 17 00 90 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [03:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:14:43]wFMCommunicate OK [03:14:43]requested_item fd.num is exist - process it [03:14:43]SAM_PROTO_GetFieldsCounters [03:14:43]wFMCommunicate request_size=4 [03:14:43]MH_SAM_APDU [03:14:43]CAPDU: 80 13 00 00 [03:14:43]Write to MH i2c: E2 08 00 91 8F 80 13 00 00 00 00 00 00 9C [03:14:43]Write i2c OK [03:14:43]MH_I2C_Read... [03:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:43]Read from MH i2c: E2 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: E2 62 00 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: E2 62 00 91 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [03:14:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:14:43]wFMCommunicate OK [03:14:43]SAM_PROTO_GetFieldsCounters done [03:14:43]requested_item shift.num is exist - process it [03:14:43]requested_item shift.opened is exist - process it [03:14:43]req_shift_opened [03:14:43]FM_GetShiftState [03:14:43]SAM_PROTO_GetShiftState [03:14:43]wFMCommunicate request_size=4 [03:14:43]MH_SAM_APDU [03:14:43]CAPDU: 80 13 01 00 [03:14:43]Write to MH i2c: E2 08 00 92 8F 80 13 01 00 00 00 00 00 9E [03:14:43]Write i2c OK [03:14:43]MH_I2C_Read... [03:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:43]Read from MH i2c: E2 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: E2 0E 00 [03:14:43]MH_I2C_Read... [03:14:43]Read from MH i2c: E2 0E 00 92 8F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 69 [03:14:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:14:43]wFMCommunicate OK [03:14:43]SAM_PROTO_GetShiftState done [03:14:43]FM_GetShiftState done [03:14:43]req_shift_opened done [03:14:43]requested_item shift.open_date is exist - process it [03:14:43]req_shift_open_date [03:14:43]req_shift_open_date done [03:14:43]produce_requested_data done [03:14:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118957,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [03:14:43]process_action_free close_receipt [03:14:43]json_value_free [03:14:43]json_value_free done [03:14:43]process_json_proto returns [03:14:43]Send response to host [03:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118957,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [03:14:43]free response buf [03:14:43]execute_script done [03:14:43]execute_script returns [03:14:43]free content buf [03:14:43]Sock 9.Close socket [03:14:43]Sock 9.Thread stoped [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]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: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: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: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: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: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: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: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:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:48]OFD Sender: No OFD packet to send [03:33:53]OFD Sender: No OFD packet to send [03:33:58]OFD Sender: No OFD packet to send [03:34:03]OFD Sender: No OFD packet to send [03:34:08]OFD Sender: No OFD packet to send [03:34:13]OFD Sender: No OFD packet to send [03:34:18]OFD Sender: No OFD packet to send [03:34:23]OFD Sender: No OFD packet to send [03:34:28]OFD Sender: No OFD packet to send [03:34:33]OFD Sender: No OFD packet to send [03:34:38]OFD Sender: No OFD packet to send [03:34:43]OFD Sender: No OFD packet to send [03:34:48]OFD Sender: No OFD packet to send [03:34:53]OFD Sender: No OFD packet to send [03:34:58]OFD Sender: No OFD packet to send [03:35:03]OFD Sender: No OFD packet to send [03:35:08]OFD Sender: No OFD packet to send [03:35:13]OFD Sender: No OFD packet to send [03:35:18]OFD Sender: No OFD packet to send [03:35:23]OFD Sender: No OFD packet to send [03:35:28]OFD Sender: No OFD packet to send [03:35:33]OFD Sender: No OFD packet to send [03:35:38]OFD Sender: No OFD packet to send [03:35:43]OFD Sender: No OFD packet to send [03:35:48]OFD Sender: No OFD packet to send [03:35:53]OFD Sender: No OFD packet to send [03:35:58]OFD Sender: No OFD packet to send [03:36:03]OFD Sender: No OFD packet to send [03:36:08]OFD Sender: No OFD packet to send [03:36:13]OFD Sender: No OFD packet to send [03:36:18]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:31]accept exits with 7 [03:52:31]New connection [03:52:31]New thread 3067239780 created [03:52:31]Thread 3067383140 joined [03:52:31]Waiting for new connection... [03:52:31] Sock 7.Parse request [03:52:31]Sock 7.Check first char [03:52:31]Sock 7.First char is OK [03:52:31]request: POST /json_proto HTTP/1.0 [03:52:31]Method: POST [03:52:31]URL: /json_proto [03:52:31]Method is POST - this is cgi request [03:52:31]url: /json_proto [03:52:31]query_string will be loaded in cgi processing [03:52:31]execute_cgi json_proto POST (null) [03:52:31]execute_cgi path=json_proto method=POST [03:52:31]POST find Content-Length [03:52:31]Host: 172.17.45.7:8080 [03:52:31]Content-Length: 677 [03:52:31]Content-Type: application/json [03:52:31] [03:52:31]POST finish read [03:52:31]Found Content-Length = 677 [03:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:52:31]execute_script... [03:52: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)949874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:52:31]POST & json_proto [03:52:31]process_json_proto [03:52:31]json parsed OK: [03:52:31]protocol is kg_v1.0 [03:52:31]action value=close_receipt [03:52:31]process_action close_receipt [03:52:31]cmd_close_receipt [03:52:31]MH_GetDate [03:52:31]Write to MH i2c: F0 00 00 93 8F 11 [03:52:31]Write i2c OK [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: F0 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: F0 09 00 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: F0 09 00 93 8F 00 88 63 A8 66 90 0F 3E 66 56 [03:52:31]GetLastDocTimeStamp 1722309288 [03:52:31]current date 1722311560 [03:52:31]FM_GetShiftState [03:52:31]SAM_PROTO_GetShiftState [03:52:31]wFMCommunicate request_size=4 [03:52:31]MH_SAM_APDU [03:52:31]CAPDU: 80 13 01 00 [03:52:31]Write to MH i2c: E2 08 00 94 8F 80 13 01 00 00 00 00 00 A0 [03:52:31]Write i2c OK [03:52:31]MH_I2C_Read... [03:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:52:31]Read from MH i2c: E2 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: E2 0E 00 [03:52:31]MH_I2C_Read... [03:52:31]Read from MH i2c: E2 0E 00 94 8F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6B [03:52:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:52:31]wFMCommunicate OK [03:52:31]SAM_PROTO_GetShiftState done [03:52:31]FM_GetShiftState done [03:52:31]opened in 1722298242 [03:52:31]opened+sec_in_day 1722384642 [03:52:31]quantity*price = 50036 [03:52:31]sum+1 = 50037 [03:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 10 30.07.2024 03:52 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118958 ФПД: 118771783917749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T035240&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118958&fm=118771783917749&tin=02508201610067®Number=0000000000092660&sum=50000 [03:52:32]StoreToDocumentArchive [03:52:32]shift 435 fd 118958 [03:52:32]save to /storage/0435/doc_00118958 [03:52:32]save last doc name /storage/0435/doc_00118958 to /storage/kkm_last_doc_name [03:52:32]save OK [03:52:32]Clear old archive folders... [03:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:52:32]tlvbuf is 020637C0 [03:52:32]SAM_PROTO_ClearQueue [03:52:32]wFMCommunicate request_size=4 [03:52:32]MH_SAM_APDU [03:52:32]CAPDU: 80 09 00 00 [03:52:32]Write to MH i2c: E2 08 00 A1 8F 80 09 00 00 00 00 00 00 A2 [03:52:32]Write i2c OK [03:52:32]MH_I2C_Read... [03:52:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:52:32]Read from MH i2c: E2 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 03 00 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 03 00 A1 8F 00 90 00 A4 [03:52:32]RAPDU: 90 00 [03:52:32]wFMCommunicate OK [03:52:32]SAM_PROTO_ClearQueue done [03:52:32]KKMCreateOFDPacket [03:52:32]OFDProtocolAddRootSTLVToBuf [03:52:32]FM_MakeSignedData [03:52:32]FM_MakeSignedData [03:52:32]SAM_PROTO_SignData [03:52:32]wFMCommunicate request_size=4 [03:52:32]MH_SAM_APDU [03:52:32]CAPDU: 80 0D 01 02 [03:52:32]Write to MH i2c: E2 08 00 A2 8F 80 0D 01 02 00 00 00 00 AA [03:52:32]Write i2c OK [03:52:32]MH_I2C_Read... [03:52:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:52:32]Read from MH i2c: E2 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 03 00 [03:52:32]MH_I2C_Read... [03:52:32]Read from MH i2c: E2 03 00 A2 8F 00 90 00 A5 [03:52:32]RAPDU: 90 00 [03:52:32]wFMCommunicate OK [03:52:32]wFMCommunicate request_size=255 [03:52:32]MH_SAM_APDU [03:52: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 88 63 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D0 01 00 35 04 06 00 6C [03:52:32]Write to MH i2c: E2 02 01 A3 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 88 63 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D0 01 00 35 04 06 00 6C 00 00 D0 [03:52:32]Write i2c OK [03:52:32]MH_I2C_Read... [03:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:52:33]Read from MH i2c: E2 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 03 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 03 00 A3 8F 00 90 00 A6 [03:52:33]RAPDU: 90 00 [03:52:33]wFMCommunicate OK [03:52:33]wFMCommunicate request_size=10 [03:52:33]MH_SAM_APDU [03:52:33]CAPDU: 80 0D 02 02 05 05 B5 FD 60 B5 [03:52:33]Write to MH i2c: E2 0D 00 A4 8F 80 0D 02 02 05 00 05 B5 FD 60 B5 00 00 83 [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:52:33]Read from MH i2c: E2 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 03 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 03 00 A4 8F 00 90 00 A7 [03:52:33]RAPDU: 90 00 [03:52:33]wFMCommunicate OK [03:52:33]wFMCommunicate request_size=4 [03:52:33]MH_SAM_APDU [03:52:33]CAPDU: 80 0D 03 02 [03:52:33]Write to MH i2c: E2 08 00 A5 8F 80 0D 03 02 00 00 00 00 AF [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:52:33]Read from MH i2c: E2 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 0B 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 0B 00 A5 8F 00 20 39 89 EB F6 95 A5 BB 90 00 68 [03:52:33]RAPDU: 20 39 89 EB F6 95 A5 BB 90 00 [03:52:33]wFMCommunicate OK [03:52:33]SAM_PROTO_SignData done [03:52:33]FM_MakeSignedData done [03:52:33]CreateOFDProtocolMessage [03:52:33]wFMCommunicate request_size=4 [03:52:33]MH_SAM_APDU [03:52:33]CAPDU: 80 11 00 00 [03:52:33]Write to MH i2c: E2 08 00 A6 8F 80 11 00 00 00 00 00 00 AF [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:52:33]Read from MH i2c: E2 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 17 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: E2 17 00 A6 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [03:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:52:33]wFMCommunicate OK [03:52:33]CreateOFDProtocolMessage done [03:52:33]OFDSenderStorePacket 118958 [03:52:33]StoreOFDPacket docnum=118958 [03:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C6 46 07 01 41 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 88 63 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D0 01 00 35 04 06 00 6C 05 B5 FD 60 B5 20 39 89 EB F6 95 A5 BB [03:52:33]CheckFolder [03:52:33]dirname=/storage/ofd_packets [03:52:33]CheckFolder done [03:52:33]ProducePacketName [03:52:33]name=ofd_packets/00118958 [03:52:33]NVStorageSaveData ofd_packets/00118958 [03:52:33]File name is /storage/ofd_packets/00118958 [03:52:33]Write 301 bytes [03:52:33]NVStorageSaveData done [03:52:33]OFDSenderStorePacket done [03:52:33]KKMCreateOFDPacket done [03:52:33]NVStorageSaveData kkm_last_timestamp [03:52:33]File name is /storage/kkm_last_timestamp [03:52:33]Write 4 bytes [03:52:33]NVStorageSaveData done [03:52:33]ExternCall_PrintAddStr [03:52:33]wPrintStart [03:52:33]Write to MH i2c: 01 00 00 A7 8F 36 [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: 01 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: 01 07 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: 01 07 00 A7 8F 00 00 00 00 00 FF 0F 4B [03:52:33]RasterBufferAndPrint [03:52:33]line Счет N : (1)949874 [03:52:33]line ИНН: 02508201610067 [03:52:33]line Контрольно-Кассовый Чек [03:52:33]line ПРОДАЖА [03:52:33]line ТРК (МРК, ГНК) : 51 [03:52:33]line Товар: 2710124130 [03:52:33]line Аи-92-К-4 [03:52:33]line 7.380 * 67.80 [03:52:33]line = 500.36 [03:52:33]line НДС 12% НСП 1% [03:52:33]line > о реализуемом товаре [03:52:33]line ОКРУГЛЕНИЕ: -0.36 [03:52:33]line ИТОГО: 500.00 [03:52:33]line Внесено: 500.00 [03:52:33]line СДАЧА: 0.00 [03:52:33]line НСП 1% : 4.43 [03:52:33]line НДС 12% : 53.14 [03:52:33]line Наличными: 500.00 [03:52:33]line Безнал.: 0.00 [03:52:33]line Место: АЗС № 134 "Партнер Нефть" [03:52:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:52:33]line СНО: Общий режим [03:52:33]line Чек 10 30.07.2024 03:52 [03:52:33]line Смена: 435 ФФД: 1.0 [03:52:33]line ЗНМ: 0300000044 [03:52:33]line РНМ: 0000000000092660 [03:52:33]line Версия ККМ: 001 [03:52:33]line ФМ: 0000000000874939 [03:52:33]line ФД: 118958 [03:52:33]line ФПД: 118771783917749 [03:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T035240&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118958&fm=118771783917749&tin=02508201610067®Number=0000000000092660&sum=50000 [03:52:33]written 0, free lines is 4095 [03:52:33]OFD Sender: Processing packet 118958 [packets to send 86, broken 85] [03:52:33]ProducePacketName [03:52:33]name=ofd_packets/00118958 [03:52:33]OFD Sender: To server: pG, [03:52:33]CommunicateWithHost lk.salyk.kg:30040 [03:52:33]ConnectInit lk.salyk.kg [03:52:33]Connected sock=10 [03:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C6 46 07 01 41 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 88 63 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D0 01 00 35 04 06 00 6C 05 B5 FD 60 B5 20 39 89 EB F6 95 A5 BB [03:52:33]Write to MH i2c: 01 00 00 D1 8F 60 [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: 01 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: 01 07 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: 01 07 00 D1 8F 00 00 00 00 00 D5 0C 48 [03:52:33]RasterBufferAndPrint [03:52:33]line [03:52:33]line [03:52:33]line [03:52:33]line [03:52:33]line [03:52:33]written 0, free lines is 3292 [03:52:33]MH_Cut [03:52:33]Write to MH i2c: D1 01 00 D8 8F 01 39 [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: D1 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: D1 01 00 [03:52:33]MH_I2C_Read... [03:52:33]Read from MH i2c: D1 01 00 D8 8F 00 38 [03:52:33]Write to MH i2c: 01 00 00 D9 8F 68 [03:52:33]Write i2c OK [03:52:33]MH_I2C_Read... [03:52:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4A 7D 47 00 CF E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D0 01 00 F4 03 04 00 14 11 A8 66 B6 04 01 00 00 AD FA B1 F1 96 DF 07 5B [03:52:33]CommunicateWithHost err = 0 [03:52:33]CheckOFDResponse [03:52:33]1017 (14) - 77093643461234 [03:52:33]1041 (16) - 0000000000874939 [03:52:33]1040 (4) - 118958 [03:52:33]1012 (4) - 29.07.2024 22:00 [03:52:33]1206 (1) - 0 [03:52:33]OFD Sender: Remove packet 118958 [03:52:33]ProducePacketName [03:52:33]name=ofd_packets/00118958 [03:52:33]NVStorageDeleteData [03:52:34]OFD Sender: No OFD packet to send [03:52:34]*** Cut start [03:52:34]*** Partial cut [03:52:34]*** CUTSNS_PIN = 1 [03:52:34]*** CUTSNS_PIN = 0 [03:52:34]*** Brake cut motor [03:52:34]Read from MH i2c: 01 [03:52:34]MH_I2C_Read... [03:52:34]*** Stop cut motor [03:52:34]*** Cut end [03:52:34]Read from MH i2c: 01 07 00 [03:52:34]MH_I2C_Read... [03:52:34]Read from MH i2c: 01 07 00 D9 8F 00 00 00 00 00 FF 0F 7D [03:52:34]process_action close_receipt done [03:52:34]requested_data is exist [03:52:34]produce_requested_data [03:52:34]requested_item fm.sn is exist - process it [03:52:34]wFMCommunicate request_size=4 [03:52:34]MH_SAM_APDU [03:52:34]CAPDU: 80 11 00 00 [03:52:34]Write to MH i2c: E2 08 00 DA 8F 80 11 00 00 00 00 00 00 E3 [03:52:34]Write i2c OK [03:52:34]MH_I2C_Read... [03:52:35]Read from MH i2c: E2 [03:52:35]MH_I2C_Read... [03:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:52:35]Read from MH i2c: E2 17 00 [03:52:35]MH_I2C_Read... [03:52:35]Read from MH i2c: E2 17 00 DA 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [03:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:52:35]wFMCommunicate OK [03:52:35]requested_item fd.num is exist - process it [03:52:35]SAM_PROTO_GetFieldsCounters [03:52:35]wFMCommunicate request_size=4 [03:52:35]MH_SAM_APDU [03:52:35]CAPDU: 80 13 00 00 [03:52:35]Write to MH i2c: E2 08 00 DB 8F 80 13 00 00 00 00 00 00 E6 [03:52:35]Write i2c OK [03:52:35]MH_I2C_Read... [03:52:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:52:35]Read from MH i2c: E2 [03:52:35]MH_I2C_Read... [03:52:35]Read from MH i2c: E2 62 00 [03:52:35]MH_I2C_Read... [03:52:35]Read from MH i2c: E2 62 00 DB 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [03:52:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:52:35]wFMCommunicate OK [03:52:35]SAM_PROTO_GetFieldsCounters done [03:52:35]requested_item shift.num is exist - process it [03:52:35]requested_item shift.opened is exist - process it [03:52:35]req_shift_opened [03:52:35]FM_GetShiftState [03:52:35]SAM_PROTO_GetShiftState [03:52:35]wFMCommunicate request_size=4 [03:52:35]MH_SAM_APDU [03:52:35]CAPDU: 80 13 01 00 [03:52:35]Write to MH i2c: E2 08 00 DC 8F 80 13 01 00 00 00 00 00 E8 [03:52:35]Write i2c OK [03:52:35]MH_I2C_Read... [03:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:52:35]Read from MH i2c: E2 [03:52:35]MH_I2C_Read... [03:52:35]Read from MH i2c: E2 0E 00 [03:52:35]MH_I2C_Read... [03:52:35]Read from MH i2c: E2 0E 00 DC 8F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B3 [03:52:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:52:35]wFMCommunicate OK [03:52:35]SAM_PROTO_GetShiftState done [03:52:35]FM_GetShiftState done [03:52:35]req_shift_opened done [03:52:35]requested_item shift.open_date is exist - process it [03:52:35]req_shift_open_date [03:52:35]req_shift_open_date done [03:52:35]produce_requested_data done [03:52:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118958,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [03:52:35]process_action_free close_receipt [03:52:35]json_value_free [03:52:35]json_value_free done [03:52:35]process_json_proto returns [03:52:35]Send response to host [03:52:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118958,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [03:52:35]free response buf [03:52:35]execute_script done [03:52:35]execute_script returns [03:52:35]free content buf [03:52:35]Sock 7.Close socket [03:52:35]Sock 7.Thread stoped [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:09]accept exits with 9 [03:55:09]New connection [03:55:09]New thread 3067383140 created [03:55:09]Thread 3067239780 joined [03:55:09]Waiting for new connection... [03:55:09] Sock 9.Parse request [03:55:09]Sock 9.Check first char [03:55:09]Sock 9.First char is OK [03:55:09]request: POST /json_proto HTTP/1.0 [03:55:09]Method: POST [03:55:09]URL: /json_proto [03:55:09]Method is POST - this is cgi request [03:55:09]url: /json_proto [03:55:09]query_string will be loaded in cgi processing [03:55:09]execute_cgi json_proto POST (null) [03:55:09]execute_cgi path=json_proto method=POST [03:55:09]POST find Content-Length [03:55:09]Host: 172.17.45.7:8080 [03:55:09]Content-Length: 819 [03:55:09]Content-Type: application/json [03:55:09] [03:55:09]POST finish read [03:55:09]Found Content-Length = 819 [03:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:09]execute_script... [03:55: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)949876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 42.000, "sum" : 3200.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 3200.00, "payments": [ { "type": 1, "sum" : 3200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:55:09]POST & json_proto [03:55:09]process_json_proto [03:55:09]json parsed OK: [03:55:09]protocol is kg_v1.0 [03:55:09]action value=close_receipt [03:55:09]process_action close_receipt [03:55:09]cmd_close_receipt [03:55:09]MH_GetDate [03:55:09]Write to MH i2c: F0 00 00 DD 8F 5B [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: F0 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: F0 09 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: F0 09 00 DD 8F 00 26 64 A8 66 90 0F 3E 66 3F [03:55:09]GetLastDocTimeStamp 1722311560 [03:55:09]current date 1722311718 [03:55:09]FM_GetShiftState [03:55:09]SAM_PROTO_GetShiftState [03:55:09]wFMCommunicate request_size=4 [03:55:09]MH_SAM_APDU [03:55:09]CAPDU: 80 13 01 00 [03:55:09]Write to MH i2c: E2 08 00 DE 8F 80 13 01 00 00 00 00 00 EA [03:55:09]Write i2c OK [03:55:09]MH_I2C_Read... [03:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:09]Read from MH i2c: E2 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 0E 00 [03:55:09]MH_I2C_Read... [03:55:09]Read from MH i2c: E2 0E 00 DE 8F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B5 [03:55:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:55:09]wFMCommunicate OK [03:55:09]SAM_PROTO_GetShiftState done [03:55:09]FM_GetShiftState done [03:55:09]opened in 1722298242 [03:55:09]opened+sec_in_day 1722384642 [03:55:09]quantity*price = 320040 [03:55:09]sum+1 = 320041 [03:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 3200.00 НСП 1% : 28.32 НДС 12% : 339.86 Наличными: 0.00 Безнал.: 3200.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 11 30.07.2024 03:55 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118959 ФПД: 186336532896483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T035518&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118959&fm=186336532896483&tin=02508201610067®Number=0000000000092660&sum=320000 [03:55:10]StoreToDocumentArchive [03:55:10]shift 435 fd 118959 [03:55:10]save to /storage/0435/doc_00118959 [03:55:10]save last doc name /storage/0435/doc_00118959 to /storage/kkm_last_doc_name [03:55:10]save OK [03:55:10]Clear old archive folders... [03:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:55:10]tlvbuf is 01E4D4F0 [03:55:10]SAM_PROTO_ClearQueue [03:55:10]wFMCommunicate request_size=4 [03:55:10]MH_SAM_APDU [03:55:10]CAPDU: 80 09 00 00 [03:55:10]Write to MH i2c: E2 08 00 EB 8F 80 09 00 00 00 00 00 00 EC [03:55:10]Write i2c OK [03:55:10]MH_I2C_Read... [03:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:55:10]Read from MH i2c: E2 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: E2 03 00 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: E2 03 00 EB 8F 00 90 00 EE [03:55:10]RAPDU: 90 00 [03:55:10]wFMCommunicate OK [03:55:10]SAM_PROTO_ClearQueue done [03:55:10]KKMCreateOFDPacket [03:55:10]OFDProtocolAddRootSTLVToBuf [03:55:10]FM_MakeSignedData [03:55:10]FM_MakeSignedData [03:55:10]SAM_PROTO_SignData [03:55:10]wFMCommunicate request_size=4 [03:55:10]MH_SAM_APDU [03:55:10]CAPDU: 80 0D 01 02 [03:55:10]Write to MH i2c: E2 08 00 EC 8F 80 0D 01 02 00 00 00 00 F4 [03:55:10]Write i2c OK [03:55:10]MH_I2C_Read... [03:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:55:10]Read from MH i2c: E2 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: E2 03 00 [03:55:10]MH_I2C_Read... [03:55:10]Read from MH i2c: E2 03 00 EC 8F 00 90 00 EF [03:55:10]RAPDU: 90 00 [03:55:10]wFMCommunicate OK [03:55:10]wFMCommunicate request_size=255 [03:55:10]MH_SAM_APDU [03:55:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D0 01 00 35 04 06 00 A9 78 DA DA [03:55:10]Write to MH i2c: E2 02 01 ED 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D0 01 00 35 04 06 00 A9 78 DA DA 00 00 D8 [03:55:10]Write i2c OK [03:55:10]MH_I2C_Read... [03:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:11]Read from MH i2c: E2 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 03 00 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 03 00 ED 8F 00 90 00 F0 [03:55:11]RAPDU: 90 00 [03:55:11]wFMCommunicate OK [03:55:11]wFMCommunicate request_size=7 [03:55:11]MH_SAM_APDU [03:55:11]CAPDU: 80 0D 02 02 02 1A E3 [03:55:11]Write to MH i2c: E2 0A 00 EE 8F 80 0D 02 02 02 00 1A E3 00 00 F8 [03:55:11]Write i2c OK [03:55:11]MH_I2C_Read... [03:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:55:11]Read from MH i2c: E2 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 03 00 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 03 00 EE 8F 00 90 00 F1 [03:55:11]RAPDU: 90 00 [03:55:11]wFMCommunicate OK [03:55:11]wFMCommunicate request_size=4 [03:55:11]MH_SAM_APDU [03:55:11]CAPDU: 80 0D 03 02 [03:55:11]Write to MH i2c: E2 08 00 EF 8F 80 0D 03 02 00 00 00 00 F9 [03:55:11]Write i2c OK [03:55:11]MH_I2C_Read... [03:55:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:55:11]Read from MH i2c: E2 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 0B 00 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 0B 00 EF 8F 00 71 07 EF 00 73 12 4A F8 90 00 28 [03:55:11]RAPDU: 71 07 EF 00 73 12 4A F8 90 00 [03:55:11]wFMCommunicate OK [03:55:11]SAM_PROTO_SignData done [03:55:11]FM_MakeSignedData done [03:55:11]CreateOFDProtocolMessage [03:55:11]wFMCommunicate request_size=4 [03:55:11]MH_SAM_APDU [03:55:11]CAPDU: 80 11 00 00 [03:55:11]Write to MH i2c: E2 08 00 F0 8F 80 11 00 00 00 00 00 00 F9 [03:55:11]Write i2c OK [03:55:11]MH_I2C_Read... [03:55:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:11]Read from MH i2c: E2 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 17 00 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: E2 17 00 F0 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [03:55:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:55:11]wFMCommunicate OK [03:55:11]CreateOFDProtocolMessage done [03:55:11]OFDSenderStorePacket 118959 [03:55:11]StoreOFDPacket docnum=118959 [03:55:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 5D 04 01 61 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D0 01 00 35 04 06 00 A9 78 DA DA 1A E3 71 07 EF 00 73 12 4A F8 [03:55:11]CheckFolder [03:55:11]dirname=/storage/ofd_packets [03:55:11]CheckFolder done [03:55:11]ProducePacketName [03:55:11]name=ofd_packets/00118959 [03:55:11]NVStorageSaveData ofd_packets/00118959 [03:55:11]File name is /storage/ofd_packets/00118959 [03:55:11]Write 298 bytes [03:55:11]NVStorageSaveData done [03:55:11]OFDSenderStorePacket done [03:55:11]KKMCreateOFDPacket done [03:55:11]NVStorageSaveData kkm_last_timestamp [03:55:11]File name is /storage/kkm_last_timestamp [03:55:11]Write 4 bytes [03:55:11]NVStorageSaveData done [03:55:11]ExternCall_PrintAddStr [03:55:11]wPrintStart [03:55:11]Write to MH i2c: 01 00 00 F1 8F 80 [03:55:11]Write i2c OK [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: 01 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: 01 07 00 [03:55:11]MH_I2C_Read... [03:55:11]Read from MH i2c: 01 07 00 F1 8F 00 00 00 00 00 FF 0F 95 [03:55:11]RasterBufferAndPrint [03:55:11]line Счет N : (1)949876 [03:55:11]line ИНН: 02508201610067 [03:55:11]line Контрольно-Кассовый Чек [03:55:11]line ПРОДАЖА [03:55:11]line ТРК (МРК, ГНК) : 34 [03:55:11]line Товар: 2710194800 [03:55:11]line ДТ-К-5 [03:55:11]line 42.000 * 76.20 [03:55:11]line = 3200.40 [03:55:11]line НДС 12% НСП 1% [03:55:11]line > о реализуемом товаре [03:55:11]line ОКРУГЛЕНИЕ: -0.40 [03:55:11]line ИТОГО: 3200.00 [03:55:11]line НСП 1% : 28.32 [03:55:11]line НДС 12% : 339.86 [03:55:11]line Наличными: 0.00 [03:55:11]line Безнал.: 3200.00 [03:55:11]line Место: АЗС № 134 "Партнер Нефть" [03:55:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:55:11]line СНО: Общий режим [03:55:11]line Чек 11 30.07.2024 03:55 [03:55:11]line Смена: 435 ФФД: 1.0 [03:55:11]line ЗНМ: 0300000044 [03:55:11]line РНМ: 0000000000092660 [03:55:11]line Версия ККМ: 001 [03:55:11]line Платежная система: O! деньги [03:55:11]line ФМ: 0000000000874939 [03:55:11]line ФД: 118959 [03:55:11]line ФПД: 186336532896483 [03:55:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T035518&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118959&fm=186336532896483&tin=02508201610067®Number=0000000000092660&sum=320000 [03:55:11]OFD Sender: Processing packet 118959 [packets to send 86, broken 85] [03:55:11]ProducePacketName [03:55:11]name=ofd_packets/00118959 [03:55:11]OFD Sender: To server: pG, [03:55:11]CommunicateWithHost lk.salyk.kg:30040 [03:55:11]ConnectInit lk.salyk.kg [03:55:11]written 0, free lines is 4095 [03:55:11]Connected sock=10 [03: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 34 39 33 39 0C 01 00 00 78 5D 04 01 61 ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 A4 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 28 E2 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 E2 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 10 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 84 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 E2 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D0 01 00 35 04 06 00 A9 78 DA DA 1A E3 71 07 EF 00 73 12 4A F8 [03:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 93 13 47 00 5A 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D0 01 00 F4 03 04 00 B2 11 A8 66 B6 04 01 00 00 D5 43 5C 38 0C BC FA F5 [03:55:11]CommunicateWithHost err = 0 [03:55:11]CheckOFDResponse [03:55:11]1017 (14) - 77093643461234 [03:55:11]1041 (16) - 0000000000874939 [03:55:11]1040 (4) - 118959 [03:55:11]1012 (4) - 29.07.2024 22:03 [03:55:11]1206 (1) - 0 [03:55:11]OFD Sender: Remove packet 118959 [03:55:11]ProducePacketName [03:55:11]name=ofd_packets/00118959 [03:55:11]NVStorageDeleteData [03:55:12]Write to MH i2c: 01 00 00 1B 90 AB [03:55:12]Write i2c OK [03:55:12]MH_I2C_Read... [03:55:12]Read from MH i2c: 01 [03:55:12]MH_I2C_Read... [03:55:12]Read from MH i2c: 01 07 00 [03:55:12]MH_I2C_Read... [03:55:12]Read from MH i2c: 01 07 00 1B 90 00 00 00 00 00 D1 0C 8F [03:55:12]RasterBufferAndPrint [03:55:12]line [03:55:12]line [03:55:12]line [03:55:12]line [03:55:12]line [03:55:12]written 0, free lines is 3290 [03:55:12]MH_Cut [03:55:12]Write to MH i2c: D1 01 00 22 90 01 84 [03:55:12]Write i2c OK [03:55:12]MH_I2C_Read... [03:55:12]Read from MH i2c: D1 [03:55:12]MH_I2C_Read... [03:55:12]Read from MH i2c: D1 01 00 [03:55:12]MH_I2C_Read... [03:55:12]Read from MH i2c: D1 01 00 22 90 00 83 [03:55:12]Write to MH i2c: 01 00 00 23 90 B3 [03:55:12]Write i2c OK [03:55:12]MH_I2C_Read... [03:55:12]OFD Sender: No OFD packet to send [03:55:12]*** Cut start [03:55:12]*** Partial cut [03:55:12]*** CUTSNS_PIN = 1 [03:55:12]*** CUTSNS_PIN = 0 [03:55:13]*** Brake cut motor [03:55:13]Read from MH i2c: 01 [03:55:13]MH_I2C_Read... [03:55:13]*** Stop cut motor [03:55:13]*** Cut end [03:55:13]Read from MH i2c: 01 07 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: 01 07 00 23 90 00 00 00 00 00 FF 0F C8 [03:55:13]process_action close_receipt done [03:55:13]requested_data is exist [03:55:13]produce_requested_data [03:55:13]requested_item fm.sn is exist - process it [03:55:13]wFMCommunicate request_size=4 [03:55:13]MH_SAM_APDU [03:55:13]CAPDU: 80 11 00 00 [03:55:13]Write to MH i2c: E2 08 00 24 90 80 11 00 00 00 00 00 00 2E [03:55:13]Write i2c OK [03:55:13]MH_I2C_Read... [03:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:55:13]Read from MH i2c: E2 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 17 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 17 00 24 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [03:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:55:13]wFMCommunicate OK [03:55:13]requested_item fd.num is exist - process it [03:55:13]SAM_PROTO_GetFieldsCounters [03:55:13]wFMCommunicate request_size=4 [03:55:13]MH_SAM_APDU [03:55:13]CAPDU: 80 13 00 00 [03:55:13]Write to MH i2c: E2 08 00 25 90 80 13 00 00 00 00 00 00 31 [03:55:13]Write i2c OK [03:55:13]MH_I2C_Read... [03:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:55:13]Read from MH i2c: E2 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 62 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 62 00 25 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [03: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 AF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:55:13]wFMCommunicate OK [03:55:13]SAM_PROTO_GetFieldsCounters done [03:55:13]requested_item shift.num is exist - process it [03:55:13]requested_item shift.opened is exist - process it [03:55:13]req_shift_opened [03:55:13]FM_GetShiftState [03:55:13]SAM_PROTO_GetShiftState [03:55:13]wFMCommunicate request_size=4 [03:55:13]MH_SAM_APDU [03:55:13]CAPDU: 80 13 01 00 [03:55:13]Write to MH i2c: E2 08 00 26 90 80 13 01 00 00 00 00 00 33 [03:55:13]Write i2c OK [03:55:13]MH_I2C_Read... [03:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:55:13]Read from MH i2c: E2 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 0E 00 [03:55:13]MH_I2C_Read... [03:55:13]Read from MH i2c: E2 0E 00 26 90 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 FE [03:55:13]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:55:13]wFMCommunicate OK [03:55:13]SAM_PROTO_GetShiftState done [03:55:13]FM_GetShiftState done [03:55:13]req_shift_opened done [03:55:13]requested_item shift.open_date is exist - process it [03:55:13]req_shift_open_date [03:55:13]req_shift_open_date done [03:55:13]produce_requested_data done [03:55:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118959,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [03:55:13]process_action_free close_receipt [03:55:13]json_value_free [03:55:13]json_value_free done [03:55:13]process_json_proto returns [03:55:13]Send response to host [03:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118959,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [03:55:13]free response buf [03:55:13]execute_script done [03:55:13]execute_script returns [03:55:13]free content buf [03:55:13]Sock 9.Close socket [03:55:13]Sock 9.Thread stoped [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]accept exits with 7 [03:56:27]New connection [03:56:27]New thread 3067239780 created [03:56:27]Thread 3067383140 joined [03:56:27]Waiting for new connection... [03:56:27] Sock 7.Parse request [03:56:27]Sock 7.Check first char [03:56:27]Sock 7.First char is OK [03:56:27]request: POST /json_proto HTTP/1.0 [03:56:27]Method: POST [03:56:27]URL: /json_proto [03:56:27]Method is POST - this is cgi request [03:56:27]url: /json_proto [03:56:27]query_string will be loaded in cgi processing [03:56:27]execute_cgi json_proto POST (null) [03:56:27]execute_cgi path=json_proto method=POST [03:56:27]POST find Content-Length [03:56:27]Host: 172.17.45.7:8080 [03:56:27]Content-Length: 819 [03:56:27]Content-Type: application/json [03:56:27] [03:56:27]POST finish read [03:56:27]Found Content-Length = 819 [03:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 7000.00, "payments": [ { "type": 1, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:27]execute_script... [03:56:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 7000.00, "payments": [ { "type": 1, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:56:27]POST & json_proto [03:56:27]process_json_proto [03:56:27]json parsed OK: [03:56:27]protocol is kg_v1.0 [03:56:27]action value=close_receipt [03:56:27]process_action close_receipt [03:56:27]cmd_close_receipt [03:56:27]MH_GetDate [03:56:27]Write to MH i2c: F0 00 00 27 90 A6 [03:56:27]Write i2c OK [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: F0 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: F0 09 00 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: F0 09 00 27 90 00 74 64 A8 66 90 0F 3E 66 D8 [03:56:27]GetLastDocTimeStamp 1722311718 [03:56:27]current date 1722311796 [03:56:27]FM_GetShiftState [03:56:27]SAM_PROTO_GetShiftState [03:56:27]wFMCommunicate request_size=4 [03:56:27]MH_SAM_APDU [03:56:27]CAPDU: 80 13 01 00 [03:56:27]Write to MH i2c: E2 08 00 28 90 80 13 01 00 00 00 00 00 35 [03:56:27]Write i2c OK [03:56:27]MH_I2C_Read... [03:56:27]OFD Sender: No OFD packet to send [03:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:27]Read from MH i2c: E2 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 0E 00 [03:56:27]MH_I2C_Read... [03:56:27]Read from MH i2c: E2 0E 00 28 90 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 00 [03:56:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:56:27]wFMCommunicate OK [03:56:27]SAM_PROTO_GetShiftState done [03:56:27]FM_GetShiftState done [03:56:27]opened in 1722298242 [03:56:27]opened+sec_in_day 1722384642 [03:56:27]quantity*price = 700049 [03:56:27]sum+1 = 700050 [03:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 7000.00 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 0.00 Безнал.: 7000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 12 30.07.2024 03:56 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118960 ФПД: 86098814124244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T035636&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118960&fm=86098814124244&tin=02508201610067®Number=0000000000092660&sum=700000 [03:56:28]StoreToDocumentArchive [03:56:28]shift 435 fd 118960 [03:56:28]save to /storage/0435/doc_00118960 [03:56:28]save last doc name /storage/0435/doc_00118960 to /storage/kkm_last_doc_name [03:56:28]save OK [03:56:28]Clear old archive folders... [03:56:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:56:28]tlvbuf is 02063850 [03:56:28]SAM_PROTO_ClearQueue [03:56:28]wFMCommunicate request_size=4 [03:56:28]MH_SAM_APDU [03:56:28]CAPDU: 80 09 00 00 [03:56:28]Write to MH i2c: E2 08 00 35 90 80 09 00 00 00 00 00 00 37 [03:56:28]Write i2c OK [03:56:28]MH_I2C_Read... [03:56:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:56:28]Read from MH i2c: E2 [03:56:28]MH_I2C_Read... [03:56:28]Read from MH i2c: E2 03 00 [03:56:28]MH_I2C_Read... [03:56:28]Read from MH i2c: E2 03 00 35 90 00 90 00 39 [03:56:28]RAPDU: 90 00 [03:56:28]wFMCommunicate OK [03:56:28]SAM_PROTO_ClearQueue done [03:56:28]KKMCreateOFDPacket [03:56:28]OFDProtocolAddRootSTLVToBuf [03:56:28]FM_MakeSignedData [03:56:28]FM_MakeSignedData [03:56:28]SAM_PROTO_SignData [03:56:28]wFMCommunicate request_size=4 [03:56:28]MH_SAM_APDU [03:56:28]CAPDU: 80 0D 01 02 [03:56:28]Write to MH i2c: E2 08 00 36 90 80 0D 01 02 00 00 00 00 3F [03:56:28]Write i2c OK [03:56:28]MH_I2C_Read... [03:56:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:56:28]Read from MH i2c: E2 [03:56:28]MH_I2C_Read... [03:56:28]Read from MH i2c: E2 03 00 [03:56:28]MH_I2C_Read... [03:56:28]Read from MH i2c: E2 03 00 36 90 00 90 00 3A [03:56:28]RAPDU: 90 00 [03:56:28]wFMCommunicate OK [03:56:28]wFMCommunicate request_size=255 [03:56:28]MH_SAM_APDU [03:56:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 74 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D0 01 00 35 04 06 00 4E 4E 71 3B [03:56:28]Write to MH i2c: E2 02 01 37 90 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 74 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D0 01 00 35 04 06 00 4E 4E 71 3B 00 00 88 [03:56:28]Write i2c OK [03:56:28]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 [03:56:29]MH_I2C_Read... [03:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:29]Read from MH i2c: E2 03 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 03 00 37 90 00 90 00 3B [03:56:29]RAPDU: 90 00 [03:56:29]wFMCommunicate OK [03:56:29]wFMCommunicate request_size=7 [03:56:29]MH_SAM_APDU [03:56:29]CAPDU: 80 0D 02 02 02 40 D4 [03:56:29]Write to MH i2c: E2 0A 00 38 90 80 0D 02 02 02 00 40 D4 00 00 5A [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:56:29]Read from MH i2c: E2 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 03 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 03 00 38 90 00 90 00 3C [03:56:29]RAPDU: 90 00 [03:56:29]wFMCommunicate OK [03:56:29]wFMCommunicate request_size=4 [03:56:29]MH_SAM_APDU [03:56:29]CAPDU: 80 0D 03 02 [03:56:29]Write to MH i2c: E2 08 00 39 90 80 0D 03 02 00 00 00 00 44 [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:56:29]Read from MH i2c: E2 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 0B 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 0B 00 39 90 00 13 80 5F 8B 89 A7 13 13 90 00 18 [03:56:29]RAPDU: 13 80 5F 8B 89 A7 13 13 90 00 [03:56:29]wFMCommunicate OK [03:56:29]SAM_PROTO_SignData done [03:56:29]FM_MakeSignedData done [03:56:29]CreateOFDProtocolMessage [03:56:29]wFMCommunicate request_size=4 [03:56:29]MH_SAM_APDU [03:56:29]CAPDU: 80 11 00 00 [03:56:29]Write to MH i2c: E2 08 00 3A 90 80 11 00 00 00 00 00 00 44 [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:29]Read from MH i2c: E2 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 17 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: E2 17 00 3A 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [03:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:56:29]wFMCommunicate OK [03:56:29]CreateOFDProtocolMessage done [03:56:29]OFDSenderStorePacket 118960 [03:56:29]StoreOFDPacket docnum=118960 [03:56:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 80 DB 04 01 1A 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 74 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D0 01 00 35 04 06 00 4E 4E 71 3B 40 D4 13 80 5F 8B 89 A7 13 13 [03:56:29]CheckFolder [03:56:29]dirname=/storage/ofd_packets [03:56:29]CheckFolder done [03:56:29]ProducePacketName [03:56:29]name=ofd_packets/00118960 [03:56:29]NVStorageSaveData ofd_packets/00118960 [03:56:29]File name is /storage/ofd_packets/00118960 [03:56:29]Write 298 bytes [03:56:29]NVStorageSaveData done [03:56:29]OFDSenderStorePacket done [03:56:29]KKMCreateOFDPacket done [03:56:29]NVStorageSaveData kkm_last_timestamp [03:56:29]File name is /storage/kkm_last_timestamp [03:56:29]Write 4 bytes [03:56:29]NVStorageSaveData done [03:56:29]ExternCall_PrintAddStr [03:56:29]wPrintStart [03:56:29]Write to MH i2c: 01 00 00 3B 90 CB [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: 01 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: 01 07 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: 01 07 00 3B 90 00 00 00 00 00 FF 0F E0 [03:56:29]RasterBufferAndPrint [03:56:29]line Счет N : (1)949875 [03:56:29]line ИНН: 02508201610067 [03:56:29]line Контрольно-Кассовый Чек [03:56:29]line ПРОДАЖА [03:56:29]line ТРК (МРК, ГНК) : 11 [03:56:29]line Товар: 2710194800 [03:56:29]line ДТ-К-5 [03:56:29]line 91.870 * 76.20 [03:56:29]line = 7000.49 [03:56:29]line НДС 12% НСП 1% [03:56:29]line > о реализуемом товаре [03:56:29]line ОКРУГЛЕНИЕ: -0.49 [03:56:29]line ИТОГО: 7000.00 [03:56:29]line НСП 1% : 61.95 [03:56:29]line НДС 12% : 743.41 [03:56:29]line Наличными: 0.00 [03:56:29]line Безнал.: 7000.00 [03:56:29]line Место: АЗС № 134 "Партнер Нефть" [03:56:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:56:29]line СНО: Общий режим [03:56:29]line Чек 12 30.07.2024 03:56 [03:56:29]line Смена: 435 ФФД: 1.0 [03:56:29]line ЗНМ: 0300000044 [03:56:29]line РНМ: 0000000000092660 [03:56:29]line Версия ККМ: 001 [03:56:29]line Платежная система: O! деньги [03:56:29]line ФМ: 0000000000874939 [03:56:29]line ФД: 118960 [03:56:29]line ФПД: 86098814124244 [03:56:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T035636&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118960&fm=86098814124244&tin=02508201610067®Number=0000000000092660&sum=700000 [03:56:29]OFD Sender: Processing packet 118960 [packets to send 86, broken 85] [03:56:29]ProducePacketName [03:56:29]name=ofd_packets/00118960 [03:56:29]OFD Sender: To server: pG, [03:56:29]CommunicateWithHost lk.salyk.kg:30040 [03:56:29]ConnectInit lk.salyk.kg [03:56:29]written 0, free lines is 4095 [03:56:29]Connected sock=10 [03:56:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 80 DB 04 01 1A 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 74 64 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D0 01 00 35 04 06 00 4E 4E 71 3B 40 D4 13 80 5F 8B 89 A7 13 13 [03:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 D9 47 00 96 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D0 01 00 F4 03 04 00 00 12 A8 66 B6 04 01 00 00 72 50 04 23 0A DC 9E 91 [03:56:29]CommunicateWithHost err = 0 [03:56:29]CheckOFDResponse [03:56:29]1017 (14) - 77093643461234 [03:56:29]1041 (16) - 0000000000874939 [03:56:29]1040 (4) - 118960 [03:56:29]1012 (4) - 29.07.2024 22:04 [03:56:29]1206 (1) - 0 [03:56:29]OFD Sender: Remove packet 118960 [03:56:29]ProducePacketName [03:56:29]name=ofd_packets/00118960 [03:56:29]NVStorageDeleteData [03:56:29]Write to MH i2c: 01 00 00 65 90 F5 [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: 01 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: 01 07 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: 01 07 00 65 90 00 00 00 00 00 D9 0C E1 [03:56:29]RasterBufferAndPrint [03:56:29]line [03:56:29]line [03:56:29]line [03:56:29]line [03:56:29]line [03:56:29]written 0, free lines is 3296 [03:56:29]MH_Cut [03:56:29]Write to MH i2c: D1 01 00 6C 90 01 CE [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: D1 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: D1 01 00 [03:56:29]MH_I2C_Read... [03:56:29]Read from MH i2c: D1 01 00 6C 90 00 CD [03:56:29]Write to MH i2c: 01 00 00 6D 90 FD [03:56:29]Write i2c OK [03:56:29]MH_I2C_Read... [03:56:30]OFD Sender: No OFD packet to send [03:56:30]*** Cut start [03:56:30]*** Partial cut [03:56:30]*** CUTSNS_PIN = 1 [03:56:30]*** CUTSNS_PIN = 0 [03:56:30]*** Brake cut motor [03:56:31]Read from MH i2c: 01 [03:56:31]MH_I2C_Read... [03:56:31]*** Stop cut motor [03:56:31]*** Cut end [03:56:31]Read from MH i2c: 01 07 00 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: 01 07 00 6D 90 00 00 00 00 00 FF 0F 12 [03:56:31]process_action close_receipt done [03:56:31]requested_data is exist [03:56:31]produce_requested_data [03:56:31]requested_item fm.sn is exist - process it [03:56:31]wFMCommunicate request_size=4 [03:56:31]MH_SAM_APDU [03:56:31]CAPDU: 80 11 00 00 [03:56:31]Write to MH i2c: E2 08 00 6E 90 80 11 00 00 00 00 00 00 78 [03:56:31]Write i2c OK [03:56:31]MH_I2C_Read... [03:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:56:31]Read from MH i2c: E2 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 17 00 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 17 00 6E 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [03:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [03:56:31]wFMCommunicate OK [03:56:31]requested_item fd.num is exist - process it [03:56:31]SAM_PROTO_GetFieldsCounters [03:56:31]wFMCommunicate request_size=4 [03:56:31]MH_SAM_APDU [03:56:31]CAPDU: 80 13 00 00 [03:56:31]Write to MH i2c: E2 08 00 6F 90 80 13 00 00 00 00 00 00 7B [03:56:31]Write i2c OK [03:56:31]MH_I2C_Read... [03:56:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:56:31]Read from MH i2c: E2 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 62 00 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 62 00 6F 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [03:56:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:56:31]wFMCommunicate OK [03:56:31]SAM_PROTO_GetFieldsCounters done [03:56:31]requested_item shift.num is exist - process it [03:56:31]requested_item shift.opened is exist - process it [03:56:31]req_shift_opened [03:56:31]FM_GetShiftState [03:56:31]SAM_PROTO_GetShiftState [03:56:31]wFMCommunicate request_size=4 [03:56:31]MH_SAM_APDU [03:56:31]CAPDU: 80 13 01 00 [03:56:31]Write to MH i2c: E2 08 00 70 90 80 13 01 00 00 00 00 00 7D [03:56:31]Write i2c OK [03:56:31]MH_I2C_Read... [03:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:56:31]Read from MH i2c: E2 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 0E 00 [03:56:31]MH_I2C_Read... [03:56:31]Read from MH i2c: E2 0E 00 70 90 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 48 [03:56:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [03:56:31]wFMCommunicate OK [03:56:31]SAM_PROTO_GetShiftState done [03:56:31]FM_GetShiftState done [03:56:31]req_shift_opened done [03:56:31]requested_item shift.open_date is exist - process it [03:56:31]req_shift_open_date [03:56:31]req_shift_open_date done [03:56:31]produce_requested_data done [03:56:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118960,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [03:56:31]process_action_free close_receipt [03:56:31]json_value_free [03:56:31]json_value_free done [03:56:31]process_json_proto returns [03:56:31]Send response to host [03:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118960,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [03:56:31]free response buf [03:56:31]execute_script done [03:56:31]execute_script returns [03:56:31]free content buf [03:56:31]Sock 7.Close socket [03:56:31]Sock 7.Thread stoped [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:22]accept exits with 9 [04:23:22]New connection [04:23:22]New thread 3067383140 created [04:23:22]Thread 3067239780 joined [04:23:22]Waiting for new connection... [04:23:22] Sock 9.Parse request [04:23:22]Sock 9.Check first char [04:23:22]Sock 9.First char is OK [04:23:22]request: POST /json_proto HTTP/1.0 [04:23:22]Method: POST [04:23:22]URL: /json_proto [04:23:22]Method is POST - this is cgi request [04:23:22]url: /json_proto [04:23:22]query_string will be loaded in cgi processing [04:23:22]execute_cgi json_proto POST (null) [04:23:22]execute_cgi path=json_proto method=POST [04:23:22]POST find Content-Length [04:23:22]Host: 172.17.45.7:8080 [04:23:22]Content-Length: 677 [04:23:22]Content-Type: application/json [04:23:22] [04:23:22]POST finish read [04:23:22]Found Content-Length = 677 [04:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:22]execute_script... [04:23:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:23:22]POST & json_proto [04:23:22]process_json_proto [04:23:22]json parsed OK: [04:23:22]protocol is kg_v1.0 [04:23:22]action value=close_receipt [04:23:22]process_action close_receipt [04:23:22]cmd_close_receipt [04:23:22]MH_GetDate [04:23:22]Write to MH i2c: F0 00 00 71 90 F0 [04:23:22]Write i2c OK [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: F0 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: F0 09 00 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: F0 09 00 71 90 00 C3 6A A8 66 90 0F 3E 66 77 [04:23:22]GetLastDocTimeStamp 1722311796 [04:23:22]current date 1722313411 [04:23:22]FM_GetShiftState [04:23:22]SAM_PROTO_GetShiftState [04:23:22]wFMCommunicate request_size=4 [04:23:22]MH_SAM_APDU [04:23:22]CAPDU: 80 13 01 00 [04:23:22]Write to MH i2c: E2 08 00 72 90 80 13 01 00 00 00 00 00 7F [04:23:22]Write i2c OK [04:23:22]MH_I2C_Read... [04:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:22]Read from MH i2c: E2 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: E2 0E 00 [04:23:22]MH_I2C_Read... [04:23:22]Read from MH i2c: E2 0E 00 72 90 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4A [04:23:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [04:23:22]wFMCommunicate OK [04:23:22]SAM_PROTO_GetShiftState done [04:23:22]FM_GetShiftState done [04:23:22]opened in 1722298242 [04:23:22]opened+sec_in_day 1722384642 [04:23:22]quantity*price = 50036 [04:23:22]sum+1 = 50037 [04:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 13 30.07.2024 04:23 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118961 ФПД: 106846456594655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T042331&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118961&fm=106846456594655&tin=02508201610067®Number=0000000000092660&sum=50000 [04:23:23]StoreToDocumentArchive [04:23:23]shift 435 fd 118961 [04:23:23]save to /storage/0435/doc_00118961 [04:23:23]save last doc name /storage/0435/doc_00118961 to /storage/kkm_last_doc_name [04:23:23]save OK [04:23:23]Clear old archive folders... [04:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:23:23]tlvbuf is 01FD33F0 [04:23:23]SAM_PROTO_ClearQueue [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 09 00 00 [04:23:23]Write to MH i2c: E2 08 00 7F 90 80 09 00 00 00 00 00 00 81 [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 7F 90 00 90 00 83 [04:23:23]RAPDU: 90 00 [04:23:23]wFMCommunicate OK [04:23:23]SAM_PROTO_ClearQueue done [04:23:23]KKMCreateOFDPacket [04:23:23]OFDProtocolAddRootSTLVToBuf [04:23:23]FM_MakeSignedData [04:23:23]FM_MakeSignedData [04:23:23]SAM_PROTO_SignData [04:23:23]wFMCommunicate request_size=4 [04:23:23]MH_SAM_APDU [04:23:23]CAPDU: 80 0D 01 02 [04:23:23]Write to MH i2c: E2 08 00 80 90 80 0D 01 02 00 00 00 00 89 [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:23:23]Read from MH i2c: E2 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 [04:23:23]MH_I2C_Read... [04:23:23]Read from MH i2c: E2 03 00 80 90 00 90 00 84 [04:23:23]RAPDU: 90 00 [04:23:23]wFMCommunicate OK [04:23:23]wFMCommunicate request_size=255 [04:23:23]MH_SAM_APDU [04:23: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C3 6A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D0 01 00 35 04 06 00 61 [04:23:23]Write to MH i2c: E2 02 01 81 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C3 6A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D0 01 00 35 04 06 00 61 00 00 EC [04:23:23]Write i2c OK [04:23:23]MH_I2C_Read... [04:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:24]Read from MH i2c: E2 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 03 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 03 00 81 90 00 90 00 85 [04:23:24]RAPDU: 90 00 [04:23:24]wFMCommunicate OK [04:23:24]wFMCommunicate request_size=10 [04:23:24]MH_SAM_APDU [04:23:24]CAPDU: 80 0D 02 02 05 2D 21 17 40 DF [04:23:24]Write to MH i2c: E2 0D 00 82 90 80 0D 02 02 05 00 2D 21 17 40 DF 00 00 1A [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:23:24]Read from MH i2c: E2 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 03 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 03 00 82 90 00 90 00 86 [04:23:24]RAPDU: 90 00 [04:23:24]wFMCommunicate OK [04:23:24]wFMCommunicate request_size=4 [04:23:24]MH_SAM_APDU [04:23:24]CAPDU: 80 0D 03 02 [04:23:24]Write to MH i2c: E2 08 00 83 90 80 0D 03 02 00 00 00 00 8E [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:23:24]Read from MH i2c: E2 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 0B 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 0B 00 83 90 00 CE 06 6D E8 42 8F 2B 48 90 00 FC [04:23:24]RAPDU: CE 06 6D E8 42 8F 2B 48 90 00 [04:23:24]wFMCommunicate OK [04:23:24]SAM_PROTO_SignData done [04:23:24]FM_MakeSignedData done [04:23:24]CreateOFDProtocolMessage [04:23:24]wFMCommunicate request_size=4 [04:23:24]MH_SAM_APDU [04:23:24]CAPDU: 80 11 00 00 [04:23:24]Write to MH i2c: E2 08 00 84 90 80 11 00 00 00 00 00 00 8E [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:24]Read from MH i2c: E2 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 17 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: E2 17 00 84 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E9 [04:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:23:24]wFMCommunicate OK [04:23:24]CreateOFDProtocolMessage done [04:23:24]OFDSenderStorePacket 118961 [04:23:24]StoreOFDPacket docnum=118961 [04:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 70 07 01 7B 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C3 6A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D0 01 00 35 04 06 00 61 2D 21 17 40 DF CE 06 6D E8 42 8F 2B 48 [04:23:24]CheckFolder [04:23:24]dirname=/storage/ofd_packets [04:23:24]CheckFolder done [04:23:24]ProducePacketName [04:23:24]name=ofd_packets/00118961 [04:23:24]NVStorageSaveData ofd_packets/00118961 [04:23:24]File name is /storage/ofd_packets/00118961 [04:23:24]Write 301 bytes [04:23:24]NVStorageSaveData done [04:23:24]OFDSenderStorePacket done [04:23:24]KKMCreateOFDPacket done [04:23:24]NVStorageSaveData kkm_last_timestamp [04:23:24]File name is /storage/kkm_last_timestamp [04:23:24]Write 4 bytes [04:23:24]NVStorageSaveData done [04:23:24]ExternCall_PrintAddStr [04:23:24]wPrintStart [04:23:24]Write to MH i2c: 01 00 00 85 90 15 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 07 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 07 00 85 90 00 00 00 00 00 FF 0F 2A [04:23:24]RasterBufferAndPrint [04:23:24]line Счет N : (1)949877 [04:23:24]line ИНН: 02508201610067 [04:23:24]line Контрольно-Кассовый Чек [04:23:24]line ПРОДАЖА [04:23:24]line ТРК (МРК, ГНК) : 41 [04:23:24]line Товар: 2710124130 [04:23:24]line Аи-92-К-4 [04:23:24]line 7.380 * 67.80 [04:23:24]line = 500.36 [04:23:24]line НДС 12% НСП 1% [04:23:24]line > о реализуемом товаре [04:23:24]line ОКРУГЛЕНИЕ: -0.36 [04:23:24]line ИТОГО: 500.00 [04:23:24]line Внесено: 500.00 [04:23:24]line СДАЧА: 0.00 [04:23:24]line НСП 1% : 4.43 [04:23:24]line НДС 12% : 53.14 [04:23:24]line Наличными: 500.00 [04:23:24]line Безнал.: 0.00 [04:23:24]line Место: АЗС № 134 "Партнер Нефть" [04:23:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:23:24]line СНО: Общий режим [04:23:24]line Чек 13 30.07.2024 04:23 [04:23:24]line Смена: 435 ФФД: 1.0 [04:23:24]line ЗНМ: 0300000044 [04:23:24]line РНМ: 0000000000092660 [04:23:24]line Версия ККМ: 001 [04:23:24]line ФМ: 0000000000874939 [04:23:24]line ФД: 118961 [04:23:24]line ФПД: 106846456594655 [04:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T042331&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118961&fm=106846456594655&tin=02508201610067®Number=0000000000092660&sum=50000 [04:23:24]written 0, free lines is 4095 [04:23:24]OFD Sender: Processing packet 118961 [packets to send 86, broken 85] [04:23:24]ProducePacketName [04:23:24]name=ofd_packets/00118961 [04:23:24]OFD Sender: To server: pG, [04:23:24]CommunicateWithHost lk.salyk.kg:30040 [04:23:24]ConnectInit lk.salyk.kg [04:23:24]Connected sock=10 [04:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 70 07 01 7B 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C3 6A A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D0 01 00 35 04 06 00 61 2D 21 17 40 DF CE 06 6D E8 42 8F 2B 48 [04:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 63 47 00 D8 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D0 01 00 F4 03 04 00 4F 18 A8 66 B6 04 01 00 00 50 DB 62 D9 5E 27 1C 79 [04:23:24]CommunicateWithHost err = 0 [04:23:24]CheckOFDResponse [04:23:24]1017 (14) - 77093643461234 [04:23:24]1041 (16) - 0000000000874939 [04:23:24]1040 (4) - 118961 [04:23:24]1012 (4) - 29.07.2024 22:31 [04:23:24]1206 (1) - 0 [04:23:24]OFD Sender: Remove packet 118961 [04:23:24]ProducePacketName [04:23:24]name=ofd_packets/00118961 [04:23:24]NVStorageDeleteData [04:23:24]Write to MH i2c: 01 00 00 AF 90 3F [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 07 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: 01 07 00 AF 90 00 00 00 00 00 DC 0C 2E [04:23:24]RasterBufferAndPrint [04:23:24]line [04:23:24]line [04:23:24]line [04:23:24]line [04:23:24]line [04:23:24]written 0, free lines is 3301 [04:23:24]MH_Cut [04:23:24]Write to MH i2c: D1 01 00 B6 90 01 18 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: D1 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: D1 01 00 [04:23:24]MH_I2C_Read... [04:23:24]Read from MH i2c: D1 01 00 B6 90 00 17 [04:23:24]Write to MH i2c: 01 00 00 B7 90 47 [04:23:24]Write i2c OK [04:23:24]MH_I2C_Read... [04:23:25]OFD Sender: No OFD packet to send [04:23:25]*** Cut start [04:23:25]*** Partial cut [04:23:25]*** CUTSNS_PIN = 1 [04:23:25]*** CUTSNS_PIN = 0 [04:23:25]*** Brake cut motor [04:23:26]Read from MH i2c: 01 [04:23:26]MH_I2C_Read... [04:23:26]*** Stop cut motor [04:23:26]*** Cut end [04:23:26]Read from MH i2c: 01 07 00 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: 01 07 00 B7 90 00 00 00 00 00 FF 0F 5C [04:23:26]process_action close_receipt done [04:23:26]requested_data is exist [04:23:26]produce_requested_data [04:23:26]requested_item fm.sn is exist - process it [04:23:26]wFMCommunicate request_size=4 [04:23:26]MH_SAM_APDU [04:23:26]CAPDU: 80 11 00 00 [04:23:26]Write to MH i2c: E2 08 00 B8 90 80 11 00 00 00 00 00 00 C2 [04:23:26]Write i2c OK [04:23:26]MH_I2C_Read... [04:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:23:26]Read from MH i2c: E2 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 17 00 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 17 00 B8 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [04:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:23:26]wFMCommunicate OK [04:23:26]requested_item fd.num is exist - process it [04:23:26]SAM_PROTO_GetFieldsCounters [04:23:26]wFMCommunicate request_size=4 [04:23:26]MH_SAM_APDU [04:23:26]CAPDU: 80 13 00 00 [04:23:26]Write to MH i2c: E2 08 00 B9 90 80 13 00 00 00 00 00 00 C5 [04:23:26]Write i2c OK [04:23:26]MH_I2C_Read... [04:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:23:26]Read from MH i2c: E2 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 62 00 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 62 00 B9 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [04:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:23:26]wFMCommunicate OK [04:23:26]SAM_PROTO_GetFieldsCounters done [04:23:26]requested_item shift.num is exist - process it [04:23:26]requested_item shift.opened is exist - process it [04:23:26]req_shift_opened [04:23:26]FM_GetShiftState [04:23:26]SAM_PROTO_GetShiftState [04:23:26]wFMCommunicate request_size=4 [04:23:26]MH_SAM_APDU [04:23:26]CAPDU: 80 13 01 00 [04:23:26]Write to MH i2c: E2 08 00 BA 90 80 13 01 00 00 00 00 00 C7 [04:23:26]Write i2c OK [04:23:26]MH_I2C_Read... [04:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:23:26]Read from MH i2c: E2 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 0E 00 [04:23:26]MH_I2C_Read... [04:23:26]Read from MH i2c: E2 0E 00 BA 90 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 92 [04:23:26]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [04:23:26]wFMCommunicate OK [04:23:26]SAM_PROTO_GetShiftState done [04:23:26]FM_GetShiftState done [04:23:26]req_shift_opened done [04:23:26]requested_item shift.open_date is exist - process it [04:23:26]req_shift_open_date [04:23:26]req_shift_open_date done [04:23:26]produce_requested_data done [04:23:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118961,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [04:23:26]process_action_free close_receipt [04:23:26]json_value_free [04:23:26]json_value_free done [04:23:26]process_json_proto returns [04:23:26]Send response to host [04:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118961,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [04:23:26]free response buf [04:23:26]execute_script done [04:23:26]execute_script returns [04:23:26]free content buf [04:23:26]Sock 9.Close socket [04:23:26]Sock 9.Thread stoped [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:37]accept exits with 7 [04:43:37]New connection [04:43:37]New thread 3067239780 created [04:43:37]Thread 3067383140 joined [04:43:37]Waiting for new connection... [04:43:37] Sock 7.Parse request [04:43:37]Sock 7.Check first char [04:43:37]Sock 7.First char is OK [04:43:37]request: POST /json_proto HTTP/1.0 [04:43:37]Method: POST [04:43:37]URL: /json_proto [04:43:37]Method is POST - this is cgi request [04:43:37]url: /json_proto [04:43:37]query_string will be loaded in cgi processing [04:43:37]execute_cgi json_proto POST (null) [04:43:37]execute_cgi path=json_proto method=POST [04:43:37]POST find Content-Length [04:43:37]Host: 172.17.45.7:8080 [04:43:37]Content-Length: 674 [04:43:37]Content-Type: application/json [04:43:37] [04:43:37]POST finish read [04:43:37]Found Content-Length = 674 [04:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:37]execute_script... [04:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:43:37]POST & json_proto [04:43:37]process_json_proto [04:43:37]json parsed OK: [04:43:37]protocol is kg_v1.0 [04:43:37]action value=close_receipt [04:43:37]process_action close_receipt [04:43:37]cmd_close_receipt [04:43:37]MH_GetDate [04:43:37]Write to MH i2c: F0 00 00 BB 90 3A [04:43:37]Write i2c OK [04:43:37]MH_I2C_Read... [04:43:37]Read from MH i2c: F0 [04:43:37]MH_I2C_Read... [04:43:37]Read from MH i2c: F0 09 00 [04:43:37]MH_I2C_Read... [04:43:37]Read from MH i2c: F0 09 00 BB 90 00 82 6F A8 66 90 0F 3E 66 85 [04:43:37]GetLastDocTimeStamp 1722313411 [04:43:37]current date 1722314626 [04:43:37]FM_GetShiftState [04:43:37]SAM_PROTO_GetShiftState [04:43:37]wFMCommunicate request_size=4 [04:43:37]MH_SAM_APDU [04:43:37]CAPDU: 80 13 01 00 [04:43:37]Write to MH i2c: E2 08 00 BC 90 80 13 01 00 00 00 00 00 C9 [04:43:37]Write i2c OK [04:43:37]MH_I2C_Read... [04:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:37]Read from MH i2c: E2 [04:43:37]MH_I2C_Read... [04:43:37]Read from MH i2c: E2 0E 00 [04:43:37]MH_I2C_Read... [04:43:37]Read from MH i2c: E2 0E 00 BC 90 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 94 [04:43:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [04:43:37]wFMCommunicate OK [04:43:37]SAM_PROTO_GetShiftState done [04:43:37]FM_GetShiftState done [04:43:37]opened in 1722298242 [04:43:37]opened+sec_in_day 1722384642 [04:43:37]quantity*price = 70027 [04:43:37]sum+1 = 70029 [04:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 14 30.07.2024 04:43 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118962 ФПД: 274073301442449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T044346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118962&fm=274073301442449&tin=02508201610067®Number=0000000000092660&sum=70000 [04:43:38]StoreToDocumentArchive [04:43:38]shift 435 fd 118962 [04:43:38]save to /storage/0435/doc_00118962 [04:43:38]save last doc name /storage/0435/doc_00118962 to /storage/kkm_last_doc_name [04:43:38]save OK [04:43:38]Clear old archive folders... [04:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:43:38]tlvbuf is 020B4BD0 [04:43:38]SAM_PROTO_ClearQueue [04:43:38]wFMCommunicate request_size=4 [04:43:38]MH_SAM_APDU [04:43:38]CAPDU: 80 09 00 00 [04:43:38]Write to MH i2c: E2 08 00 C9 90 80 09 00 00 00 00 00 00 CB [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:38]Read from MH i2c: E2 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 C9 90 00 90 00 CD [04:43:38]RAPDU: 90 00 [04:43:38]wFMCommunicate OK [04:43:38]SAM_PROTO_ClearQueue done [04:43:38]KKMCreateOFDPacket [04:43:38]OFDProtocolAddRootSTLVToBuf [04:43:38]FM_MakeSignedData [04:43:38]FM_MakeSignedData [04:43:38]SAM_PROTO_SignData [04:43:38]wFMCommunicate request_size=4 [04:43:38]MH_SAM_APDU [04:43:38]CAPDU: 80 0D 01 02 [04:43:38]Write to MH i2c: E2 08 00 CA 90 80 0D 01 02 00 00 00 00 D3 [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:38]Read from MH i2c: E2 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 CA 90 00 90 00 CE [04:43:38]RAPDU: 90 00 [04:43:38]wFMCommunicate OK [04:43:38]wFMCommunicate request_size=255 [04:43:38]MH_SAM_APDU [04:43:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 6F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D0 01 00 35 04 06 00 F9 44 A9 C6 [04:43:38]Write to MH i2c: E2 02 01 CB 90 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 6F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D0 01 00 35 04 06 00 F9 44 A9 C6 00 00 4F [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:38]Read from MH i2c: E2 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 CB 90 00 90 00 CF [04:43:38]RAPDU: 90 00 [04:43:38]wFMCommunicate OK [04:43:38]wFMCommunicate request_size=7 [04:43:38]MH_SAM_APDU [04:43:38]CAPDU: 80 0D 02 02 02 5F 91 [04:43:38]Write to MH i2c: E2 0A 00 CC 90 80 0D 02 02 02 00 5F 91 00 00 CA [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:38]Read from MH i2c: E2 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 03 00 CC 90 00 90 00 D0 [04:43:38]RAPDU: 90 00 [04:43:38]wFMCommunicate OK [04:43:38]wFMCommunicate request_size=4 [04:43:38]MH_SAM_APDU [04:43:38]CAPDU: 80 0D 03 02 [04:43:38]Write to MH i2c: E2 08 00 CD 90 80 0D 03 02 00 00 00 00 D8 [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:38]Read from MH i2c: E2 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 0B 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 0B 00 CD 90 00 D6 C5 AE 74 2B C9 CE BE 90 00 16 [04:43:38]RAPDU: D6 C5 AE 74 2B C9 CE BE 90 00 [04:43:38]wFMCommunicate OK [04:43:38]SAM_PROTO_SignData done [04:43:38]FM_MakeSignedData done [04:43:38]CreateOFDProtocolMessage [04:43:38]wFMCommunicate request_size=4 [04:43:38]MH_SAM_APDU [04:43:38]CAPDU: 80 11 00 00 [04:43:38]Write to MH i2c: E2 08 00 CE 90 80 11 00 00 00 00 00 00 D8 [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:38]Read from MH i2c: E2 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 17 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: E2 17 00 CE 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [04:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:43:38]wFMCommunicate OK [04:43:38]CreateOFDProtocolMessage done [04:43:38]OFDSenderStorePacket 118962 [04:43:38]StoreOFDPacket docnum=118962 [04:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 61 12 04 01 8F B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 6F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D0 01 00 35 04 06 00 F9 44 A9 C6 5F 91 D6 C5 AE 74 2B C9 CE BE [04:43:38]CheckFolder [04:43:38]dirname=/storage/ofd_packets [04:43:38]CheckFolder done [04:43:38]ProducePacketName [04:43:38]name=ofd_packets/00118962 [04:43:38]NVStorageSaveData ofd_packets/00118962 [04:43:38]File name is /storage/ofd_packets/00118962 [04:43:38]Write 298 bytes [04:43:38]NVStorageSaveData done [04:43:38]OFDSenderStorePacket done [04:43:38]KKMCreateOFDPacket done [04:43:38]NVStorageSaveData kkm_last_timestamp [04:43:38]File name is /storage/kkm_last_timestamp [04:43:38]Write 4 bytes [04:43:38]NVStorageSaveData done [04:43:38]ExternCall_PrintAddStr [04:43:38]wPrintStart [04:43:38]Write to MH i2c: 01 00 00 CF 90 5F [04:43:38]Write i2c OK [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: 01 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: 01 07 00 [04:43:38]MH_I2C_Read... [04:43:38]Read from MH i2c: 01 07 00 CF 90 00 00 00 00 00 FF 0F 74 [04:43:38]RasterBufferAndPrint [04:43:39]line Счет N : (1)949878 [04:43:39]line ИНН: 02508201610067 [04:43:39]line Контрольно-Кассовый Чек [04:43:39]line ПРОДАЖА [04:43:39]line ТРК (МРК, ГНК) : 34 [04:43:39]line Товар: 2710194800 [04:43:39]line ДТ-К-5 [04:43:39]line 9.190 * 76.20 [04:43:39]line = 700.28 [04:43:39]line НДС 12% НСП 1% [04:43:39]line > о реализуемом товаре [04:43:39]line ОКРУГЛЕНИЕ: -0.28 [04:43:39]line ИТОГО: 700.00 [04:43:39]line Внесено: 700.00 [04:43:39]line СДАЧА: 0.00 [04:43:39]line НСП 1% : 6.20 [04:43:39]line НДС 12% : 74.37 [04:43:39]line Наличными: 700.00 [04:43:39]line Безнал.: 0.00 [04:43:39]line Место: АЗС № 134 "Партнер Нефть" [04:43:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:43:39]line СНО: Общий режим [04:43:39]line Чек 14 30.07.2024 04:43 [04:43:39]line Смена: 435 ФФД: 1.0 [04:43:39]line ЗНМ: 0300000044 [04:43:39]line РНМ: 0000000000092660 [04:43:39]line Версия ККМ: 001 [04:43:39]line ФМ: 0000000000874939 [04:43:39]line ФД: 118962 [04:43:39]line ФПД: 274073301442449 [04:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T044346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118962&fm=274073301442449&tin=02508201610067®Number=0000000000092660&sum=70000 [04:43:39]OFD Sender: Processing packet 118962 [packets to send 86, broken 85] [04:43:39]ProducePacketName [04:43:39]name=ofd_packets/00118962 [04:43:39]OFD Sender: To server: pG, [04:43:39]CommunicateWithHost lk.salyk.kg:30040 [04:43:39]ConnectInit lk.salyk.kg [04:43:39]written 0, free lines is 4095 [04:43:39]Connected sock=10 [04:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 61 12 04 01 8F B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 82 6F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D0 01 00 35 04 06 00 F9 44 A9 C6 5F 91 D6 C5 AE 74 2B C9 CE BE [04:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3E 11 47 00 EA AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D0 01 00 F4 03 04 00 0E 1D A8 66 B6 04 01 00 00 53 2E 92 ED 00 6A 4E D3 [04:43:39]CommunicateWithHost err = 0 [04:43:39]CheckOFDResponse [04:43:39]1017 (14) - 77093643461234 [04:43:39]1041 (16) - 0000000000874939 [04:43:39]1040 (4) - 118962 [04:43:39]1012 (4) - 29.07.2024 22:51 [04:43:39]1206 (1) - 0 [04:43:39]OFD Sender: Remove packet 118962 [04:43:39]ProducePacketName [04:43:39]name=ofd_packets/00118962 [04:43:39]NVStorageDeleteData [04:43:39]Write to MH i2c: 01 00 00 F9 90 89 [04:43:39]Write i2c OK [04:43:39]MH_I2C_Read... [04:43:39]Read from MH i2c: 01 [04:43:39]MH_I2C_Read... [04:43:39]Read from MH i2c: 01 07 00 [04:43:39]MH_I2C_Read... [04:43:39]Read from MH i2c: 01 07 00 F9 90 00 00 00 00 00 C8 0C 64 [04:43:39]RasterBufferAndPrint [04:43:39]line [04:43:39]line [04:43:39]line [04:43:39]line [04:43:39]line [04:43:39]written 0, free lines is 3277 [04:43:39]MH_Cut [04:43:39]Write to MH i2c: D1 01 00 00 91 01 63 [04:43:39]Write i2c OK [04:43:39]MH_I2C_Read... [04:43:39]Read from MH i2c: D1 [04:43:39]MH_I2C_Read... [04:43:39]Read from MH i2c: D1 01 00 [04:43:39]MH_I2C_Read... [04:43:39]Read from MH i2c: D1 01 00 00 91 00 62 [04:43:39]Write to MH i2c: 01 00 00 01 91 92 [04:43:39]Write i2c OK [04:43:39]MH_I2C_Read... [04:43:40]OFD Sender: No OFD packet to send [04:43:40]*** Cut start [04:43:40]*** Partial cut [04:43:40]*** CUTSNS_PIN = 1 [04:43:40]*** CUTSNS_PIN = 0 [04:43:40]*** Brake cut motor [04:43:41]Read from MH i2c: 01 [04:43:41]MH_I2C_Read... [04:43:41]*** Stop cut motor [04:43:41]*** Cut end [04:43:41]Read from MH i2c: 01 07 00 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: 01 07 00 01 91 00 00 00 00 00 FF 0F A7 [04:43:41]process_action close_receipt done [04:43:41]requested_data is exist [04:43:41]produce_requested_data [04:43:41]requested_item fm.sn is exist - process it [04:43:41]wFMCommunicate request_size=4 [04:43:41]MH_SAM_APDU [04:43:41]CAPDU: 80 11 00 00 [04:43:41]Write to MH i2c: E2 08 00 02 91 80 11 00 00 00 00 00 00 0D [04:43:41]Write i2c OK [04:43:41]MH_I2C_Read... [04:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:41]Read from MH i2c: E2 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: E2 17 00 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: E2 17 00 02 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [04:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [04:43:41]wFMCommunicate OK [04:43:41]requested_item fd.num is exist - process it [04:43:41]SAM_PROTO_GetFieldsCounters [04:43:41]wFMCommunicate request_size=4 [04:43:41]MH_SAM_APDU [04:43:41]CAPDU: 80 13 00 00 [04:43:41]Write to MH i2c: E2 08 00 03 91 80 13 00 00 00 00 00 00 10 [04:43:41]Write i2c OK [04:43:41]MH_I2C_Read... [04:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:41]Read from MH i2c: E2 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: E2 62 00 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: E2 62 00 03 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [04:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:41]wFMCommunicate OK [04:43:41]SAM_PROTO_GetFieldsCounters done [04:43:41]requested_item shift.num is exist - process it [04:43:41]requested_item shift.opened is exist - process it [04:43:41]req_shift_opened [04:43:41]FM_GetShiftState [04:43:41]SAM_PROTO_GetShiftState [04:43:41]wFMCommunicate request_size=4 [04:43:41]MH_SAM_APDU [04:43:41]CAPDU: 80 13 01 00 [04:43:41]Write to MH i2c: E2 08 00 04 91 80 13 01 00 00 00 00 00 12 [04:43:41]Write i2c OK [04:43:41]MH_I2C_Read... [04:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:41]Read from MH i2c: E2 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: E2 0E 00 [04:43:41]MH_I2C_Read... [04:43:41]Read from MH i2c: E2 0E 00 04 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DD [04:43:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [04:43:41]wFMCommunicate OK [04:43:41]SAM_PROTO_GetShiftState done [04:43:41]FM_GetShiftState done [04:43:41]req_shift_opened done [04:43:41]requested_item shift.open_date is exist - process it [04:43:41]req_shift_open_date [04:43:41]req_shift_open_date done [04:43:41]produce_requested_data done [04:43:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118962,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [04:43:41]process_action_free close_receipt [04:43:41]json_value_free [04:43:41]json_value_free done [04:43:41]process_json_proto returns [04:43:41]Send response to host [04:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118962,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [04:43:41]free response buf [04:43:41]execute_script done [04:43:41]execute_script returns [04:43:41]free content buf [04:43:41]Sock 7.Close socket [04:43:41]Sock 7.Thread stoped [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58: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:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:00]accept exits with 9 [05:25:00]New connection [05:25:00]New thread 3067383140 created [05:25:00]Thread 3067239780 joined [05:25:00]Waiting for new connection... [05:25:00] Sock 9.Parse request [05:25:00]Sock 9.Check first char [05:25:00]Sock 9.First char is OK [05:25:00]request: POST /json_proto HTTP/1.0 [05:25:00]Method: POST [05:25:00]URL: /json_proto [05:25:00]Method is POST - this is cgi request [05:25:00]url: /json_proto [05:25:00]query_string will be loaded in cgi processing [05:25:00]execute_cgi json_proto POST (null) [05:25:00]execute_cgi path=json_proto method=POST [05:25:00]POST find Content-Length [05:25:00]Host: 172.17.45.7:8080 [05:25:00]Content-Length: 682 [05:25:00]Content-Type: application/json [05:25:00] [05:25:00]POST finish read [05:25:00]Found Content-Length = 682 [05:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:00]execute_script... [05:25:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:00]POST & json_proto [05:25:00]process_json_proto [05:25:00]json parsed OK: [05:25:00]protocol is kg_v1.0 [05:25:00]action value=close_receipt [05:25:00]process_action close_receipt [05:25:00]cmd_close_receipt [05:25:00]MH_GetDate [05:25:00]Write to MH i2c: F0 00 00 05 91 85 [05:25:00]Write i2c OK [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: F0 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: F0 09 00 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: F0 09 00 05 91 00 35 79 A8 66 90 0F 3E 66 8D [05:25:00]GetLastDocTimeStamp 1722314626 [05:25:00]current date 1722317109 [05:25:00]FM_GetShiftState [05:25:00]SAM_PROTO_GetShiftState [05:25:00]wFMCommunicate request_size=4 [05:25:00]MH_SAM_APDU [05:25:00]CAPDU: 80 13 01 00 [05:25:00]Write to MH i2c: E2 08 00 06 91 80 13 01 00 00 00 00 00 14 [05:25:00]Write i2c OK [05:25:00]MH_I2C_Read... [05:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:00]Read from MH i2c: E2 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: E2 0E 00 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: E2 0E 00 06 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DF [05:25:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [05:25:00]wFMCommunicate OK [05:25:00]SAM_PROTO_GetShiftState done [05:25:00]FM_GetShiftState done [05:25:00]opened in 1722298242 [05:25:00]opened+sec_in_day 1722384642 [05:25:00]quantity*price = 150041 [05:25:00]sum+1 = 150042 [05:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 15 30.07.2024 05:25 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118963 ФПД: 89196234124468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T052509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118963&fm=89196234124468&tin=02508201610067®Number=0000000000092660&sum=150000 [05:25:01]StoreToDocumentArchive [05:25:01]shift 435 fd 118963 [05:25:01]save to /storage/0435/doc_00118963 [05:25:01]save last doc name /storage/0435/doc_00118963 to /storage/kkm_last_doc_name [05:25:01]save OK [05:25:01]Clear old archive folders... [05:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:25:01]tlvbuf is 01FB5F70 [05:25:01]SAM_PROTO_ClearQueue [05:25:01]wFMCommunicate request_size=4 [05:25:01]MH_SAM_APDU [05:25:01]CAPDU: 80 09 00 00 [05:25:01]Write to MH i2c: E2 08 00 13 91 80 09 00 00 00 00 00 00 16 [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:01]Read from MH i2c: E2 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 13 91 00 90 00 18 [05:25:01]RAPDU: 90 00 [05:25:01]wFMCommunicate OK [05:25:01]SAM_PROTO_ClearQueue done [05:25:01]KKMCreateOFDPacket [05:25:01]OFDProtocolAddRootSTLVToBuf [05:25:01]FM_MakeSignedData [05:25:01]FM_MakeSignedData [05:25:01]SAM_PROTO_SignData [05:25:01]wFMCommunicate request_size=4 [05:25:01]MH_SAM_APDU [05:25:01]CAPDU: 80 0D 01 02 [05:25:01]Write to MH i2c: E2 08 00 14 91 80 0D 01 02 00 00 00 00 1E [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:01]Read from MH i2c: E2 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 14 91 00 90 00 19 [05:25:01]RAPDU: 90 00 [05:25:01]wFMCommunicate OK [05:25:01]wFMCommunicate request_size=255 [05:25:01]MH_SAM_APDU [05:25: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 0F 00 00 00 F4 03 04 00 35 79 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 D0 01 00 35 04 06 00 51 [05:25:01]Write to MH i2c: E2 02 01 15 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 0F 00 00 00 F4 03 04 00 35 79 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 D0 01 00 35 04 06 00 51 00 00 6B [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:01]Read from MH i2c: E2 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 15 91 00 90 00 1A [05:25:01]RAPDU: 90 00 [05:25:01]wFMCommunicate OK [05:25:01]wFMCommunicate request_size=10 [05:25:01]MH_SAM_APDU [05:25:01]CAPDU: 80 0D 02 02 05 1F 9D D9 AC B4 [05:25:01]Write to MH i2c: E2 0D 00 16 91 80 0D 02 02 05 00 1F 9D D9 AC B4 00 00 20 [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:01]Read from MH i2c: E2 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 03 00 16 91 00 90 00 1B [05:25:01]RAPDU: 90 00 [05:25:01]wFMCommunicate OK [05:25:01]wFMCommunicate request_size=4 [05:25:01]MH_SAM_APDU [05:25:01]CAPDU: 80 0D 03 02 [05:25:01]Write to MH i2c: E2 08 00 17 91 80 0D 03 02 00 00 00 00 23 [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:01]Read from MH i2c: E2 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 0B 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 0B 00 17 91 00 D9 86 15 92 C7 4C 16 A0 90 00 F3 [05:25:01]RAPDU: D9 86 15 92 C7 4C 16 A0 90 00 [05:25:01]wFMCommunicate OK [05:25:01]SAM_PROTO_SignData done [05:25:01]FM_MakeSignedData done [05:25:01]CreateOFDProtocolMessage [05:25:01]wFMCommunicate request_size=4 [05:25:01]MH_SAM_APDU [05:25:01]CAPDU: 80 11 00 00 [05:25:01]Write to MH i2c: E2 08 00 18 91 80 11 00 00 00 00 00 00 23 [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:01]Read from MH i2c: E2 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 17 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: E2 17 00 18 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [05:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:25:01]wFMCommunicate OK [05:25:01]CreateOFDProtocolMessage done [05:25:01]OFDSenderStorePacket 118963 [05:25:01]StoreOFDPacket docnum=118963 [05:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 12 07 01 81 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 0F 00 00 00 F4 03 04 00 35 79 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 D0 01 00 35 04 06 00 51 1F 9D D9 AC B4 D9 86 15 92 C7 4C 16 A0 [05:25:01]CheckFolder [05:25:01]dirname=/storage/ofd_packets [05:25:01]CheckFolder done [05:25:01]ProducePacketName [05:25:01]name=ofd_packets/00118963 [05:25:01]NVStorageSaveData ofd_packets/00118963 [05:25:01]File name is /storage/ofd_packets/00118963 [05:25:01]Write 301 bytes [05:25:01]NVStorageSaveData done [05:25:01]OFDSenderStorePacket done [05:25:01]KKMCreateOFDPacket done [05:25:01]NVStorageSaveData kkm_last_timestamp [05:25:01]File name is /storage/kkm_last_timestamp [05:25:01]Write 4 bytes [05:25:01]NVStorageSaveData done [05:25:01]ExternCall_PrintAddStr [05:25:01]wPrintStart [05:25:01]Write to MH i2c: 01 00 00 19 91 AA [05:25:01]Write i2c OK [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: 01 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: 01 07 00 [05:25:01]MH_I2C_Read... [05:25:01]Read from MH i2c: 01 07 00 19 91 00 00 00 00 00 FF 0F BF [05:25:01]RasterBufferAndPrint [05:25:01]line Счет N : (1)949879 [05:25:01]line ИНН: 02508201610067 [05:25:01]line Контрольно-Кассовый Чек [05:25:01]line ПРОДАЖА [05:25:01]line ТРК (МРК, ГНК) : 31 [05:25:01]line Товар: 2710124130 [05:25:01]line Аи-92-К-4 [05:25:01]line 22.130 * 67.80 [05:25:01]line = 1500.41 [05:25:01]line НДС 12% НСП 1% [05:25:01]line > о реализуемом товаре [05:25:01]line ОКРУГЛЕНИЕ: -0.41 [05:25:01]line ИТОГО: 1500.00 [05:25:01]line Внесено: 1500.00 [05:25:01]line СДАЧА: 0.00 [05:25:01]line НСП 1% : 13.28 [05:25:01]line НДС 12% : 159.34 [05:25:01]line Наличными: 1500.00 [05:25:01]line Безнал.: 0.00 [05:25:01]line Место: АЗС № 134 "Партнер Нефть" [05:25:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:25:01]line СНО: Общий режим [05:25:01]line Чек 15 30.07.2024 05:25 [05:25:01]line Смена: 435 ФФД: 1.0 [05:25:01]line ЗНМ: 0300000044 [05:25:01]line РНМ: 0000000000092660 [05:25:01]line Версия ККМ: 001 [05:25:01]line ФМ: 0000000000874939 [05:25:01]line ФД: 118963 [05:25:01]line ФПД: 89196234124468 [05:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T052509&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118963&fm=89196234124468&tin=02508201610067®Number=0000000000092660&sum=150000 [05:25:02]written 0, free lines is 4095 [05:25:02]OFD Sender: Processing packet 118963 [packets to send 86, broken 85] [05:25:02]ProducePacketName [05:25:02]name=ofd_packets/00118963 [05:25:02]OFD Sender: To server: pG, [05:25:02]CommunicateWithHost lk.salyk.kg:30040 [05:25:02]ConnectInit lk.salyk.kg [05:25:02]Connected sock=10 [05:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 89 12 07 01 81 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 0F 00 00 00 F4 03 04 00 35 79 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 D0 01 00 35 04 06 00 51 1F 9D D9 AC B4 D9 86 15 92 C7 4C 16 A0 [05:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 70 47 00 F5 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 34 39 33 39 10 04 04 00 B3 D0 01 00 F4 03 04 00 C1 26 A8 66 B6 04 01 00 00 34 76 60 2E 3F 72 91 23 [05:25:02]CommunicateWithHost err = 0 [05:25:02]CheckOFDResponse [05:25:02]1017 (14) - 77093643461234 [05:25:02]1041 (16) - 0000000000874939 [05:25:02]1040 (4) - 118963 [05:25:02]1012 (4) - 29.07.2024 23:33 [05:25:02]1206 (1) - 0 [05:25:02]OFD Sender: Remove packet 118963 [05:25:02]ProducePacketName [05:25:02]name=ofd_packets/00118963 [05:25:02]NVStorageDeleteData [05:25:02]Write to MH i2c: 01 00 00 43 91 D4 [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: 01 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: 01 07 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: 01 07 00 43 91 00 00 00 00 00 CA 0C B1 [05:25:02]RasterBufferAndPrint [05:25:02]line [05:25:02]line [05:25:02]line [05:25:02]line [05:25:02]line [05:25:02]written 0, free lines is 3283 [05:25:02]MH_Cut [05:25:02]Write to MH i2c: D1 01 00 4A 91 01 AD [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: D1 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: D1 01 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: D1 01 00 4A 91 00 AC [05:25:02]Write to MH i2c: 01 00 00 4B 91 DC [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]OFD Sender: No OFD packet to send [05:25:03]*** Cut start [05:25:03]*** Partial cut [05:25:03]*** CUTSNS_PIN = 1 [05:25:03]*** CUTSNS_PIN = 0 [05:25:03]*** Brake cut motor [05:25:03]Read from MH i2c: 01 [05:25:03]MH_I2C_Read... [05:25:03]*** Stop cut motor [05:25:03]*** Cut end [05:25:03]Read from MH i2c: 01 07 00 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: 01 07 00 4B 91 00 00 00 00 00 FF 0F F1 [05:25:03]process_action close_receipt done [05:25:03]requested_data is exist [05:25:03]produce_requested_data [05:25:03]requested_item fm.sn is exist - process it [05:25:03]wFMCommunicate request_size=4 [05:25:03]MH_SAM_APDU [05:25:03]CAPDU: 80 11 00 00 [05:25:03]Write to MH i2c: E2 08 00 4C 91 80 11 00 00 00 00 00 00 57 [05:25:03]Write i2c OK [05:25:03]MH_I2C_Read... [05:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:03]Read from MH i2c: E2 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: E2 17 00 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: E2 17 00 4C 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [05:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [05:25:03]wFMCommunicate OK [05:25:03]requested_item fd.num is exist - process it [05:25:03]SAM_PROTO_GetFieldsCounters [05:25:03]wFMCommunicate request_size=4 [05:25:03]MH_SAM_APDU [05:25:03]CAPDU: 80 13 00 00 [05:25:03]Write to MH i2c: E2 08 00 4D 91 80 13 00 00 00 00 00 00 5A [05:25:03]Write i2c OK [05:25:03]MH_I2C_Read... [05:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:04]Read from MH i2c: E2 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 62 00 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 62 00 4D 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [05:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:25:04]wFMCommunicate OK [05:25:04]SAM_PROTO_GetFieldsCounters done [05:25:04]requested_item shift.num is exist - process it [05:25:04]requested_item shift.opened is exist - process it [05:25:04]req_shift_opened [05:25:04]FM_GetShiftState [05:25:04]SAM_PROTO_GetShiftState [05:25:04]wFMCommunicate request_size=4 [05:25:04]MH_SAM_APDU [05:25:04]CAPDU: 80 13 01 00 [05:25:04]Write to MH i2c: E2 08 00 4E 91 80 13 01 00 00 00 00 00 5C [05:25:04]Write i2c OK [05:25:04]MH_I2C_Read... [05:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:04]Read from MH i2c: E2 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 0E 00 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 0E 00 4E 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 27 [05:25:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [05:25:04]wFMCommunicate OK [05:25:04]SAM_PROTO_GetShiftState done [05:25:04]FM_GetShiftState done [05:25:04]req_shift_opened done [05:25:04]requested_item shift.open_date is exist - process it [05:25:04]req_shift_open_date [05:25:04]req_shift_open_date done [05:25:04]produce_requested_data done [05:25:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118963,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [05:25:04]process_action_free close_receipt [05:25:04]json_value_free [05:25:04]json_value_free done [05:25:04]process_json_proto returns [05:25:04]Send response to host [05:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118963,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [05:25:04]free response buf [05:25:04]execute_script done [05:25:04]execute_script returns [05:25:04]free content buf [05:25:04]Sock 9.Close socket [05:25:04]Sock 9.Thread stoped [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:19]accept exits with 7 [06:04:19]New connection [06:04:19]New thread 3067239780 created [06:04:19]Thread 3067383140 joined [06:04:19]Waiting for new connection... [06:04:19] Sock 7.Parse request [06:04:19]Sock 7.Check first char [06:04:19]Sock 7.First char is OK [06:04:19]request: POST /json_proto HTTP/1.0 [06:04:19]Method: POST [06:04:19]URL: /json_proto [06:04:19]Method is POST - this is cgi request [06:04:19]url: /json_proto [06:04:19]query_string will be loaded in cgi processing [06:04:19]execute_cgi json_proto POST (null) [06:04:19]execute_cgi path=json_proto method=POST [06:04:19]POST find Content-Length [06:04:19]Host: 172.17.45.7:8080 [06:04:19]Content-Length: 1208 [06:04:19]Content-Type: application/json [06:04:19] [06:04:19]POST finish read [06:04:19]Found Content-Length = 1208 [06:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949880\u000A30.07.2024 06:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3990983\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:19]execute_script... [06:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949880\u000A30.07.2024 06:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3990983\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:19]POST & json_proto [06:04:19]process_json_proto [06:04:19]json parsed OK: [06:04:19]protocol is kg_v1.0 [06:04:19]action value=print_text [06:04:19]process_action print_text [06:04:19]cmd_print_text [06:04:19]ExternCall_PrintAddStr [06:04:19]wPrintStart [06:04:19]Write to MH i2c: 01 00 00 4F 91 E0 [06:04:19]Write i2c OK [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: 01 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: 01 07 00 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: 01 07 00 4F 91 00 00 00 00 00 FF 0F F5 [06:04:19]RasterBufferAndPrint [06:04:19]line *****ТОВАРНЫЙ ЧЕК***** [06:04:19]line АЗС-134 [06:04:19]line Партнер нефть [06:04:19]line 02508201610067 [06:04:19]line Кассир : Айдарали у Б. [06:04:19]line Счет N : (1)949880 [06:04:19]line 30.07.2024 06:02 [06:04:19]line ПРОДАЖА [06:04:19]line ТРК (МРК, ГНК): 21 [06:04:19]line Вид ГСМ : 2710194800 [06:04:19]line ДТ-К-5 [06:04:19]line 100.000 x 76.20 [06:04:19]line ИТОГ: 7620.00 [06:04:19]line Тип оплаты: Талоны: Топливные Талоны [06:04:19]line 3990983 [06:04:19]line ______________________ [06:04:19]line (подпись) [06:04:19]written 0, free lines is 4095 [06:04:19]Write to MH i2c: 01 00 00 63 91 F4 [06:04:19]Write i2c OK [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: 01 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: 01 07 00 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: 01 07 00 63 91 00 00 00 00 00 12 0E 1B [06:04:19]RasterBufferAndPrint [06:04:19]line [06:04:19]line [06:04:19]line [06:04:19]line [06:04:19]line [06:04:19]written 0, free lines is 3604 [06:04:19]MH_Cut [06:04:19]Write to MH i2c: D1 01 00 6A 91 01 CD [06:04:19]Write i2c OK [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: D1 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: D1 01 00 [06:04:19]MH_I2C_Read... [06:04:19]Read from MH i2c: D1 01 00 6A 91 00 CC [06:04:19]Write to MH i2c: 01 00 00 6B 91 FC [06:04:19]Write i2c OK [06:04:19]MH_I2C_Read... [06:04:19]*** Cut start [06:04:19]*** Partial cut [06:04:19]*** CUTSNS_PIN = 1 [06:04:19]*** CUTSNS_PIN = 0 [06:04:20]*** Brake cut motor [06:04:20]OFD Sender: No OFD packet to send [06:04:20]Read from MH i2c: 01 [06:04:20]MH_I2C_Read... [06:04:20]*** Stop cut motor [06:04:20]*** Cut end [06:04:20]Read from MH i2c: 01 07 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: 01 07 00 6B 91 00 00 00 00 00 FF 0F 11 [06:04:20]process_action print_text done [06:04:20]requested_data is exist [06:04:20]produce_requested_data [06:04:20]requested_item fm.sn is exist - process it [06:04:20]wFMCommunicate request_size=4 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 11 00 00 [06:04:20]Write to MH i2c: E2 08 00 6C 91 80 11 00 00 00 00 00 00 77 [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 17 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 17 00 6C 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D2 [06:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:04:20]wFMCommunicate OK [06:04:20]requested_item fd.num is exist - process it [06:04:20]SAM_PROTO_GetFieldsCounters [06:04:20]wFMCommunicate request_size=4 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 13 00 00 [06:04:20]Write to MH i2c: E2 08 00 6D 91 80 13 00 00 00 00 00 00 7A [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 62 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 62 00 6D 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [06:04:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:20]wFMCommunicate OK [06:04:20]SAM_PROTO_GetFieldsCounters done [06:04:20]requested_item shift.num is exist - process it [06:04:20]requested_item shift.opened is exist - process it [06:04:20]req_shift_opened [06:04:20]FM_GetShiftState [06:04:20]SAM_PROTO_GetShiftState [06:04:20]wFMCommunicate request_size=4 [06:04:20]MH_SAM_APDU [06:04:20]CAPDU: 80 13 01 00 [06:04:20]Write to MH i2c: E2 08 00 6E 91 80 13 01 00 00 00 00 00 7C [06:04:20]Write i2c OK [06:04:20]MH_I2C_Read... [06:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:20]Read from MH i2c: E2 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 0E 00 [06:04:20]MH_I2C_Read... [06:04:20]Read from MH i2c: E2 0E 00 6E 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 47 [06:04:20]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:04:20]wFMCommunicate OK [06:04:20]SAM_PROTO_GetShiftState done [06:04:20]FM_GetShiftState done [06:04:20]req_shift_opened done [06:04:20]requested_item shift.open_date is exist - process it [06:04:20]req_shift_open_date [06:04:20]req_shift_open_date done [06:04:20]produce_requested_data done [06:04:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118963,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:04:20]process_action_free print_text [06:04:20]json_value_free [06:04:20]json_value_free done [06:04:20]process_json_proto returns [06:04:20]Send response to host [06:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118963,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:04:20]free response buf [06:04:20]execute_script done [06:04:20]execute_script returns [06:04:20]free content buf [06:04:20]Sock 7.Close socket [06:04:20]Sock 7.Thread stoped [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:42]accept exits with 9 [06:13:42]New connection [06:13:42]New thread 3067383140 created [06:13:42]Thread 3067239780 joined [06:13:42]Waiting for new connection... [06:13:42] Sock 9.Parse request [06:13:42]Sock 9.Check first char [06:13:42]Sock 9.First char is OK [06:13:42]request: POST /json_proto HTTP/1.0 [06:13:42]Method: POST [06:13:42]URL: /json_proto [06:13:42]Method is POST - this is cgi request [06:13:42]url: /json_proto [06:13:42]query_string will be loaded in cgi processing [06:13:42]execute_cgi json_proto POST (null) [06:13:42]execute_cgi path=json_proto method=POST [06:13:42]POST find Content-Length [06:13:42]Host: 172.17.45.7:8080 [06:13:42]Content-Length: 819 [06:13:42]Content-Type: application/json [06:13:42] [06:13:42]POST finish read [06:13:42]Found Content-Length = 819 [06:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 6000.00, "payments": [ { "type": 1, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:42]execute_script... [06:13: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)949881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 6000.00, "payments": [ { "type": 1, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:42]POST & json_proto [06:13:42]process_json_proto [06:13:42]json parsed OK: [06:13:42]protocol is kg_v1.0 [06:13:42]action value=close_receipt [06:13:42]process_action close_receipt [06:13:42]cmd_close_receipt [06:13:42]MH_GetDate [06:13:42]Write to MH i2c: F0 00 00 6F 91 EF [06:13:42]Write i2c OK [06:13:42]MH_I2C_Read... [06:13:42]Read from MH i2c: F0 [06:13:42]MH_I2C_Read... [06:13:42]Read from MH i2c: F0 09 00 [06:13:42]MH_I2C_Read... [06:13:42]Read from MH i2c: F0 09 00 6F 91 00 9F 84 A8 66 90 0F 3E 66 6C [06:13:42]GetLastDocTimeStamp 1722317109 [06:13:42]current date 1722320031 [06:13:42]FM_GetShiftState [06:13:42]SAM_PROTO_GetShiftState [06:13:42]wFMCommunicate request_size=4 [06:13:42]MH_SAM_APDU [06:13:42]CAPDU: 80 13 01 00 [06:13:42]Write to MH i2c: E2 08 00 70 91 80 13 01 00 00 00 00 00 7E [06:13:42]Write i2c OK [06:13:42]MH_I2C_Read... [06:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:42]Read from MH i2c: E2 [06:13:42]MH_I2C_Read... [06:13:42]Read from MH i2c: E2 0E 00 [06:13:42]MH_I2C_Read... [06:13:42]Read from MH i2c: E2 0E 00 70 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 49 [06:13:42]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:13:42]wFMCommunicate OK [06:13:42]SAM_PROTO_GetShiftState done [06:13:42]FM_GetShiftState done [06:13:42]opened in 1722298242 [06:13:42]opened+sec_in_day 1722384642 [06:13:42]quantity*price = 600075 [06:13:42]sum+1 = 600076 [06:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 0.00 Безнал.: 6000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 16 30.07.2024 06:13 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118964 ФПД: 241297587268730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T061351&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118964&fm=241297587268730&tin=02508201610067®Number=0000000000092660&sum=600000 [06:13:43]StoreToDocumentArchive [06:13:43]shift 435 fd 118964 [06:13:43]save to /storage/0435/doc_00118964 [06:13:43]save last doc name /storage/0435/doc_00118964 to /storage/kkm_last_doc_name [06:13:43]save OK [06:13:43]Clear old archive folders... [06:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:13:43]tlvbuf is 01F745D0 [06:13:43]SAM_PROTO_ClearQueue [06:13:43]wFMCommunicate request_size=4 [06:13:43]MH_SAM_APDU [06:13:43]CAPDU: 80 09 00 00 [06:13:43]Write to MH i2c: E2 08 00 7D 91 80 09 00 00 00 00 00 00 80 [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:13:43]Read from MH i2c: E2 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 7D 91 00 90 00 82 [06:13:43]RAPDU: 90 00 [06:13:43]wFMCommunicate OK [06:13:43]SAM_PROTO_ClearQueue done [06:13:43]KKMCreateOFDPacket [06:13:43]OFDProtocolAddRootSTLVToBuf [06:13:43]FM_MakeSignedData [06:13:43]FM_MakeSignedData [06:13:43]SAM_PROTO_SignData [06:13:43]wFMCommunicate request_size=4 [06:13:43]MH_SAM_APDU [06:13:43]CAPDU: 80 0D 01 02 [06:13:43]Write to MH i2c: E2 08 00 7E 91 80 0D 01 02 00 00 00 00 88 [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:13:43]Read from MH i2c: E2 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 7E 91 00 90 00 83 [06:13:43]RAPDU: 90 00 [06:13:43]wFMCommunicate OK [06:13:43]wFMCommunicate request_size=255 [06:13:43]MH_SAM_APDU [06:13:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9F 84 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 D0 01 00 35 04 06 00 DB 75 78 F9 [06:13:43]Write to MH i2c: E2 02 01 7F 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9F 84 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 D0 01 00 35 04 06 00 DB 75 78 F9 00 00 B1 [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:43]Read from MH i2c: E2 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 7F 91 00 90 00 84 [06:13:43]RAPDU: 90 00 [06:13:43]wFMCommunicate OK [06:13:43]wFMCommunicate request_size=7 [06:13:43]MH_SAM_APDU [06:13:43]CAPDU: 80 0D 02 02 02 6C 7A [06:13:43]Write to MH i2c: E2 0A 00 80 91 80 0D 02 02 02 00 6C 7A 00 00 75 [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:43]Read from MH i2c: E2 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 03 00 80 91 00 90 00 85 [06:13:43]RAPDU: 90 00 [06:13:43]wFMCommunicate OK [06:13:43]wFMCommunicate request_size=4 [06:13:43]MH_SAM_APDU [06:13:43]CAPDU: 80 0D 03 02 [06:13:43]Write to MH i2c: E2 08 00 81 91 80 0D 03 02 00 00 00 00 8D [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:13:43]Read from MH i2c: E2 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 0B 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 0B 00 81 91 00 57 BD 0D 1A 43 46 5E C2 90 00 72 [06:13:43]RAPDU: 57 BD 0D 1A 43 46 5E C2 90 00 [06:13:43]wFMCommunicate OK [06:13:43]SAM_PROTO_SignData done [06:13:43]FM_MakeSignedData done [06:13:43]CreateOFDProtocolMessage [06:13:43]wFMCommunicate request_size=4 [06:13:43]MH_SAM_APDU [06:13:43]CAPDU: 80 11 00 00 [06:13:43]Write to MH i2c: E2 08 00 82 91 80 11 00 00 00 00 00 00 8D [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:43]Read from MH i2c: E2 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 17 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: E2 17 00 82 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E8 [06:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:13:43]wFMCommunicate OK [06:13:43]CreateOFDProtocolMessage done [06:13:43]OFDSenderStorePacket 118964 [06:13:43]StoreOFDPacket docnum=118964 [06:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 17 04 01 DA 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9F 84 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 D0 01 00 35 04 06 00 DB 75 78 F9 6C 7A 57 BD 0D 1A 43 46 5E C2 [06:13:43]CheckFolder [06:13:43]dirname=/storage/ofd_packets [06:13:43]CheckFolder done [06:13:43]ProducePacketName [06:13:43]name=ofd_packets/00118964 [06:13:43]NVStorageSaveData ofd_packets/00118964 [06:13:43]File name is /storage/ofd_packets/00118964 [06:13:43]Write 298 bytes [06:13:43]NVStorageSaveData done [06:13:43]OFDSenderStorePacket done [06:13:43]KKMCreateOFDPacket done [06:13:43]NVStorageSaveData kkm_last_timestamp [06:13:43]File name is /storage/kkm_last_timestamp [06:13:43]Write 4 bytes [06:13:43]NVStorageSaveData done [06:13:43]ExternCall_PrintAddStr [06:13:43]wPrintStart [06:13:43]Write to MH i2c: 01 00 00 83 91 14 [06:13:43]Write i2c OK [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: 01 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: 01 07 00 [06:13:43]MH_I2C_Read... [06:13:43]Read from MH i2c: 01 07 00 83 91 00 00 00 00 00 FF 0F 29 [06:13:43]RasterBufferAndPrint [06:13:43]line Счет N : (1)949881 [06:13:43]line ИНН: 02508201610067 [06:13:43]line Контрольно-Кассовый Чек [06:13:43]line ПРОДАЖА [06:13:43]line ТРК (МРК, ГНК) : 34 [06:13:43]line Товар: 2710194800 [06:13:43]line ДТ-К-5 [06:13:43]line 78.750 * 76.20 [06:13:43]line = 6000.75 [06:13:43]line НДС 12% НСП 1% [06:13:43]line > о реализуемом товаре [06:13:43]line ОКРУГЛЕНИЕ: -0.75 [06:13:43]line ИТОГО: 6000.00 [06:13:43]line НСП 1% : 53.10 [06:13:43]line НДС 12% : 637.25 [06:13:43]line Наличными: 0.00 [06:13:43]line Безнал.: 6000.00 [06:13:43]line Место: АЗС № 134 "Партнер Нефть" [06:13:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:13:43]line СНО: Общий режим [06:13:43]line Чек 16 30.07.2024 06:13 [06:13:43]line Смена: 435 ФФД: 1.0 [06:13:43]line ЗНМ: 0300000044 [06:13:43]line РНМ: 0000000000092660 [06:13:43]line Версия ККМ: 001 [06:13:43]line Платежная система: O! деньги [06:13:43]line ФМ: 0000000000874939 [06:13:43]line ФД: 118964 [06:13:43]line ФПД: 241297587268730 [06:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T061351&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118964&fm=241297587268730&tin=02508201610067®Number=0000000000092660&sum=600000 [06:13:44]OFD Sender: Processing packet 118964 [packets to send 86, broken 85] [06:13:44]ProducePacketName [06:13:44]name=ofd_packets/00118964 [06:13:44]OFD Sender: To server: pG, [06:13:44]CommunicateWithHost lk.salyk.kg:30040 [06:13:44]ConnectInit lk.salyk.kg [06:13:44]written 0, free lines is 4095 [06:13:44]Connected sock=10 [06:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 17 04 01 DA 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 27 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 9F 84 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 D0 01 00 35 04 06 00 DB 75 78 F9 6C 7A 57 BD 0D 1A 43 46 5E C2 [06:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 34 1E 47 00 FF 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 D0 01 00 F4 03 04 00 2B 32 A8 66 B6 04 01 00 00 56 38 19 D7 9D AD 4B F2 [06:13:44]CommunicateWithHost err = 0 [06:13:44]CheckOFDResponse [06:13:44]1017 (14) - 77093643461234 [06:13:44]1041 (16) - 0000000000874939 [06:13:44]1040 (4) - 118964 [06:13:44]1012 (4) - 30.07.2024 00:22 [06:13:44]1206 (1) - 0 [06:13:44]OFD Sender: Remove packet 118964 [06:13:44]ProducePacketName [06:13:44]name=ofd_packets/00118964 [06:13:44]NVStorageDeleteData [06:13:44]Write to MH i2c: 01 00 00 AD 91 3E [06:13:44]Write i2c OK [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: 01 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: 01 07 00 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: 01 07 00 AD 91 00 00 00 00 00 EE 0C 3F [06:13:44]RasterBufferAndPrint [06:13:44]line [06:13:44]line [06:13:44]line [06:13:44]line [06:13:44]line [06:13:44]written 0, free lines is 3317 [06:13:44]MH_Cut [06:13:44]Write to MH i2c: D1 01 00 B4 91 01 17 [06:13:44]Write i2c OK [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: D1 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: D1 01 00 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: D1 01 00 B4 91 00 16 [06:13:44]Write to MH i2c: 01 00 00 B5 91 46 [06:13:44]Write i2c OK [06:13:44]MH_I2C_Read... [06:13:44]OFD Sender: No OFD packet to send [06:13:45]*** Cut start [06:13:45]*** Partial cut [06:13:45]*** CUTSNS_PIN = 1 [06:13:45]*** CUTSNS_PIN = 0 [06:13:45]*** Brake cut motor [06:13:45]Read from MH i2c: 01 [06:13:45]MH_I2C_Read... [06:13:45]*** Stop cut motor [06:13:45]*** Cut end [06:13:45]Read from MH i2c: 01 07 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: 01 07 00 B5 91 00 00 00 00 00 FF 0F 5B [06:13:45]process_action close_receipt done [06:13:45]requested_data is exist [06:13:45]produce_requested_data [06:13:45]requested_item fm.sn is exist - process it [06:13:45]wFMCommunicate request_size=4 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 11 00 00 [06:13:45]Write to MH i2c: E2 08 00 B6 91 80 11 00 00 00 00 00 00 C1 [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 17 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 17 00 B6 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1C [06:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:13:45]wFMCommunicate OK [06:13:45]requested_item fd.num is exist - process it [06:13:45]SAM_PROTO_GetFieldsCounters [06:13:45]wFMCommunicate request_size=4 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 13 00 00 [06:13:45]Write to MH i2c: E2 08 00 B7 91 80 13 00 00 00 00 00 00 C4 [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:13:46]Read from MH i2c: E2 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: E2 62 00 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: E2 62 00 B7 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [06:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:13:46]wFMCommunicate OK [06:13:46]SAM_PROTO_GetFieldsCounters done [06:13:46]requested_item shift.num is exist - process it [06:13:46]requested_item shift.opened is exist - process it [06:13:46]req_shift_opened [06:13:46]FM_GetShiftState [06:13:46]SAM_PROTO_GetShiftState [06:13:46]wFMCommunicate request_size=4 [06:13:46]MH_SAM_APDU [06:13:46]CAPDU: 80 13 01 00 [06:13:46]Write to MH i2c: E2 08 00 B8 91 80 13 01 00 00 00 00 00 C6 [06:13:46]Write i2c OK [06:13:46]MH_I2C_Read... [06:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:46]Read from MH i2c: E2 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: E2 0E 00 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: E2 0E 00 B8 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 91 [06:13:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:13:46]wFMCommunicate OK [06:13:46]SAM_PROTO_GetShiftState done [06:13:46]FM_GetShiftState done [06:13:46]req_shift_opened done [06:13:46]requested_item shift.open_date is exist - process it [06:13:46]req_shift_open_date [06:13:46]req_shift_open_date done [06:13:46]produce_requested_data done [06:13:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118964,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:13:46]process_action_free close_receipt [06:13:46]json_value_free [06:13:46]json_value_free done [06:13:46]process_json_proto returns [06:13:46]Send response to host [06:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118964,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:13:46]free response buf [06:13:46]execute_script done [06:13:46]execute_script returns [06:13:46]free content buf [06:13:46]Sock 9.Close socket [06:13:46]Sock 9.Thread stoped [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:52]accept exits with 7 [06:41:52]New connection [06:41:52]New thread 3067239780 created [06:41:52]Thread 3067383140 joined [06:41:52]Waiting for new connection... [06:41:52] Sock 7.Parse request [06:41:52]Sock 7.Check first char [06:41:52]Sock 7.First char is OK [06:41:52]request: POST /json_proto HTTP/1.0 [06:41:52]Method: POST [06:41:52]URL: /json_proto [06:41:52]Method is POST - this is cgi request [06:41:52]url: /json_proto [06:41:52]query_string will be loaded in cgi processing [06:41:52]execute_cgi json_proto POST (null) [06:41:52]execute_cgi path=json_proto method=POST [06:41:52]POST find Content-Length [06:41:52]Host: 172.17.45.7:8080 [06:41:52]Content-Length: 820 [06:41:52]Content-Type: application/json [06:41:52] [06:41:52]POST finish read [06:41:52]Found Content-Length = 820 [06:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:52]execute_script... [06:41: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)949882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:41:52]POST & json_proto [06:41:52]process_json_proto [06:41:52]json parsed OK: [06:41:52]protocol is kg_v1.0 [06:41:52]action value=close_receipt [06:41:52]process_action close_receipt [06:41:52]cmd_close_receipt [06:41:52]MH_GetDate [06:41:52]Write to MH i2c: F0 00 00 B9 91 39 [06:41:52]Write i2c OK [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: F0 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: F0 09 00 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: F0 09 00 B9 91 00 39 8B A8 66 90 0F 3E 66 57 [06:41:52]GetLastDocTimeStamp 1722320031 [06:41:52]current date 1722321721 [06:41:52]FM_GetShiftState [06:41:52]SAM_PROTO_GetShiftState [06:41:52]wFMCommunicate request_size=4 [06:41:52]MH_SAM_APDU [06:41:52]CAPDU: 80 13 01 00 [06:41:52]Write to MH i2c: E2 08 00 BA 91 80 13 01 00 00 00 00 00 C8 [06:41:52]Write i2c OK [06:41:52]MH_I2C_Read... [06:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:52]Read from MH i2c: E2 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: E2 0E 00 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: E2 0E 00 BA 91 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 93 [06:41:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:41:52]wFMCommunicate OK [06:41:52]SAM_PROTO_GetShiftState done [06:41:52]FM_GetShiftState done [06:41:52]opened in 1722298242 [06:41:52]opened+sec_in_day 1722384642 [06:41:52]quantity*price = 998982 [06:41:52]sum+1 = 998983 [06:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 17 30.07.2024 06:42 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118965 ФПД: 125468962137831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118965&fm=125468962137831&tin=02508201610067®Number=0000000000092660&sum=998900 [06:41:53]StoreToDocumentArchive [06:41:53]shift 435 fd 118965 [06:41:53]save to /storage/0435/doc_00118965 [06:41:53]save last doc name /storage/0435/doc_00118965 to /storage/kkm_last_doc_name [06:41:53]save OK [06:41:53]Clear old archive folders... [06:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:41:53]tlvbuf is 01F69F20 [06:41:53]SAM_PROTO_ClearQueue [06:41:53]wFMCommunicate request_size=4 [06:41:53]MH_SAM_APDU [06:41:53]CAPDU: 80 09 00 00 [06:41:53]Write to MH i2c: E2 08 00 C7 91 80 09 00 00 00 00 00 00 CA [06:41:53]Write i2c OK [06:41:53]MH_I2C_Read... [06:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:53]Read from MH i2c: E2 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: E2 03 00 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: E2 03 00 C7 91 00 90 00 CC [06:41:53]RAPDU: 90 00 [06:41:53]wFMCommunicate OK [06:41:53]SAM_PROTO_ClearQueue done [06:41:53]KKMCreateOFDPacket [06:41:53]OFDProtocolAddRootSTLVToBuf [06:41:53]FM_MakeSignedData [06:41:53]FM_MakeSignedData [06:41:53]SAM_PROTO_SignData [06:41:53]wFMCommunicate request_size=4 [06:41:53]MH_SAM_APDU [06:41:53]CAPDU: 80 0D 01 02 [06:41:53]Write to MH i2c: E2 08 00 C8 91 80 0D 01 02 00 00 00 00 D2 [06:41:53]Write i2c OK [06:41:53]MH_I2C_Read... [06:41:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:53]Read from MH i2c: E2 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: E2 03 00 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: E2 03 00 C8 91 00 90 00 CD [06:41:53]RAPDU: 90 00 [06:41:53]wFMCommunicate OK [06:41:53]wFMCommunicate request_size=255 [06:41:53]MH_SAM_APDU [06:41:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3A 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D0 01 00 35 04 06 00 72 1D 04 EB [06:41:53]Write to MH i2c: E2 02 01 C9 91 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3A 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D0 01 00 35 04 06 00 72 1D 04 EB 00 00 98 [06:41:53]Write i2c OK [06:41:53]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 C9 91 00 90 00 CE [06:41:54]RAPDU: 90 00 [06:41:54]wFMCommunicate OK [06:41:54]wFMCommunicate request_size=7 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 0D 02 02 02 26 E7 [06:41:54]Write to MH i2c: E2 0A 00 CA 91 80 0D 02 02 02 00 26 E7 00 00 E6 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 CA 91 00 90 00 CF [06:41:54]RAPDU: 90 00 [06:41:54]wFMCommunicate OK [06:41:54]wFMCommunicate request_size=4 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 0D 03 02 [06:41:54]Write to MH i2c: E2 08 00 CB 91 80 0D 03 02 00 00 00 00 D7 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 0B 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 0B 00 CB 91 00 69 2C FD C8 7E A2 10 9A 90 00 FC [06:41:54]RAPDU: 69 2C FD C8 7E A2 10 9A 90 00 [06:41:54]wFMCommunicate OK [06:41:54]SAM_PROTO_SignData done [06:41:54]FM_MakeSignedData done [06:41:54]CreateOFDProtocolMessage [06:41:54]wFMCommunicate request_size=4 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 11 00 00 [06:41:54]Write to MH i2c: E2 08 00 CC 91 80 11 00 00 00 00 00 00 D7 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 17 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 17 00 CC 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 32 [06:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:41:54]wFMCommunicate OK [06:41:54]CreateOFDProtocolMessage done [06:41:54]OFDSenderStorePacket 118965 [06:41:54]StoreOFDPacket docnum=118965 [06:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A9 58 04 01 85 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3A 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D0 01 00 35 04 06 00 72 1D 04 EB 26 E7 69 2C FD C8 7E A2 10 9A [06:41:54]CheckFolder [06:41:54]dirname=/storage/ofd_packets [06:41:54]CheckFolder done [06:41:54]ProducePacketName [06:41:54]name=ofd_packets/00118965 [06:41:54]NVStorageSaveData ofd_packets/00118965 [06:41:54]File name is /storage/ofd_packets/00118965 [06:41:54]Write 298 bytes [06:41:54]NVStorageSaveData done [06:41:54]OFDSenderStorePacket done [06:41:54]KKMCreateOFDPacket done [06:41:54]NVStorageSaveData kkm_last_timestamp [06:41:54]File name is /storage/kkm_last_timestamp [06:41:54]Write 4 bytes [06:41:54]NVStorageSaveData done [06:41:54]ExternCall_PrintAddStr [06:41:54]wPrintStart [06:41:54]Write to MH i2c: 01 00 00 CD 91 5E [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: 01 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: 01 07 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: 01 07 00 CD 91 00 00 00 00 00 FF 0F 73 [06:41:54]RasterBufferAndPrint [06:41:54]line Счет N : (1)949882 [06:41:54]line ИНН: 02508201610067 [06:41:54]line Контрольно-Кассовый Чек [06:41:54]line ПРОДАЖА [06:41:54]line ТРК (МРК, ГНК) : 21 [06:41:54]line Товар: 2710194800 [06:41:54]line ДТ-К-5 [06:41:54]line 131.100 * 76.20 [06:41:54]line = 9989.82 [06:41:54]line НДС 12% НСП 1% [06:41:54]line > о реализуемом товаре [06:41:54]line ОКРУГЛЕНИЕ: -0.82 [06:41:54]line ИТОГО: 9989.00 [06:41:54]line НСП 1% : 88.40 [06:41:54]line НДС 12% : 1060.87 [06:41:54]line Наличными: 0.00 [06:41:54]line Безнал.: 9989.00 [06:41:54]line Место: АЗС № 134 "Партнер Нефть" [06:41:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:41:54]line СНО: Общий режим [06:41:54]line Чек 17 30.07.2024 06:42 [06:41:54]line Смена: 435 ФФД: 1.0 [06:41:54]line ЗНМ: 0300000044 [06:41:54]line РНМ: 0000000000092660 [06:41:54]line Версия ККМ: 001 [06:41:54]line Платежная система: O! деньги [06:41:54]line ФМ: 0000000000874939 [06:41:54]line ФД: 118965 [06:41:54]line ФПД: 125468962137831 [06:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118965&fm=125468962137831&tin=02508201610067®Number=0000000000092660&sum=998900 [06:41:54]OFD Sender: Processing packet 118965 [packets to send 86, broken 85] [06:41:54]ProducePacketName [06:41:54]name=ofd_packets/00118965 [06:41:54]OFD Sender: To server: pG, [06:41:54]CommunicateWithHost lk.salyk.kg:30040 [06:41:54]ConnectInit lk.salyk.kg [06:41:54]written 0, free lines is 4095 [06:41:55]Write to MH i2c: 01 00 00 F7 91 88 [06:41:55]Write i2c OK [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: 01 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: 01 07 00 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: 01 07 00 F7 91 00 00 00 00 00 D3 0C 6E [06:41:55]RasterBufferAndPrint [06:41:55]line [06:41:55]line [06:41:55]line [06:41:55]line [06:41:55]line [06:41:55]written 0, free lines is 3290 [06:41:55]MH_Cut [06:41:55]Write to MH i2c: D1 01 00 FE 91 01 61 [06:41:55]Write i2c OK [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: D1 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: D1 01 00 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: D1 01 00 FE 91 00 60 [06:41:55]Write to MH i2c: 01 00 00 FF 91 90 [06:41:55]Write i2c OK [06:41:55]MH_I2C_Read... [06:41:55]*** Cut start [06:41:55]*** Partial cut [06:41:55]*** CUTSNS_PIN = 1 [06:41:55]*** CUTSNS_PIN = 0 [06:41:56]*** Brake cut motor [06:41:56]Read from MH i2c: 01 [06:41:56]MH_I2C_Read... [06:41:56]*** Stop cut motor [06:41:56]*** Cut end [06:41:56]Read from MH i2c: 01 07 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: 01 07 00 FF 91 00 00 00 00 00 FF 0F A5 [06:41:56]process_action close_receipt done [06:41:56]requested_data is exist [06:41:56]produce_requested_data [06:41:56]requested_item fm.sn is exist - process it [06:41:56]wFMCommunicate request_size=4 [06:41:56]MH_SAM_APDU [06:41:56]CAPDU: 80 11 00 00 [06:41:56]Write to MH i2c: E2 08 00 00 92 80 11 00 00 00 00 00 00 0C [06:41:56]Write i2c OK [06:41:56]MH_I2C_Read... [06:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:56]Read from MH i2c: E2 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 17 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 17 00 00 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [06:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:41:56]wFMCommunicate OK [06:41:56]requested_item fd.num is exist - process it [06:41:56]SAM_PROTO_GetFieldsCounters [06:41:56]wFMCommunicate request_size=4 [06:41:56]MH_SAM_APDU [06:41:56]CAPDU: 80 13 00 00 [06:41:56]Write to MH i2c: E2 08 00 01 92 80 13 00 00 00 00 00 00 0F [06:41:56]Write i2c OK [06:41:56]MH_I2C_Read... [06:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:56]Read from MH i2c: E2 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 62 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 62 00 01 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [06:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:56]wFMCommunicate OK [06:41:56]SAM_PROTO_GetFieldsCounters done [06:41:56]requested_item shift.num is exist - process it [06:41:56]requested_item shift.opened is exist - process it [06:41:56]req_shift_opened [06:41:56]FM_GetShiftState [06:41:56]SAM_PROTO_GetShiftState [06:41:56]wFMCommunicate request_size=4 [06:41:56]MH_SAM_APDU [06:41:56]CAPDU: 80 13 01 00 [06:41:56]Write to MH i2c: E2 08 00 02 92 80 13 01 00 00 00 00 00 11 [06:41:56]Write i2c OK [06:41:56]MH_I2C_Read... [06:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:56]Read from MH i2c: E2 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 0E 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 0E 00 02 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DC [06:41:56]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:41:56]wFMCommunicate OK [06:41:56]SAM_PROTO_GetShiftState done [06:41:56]FM_GetShiftState done [06:41:56]req_shift_opened done [06:41:56]requested_item shift.open_date is exist - process it [06:41:56]req_shift_open_date [06:41:56]req_shift_open_date done [06:41:56]produce_requested_data done [06:41:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118965,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:41:56]process_action_free close_receipt [06:41:56]json_value_free [06:41:56]json_value_free done [06:41:56]process_json_proto returns [06:41:56]Send response to host [06:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118965,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:41:56]free response buf [06:41:56]execute_script done [06:41:56]execute_script returns [06:41:56]free content buf [06:41:56]Sock 7.Close socket [06:41:56]Sock 7.Thread stoped [06:43:46]accept exits with 9 [06:43:46]New connection [06:43:46]New thread 3067383140 created [06:43:46]Thread 3067239780 joined [06:43:46]Waiting for new connection... [06:43:46] Sock 9.Parse request [06:43:46]Sock 9.Check first char [06:43:46]Sock 9.First char is OK [06:43:46]request: POST /json_proto HTTP/1.0 [06:43:46]Method: POST [06:43:46]URL: /json_proto [06:43:46]Method is POST - this is cgi request [06:43:46]url: /json_proto [06:43:46]query_string will be loaded in cgi processing [06:43:46]execute_cgi json_proto POST (null) [06:43:46]execute_cgi path=json_proto method=POST [06:43:46]POST find Content-Length [06:43:46]Host: 172.17.45.7:8080 [06:43:46]Content-Length: 682 [06:43:46]Content-Type: application/json [06:43:46] [06:43:46]POST finish read [06:43:46]Found Content-Length = 682 [06:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:43:46]execute_script... [06:43: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)949884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:43:46]POST & json_proto [06:43:46]process_json_proto [06:43:46]json parsed OK: [06:43:46]protocol is kg_v1.0 [06:43:46]action value=close_receipt [06:43:46]process_action close_receipt [06:43:46]cmd_close_receipt [06:43:46]MH_GetDate [06:43:46]Write to MH i2c: F0 00 00 03 92 84 [06:43:46]Write i2c OK [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: F0 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: F0 09 00 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: F0 09 00 03 92 00 AC 8B A8 66 90 0F 3E 66 15 [06:43:46]GetLastDocTimeStamp 1722321722 [06:43:46]current date 1722321836 [06:43:46]FM_GetShiftState [06:43:46]SAM_PROTO_GetShiftState [06:43:46]wFMCommunicate request_size=4 [06:43:46]MH_SAM_APDU [06:43:46]CAPDU: 80 13 01 00 [06:43:46]Write to MH i2c: E2 08 00 04 92 80 13 01 00 00 00 00 00 13 [06:43:46]Write i2c OK [06:43:46]MH_I2C_Read... [06:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:46]Read from MH i2c: E2 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: E2 0E 00 [06:43:46]MH_I2C_Read... [06:43:46]Read from MH i2c: E2 0E 00 04 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DE [06:43:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:43:46]wFMCommunicate OK [06:43:46]SAM_PROTO_GetShiftState done [06:43:46]FM_GetShiftState done [06:43:46]opened in 1722298242 [06:43:46]opened+sec_in_day 1722384642 [06:43:46]quantity*price = 100005 [06:43:46]sum+1 = 100006 [06:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 18 30.07.2024 06:43 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118966 ФПД: 84629717965328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118966&fm=84629717965328&tin=02508201610067®Number=0000000000092660&sum=100000 [06:43:47]StoreToDocumentArchive [06:43:47]shift 435 fd 118966 [06:43:47]save to /storage/0435/doc_00118966 [06:43:47]save last doc name /storage/0435/doc_00118966 to /storage/kkm_last_doc_name [06:43:47]save OK [06:43:47]Clear old archive folders... [06:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:43:47]tlvbuf is 01FB5E30 [06:43:47]SAM_PROTO_ClearQueue [06:43:47]wFMCommunicate request_size=4 [06:43:47]MH_SAM_APDU [06:43:47]CAPDU: 80 09 00 00 [06:43:47]Write to MH i2c: E2 08 00 11 92 80 09 00 00 00 00 00 00 15 [06:43:47]Write i2c OK [06:43:47]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 [06:43:48]MH_I2C_Read... [06:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:43:48]Read from MH i2c: E2 03 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 11 92 00 90 00 17 [06:43:48]RAPDU: 90 00 [06:43:48]wFMCommunicate OK [06:43:48]SAM_PROTO_ClearQueue done [06:43:48]KKMCreateOFDPacket [06:43:48]OFDProtocolAddRootSTLVToBuf [06:43:48]FM_MakeSignedData [06:43:48]FM_MakeSignedData [06:43:48]SAM_PROTO_SignData [06:43:48]wFMCommunicate request_size=4 [06:43:48]MH_SAM_APDU [06:43:48]CAPDU: 80 0D 01 02 [06:43:48]Write to MH i2c: E2 08 00 12 92 80 0D 01 02 00 00 00 00 1D [06:43:48]Write i2c OK [06:43:48]MH_I2C_Read... [06:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:43:48]Read from MH i2c: E2 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 12 92 00 90 00 18 [06:43:48]RAPDU: 90 00 [06:43:48]wFMCommunicate OK [06:43:48]wFMCommunicate request_size=255 [06:43:48]MH_SAM_APDU [06:43: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 D0 01 00 35 04 06 00 4C [06:43:48]Write to MH i2c: E2 02 01 13 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 D0 01 00 35 04 06 00 4C 00 00 0E [06:43:48]Write i2c OK [06:43:48]MH_I2C_Read... [06:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:48]Read from MH i2c: E2 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 13 92 00 90 00 19 [06:43:48]RAPDU: 90 00 [06:43:48]wFMCommunicate OK [06:43:48]wFMCommunicate request_size=10 [06:43:48]MH_SAM_APDU [06:43:48]CAPDU: 80 0D 02 02 05 F8 64 46 DA 10 [06:43:48]Write to MH i2c: E2 0D 00 14 92 80 0D 02 02 05 00 F8 64 46 DA 10 00 00 B6 [06:43:48]Write i2c OK [06:43:48]MH_I2C_Read... [06:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:43:48]Read from MH i2c: E2 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 03 00 14 92 00 90 00 1A [06:43:48]RAPDU: 90 00 [06:43:48]wFMCommunicate OK [06:43:48]wFMCommunicate request_size=4 [06:43:48]MH_SAM_APDU [06:43:48]CAPDU: 80 0D 03 02 [06:43:48]Write to MH i2c: E2 08 00 15 92 80 0D 03 02 00 00 00 00 22 [06:43:48]Write i2c OK [06:43:48]MH_I2C_Read... [06:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:43:48]Read from MH i2c: E2 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 0B 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 0B 00 15 92 00 EF 0D AC 20 64 7C E7 72 90 00 24 [06:43:48]RAPDU: EF 0D AC 20 64 7C E7 72 90 00 [06:43:48]wFMCommunicate OK [06:43:48]SAM_PROTO_SignData done [06:43:48]FM_MakeSignedData done [06:43:48]CreateOFDProtocolMessage [06:43:48]wFMCommunicate request_size=4 [06:43:48]MH_SAM_APDU [06:43:48]CAPDU: 80 11 00 00 [06:43:48]Write to MH i2c: E2 08 00 16 92 80 11 00 00 00 00 00 00 22 [06:43:48]Write i2c OK [06:43:48]MH_I2C_Read... [06:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:48]Read from MH i2c: E2 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 17 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: E2 17 00 16 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [06:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:43:48]wFMCommunicate OK [06:43:48]CreateOFDProtocolMessage done [06:43:48]OFDSenderStorePacket 118966 [06:43:48]StoreOFDPacket docnum=118966 [06:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 26 07 01 37 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 D0 01 00 35 04 06 00 4C F8 64 46 DA 10 EF 0D AC 20 64 7C E7 72 [06:43:48]CheckFolder [06:43:48]dirname=/storage/ofd_packets [06:43:48]CheckFolder done [06:43:48]ProducePacketName [06:43:48]name=ofd_packets/00118966 [06:43:48]NVStorageSaveData ofd_packets/00118966 [06:43:48]File name is /storage/ofd_packets/00118966 [06:43:48]Write 301 bytes [06:43:48]NVStorageSaveData done [06:43:48]OFDSenderStorePacket done [06:43:48]KKMCreateOFDPacket done [06:43:48]NVStorageSaveData kkm_last_timestamp [06:43:48]File name is /storage/kkm_last_timestamp [06:43:48]Write 4 bytes [06:43:48]NVStorageSaveData done [06:43:48]ExternCall_PrintAddStr [06:43:48]wPrintStart [06:43:48]Write to MH i2c: 01 00 00 17 92 A9 [06:43:48]Write i2c OK [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: 01 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: 01 07 00 [06:43:48]MH_I2C_Read... [06:43:48]Read from MH i2c: 01 07 00 17 92 00 00 00 00 00 FF 0F BE [06:43:48]RasterBufferAndPrint [06:43:48]line Счет N : (1)949884 [06:43:48]line ИНН: 02508201610067 [06:43:48]line Контрольно-Кассовый Чек [06:43:48]line ПРОДАЖА [06:43:48]line ТРК (МРК, ГНК) : 41 [06:43:48]line Товар: 2710124130 [06:43:48]line Аи-92-К-4 [06:43:48]line 14.750 * 67.80 [06:43:48]line = 1000.05 [06:43:48]line НДС 12% НСП 1% [06:43:48]line > о реализуемом товаре [06:43:48]line ОКРУГЛЕНИЕ: -0.05 [06:43:48]line ИТОГО: 1000.00 [06:43:48]line Внесено: 1000.00 [06:43:48]line СДАЧА: 0.00 [06:43:48]line НСП 1% : 8.85 [06:43:48]line НДС 12% : 106.20 [06:43:48]line Наличными: 1000.00 [06:43:48]line Безнал.: 0.00 [06:43:48]line Место: АЗС № 134 "Партнер Нефть" [06:43:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:43:48]line СНО: Общий режим [06:43:48]line Чек 18 30.07.2024 06:43 [06:43:48]line Смена: 435 ФФД: 1.0 [06:43:48]line ЗНМ: 0300000044 [06:43:48]line РНМ: 0000000000092660 [06:43:48]line Версия ККМ: 001 [06:43:48]line ФМ: 0000000000874939 [06:43:48]line ФД: 118966 [06:43:48]line ФПД: 84629717965328 [06:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118966&fm=84629717965328&tin=02508201610067®Number=0000000000092660&sum=100000 [06:43:48]written 0, free lines is 4095 [06:43:49]Write to MH i2c: 01 00 00 41 92 D3 [06:43:49]Write i2c OK [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 07 00 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: 01 07 00 41 92 00 00 00 00 00 D6 0C BC [06:43:49]RasterBufferAndPrint [06:43:49]line [06:43:49]line [06:43:49]line [06:43:49]line [06:43:49]line [06:43:49]written 0, free lines is 3293 [06:43:49]MH_Cut [06:43:49]Write to MH i2c: D1 01 00 48 92 01 AC [06:43:49]Write i2c OK [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: D1 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: D1 01 00 [06:43:49]MH_I2C_Read... [06:43:49]Read from MH i2c: D1 01 00 48 92 00 AB [06:43:49]Write to MH i2c: 01 00 00 49 92 DB [06:43:49]Write i2c OK [06:43:49]MH_I2C_Read... [06:43:50]*** Cut start [06:43:50]*** Partial cut [06:43:50]*** CUTSNS_PIN = 1 [06:43:50]*** CUTSNS_PIN = 0 [06:43:50]*** Brake cut motor [06:43:50]Read from MH i2c: 01 [06:43:50]MH_I2C_Read... [06:43:50]*** Stop cut motor [06:43:50]*** Cut end [06:43:50]Read from MH i2c: 01 07 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: 01 07 00 49 92 00 00 00 00 00 FF 0F F0 [06:43:50]process_action close_receipt done [06:43:50]requested_data is exist [06:43:50]produce_requested_data [06:43:50]requested_item fm.sn is exist - process it [06:43:50]wFMCommunicate request_size=4 [06:43:50]MH_SAM_APDU [06:43:50]CAPDU: 80 11 00 00 [06:43:50]Write to MH i2c: E2 08 00 4A 92 80 11 00 00 00 00 00 00 56 [06:43:50]Write i2c OK [06:43:50]MH_I2C_Read... [06:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:43:50]Read from MH i2c: E2 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 17 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 17 00 4A 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B1 [06:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:43:50]wFMCommunicate OK [06:43:50]requested_item fd.num is exist - process it [06:43:50]SAM_PROTO_GetFieldsCounters [06:43:50]wFMCommunicate request_size=4 [06:43:50]MH_SAM_APDU [06:43:50]CAPDU: 80 13 00 00 [06:43:50]Write to MH i2c: E2 08 00 4B 92 80 13 00 00 00 00 00 00 59 [06:43:50]Write i2c OK [06:43:50]MH_I2C_Read... [06:43:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:43:50]Read from MH i2c: E2 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 62 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 62 00 4B 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [06:43:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:43:50]wFMCommunicate OK [06:43:50]SAM_PROTO_GetFieldsCounters done [06:43:50]requested_item shift.num is exist - process it [06:43:50]requested_item shift.opened is exist - process it [06:43:50]req_shift_opened [06:43:50]FM_GetShiftState [06:43:50]SAM_PROTO_GetShiftState [06:43:50]wFMCommunicate request_size=4 [06:43:50]MH_SAM_APDU [06:43:50]CAPDU: 80 13 01 00 [06:43:50]Write to MH i2c: E2 08 00 4C 92 80 13 01 00 00 00 00 00 5B [06:43:50]Write i2c OK [06:43:50]MH_I2C_Read... [06:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:43:50]Read from MH i2c: E2 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 0E 00 [06:43:50]MH_I2C_Read... [06:43:50]Read from MH i2c: E2 0E 00 4C 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 26 [06:43:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:43:50]wFMCommunicate OK [06:43:50]SAM_PROTO_GetShiftState done [06:43:50]FM_GetShiftState done [06:43:50]req_shift_opened done [06:43:50]requested_item shift.open_date is exist - process it [06:43:50]req_shift_open_date [06:43:50]req_shift_open_date done [06:43:50]produce_requested_data done [06:43:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118966,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:43:50]process_action_free close_receipt [06:43:50]json_value_free [06:43:50]json_value_free done [06:43:50]process_json_proto returns [06:43:50]Send response to host [06:43:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118966,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:43:50]free response buf [06:43:50]execute_script done [06:43:50]execute_script returns [06:43:50]free content buf [06:43:50]Sock 9.Close socket [06:43:50]Sock 9.Thread stoped [06:44:04]ConnectInit Can't connect to host [06:44:04]CommunicateWithHost connect error [06:44:04]CommunicateWithHost err = -1 [06:44:04]OFD Sender: Server communicate error [06:44:04]OFD Sender: Processing packet 118965 [packets to send 87, broken 85] [06:44:04]ProducePacketName [06:44:04]name=ofd_packets/00118965 [06:44:04]OFD Sender: To server: pG, [06:44:04]CommunicateWithHost lk.salyk.kg:30040 [06:44:04]ConnectInit lk.salyk.kg [06:44:04]Connected sock=9 [06:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A9 58 04 01 85 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 3A 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D0 01 00 35 04 06 00 72 1D 04 EB 26 E7 69 2C FD C8 7E A2 10 9A [06:44:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A6 F1 47 00 B7 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D0 01 00 F4 03 04 00 47 39 A8 66 B6 04 01 00 00 A9 3F D0 DB 12 B0 2E F1 [06:44:04]CommunicateWithHost err = 0 [06:44:04]CheckOFDResponse [06:44:04]1017 (14) - 77093643461234 [06:44:04]1041 (16) - 0000000000874939 [06:44:04]1040 (4) - 118965 [06:44:04]1012 (4) - 30.07.2024 00:52 [06:44:04]1206 (1) - 0 [06:44:04]OFD Sender: Remove packet 118965 [06:44:04]ProducePacketName [06:44:04]name=ofd_packets/00118965 [06:44:04]NVStorageDeleteData [06:44:05]OFD Sender: Processing packet 118966 [packets to send 86, broken 85] [06:44:05]ProducePacketName [06:44:05]name=ofd_packets/00118966 [06:44:05]OFD Sender: To server: pG, [06:44:05]CommunicateWithHost lk.salyk.kg:30040 [06:44:05]ConnectInit lk.salyk.kg [06:44:05]Connected sock=9 [06:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 26 07 01 37 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC 8B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 D0 01 00 35 04 06 00 4C F8 64 46 DA 10 EF 0D AC 20 64 7C E7 72 [06:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D7 25 47 00 45 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 34 39 33 39 10 04 04 00 B6 D0 01 00 F4 03 04 00 48 39 A8 66 B6 04 01 00 00 0B 63 E7 AF 6A 02 EF 95 [06:44:05]CommunicateWithHost err = 0 [06:44:05]CheckOFDResponse [06:44:05]1017 (14) - 77093643461234 [06:44:05]1041 (16) - 0000000000874939 [06:44:05]1040 (4) - 118966 [06:44:05]1012 (4) - 30.07.2024 00:52 [06:44:05]1206 (1) - 0 [06:44:05]OFD Sender: Remove packet 118966 [06:44:05]ProducePacketName [06:44:05]name=ofd_packets/00118966 [06:44:05]NVStorageDeleteData [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:38]accept exits with 7 [06:46:38]New connection [06:46:38]New thread 3067239780 created [06:46:38]Thread 3067383140 joined [06:46:38]Waiting for new connection... [06:46:38] Sock 7.Parse request [06:46:38]Sock 7.Check first char [06:46:38]Sock 7.First char is OK [06:46:38]request: POST /json_proto HTTP/1.0 [06:46:38]Method: POST [06:46:38]URL: /json_proto [06:46:38]Method is POST - this is cgi request [06:46:38]url: /json_proto [06:46:38]query_string will be loaded in cgi processing [06:46:38]execute_cgi json_proto POST (null) [06:46:38]execute_cgi path=json_proto method=POST [06:46:38]POST find Content-Length [06:46:38]Host: 172.17.45.7:8080 [06:46:38]Content-Length: 820 [06:46:38]Content-Type: application/json [06:46:38] [06:46:38]POST finish read [06:46:38]Found Content-Length = 820 [06:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:38]execute_script... [06:46:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:38]POST & json_proto [06:46:38]process_json_proto [06:46:38]json parsed OK: [06:46:38]protocol is kg_v1.0 [06:46:38]action value=close_receipt [06:46:38]process_action close_receipt [06:46:38]cmd_close_receipt [06:46:38]MH_GetDate [06:46:38]Write to MH i2c: F0 00 00 4D 92 CE [06:46:38]Write i2c OK [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: F0 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: F0 09 00 [06:46:38]MH_I2C_Read... [06:46:38]Read from MH i2c: F0 09 00 4D 92 00 58 8C A8 66 90 0F 3E 66 0C [06:46:38]GetLastDocTimeStamp 1722321836 [06:46:38]current date 1722322008 [06:46:38]FM_GetShiftState [06:46:38]SAM_PROTO_GetShiftState [06:46:38]wFMCommunicate request_size=4 [06:46:38]MH_SAM_APDU [06:46:38]CAPDU: 80 13 01 00 [06:46:38]Write to MH i2c: E2 08 00 4E 92 80 13 01 00 00 00 00 00 5D [06:46:38]Write i2c OK [06:46:38]MH_I2C_Read... [06:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:39]Read from MH i2c: E2 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 0E 00 [06:46:39]MH_I2C_Read... [06:46:39]Read from MH i2c: E2 0E 00 4E 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 28 [06:46:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:46:39]wFMCommunicate OK [06:46:39]SAM_PROTO_GetShiftState done [06:46:39]FM_GetShiftState done [06:46:39]opened in 1722298242 [06:46:39]opened+sec_in_day 1722384642 [06:46:39]quantity*price = 998982 [06:46:39]sum+1 = 998983 [06:46:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 19 30.07.2024 06:46 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118967 ФПД: 50850104179712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118967&fm=50850104179712&tin=02508201610067®Number=0000000000092660&sum=998900 [06:46:40]StoreToDocumentArchive [06:46:40]shift 435 fd 118967 [06:46:40]save to /storage/0435/doc_00118967 [06:46:40]save last doc name /storage/0435/doc_00118967 to /storage/kkm_last_doc_name [06:46:40]save OK [06:46:40]Clear old archive folders... [06:46:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:46:40]tlvbuf is 01E54290 [06:46:40]SAM_PROTO_ClearQueue [06:46:40]wFMCommunicate request_size=4 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 09 00 00 [06:46:40]Write to MH i2c: E2 08 00 5B 92 80 09 00 00 00 00 00 00 5F [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:40]Read from MH i2c: E2 03 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 5B 92 00 90 00 61 [06:46:40]RAPDU: 90 00 [06:46:40]wFMCommunicate OK [06:46:40]SAM_PROTO_ClearQueue done [06:46:40]KKMCreateOFDPacket [06:46:40]OFDProtocolAddRootSTLVToBuf [06:46:40]FM_MakeSignedData [06:46:40]FM_MakeSignedData [06:46:40]SAM_PROTO_SignData [06:46:40]wFMCommunicate request_size=4 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 0D 01 02 [06:46:40]Write to MH i2c: E2 08 00 5C 92 80 0D 01 02 00 00 00 00 67 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 5C 92 00 90 00 62 [06:46:40]RAPDU: 90 00 [06:46:40]wFMCommunicate OK [06:46:40]wFMCommunicate request_size=255 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 58 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D0 01 00 35 04 06 00 2E 3F 76 65 [06:46:40]Write to MH i2c: E2 02 01 5D 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 58 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D0 01 00 35 04 06 00 2E 3F 76 65 00 00 1A [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 5D 92 00 90 00 63 [06:46:40]RAPDU: 90 00 [06:46:40]wFMCommunicate OK [06:46:40]wFMCommunicate request_size=7 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 0D 02 02 02 7C 00 [06:46:40]Write to MH i2c: E2 0A 00 5E 92 80 0D 02 02 02 00 7C 00 00 00 EA [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 03 00 5E 92 00 90 00 64 [06:46:40]RAPDU: 90 00 [06:46:40]wFMCommunicate OK [06:46:40]wFMCommunicate request_size=4 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 0D 03 02 [06:46:40]Write to MH i2c: E2 08 00 5F 92 80 0D 03 02 00 00 00 00 6C [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 0B 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 0B 00 5F 92 00 67 6B F5 49 25 99 23 CC 90 00 2A [06:46:40]RAPDU: 67 6B F5 49 25 99 23 CC 90 00 [06:46:40]wFMCommunicate OK [06:46:40]SAM_PROTO_SignData done [06:46:40]FM_MakeSignedData done [06:46:40]CreateOFDProtocolMessage [06:46:40]wFMCommunicate request_size=4 [06:46:40]MH_SAM_APDU [06:46:40]CAPDU: 80 11 00 00 [06:46:40]Write to MH i2c: E2 08 00 60 92 80 11 00 00 00 00 00 00 6C [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:40]Read from MH i2c: E2 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 17 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: E2 17 00 60 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C7 [06:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:40]wFMCommunicate OK [06:46:40]CreateOFDProtocolMessage done [06:46:40]OFDSenderStorePacket 118967 [06:46:40]StoreOFDPacket docnum=118967 [06:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B EC 04 01 58 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 58 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D0 01 00 35 04 06 00 2E 3F 76 65 7C 00 67 6B F5 49 25 99 23 CC [06:46:40]CheckFolder [06:46:40]dirname=/storage/ofd_packets [06:46:40]CheckFolder done [06:46:40]ProducePacketName [06:46:40]name=ofd_packets/00118967 [06:46:40]NVStorageSaveData ofd_packets/00118967 [06:46:40]File name is /storage/ofd_packets/00118967 [06:46:40]Write 298 bytes [06:46:40]NVStorageSaveData done [06:46:40]OFDSenderStorePacket done [06:46:40]KKMCreateOFDPacket done [06:46:40]NVStorageSaveData kkm_last_timestamp [06:46:40]File name is /storage/kkm_last_timestamp [06:46:40]Write 4 bytes [06:46:40]NVStorageSaveData done [06:46:40]ExternCall_PrintAddStr [06:46:40]wPrintStart [06:46:40]Write to MH i2c: 01 00 00 61 92 F3 [06:46:40]Write i2c OK [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: 01 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: 01 07 00 [06:46:40]MH_I2C_Read... [06:46:40]Read from MH i2c: 01 07 00 61 92 00 00 00 00 00 FF 0F 08 [06:46:40]RasterBufferAndPrint [06:46:40]line Счет N : (1)949883 [06:46:40]line ИНН: 02508201610067 [06:46:40]line Контрольно-Кассовый Чек [06:46:40]line ПРОДАЖА [06:46:40]line ТРК (МРК, ГНК) : 21 [06:46:40]line Товар: 2710194800 [06:46:40]line ДТ-К-5 [06:46:40]line 131.100 * 76.20 [06:46:40]line = 9989.82 [06:46:40]line НДС 12% НСП 1% [06:46:40]line > о реализуемом товаре [06:46:40]line ОКРУГЛЕНИЕ: -0.82 [06:46:40]line ИТОГО: 9989.00 [06:46:40]line НСП 1% : 88.40 [06:46:40]line НДС 12% : 1060.87 [06:46:40]line Наличными: 0.00 [06:46:40]line Безнал.: 9989.00 [06:46:40]line Место: АЗС № 134 "Партнер Нефть" [06:46:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:46:40]line СНО: Общий режим [06:46:40]line Чек 19 30.07.2024 06:46 [06:46:40]line Смена: 435 ФФД: 1.0 [06:46:40]line ЗНМ: 0300000044 [06:46:40]line РНМ: 0000000000092660 [06:46:40]line Версия ККМ: 001 [06:46:40]line Платежная система: O! деньги [06:46:40]line ФМ: 0000000000874939 [06:46:40]line ФД: 118967 [06:46:40]line ФПД: 50850104179712 [06:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064648&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118967&fm=50850104179712&tin=02508201610067®Number=0000000000092660&sum=998900 [06:46:40]OFD Sender: Processing packet 118967 [packets to send 86, broken 85] [06:46:40]ProducePacketName [06:46:40]name=ofd_packets/00118967 [06:46:40]OFD Sender: To server: pG, [06:46:40]CommunicateWithHost lk.salyk.kg:30040 [06:46:40]ConnectInit lk.salyk.kg [06:46:41]written 0, free lines is 4095 [06:46:41]Connected sock=10 [06:46:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B EC 04 01 58 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 58 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D0 01 00 35 04 06 00 2E 3F 76 65 7C 00 67 6B F5 49 25 99 23 CC [06:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0B FC 47 00 8D 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D0 01 00 F4 03 04 00 E4 39 A8 66 B6 04 01 00 00 49 CC 24 F0 D7 AE A7 71 [06:46:41]CommunicateWithHost err = 0 [06:46:41]CheckOFDResponse [06:46:41]1017 (14) - 77093643461234 [06:46:41]1041 (16) - 0000000000874939 [06:46:41]1040 (4) - 118967 [06:46:41]1012 (4) - 30.07.2024 00:55 [06:46:41]1206 (1) - 0 [06:46:41]OFD Sender: Remove packet 118967 [06:46:41]ProducePacketName [06:46:41]name=ofd_packets/00118967 [06:46:41]NVStorageDeleteData [06:46:41]Write to MH i2c: 01 00 00 8B 92 1D [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: 01 07 00 8B 92 00 00 00 00 00 F3 0C 23 [06:46:41]RasterBufferAndPrint [06:46:41]line [06:46:41]line [06:46:41]line [06:46:41]line [06:46:41]line [06:46:41]written 0, free lines is 3322 [06:46:41]MH_Cut [06:46:41]Write to MH i2c: D1 01 00 92 92 01 F6 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: D1 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: D1 01 00 [06:46:41]MH_I2C_Read... [06:46:41]Read from MH i2c: D1 01 00 92 92 00 F5 [06:46:41]Write to MH i2c: 01 00 00 93 92 25 [06:46:41]Write i2c OK [06:46:41]MH_I2C_Read... [06:46:41]OFD Sender: No OFD packet to send [06:46:42]*** Cut start [06:46:42]*** Partial cut [06:46:42]*** CUTSNS_PIN = 1 [06:46:42]*** CUTSNS_PIN = 0 [06:46:42]*** Brake cut motor [06:46:42]Read from MH i2c: 01 [06:46:42]MH_I2C_Read... [06:46:42]*** Stop cut motor [06:46:42]*** Cut end [06:46:42]Read from MH i2c: 01 07 00 [06:46:42]MH_I2C_Read... [06:46:42]Read from MH i2c: 01 07 00 93 92 00 00 00 00 00 FF 0F 3A [06:46:42]process_action close_receipt done [06:46:42]requested_data is exist [06:46:42]produce_requested_data [06:46:42]requested_item fm.sn is exist - process it [06:46:42]wFMCommunicate request_size=4 [06:46:42]MH_SAM_APDU [06:46:42]CAPDU: 80 11 00 00 [06:46:42]Write to MH i2c: E2 08 00 94 92 80 11 00 00 00 00 00 00 A0 [06:46:42]Write i2c OK [06:46:42]MH_I2C_Read... [06:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:42]Read from MH i2c: E2 [06:46:42]MH_I2C_Read... [06:46:42]Read from MH i2c: E2 17 00 [06:46:42]MH_I2C_Read... [06:46:42]Read from MH i2c: E2 17 00 94 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FB [06:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:42]wFMCommunicate OK [06:46:42]requested_item fd.num is exist - process it [06:46:42]SAM_PROTO_GetFieldsCounters [06:46:42]wFMCommunicate request_size=4 [06:46:42]MH_SAM_APDU [06:46:42]CAPDU: 80 13 00 00 [06:46:42]Write to MH i2c: E2 08 00 95 92 80 13 00 00 00 00 00 00 A3 [06:46:42]Write i2c OK [06:46:42]MH_I2C_Read... [06:46:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:43]Read from MH i2c: E2 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 62 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 62 00 95 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [06:46:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:43]wFMCommunicate OK [06:46:43]SAM_PROTO_GetFieldsCounters done [06:46:43]requested_item shift.num is exist - process it [06:46:43]requested_item shift.opened is exist - process it [06:46:43]req_shift_opened [06:46:43]FM_GetShiftState [06:46:43]SAM_PROTO_GetShiftState [06:46:43]wFMCommunicate request_size=4 [06:46:43]MH_SAM_APDU [06:46:43]CAPDU: 80 13 01 00 [06:46:43]Write to MH i2c: E2 08 00 96 92 80 13 01 00 00 00 00 00 A5 [06:46:43]Write i2c OK [06:46:43]MH_I2C_Read... [06:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:43]Read from MH i2c: E2 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 0E 00 [06:46:43]MH_I2C_Read... [06:46:43]Read from MH i2c: E2 0E 00 96 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 70 [06:46:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:46:43]wFMCommunicate OK [06:46:43]SAM_PROTO_GetShiftState done [06:46:43]FM_GetShiftState done [06:46:43]req_shift_opened done [06:46:43]requested_item shift.open_date is exist - process it [06:46:43]req_shift_open_date [06:46:43]req_shift_open_date done [06:46:43]produce_requested_data done [06:46:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118967,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:46:43]process_action_free close_receipt [06:46:43]json_value_free [06:46:43]json_value_free done [06:46:43]process_json_proto returns [06:46:43]Send response to host [06:46:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118967,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:46:43]free response buf [06:46:43]execute_script done [06:46:43]execute_script returns [06:46:43]free content buf [06:46:43]Sock 7.Close socket [06:46:43]Sock 7.Thread stoped [06:46:46]accept exits with 9 [06:46:46]New connection [06:46:46]New thread 3067383140 created [06:46:46]Thread 3067239780 joined [06:46:46]Waiting for new connection... [06:46:46] Sock 9.Parse request [06:46:46]Sock 9.Check first char [06:46:46]Sock 9.First char is OK [06:46:46]request: POST /json_proto HTTP/1.0 [06:46:46]Method: POST [06:46:46]URL: /json_proto [06:46:46]Method is POST - this is cgi request [06:46:46]url: /json_proto [06:46:46]query_string will be loaded in cgi processing [06:46:46]execute_cgi json_proto POST (null) [06:46:46]execute_cgi path=json_proto method=POST [06:46:46]POST find Content-Length [06:46:46]Host: 172.17.45.7:8080 [06:46:46]Content-Length: 679 [06:46:46]Content-Type: application/json [06:46:46] [06:46:46]POST finish read [06:46:46]Found Content-Length = 679 [06:46:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:46]execute_script... [06:46: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)949885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:46:46]POST & json_proto [06:46:46]process_json_proto [06:46:46]json parsed OK: [06:46:46]protocol is kg_v1.0 [06:46:46]action value=close_receipt [06:46:46]process_action close_receipt [06:46:46]cmd_close_receipt [06:46:46]MH_GetDate [06:46:46]Write to MH i2c: F0 00 00 97 92 18 [06:46:46]Write i2c OK [06:46:46]MH_I2C_Read... [06:46:46]Read from MH i2c: F0 [06:46:46]MH_I2C_Read... [06:46:46]Read from MH i2c: F0 09 00 [06:46:46]MH_I2C_Read... [06:46:46]Read from MH i2c: F0 09 00 97 92 00 5F 8C A8 66 90 0F 3E 66 5D [06:46:46]GetLastDocTimeStamp 1722322008 [06:46:46]current date 1722322015 [06:46:46]FM_GetShiftState [06:46:46]SAM_PROTO_GetShiftState [06:46:46]wFMCommunicate request_size=4 [06:46:46]MH_SAM_APDU [06:46:46]CAPDU: 80 13 01 00 [06:46:46]Write to MH i2c: E2 08 00 98 92 80 13 01 00 00 00 00 00 A7 [06:46:46]Write i2c OK [06:46:46]MH_I2C_Read... [06:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:46]Read from MH i2c: E2 [06:46:46]MH_I2C_Read... [06:46:46]Read from MH i2c: E2 0E 00 [06:46:46]MH_I2C_Read... [06:46:46]Read from MH i2c: E2 0E 00 98 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 72 [06:46:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:46:46]wFMCommunicate OK [06:46:46]SAM_PROTO_GetShiftState done [06:46:46]FM_GetShiftState done [06:46:46]opened in 1722298242 [06:46:46]opened+sec_in_day 1722384642 [06:46:46]quantity*price = 100050 [06:46:46]sum+1 = 100052 [06:46:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 20 30.07.2024 06:46 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118968 ФПД: 1277929415489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064655&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118968&fm=1277929415489&tin=02508201610067®Number=0000000000092660&sum=100000 [06:46:47]StoreToDocumentArchive [06:46:47]shift 435 fd 118968 [06:46:47]save to /storage/0435/doc_00118968 [06:46:47]save last doc name /storage/0435/doc_00118968 to /storage/kkm_last_doc_name [06:46:47]save OK [06:46:47]Clear old archive folders... [06:46:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:46:47]tlvbuf is B6F114E0 [06:46:47]SAM_PROTO_ClearQueue [06:46:47]wFMCommunicate request_size=4 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 09 00 00 [06:46:47]Write to MH i2c: E2 08 00 A5 92 80 09 00 00 00 00 00 00 A9 [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:47]Read from MH i2c: E2 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 03 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 03 00 A5 92 00 90 00 AB [06:46:47]RAPDU: 90 00 [06:46:47]wFMCommunicate OK [06:46:47]SAM_PROTO_ClearQueue done [06:46:47]KKMCreateOFDPacket [06:46:47]OFDProtocolAddRootSTLVToBuf [06:46:47]FM_MakeSignedData [06:46:47]FM_MakeSignedData [06:46:47]SAM_PROTO_SignData [06:46:47]wFMCommunicate request_size=4 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 0D 01 02 [06:46:47]Write to MH i2c: E2 08 00 A6 92 80 0D 01 02 00 00 00 00 B1 [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:47]Read from MH i2c: E2 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 03 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 03 00 A6 92 00 90 00 AC [06:46:47]RAPDU: 90 00 [06:46:47]wFMCommunicate OK [06:46:47]wFMCommunicate request_size=255 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5F 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D0 01 00 35 04 06 00 01 29 8A 87 [06:46:47]Write to MH i2c: E2 02 01 A7 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5F 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D0 01 00 35 04 06 00 01 29 8A 87 00 00 C6 [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:47]Read from MH i2c: E2 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 03 00 [06:46:47]MH_I2C_Read... [06:46:47]Read from MH i2c: E2 03 00 A7 92 00 90 00 AD [06:46:47]RAPDU: 90 00 [06:46:47]wFMCommunicate OK [06:46:47]wFMCommunicate request_size=7 [06:46:47]MH_SAM_APDU [06:46:47]CAPDU: 80 0D 02 02 02 63 41 [06:46:47]Write to MH i2c: E2 0A 00 A8 92 80 0D 02 02 02 00 63 41 00 00 5C [06:46:47]Write i2c OK [06:46:47]MH_I2C_Read... [06:46:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:48]Read from MH i2c: E2 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: E2 03 00 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: E2 03 00 A8 92 00 90 00 AE [06:46:48]RAPDU: 90 00 [06:46:48]wFMCommunicate OK [06:46:48]wFMCommunicate request_size=4 [06:46:48]MH_SAM_APDU [06:46:48]CAPDU: 80 0D 03 02 [06:46:48]Write to MH i2c: E2 08 00 A9 92 80 0D 03 02 00 00 00 00 B6 [06:46:48]Write i2c OK [06:46:48]MH_I2C_Read... [06:46:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:48]Read from MH i2c: E2 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: E2 0B 00 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: E2 0B 00 A9 92 00 5E 54 EE C1 39 A7 6E 48 90 00 AE [06:46:48]RAPDU: 5E 54 EE C1 39 A7 6E 48 90 00 [06:46:48]wFMCommunicate OK [06:46:48]SAM_PROTO_SignData done [06:46:48]FM_MakeSignedData done [06:46:48]CreateOFDProtocolMessage [06:46:48]wFMCommunicate request_size=4 [06:46:48]MH_SAM_APDU [06:46:48]CAPDU: 80 11 00 00 [06:46:48]Write to MH i2c: E2 08 00 AA 92 80 11 00 00 00 00 00 00 B6 [06:46:48]Write i2c OK [06:46:48]MH_I2C_Read... [06:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:48]Read from MH i2c: E2 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: E2 17 00 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: E2 17 00 AA 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [06:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:48]wFMCommunicate OK [06:46:48]CreateOFDProtocolMessage done [06:46:48]OFDSenderStorePacket 118968 [06:46:48]StoreOFDPacket docnum=118968 [06:46:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 05 04 01 E5 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5F 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D0 01 00 35 04 06 00 01 29 8A 87 63 41 5E 54 EE C1 39 A7 6E 48 [06:46:48]CheckFolder [06:46:48]dirname=/storage/ofd_packets [06:46:48]CheckFolder done [06:46:48]ProducePacketName [06:46:48]name=ofd_packets/00118968 [06:46:48]NVStorageSaveData ofd_packets/00118968 [06:46:48]File name is /storage/ofd_packets/00118968 [06:46:48]Write 298 bytes [06:46:48]NVStorageSaveData done [06:46:48]OFDSenderStorePacket done [06:46:48]KKMCreateOFDPacket done [06:46:48]NVStorageSaveData kkm_last_timestamp [06:46:48]File name is /storage/kkm_last_timestamp [06:46:48]Write 4 bytes [06:46:48]NVStorageSaveData done [06:46:48]ExternCall_PrintAddStr [06:46:48]wPrintStart [06:46:48]Write to MH i2c: 01 00 00 AB 92 3D [06:46:48]Write i2c OK [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: 01 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: 01 07 00 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: 01 07 00 AB 92 00 00 00 00 00 FF 0F 52 [06:46:48]RasterBufferAndPrint [06:46:48]line Счет N : (1)949885 [06:46:48]line ИНН: 02508201610067 [06:46:48]line Контрольно-Кассовый Чек [06:46:48]line ПРОДАЖА [06:46:48]line ТРК (МРК, ГНК) : 21 [06:46:48]line Товар: 2710194800 [06:46:48]line ДТ-К-5 [06:46:48]line 13.130 * 76.20 [06:46:48]line = 1000.51 [06:46:48]line НДС 12% НСП 1% [06:46:48]line > о реализуемом товаре [06:46:48]line ОКРУГЛЕНИЕ: -0.51 [06:46:48]line ИТОГО: 1000.00 [06:46:48]line Внесено: 1000.00 [06:46:48]line СДАЧА: 0.00 [06:46:48]line НСП 1% : 8.85 [06:46:48]line НДС 12% : 106.25 [06:46:48]line Наличными: 1000.00 [06:46:48]line Безнал.: 0.00 [06:46:48]line Место: АЗС № 134 "Партнер Нефть" [06:46:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:46:48]line СНО: Общий режим [06:46:48]line Чек 20 30.07.2024 06:46 [06:46:48]line Смена: 435 ФФД: 1.0 [06:46:48]line ЗНМ: 0300000044 [06:46:48]line РНМ: 0000000000092660 [06:46:48]line Версия ККМ: 001 [06:46:48]line ФМ: 0000000000874939 [06:46:48]line ФД: 118968 [06:46:48]line ФПД: 1277929415489 [06:46:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064655&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118968&fm=1277929415489&tin=02508201610067®Number=0000000000092660&sum=100000 [06:46:48]written 0, free lines is 4095 [06:46:48]OFD Sender: Processing packet 118968 [packets to send 86, broken 85] [06:46:48]ProducePacketName [06:46:48]name=ofd_packets/00118968 [06:46:48]OFD Sender: To server: pG, [06:46:48]CommunicateWithHost lk.salyk.kg:30040 [06:46:48]ConnectInit lk.salyk.kg [06:46:48]Connected sock=10 [06:46:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 05 04 01 E5 DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5F 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D0 01 00 35 04 06 00 01 29 8A 87 63 41 5E 54 EE C1 39 A7 6E 48 [06:46:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 83 39 47 00 73 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D0 01 00 F4 03 04 00 EB 39 A8 66 B6 04 01 00 00 A0 BF 33 71 D5 5F 88 F3 [06:46:48]CommunicateWithHost err = 0 [06:46:48]CheckOFDResponse [06:46:48]1017 (14) - 77093643461234 [06:46:48]1041 (16) - 0000000000874939 [06:46:48]1040 (4) - 118968 [06:46:48]1012 (4) - 30.07.2024 00:55 [06:46:48]1206 (1) - 0 [06:46:48]OFD Sender: Remove packet 118968 [06:46:48]ProducePacketName [06:46:48]name=ofd_packets/00118968 [06:46:48]NVStorageDeleteData [06:46:48]Write to MH i2c: 01 00 00 D5 92 67 [06:46:48]Write i2c OK [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: 01 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: 01 07 00 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: 01 07 00 D5 92 00 00 00 00 00 0F 0D 8A [06:46:48]RasterBufferAndPrint [06:46:48]line [06:46:48]line [06:46:48]line [06:46:48]line [06:46:48]line [06:46:48]written 0, free lines is 3356 [06:46:48]MH_Cut [06:46:48]Write to MH i2c: D1 01 00 DC 92 01 40 [06:46:48]Write i2c OK [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: D1 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: D1 01 00 [06:46:48]MH_I2C_Read... [06:46:48]Read from MH i2c: D1 01 00 DC 92 00 3F [06:46:48]Write to MH i2c: 01 00 00 DD 92 6F [06:46:48]Write i2c OK [06:46:48]MH_I2C_Read... [06:46:49]OFD Sender: No OFD packet to send [06:46:49]*** Cut start [06:46:49]*** Partial cut [06:46:49]*** CUTSNS_PIN = 1 [06:46:49]*** CUTSNS_PIN = 0 [06:46:49]*** Brake cut motor [06:46:49]Read from MH i2c: 01 [06:46:49]MH_I2C_Read... [06:46:49]*** Stop cut motor [06:46:49]*** Cut end [06:46:49]Read from MH i2c: 01 07 00 [06:46:49]MH_I2C_Read... [06:46:49]Read from MH i2c: 01 07 00 DD 92 00 00 00 00 00 FF 0F 84 [06:46:49]process_action close_receipt done [06:46:49]requested_data is exist [06:46:49]produce_requested_data [06:46:49]requested_item fm.sn is exist - process it [06:46:49]wFMCommunicate request_size=4 [06:46:49]MH_SAM_APDU [06:46:49]CAPDU: 80 11 00 00 [06:46:49]Write to MH i2c: E2 08 00 DE 92 80 11 00 00 00 00 00 00 EA [06:46:49]Write i2c OK [06:46:49]MH_I2C_Read... [06:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:50]Read from MH i2c: E2 [06:46:50]MH_I2C_Read... [06:46:50]Read from MH i2c: E2 17 00 [06:46:50]MH_I2C_Read... [06:46:50]Read from MH i2c: E2 17 00 DE 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 45 [06:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:46:50]wFMCommunicate OK [06:46:50]requested_item fd.num is exist - process it [06:46:50]SAM_PROTO_GetFieldsCounters [06:46:50]wFMCommunicate request_size=4 [06:46:50]MH_SAM_APDU [06:46:50]CAPDU: 80 13 00 00 [06:46:50]Write to MH i2c: E2 08 00 DF 92 80 13 00 00 00 00 00 00 ED [06:46:50]Write i2c OK [06:46:50]MH_I2C_Read... [06:46:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:50]Read from MH i2c: E2 [06:46:50]MH_I2C_Read... [06:46:50]Read from MH i2c: E2 62 00 [06:46:50]MH_I2C_Read... [06:46:50]Read from MH i2c: E2 62 00 DF 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [06:46:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:50]wFMCommunicate OK [06:46:50]SAM_PROTO_GetFieldsCounters done [06:46:50]requested_item shift.num is exist - process it [06:46:50]requested_item shift.opened is exist - process it [06:46:50]req_shift_opened [06:46:50]FM_GetShiftState [06:46:50]SAM_PROTO_GetShiftState [06:46:50]wFMCommunicate request_size=4 [06:46:50]MH_SAM_APDU [06:46:50]CAPDU: 80 13 01 00 [06:46:50]Write to MH i2c: E2 08 00 E0 92 80 13 01 00 00 00 00 00 EF [06:46:50]Write i2c OK [06:46:50]MH_I2C_Read... [06:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:50]Read from MH i2c: E2 [06:46:50]MH_I2C_Read... [06:46:50]Read from MH i2c: E2 0E 00 [06:46:50]MH_I2C_Read... [06:46:50]Read from MH i2c: E2 0E 00 E0 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BA [06:46:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:46:50]wFMCommunicate OK [06:46:50]SAM_PROTO_GetShiftState done [06:46:50]FM_GetShiftState done [06:46:50]req_shift_opened done [06:46:50]requested_item shift.open_date is exist - process it [06:46:50]req_shift_open_date [06:46:50]req_shift_open_date done [06:46:50]produce_requested_data done [06:46:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118968,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:46:50]process_action_free close_receipt [06:46:50]json_value_free [06:46:50]json_value_free done [06:46:50]process_json_proto returns [06:46:50]Send response to host [06:46:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118968,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:46:50]free response buf [06:46:50]execute_script done [06:46:50]execute_script returns [06:46:50]free content buf [06:46:50]Sock 9.Close socket [06:46:50]Sock 9.Thread stoped [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:04]accept exits with 7 [06:48:04]New connection [06:48:04]New thread 3067239780 created [06:48:04]Thread 3067383140 joined [06:48:04]Waiting for new connection... [06:48:04] Sock 7.Parse request [06:48:04]Sock 7.Check first char [06:48:04]Sock 7.First char is OK [06:48:04]request: POST /json_proto HTTP/1.0 [06:48:04]Method: POST [06:48:04]URL: /json_proto [06:48:04]Method is POST - this is cgi request [06:48:04]url: /json_proto [06:48:04]query_string will be loaded in cgi processing [06:48:04]execute_cgi json_proto POST (null) [06:48:04]execute_cgi path=json_proto method=POST [06:48:04]POST find Content-Length [06:48:04]Host: 172.17.45.7:8080 [06:48:04]Content-Length: 677 [06:48:04]Content-Type: application/json [06:48:04] [06:48:04]POST finish read [06:48:04]Found Content-Length = 677 [06:48:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:04]execute_script... [06:48: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)949886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:04]POST & json_proto [06:48:04]process_json_proto [06:48:04]json parsed OK: [06:48:04]protocol is kg_v1.0 [06:48:04]action value=close_receipt [06:48:04]process_action close_receipt [06:48:04]cmd_close_receipt [06:48:04]MH_GetDate [06:48:04]Write to MH i2c: F0 00 00 E1 92 62 [06:48:04]Write i2c OK [06:48:04]MH_I2C_Read... [06:48:04]Read from MH i2c: F0 [06:48:04]MH_I2C_Read... [06:48:04]Read from MH i2c: F0 09 00 [06:48:04]MH_I2C_Read... [06:48:04]Read from MH i2c: F0 09 00 E1 92 00 AE 8C A8 66 90 0F 3E 66 F6 [06:48:04]GetLastDocTimeStamp 1722322015 [06:48:04]current date 1722322094 [06:48:04]FM_GetShiftState [06:48:04]SAM_PROTO_GetShiftState [06:48:04]wFMCommunicate request_size=4 [06:48:04]MH_SAM_APDU [06:48:04]CAPDU: 80 13 01 00 [06:48:04]Write to MH i2c: E2 08 00 E2 92 80 13 01 00 00 00 00 00 F1 [06:48:04]Write i2c OK [06:48:04]MH_I2C_Read... [06:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:04]Read from MH i2c: E2 [06:48:04]MH_I2C_Read... [06:48:04]Read from MH i2c: E2 0E 00 [06:48:04]MH_I2C_Read... [06:48:04]Read from MH i2c: E2 0E 00 E2 92 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BC [06:48:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:48:04]wFMCommunicate OK [06:48:04]SAM_PROTO_GetShiftState done [06:48:04]FM_GetShiftState done [06:48:04]opened in 1722298242 [06:48:04]opened+sec_in_day 1722384642 [06:48:04]quantity*price = 70044 [06:48:04]sum+1 = 70046 [06:48:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 21 30.07.2024 06:48 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118969 ФПД: 60031569032697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064814&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118969&fm=60031569032697&tin=02508201610067®Number=0000000000092660&sum=70000 [06:48:06]StoreToDocumentArchive [06:48:06]shift 435 fd 118969 [06:48:06]save to /storage/0435/doc_00118969 [06:48:06]save last doc name /storage/0435/doc_00118969 to /storage/kkm_last_doc_name [06:48:06]save OK [06:48:06]Clear old archive folders... [06:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:48:06]tlvbuf is 01EC06A0 [06:48:06]SAM_PROTO_ClearQueue [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 09 00 00 [06:48:06]Write to MH i2c: E2 08 00 EF 92 80 09 00 00 00 00 00 00 F3 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 EF 92 00 90 00 F5 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]SAM_PROTO_ClearQueue done [06:48:06]KKMCreateOFDPacket [06:48:06]OFDProtocolAddRootSTLVToBuf [06:48:06]FM_MakeSignedData [06:48:06]FM_MakeSignedData [06:48:06]SAM_PROTO_SignData [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 01 02 [06:48:06]Write to MH i2c: E2 08 00 F0 92 80 0D 01 02 00 00 00 00 FB [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 F0 92 00 90 00 F6 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=255 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AE 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 D0 01 00 35 04 06 00 36 [06:48:06]Write to MH i2c: E2 02 01 F1 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AE 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 D0 01 00 35 04 06 00 36 00 00 46 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 F1 92 00 90 00 F7 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=10 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 02 02 05 99 30 58 F5 F9 [06:48:06]Write to MH i2c: E2 0D 00 F2 92 80 0D 02 02 05 00 99 30 58 F5 F9 00 00 17 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 03 00 F2 92 00 90 00 F8 [06:48:06]RAPDU: 90 00 [06:48:06]wFMCommunicate OK [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 0D 03 02 [06:48:06]Write to MH i2c: E2 08 00 F3 92 80 0D 03 02 00 00 00 00 00 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 0B 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 0B 00 F3 92 00 2E 15 F3 61 C9 37 62 A9 90 00 A3 [06:48:06]RAPDU: 2E 15 F3 61 C9 37 62 A9 90 00 [06:48:06]wFMCommunicate OK [06:48:06]SAM_PROTO_SignData done [06:48:06]FM_MakeSignedData done [06:48:06]CreateOFDProtocolMessage [06:48:06]wFMCommunicate request_size=4 [06:48:06]MH_SAM_APDU [06:48:06]CAPDU: 80 11 00 00 [06:48:06]Write to MH i2c: E2 08 00 F4 92 80 11 00 00 00 00 00 00 00 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:06]Read from MH i2c: E2 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 17 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: E2 17 00 F4 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5B [06:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:48:06]wFMCommunicate OK [06:48:06]CreateOFDProtocolMessage done [06:48:06]OFDSenderStorePacket 118969 [06:48:06]StoreOFDPacket docnum=118969 [06:48:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5F CD 07 01 38 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AE 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 D0 01 00 35 04 06 00 36 99 30 58 F5 F9 2E 15 F3 61 C9 37 62 A9 [06:48:06]CheckFolder [06:48:06]dirname=/storage/ofd_packets [06:48:06]CheckFolder done [06:48:06]ProducePacketName [06:48:06]name=ofd_packets/00118969 [06:48:06]NVStorageSaveData ofd_packets/00118969 [06:48:06]File name is /storage/ofd_packets/00118969 [06:48:06]Write 301 bytes [06:48:06]NVStorageSaveData done [06:48:06]OFDSenderStorePacket done [06:48:06]KKMCreateOFDPacket done [06:48:06]NVStorageSaveData kkm_last_timestamp [06:48:06]File name is /storage/kkm_last_timestamp [06:48:06]Write 4 bytes [06:48:06]NVStorageSaveData done [06:48:06]ExternCall_PrintAddStr [06:48:06]wPrintStart [06:48:06]Write to MH i2c: 01 00 00 F5 92 87 [06:48:06]Write i2c OK [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: 01 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: 01 07 00 [06:48:06]MH_I2C_Read... [06:48:06]Read from MH i2c: 01 07 00 F5 92 00 00 00 00 00 FF 0F 9C [06:48:06]RasterBufferAndPrint [06:48:06]line Счет N : (1)949886 [06:48:06]line ИНН: 02508201610067 [06:48:06]line Контрольно-Кассовый Чек [06:48:06]line ПРОДАЖА [06:48:06]line ТРК (МРК, ГНК) : 63 [06:48:06]line Товар: 2710124500 [06:48:06]line Аи-95-К-3 [06:48:06]line 9.440 * 74.20 [06:48:06]line = 700.45 [06:48:06]line НДС 12% НСП 1% [06:48:06]line > о реализуемом товаре [06:48:06]line ОКРУГЛЕНИЕ: -0.45 [06:48:06]line ИТОГО: 700.00 [06:48:06]line Внесено: 700.00 [06:48:06]line СДАЧА: 0.00 [06:48:06]line НСП 1% : 6.20 [06:48:06]line НДС 12% : 74.38 [06:48:06]line Наличными: 700.00 [06:48:06]line Безнал.: 0.00 [06:48:06]line Место: АЗС № 134 "Партнер Нефть" [06:48:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:48:06]line СНО: Общий режим [06:48:06]line Чек 21 30.07.2024 06:48 [06:48:06]line Смена: 435 ФФД: 1.0 [06:48:06]line ЗНМ: 0300000044 [06:48:06]line РНМ: 0000000000092660 [06:48:06]line Версия ККМ: 001 [06:48:06]line ФМ: 0000000000874939 [06:48:06]line ФД: 118969 [06:48:06]line ФПД: 60031569032697 [06:48:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T064814&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118969&fm=60031569032697&tin=02508201610067®Number=0000000000092660&sum=70000 [06:48:06]OFD Sender: Processing packet 118969 [packets to send 86, broken 85] [06:48:06]ProducePacketName [06:48:06]name=ofd_packets/00118969 [06:48:06]OFD Sender: To server: pG, [06:48:06]CommunicateWithHost lk.salyk.kg:30040 [06:48:06]ConnectInit lk.salyk.kg [06:48:06]written 0, free lines is 4095 [06:48:07]Connected sock=10 [06: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 34 39 33 39 0F 01 00 00 5F CD 07 01 38 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AE 8C A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 D0 01 00 35 04 06 00 36 99 30 58 F5 F9 2E 15 F3 61 C9 37 62 A9 [06:48:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3E 5A 47 00 DA 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 D0 01 00 F4 03 04 00 3A 3A A8 66 B6 04 01 00 00 80 A1 8F B4 55 8B B0 A2 [06:48:07]CommunicateWithHost err = 0 [06:48:07]CheckOFDResponse [06:48:07]1017 (14) - 77093643461234 [06:48:07]1041 (16) - 0000000000874939 [06:48:07]1040 (4) - 118969 [06:48:07]1012 (4) - 30.07.2024 00:56 [06:48:07]1206 (1) - 0 [06:48:07]OFD Sender: Remove packet 118969 [06:48:07]ProducePacketName [06:48:07]name=ofd_packets/00118969 [06:48:07]NVStorageDeleteData [06:48:07]Write to MH i2c: 01 00 00 1F 93 B2 [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 07 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: 01 07 00 1F 93 00 00 00 00 00 E9 0C AE [06:48:07]RasterBufferAndPrint [06:48:07]line [06:48:07]line [06:48:07]line [06:48:07]line [06:48:07]line [06:48:07]written 0, free lines is 3314 [06:48:07]MH_Cut [06:48:07]Write to MH i2c: D1 01 00 26 93 01 8B [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: D1 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: D1 01 00 [06:48:07]MH_I2C_Read... [06:48:07]Read from MH i2c: D1 01 00 26 93 00 8A [06:48:07]Write to MH i2c: 01 00 00 27 93 BA [06:48:07]Write i2c OK [06:48:07]MH_I2C_Read... [06:48:07]OFD Sender: No OFD packet to send [06:48:08]*** Cut start [06:48:08]*** Partial cut [06:48:08]*** CUTSNS_PIN = 1 [06:48:08]*** CUTSNS_PIN = 0 [06:48:08]*** Brake cut motor [06:48:08]Read from MH i2c: 01 [06:48:08]MH_I2C_Read... [06:48:08]*** Stop cut motor [06:48:08]*** Cut end [06:48:08]Read from MH i2c: 01 07 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: 01 07 00 27 93 00 00 00 00 00 FF 0F CF [06:48:08]process_action close_receipt done [06:48:08]requested_data is exist [06:48:08]produce_requested_data [06:48:08]requested_item fm.sn is exist - process it [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 11 00 00 [06:48:08]Write to MH i2c: E2 08 00 28 93 80 11 00 00 00 00 00 00 35 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 17 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 17 00 28 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 90 [06:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:48:08]wFMCommunicate OK [06:48:08]requested_item fd.num is exist - process it [06:48:08]SAM_PROTO_GetFieldsCounters [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 13 00 00 [06:48:08]Write to MH i2c: E2 08 00 29 93 80 13 00 00 00 00 00 00 38 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 62 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 62 00 29 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [06:48:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 B9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:48:08]wFMCommunicate OK [06:48:08]SAM_PROTO_GetFieldsCounters done [06:48:08]requested_item shift.num is exist - process it [06:48:08]requested_item shift.opened is exist - process it [06:48:08]req_shift_opened [06:48:08]FM_GetShiftState [06:48:08]SAM_PROTO_GetShiftState [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 13 01 00 [06:48:08]Write to MH i2c: E2 08 00 2A 93 80 13 01 00 00 00 00 00 3A [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:09]Read from MH i2c: E2 0E 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 0E 00 2A 93 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 05 [06:48:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:48:09]wFMCommunicate OK [06:48:09]SAM_PROTO_GetShiftState done [06:48:09]FM_GetShiftState done [06:48:09]req_shift_opened done [06:48:09]requested_item shift.open_date is exist - process it [06:48:09]req_shift_open_date [06:48:09]req_shift_open_date done [06:48:09]produce_requested_data done [06:48:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118969,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:48:09]process_action_free close_receipt [06:48:09]json_value_free [06:48:09]json_value_free done [06:48:09]process_json_proto returns [06:48:09]Send response to host [06:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118969,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:48:09]free response buf [06:48:09]execute_script done [06:48:09]execute_script returns [06:48:09]free content buf [06:48:09]Sock 7.Close socket [06:48:09]Sock 7.Thread stoped [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:37]accept exits with 9 [06:52:37]New connection [06:52:37]New thread 3067383140 created [06:52:37]Thread 3067239780 joined [06:52:37]Waiting for new connection... [06:52:37] Sock 9.Parse request [06:52:37]Sock 9.Check first char [06:52:37]Sock 9.First char is OK [06:52:37]request: POST /json_proto HTTP/1.0 [06:52:37]Method: POST [06:52:37]URL: /json_proto [06:52:37]Method is POST - this is cgi request [06:52:37]url: /json_proto [06:52:37]query_string will be loaded in cgi processing [06:52:37]execute_cgi json_proto POST (null) [06:52:37]execute_cgi path=json_proto method=POST [06:52:37]POST find Content-Length [06:52:37]Host: 172.17.45.7:8080 [06:52:37]Content-Length: 677 [06:52:37]Content-Type: application/json [06:52:37] [06:52:37]POST finish read [06:52:37]Found Content-Length = 677 [06:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:37]execute_script... [06:52: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)949887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:52:37]POST & json_proto [06:52:37]process_json_proto [06:52:37]json parsed OK: [06:52:37]protocol is kg_v1.0 [06:52:37]action value=close_receipt [06:52:37]process_action close_receipt [06:52:37]cmd_close_receipt [06:52:37]MH_GetDate [06:52:37]Write to MH i2c: F0 00 00 2B 93 AD [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 09 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: F0 09 00 2B 93 00 BE 8D A8 66 90 0F 3E 66 52 [06:52:37]GetLastDocTimeStamp 1722322094 [06:52:37]current date 1722322366 [06:52:37]FM_GetShiftState [06:52:37]SAM_PROTO_GetShiftState [06:52:37]wFMCommunicate request_size=4 [06:52:37]MH_SAM_APDU [06:52:37]CAPDU: 80 13 01 00 [06:52:37]Write to MH i2c: E2 08 00 2C 93 80 13 01 00 00 00 00 00 3C [06:52:37]Write i2c OK [06:52:37]MH_I2C_Read... [06:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:37]Read from MH i2c: E2 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: E2 0E 00 [06:52:37]MH_I2C_Read... [06:52:37]Read from MH i2c: E2 0E 00 2C 93 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 07 [06:52:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:52:37]wFMCommunicate OK [06:52:37]SAM_PROTO_GetShiftState done [06:52:37]FM_GetShiftState done [06:52:37]opened in 1722298242 [06:52:37]opened+sec_in_day 1722384642 [06:52:37]quantity*price = 50036 [06:52:37]sum+1 = 50037 [06:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 22 30.07.2024 06:52 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118970 ФПД: 195006530463943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T065246&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118970&fm=195006530463943&tin=02508201610067®Number=0000000000092660&sum=50000 [06:52:38]StoreToDocumentArchive [06:52:38]shift 435 fd 118970 [06:52:38]save to /storage/0435/doc_00118970 [06:52:38]save last doc name /storage/0435/doc_00118970 to /storage/kkm_last_doc_name [06:52:38]save OK [06:52:38]Clear old archive folders... [06:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:52:38]tlvbuf is 02098730 [06:52:38]SAM_PROTO_ClearQueue [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 09 00 00 [06:52:38]Write to MH i2c: E2 08 00 39 93 80 09 00 00 00 00 00 00 3E [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 39 93 00 90 00 40 [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]SAM_PROTO_ClearQueue done [06:52:38]KKMCreateOFDPacket [06:52:38]OFDProtocolAddRootSTLVToBuf [06:52:38]FM_MakeSignedData [06:52:38]FM_MakeSignedData [06:52:38]SAM_PROTO_SignData [06:52:38]wFMCommunicate request_size=4 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 0D 01 02 [06:52:38]Write to MH i2c: E2 08 00 3A 93 80 0D 01 02 00 00 00 00 46 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 3A 93 00 90 00 41 [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]wFMCommunicate request_size=255 [06:52:38]MH_SAM_APDU [06:52: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D0 01 00 35 04 06 00 B1 [06:52:38]Write to MH i2c: E2 02 01 3B 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D0 01 00 35 04 06 00 B1 00 00 29 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:38]Read from MH i2c: E2 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 [06:52:38]MH_I2C_Read... [06:52:38]Read from MH i2c: E2 03 00 3B 93 00 90 00 42 [06:52:38]RAPDU: 90 00 [06:52:38]wFMCommunicate OK [06:52:38]wFMCommunicate request_size=10 [06:52:38]MH_SAM_APDU [06:52:38]CAPDU: 80 0D 02 02 05 5B 7E FA 28 C7 [06:52:38]Write to MH i2c: E2 0D 00 3C 93 80 0D 02 02 05 00 5B 7E FA 28 C7 00 00 15 [06:52:38]Write i2c OK [06:52:38]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 03 00 3C 93 00 90 00 43 [06:52:39]RAPDU: 90 00 [06:52:39]wFMCommunicate OK [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 0D 03 02 [06:52:39]Write to MH i2c: E2 08 00 3D 93 80 0D 03 02 00 00 00 00 4B [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 0B 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 0B 00 3D 93 00 81 71 29 31 08 22 98 D4 90 00 2E [06:52:39]RAPDU: 81 71 29 31 08 22 98 D4 90 00 [06:52:39]wFMCommunicate OK [06:52:39]SAM_PROTO_SignData done [06:52:39]FM_MakeSignedData done [06:52:39]CreateOFDProtocolMessage [06:52:39]wFMCommunicate request_size=4 [06:52:39]MH_SAM_APDU [06:52:39]CAPDU: 80 11 00 00 [06:52:39]Write to MH i2c: E2 08 00 3E 93 80 11 00 00 00 00 00 00 4B [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:39]Read from MH i2c: E2 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 17 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: E2 17 00 3E 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A6 [06:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:39]wFMCommunicate OK [06:52:39]CreateOFDProtocolMessage done [06:52:39]OFDSenderStorePacket 118970 [06:52:39]StoreOFDPacket docnum=118970 [06:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7B 1C 07 01 19 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D0 01 00 35 04 06 00 B1 5B 7E FA 28 C7 81 71 29 31 08 22 98 D4 [06:52:39]CheckFolder [06:52:39]dirname=/storage/ofd_packets [06:52:39]CheckFolder done [06:52:39]ProducePacketName [06:52:39]name=ofd_packets/00118970 [06:52:39]NVStorageSaveData ofd_packets/00118970 [06:52:39]File name is /storage/ofd_packets/00118970 [06:52:39]Write 301 bytes [06:52:39]NVStorageSaveData done [06:52:39]OFDSenderStorePacket done [06:52:39]KKMCreateOFDPacket done [06:52:39]NVStorageSaveData kkm_last_timestamp [06:52:39]File name is /storage/kkm_last_timestamp [06:52:39]Write 4 bytes [06:52:39]NVStorageSaveData done [06:52:39]ExternCall_PrintAddStr [06:52:39]wPrintStart [06:52:39]Write to MH i2c: 01 00 00 3F 93 D2 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 3F 93 00 00 00 00 00 FF 0F E7 [06:52:39]RasterBufferAndPrint [06:52:39]line Счет N : (1)949887 [06:52:39]line ИНН: 02508201610067 [06:52:39]line Контрольно-Кассовый Чек [06:52:39]line ПРОДАЖА [06:52:39]line ТРК (МРК, ГНК) : 51 [06:52:39]line Товар: 2710124130 [06:52:39]line Аи-92-К-4 [06:52:39]line 7.380 * 67.80 [06:52:39]line = 500.36 [06:52:39]line НДС 12% НСП 1% [06:52:39]line > о реализуемом товаре [06:52:39]line ОКРУГЛЕНИЕ: -0.36 [06:52:39]line ИТОГО: 500.00 [06:52:39]line Внесено: 500.00 [06:52:39]line СДАЧА: 0.00 [06:52:39]line НСП 1% : 4.43 [06:52:39]line НДС 12% : 53.14 [06:52:39]line Наличными: 500.00 [06:52:39]line Безнал.: 0.00 [06:52:39]line Место: АЗС № 134 "Партнер Нефть" [06:52:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:52:39]line СНО: Общий режим [06:52:39]line Чек 22 30.07.2024 06:52 [06:52:39]line Смена: 435 ФФД: 1.0 [06:52:39]line ЗНМ: 0300000044 [06:52:39]line РНМ: 0000000000092660 [06:52:39]line Версия ККМ: 001 [06:52:39]line ФМ: 0000000000874939 [06:52:39]line ФД: 118970 [06:52:39]line ФПД: 195006530463943 [06:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T065246&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118970&fm=195006530463943&tin=02508201610067®Number=0000000000092660&sum=50000 [06:52:39]OFD Sender: Processing packet 118970 [packets to send 86, broken 85] [06:52:39]ProducePacketName [06:52:39]name=ofd_packets/00118970 [06:52:39]OFD Sender: To server: pG, [06:52:39]CommunicateWithHost lk.salyk.kg:30040 [06:52:39]ConnectInit lk.salyk.kg [06:52:39]written 0, free lines is 4095 [06:52:39]Connected sock=10 [06:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7B 1C 07 01 19 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D0 01 00 35 04 06 00 B1 5B 7E FA 28 C7 81 71 29 31 08 22 98 D4 [06:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 FB 47 00 CC 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D0 01 00 F4 03 04 00 4A 3B A8 66 B6 04 01 00 00 EA 40 AD 83 E1 48 92 BD [06:52:39]CommunicateWithHost err = 0 [06:52:39]CheckOFDResponse [06:52:39]1017 (14) - 77093643461234 [06:52:39]1041 (16) - 0000000000874939 [06:52:39]1040 (4) - 118970 [06:52:39]1012 (4) - 30.07.2024 01:00 [06:52:39]1206 (1) - 0 [06:52:39]OFD Sender: Remove packet 118970 [06:52:39]ProducePacketName [06:52:39]name=ofd_packets/00118970 [06:52:39]NVStorageDeleteData [06:52:39]Write to MH i2c: 01 00 00 69 93 FC [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: 01 07 00 69 93 00 00 00 00 00 EF 0C FE [06:52:39]RasterBufferAndPrint [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]line [06:52:39]written 0, free lines is 3318 [06:52:39]MH_Cut [06:52:39]Write to MH i2c: D1 01 00 70 93 01 D5 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 01 00 [06:52:39]MH_I2C_Read... [06:52:39]Read from MH i2c: D1 01 00 70 93 00 D4 [06:52:39]Write to MH i2c: 01 00 00 71 93 04 [06:52:39]Write i2c OK [06:52:39]MH_I2C_Read... [06:52:40]OFD Sender: No OFD packet to send [06:52:40]*** Cut start [06:52:40]*** Partial cut [06:52:40]*** CUTSNS_PIN = 1 [06:52:40]*** CUTSNS_PIN = 0 [06:52:40]*** Brake cut motor [06:52:41]Read from MH i2c: 01 [06:52:41]*** Stop cut motor [06:52:41]*** Cut end [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: 01 07 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: 01 07 00 71 93 00 00 00 00 00 FF 0F 19 [06:52:41]process_action close_receipt done [06:52:41]requested_data is exist [06:52:41]produce_requested_data [06:52:41]requested_item fm.sn is exist - process it [06:52:41]wFMCommunicate request_size=4 [06:52:41]MH_SAM_APDU [06:52:41]CAPDU: 80 11 00 00 [06:52:41]Write to MH i2c: E2 08 00 72 93 80 11 00 00 00 00 00 00 7F [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 17 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 17 00 72 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DA [06:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:52:41]wFMCommunicate OK [06:52:41]requested_item fd.num is exist - process it [06:52:41]SAM_PROTO_GetFieldsCounters [06:52:41]wFMCommunicate request_size=4 [06:52:41]MH_SAM_APDU [06:52:41]CAPDU: 80 13 00 00 [06:52:41]Write to MH i2c: E2 08 00 73 93 80 13 00 00 00 00 00 00 82 [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 62 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 62 00 73 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [06:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:52:41]wFMCommunicate OK [06:52:41]SAM_PROTO_GetFieldsCounters done [06:52:41]requested_item shift.num is exist - process it [06:52:41]requested_item shift.opened is exist - process it [06:52:41]req_shift_opened [06:52:41]FM_GetShiftState [06:52:41]SAM_PROTO_GetShiftState [06:52:41]wFMCommunicate request_size=4 [06:52:41]MH_SAM_APDU [06:52:41]CAPDU: 80 13 01 00 [06:52:41]Write to MH i2c: E2 08 00 74 93 80 13 01 00 00 00 00 00 84 [06:52:41]Write i2c OK [06:52:41]MH_I2C_Read... [06:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:52:41]Read from MH i2c: E2 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 0E 00 [06:52:41]MH_I2C_Read... [06:52:41]Read from MH i2c: E2 0E 00 74 93 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4F [06:52:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:52:41]wFMCommunicate OK [06:52:41]SAM_PROTO_GetShiftState done [06:52:41]FM_GetShiftState done [06:52:41]req_shift_opened done [06:52:41]requested_item shift.open_date is exist - process it [06:52:41]req_shift_open_date [06:52:41]req_shift_open_date done [06:52:41]produce_requested_data done [06:52:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118970,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:52:41]process_action_free close_receipt [06:52:41]json_value_free [06:52:41]json_value_free done [06:52:41]process_json_proto returns [06:52:41]Send response to host [06:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118970,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:52:41]free response buf [06:52:41]execute_script done [06:52:41]execute_script returns [06:52:41]free content buf [06:52:41]Sock 9.Close socket [06:52:41]Sock 9.Thread stoped [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:36]accept exits with 7 [06:53:36]New connection [06:53:36]New thread 3067239780 created [06:53:36]Thread 3067383140 joined [06:53:36]Waiting for new connection... [06:53:36] Sock 7.Parse request [06:53:36]Sock 7.Check first char [06:53:36]Sock 7.First char is OK [06:53:36]request: POST /json_proto HTTP/1.0 [06:53:36]Method: POST [06:53:36]URL: /json_proto [06:53:36]Method is POST - this is cgi request [06:53:36]url: /json_proto [06:53:36]query_string will be loaded in cgi processing [06:53:36]execute_cgi json_proto POST (null) [06:53:36]execute_cgi path=json_proto method=POST [06:53:36]POST find Content-Length [06:53:36]Host: 172.17.45.7:8080 [06:53:36]Content-Length: 677 [06:53:36]Content-Type: application/json [06:53:36] [06:53:36]POST finish read [06:53:36]Found Content-Length = 677 [06:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:36]execute_script... [06:53: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)949888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:53:36]POST & json_proto [06:53:36]process_json_proto [06:53:36]json parsed OK: [06:53:36]protocol is kg_v1.0 [06:53:36]action value=close_receipt [06:53:36]process_action close_receipt [06:53:36]cmd_close_receipt [06:53:36]MH_GetDate [06:53:36]Write to MH i2c: F0 00 00 75 93 F7 [06:53:36]Write i2c OK [06:53:36]MH_I2C_Read... [06:53:36]Read from MH i2c: F0 [06:53:36]MH_I2C_Read... [06:53:36]Read from MH i2c: F0 09 00 [06:53:36]MH_I2C_Read... [06:53:36]Read from MH i2c: F0 09 00 75 93 00 FA 8D A8 66 90 0F 3E 66 D8 [06:53:36]GetLastDocTimeStamp 1722322366 [06:53:36]current date 1722322426 [06:53:36]FM_GetShiftState [06:53:36]SAM_PROTO_GetShiftState [06:53:36]wFMCommunicate request_size=4 [06:53:36]MH_SAM_APDU [06:53:36]CAPDU: 80 13 01 00 [06:53:36]Write to MH i2c: E2 08 00 76 93 80 13 01 00 00 00 00 00 86 [06:53:36]Write i2c OK [06:53:36]MH_I2C_Read... [06:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:36]Read from MH i2c: E2 [06:53:36]MH_I2C_Read... [06:53:36]Read from MH i2c: E2 0E 00 [06:53:36]MH_I2C_Read... [06:53:36]Read from MH i2c: E2 0E 00 76 93 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 51 [06:53:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:53:36]wFMCommunicate OK [06:53:36]SAM_PROTO_GetShiftState done [06:53:36]FM_GetShiftState done [06:53:36]opened in 1722298242 [06:53:36]opened+sec_in_day 1722384642 [06:53:36]quantity*price = 50036 [06:53:36]sum+1 = 50037 [06:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 23 30.07.2024 06:53 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118971 ФПД: 253627007887425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T065346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118971&fm=253627007887425&tin=02508201610067®Number=0000000000092660&sum=50000 [06:53:38]StoreToDocumentArchive [06:53:38]shift 435 fd 118971 [06:53:38]save to /storage/0435/doc_00118971 [06:53:38]save last doc name /storage/0435/doc_00118971 to /storage/kkm_last_doc_name [06:53:38]save OK [06:53:38]Clear old archive folders... [06:53:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:38]tlvbuf is 020D8450 [06:53:38]SAM_PROTO_ClearQueue [06:53:38]wFMCommunicate request_size=4 [06:53:38]MH_SAM_APDU [06:53:38]CAPDU: 80 09 00 00 [06:53:38]Write to MH i2c: E2 08 00 83 93 80 09 00 00 00 00 00 00 88 [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:38]Read from MH i2c: E2 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 83 93 00 90 00 8A [06:53:38]RAPDU: 90 00 [06:53:38]wFMCommunicate OK [06:53:38]SAM_PROTO_ClearQueue done [06:53:38]KKMCreateOFDPacket [06:53:38]OFDProtocolAddRootSTLVToBuf [06:53:38]FM_MakeSignedData [06:53:38]FM_MakeSignedData [06:53:38]SAM_PROTO_SignData [06:53:38]wFMCommunicate request_size=4 [06:53:38]MH_SAM_APDU [06:53:38]CAPDU: 80 0D 01 02 [06:53:38]Write to MH i2c: E2 08 00 84 93 80 0D 01 02 00 00 00 00 90 [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:38]Read from MH i2c: E2 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 84 93 00 90 00 8B [06:53:38]RAPDU: 90 00 [06:53:38]wFMCommunicate OK [06:53:38]wFMCommunicate request_size=255 [06:53:38]MH_SAM_APDU [06: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 FA 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB D0 01 00 35 04 06 00 E6 [06:53:38]Write to MH i2c: E2 02 01 85 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 FA 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB D0 01 00 35 04 06 00 E6 00 00 E6 [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:38]Read from MH i2c: E2 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 85 93 00 90 00 8C [06:53:38]RAPDU: 90 00 [06:53:38]wFMCommunicate OK [06:53:38]wFMCommunicate request_size=10 [06:53:38]MH_SAM_APDU [06:53:38]CAPDU: 80 0D 02 02 05 AC 23 B5 E8 41 [06:53:38]Write to MH i2c: E2 0D 00 86 93 80 0D 02 02 05 00 AC 23 B5 E8 41 00 00 4A [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:38]Read from MH i2c: E2 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 03 00 86 93 00 90 00 8D [06:53:38]RAPDU: 90 00 [06:53:38]wFMCommunicate OK [06:53:38]wFMCommunicate request_size=4 [06:53:38]MH_SAM_APDU [06:53:38]CAPDU: 80 0D 03 02 [06:53:38]Write to MH i2c: E2 08 00 87 93 80 0D 03 02 00 00 00 00 95 [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:38]Read from MH i2c: E2 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 0B 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 0B 00 87 93 00 2B 5F 83 8E 4D 3A CE F1 90 00 77 [06:53:38]RAPDU: 2B 5F 83 8E 4D 3A CE F1 90 00 [06:53:38]wFMCommunicate OK [06:53:38]SAM_PROTO_SignData done [06:53:38]FM_MakeSignedData done [06:53:38]CreateOFDProtocolMessage [06:53:38]wFMCommunicate request_size=4 [06:53:38]MH_SAM_APDU [06:53:38]CAPDU: 80 11 00 00 [06:53:38]Write to MH i2c: E2 08 00 88 93 80 11 00 00 00 00 00 00 95 [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:38]Read from MH i2c: E2 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 17 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: E2 17 00 88 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F0 [06:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:53:38]wFMCommunicate OK [06:53:38]CreateOFDProtocolMessage done [06:53:38]OFDSenderStorePacket 118971 [06:53:38]StoreOFDPacket docnum=118971 [06:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 58 0F 07 01 56 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 FA 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB D0 01 00 35 04 06 00 E6 AC 23 B5 E8 41 2B 5F 83 8E 4D 3A CE F1 [06:53:38]CheckFolder [06:53:38]dirname=/storage/ofd_packets [06:53:38]CheckFolder done [06:53:38]ProducePacketName [06:53:38]name=ofd_packets/00118971 [06:53:38]NVStorageSaveData ofd_packets/00118971 [06:53:38]File name is /storage/ofd_packets/00118971 [06:53:38]Write 301 bytes [06:53:38]NVStorageSaveData done [06:53:38]OFDSenderStorePacket done [06:53:38]KKMCreateOFDPacket done [06:53:38]NVStorageSaveData kkm_last_timestamp [06:53:38]File name is /storage/kkm_last_timestamp [06:53:38]Write 4 bytes [06:53:38]NVStorageSaveData done [06:53:38]ExternCall_PrintAddStr [06:53:38]wPrintStart [06:53:38]Write to MH i2c: 01 00 00 89 93 1C [06:53:38]Write i2c OK [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: 01 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: 01 07 00 [06:53:38]MH_I2C_Read... [06:53:38]Read from MH i2c: 01 07 00 89 93 00 00 00 00 00 FF 0F 31 [06:53:38]RasterBufferAndPrint [06:53:38]line Счет N : (1)949888 [06:53:38]line ИНН: 02508201610067 [06:53:38]line Контрольно-Кассовый Чек [06:53:38]line ПРОДАЖА [06:53:38]line ТРК (МРК, ГНК) : 41 [06:53:38]line Товар: 2710124130 [06:53:38]line Аи-92-К-4 [06:53:38]line 7.380 * 67.80 [06:53:38]line = 500.36 [06:53:38]line НДС 12% НСП 1% [06:53:38]line > о реализуемом товаре [06:53:38]line ОКРУГЛЕНИЕ: -0.36 [06:53:38]line ИТОГО: 500.00 [06:53:38]line Внесено: 500.00 [06:53:38]line СДАЧА: 0.00 [06:53:38]line НСП 1% : 4.43 [06:53:38]line НДС 12% : 53.14 [06:53:38]line Наличными: 500.00 [06:53:38]line Безнал.: 0.00 [06:53:38]line Место: АЗС № 134 "Партнер Нефть" [06:53:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [06:53:38]line СНО: Общий режим [06:53:38]line Чек 23 30.07.2024 06:53 [06:53:38]line Смена: 435 ФФД: 1.0 [06:53:38]line ЗНМ: 0300000044 [06:53:38]line РНМ: 0000000000092660 [06:53:38]line Версия ККМ: 001 [06:53:38]line ФМ: 0000000000874939 [06:53:38]line ФД: 118971 [06:53:38]line ФПД: 253627007887425 [06:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T065346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118971&fm=253627007887425&tin=02508201610067®Number=0000000000092660&sum=50000 [06:53:38]written 0, free lines is 4095 [06:53:38]OFD Sender: Processing packet 118971 [packets to send 86, broken 85] [06:53:38]ProducePacketName [06:53:38]name=ofd_packets/00118971 [06:53:38]OFD Sender: To server: pG, [06:53:38]CommunicateWithHost lk.salyk.kg:30040 [06:53:38]ConnectInit lk.salyk.kg [06:53:38]Connected sock=10 [06:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 58 0F 07 01 56 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 FA 8D A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BB D0 01 00 35 04 06 00 E6 AC 23 B5 E8 41 2B 5F 83 8E 4D 3A CE F1 [06:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DA A0 47 00 EE 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 34 39 33 39 10 04 04 00 BB D0 01 00 F4 03 04 00 85 3B A8 66 B6 04 01 00 00 2E AC 04 28 2B 70 D9 C6 [06:53:38]CommunicateWithHost err = 0 [06:53:38]CheckOFDResponse [06:53:38]1017 (14) - 77093643461234 [06:53:38]1041 (16) - 0000000000874939 [06:53:38]1040 (4) - 118971 [06:53:38]1012 (4) - 30.07.2024 01:01 [06:53:38]1206 (1) - 0 [06:53:38]OFD Sender: Remove packet 118971 [06:53:38]ProducePacketName [06:53:38]name=ofd_packets/00118971 [06:53:38]NVStorageDeleteData [06:53:39]Write to MH i2c: 01 00 00 B3 93 46 [06:53:39]Write i2c OK [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: 01 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: 01 07 00 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: 01 07 00 B3 93 00 00 00 00 00 E4 0C 3D [06:53:39]RasterBufferAndPrint [06:53:39]line [06:53:39]line [06:53:39]line [06:53:39]line [06:53:39]line [06:53:39]written 0, free lines is 3309 [06:53:39]MH_Cut [06:53:39]Write to MH i2c: D1 01 00 BA 93 01 1F [06:53:39]Write i2c OK [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: D1 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: D1 01 00 [06:53:39]MH_I2C_Read... [06:53:39]Read from MH i2c: D1 01 00 BA 93 00 1E [06:53:39]Write to MH i2c: 01 00 00 BB 93 4E [06:53:39]Write i2c OK [06:53:39]MH_I2C_Read... [06:53:39]OFD Sender: No OFD packet to send [06:53:39]*** Cut start [06:53:39]*** Partial cut [06:53:39]*** CUTSNS_PIN = 1 [06:53:39]*** CUTSNS_PIN = 0 [06:53:40]*** Brake cut motor [06:53:40]Read from MH i2c: 01 [06:53:40]MH_I2C_Read... [06:53:40]*** Stop cut motor [06:53:40]*** Cut end [06:53:40]Read from MH i2c: 01 07 00 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: 01 07 00 BB 93 00 00 00 00 00 FF 0F 63 [06:53:40]process_action close_receipt done [06:53:40]requested_data is exist [06:53:40]produce_requested_data [06:53:40]requested_item fm.sn is exist - process it [06:53:40]wFMCommunicate request_size=4 [06:53:40]MH_SAM_APDU [06:53:40]CAPDU: 80 11 00 00 [06:53:40]Write to MH i2c: E2 08 00 BC 93 80 11 00 00 00 00 00 00 C9 [06:53:40]Write i2c OK [06:53:40]MH_I2C_Read... [06:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:40]Read from MH i2c: E2 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 17 00 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 17 00 BC 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [06:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [06:53:40]wFMCommunicate OK [06:53:40]requested_item fd.num is exist - process it [06:53:40]SAM_PROTO_GetFieldsCounters [06:53:40]wFMCommunicate request_size=4 [06:53:40]MH_SAM_APDU [06:53:40]CAPDU: 80 13 00 00 [06:53:40]Write to MH i2c: E2 08 00 BD 93 80 13 00 00 00 00 00 00 CC [06:53:40]Write i2c OK [06:53:40]MH_I2C_Read... [06:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:40]Read from MH i2c: E2 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 62 00 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 62 00 BD 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [06:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:53:40]wFMCommunicate OK [06:53:40]SAM_PROTO_GetFieldsCounters done [06:53:40]requested_item shift.num is exist - process it [06:53:40]requested_item shift.opened is exist - process it [06:53:40]req_shift_opened [06:53:40]FM_GetShiftState [06:53:40]SAM_PROTO_GetShiftState [06:53:40]wFMCommunicate request_size=4 [06:53:40]MH_SAM_APDU [06:53:40]CAPDU: 80 13 01 00 [06:53:40]Write to MH i2c: E2 08 00 BE 93 80 13 01 00 00 00 00 00 CE [06:53:40]Write i2c OK [06:53:40]MH_I2C_Read... [06:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:40]Read from MH i2c: E2 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 0E 00 [06:53:40]MH_I2C_Read... [06:53:40]Read from MH i2c: E2 0E 00 BE 93 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [06:53:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [06:53:40]wFMCommunicate OK [06:53:40]SAM_PROTO_GetShiftState done [06:53:40]FM_GetShiftState done [06:53:40]req_shift_opened done [06:53:40]requested_item shift.open_date is exist - process it [06:53:40]req_shift_open_date [06:53:40]req_shift_open_date done [06:53:40]produce_requested_data done [06:53:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118971,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [06:53:40]process_action_free close_receipt [06:53:40]json_value_free [06:53:40]json_value_free done [06:53:40]process_json_proto returns [06:53:40]Send response to host [06:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118971,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [06:53:40]free response buf [06:53:40]execute_script done [06:53:40]execute_script returns [06:53:40]free content buf [06:53:40]Sock 7.Close socket [06:53:40]Sock 7.Thread stoped [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:07:57]accept exits with 9 [07:07:57]New connection [07:07:57]New thread 3067383140 created [07:07:57]Thread 3067239780 joined [07:07:57]Waiting for new connection... [07:07:57] Sock 9.Parse request [07:07:57]Sock 9.Check first char [07:07:57]Sock 9.First char is OK [07:07:57]request: POST /json_proto HTTP/1.0 [07:07:57]Method: POST [07:07:57]URL: /json_proto [07:07:57]Method is POST - this is cgi request [07:07:57]url: /json_proto [07:07:57]query_string will be loaded in cgi processing [07:07:57]execute_cgi json_proto POST (null) [07:07:57]execute_cgi path=json_proto method=POST [07:07:57]POST find Content-Length [07:07:57]Host: 172.17.45.7:8080 [07:07:57]Content-Length: 679 [07:07:57]Content-Type: application/json [07:07:57] [07:07:57]POST finish read [07:07:57]Found Content-Length = 679 [07:07:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:57]execute_script... [07:07:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:57]POST & json_proto [07:07:57]process_json_proto [07:07:57]json parsed OK: [07:07:57]protocol is kg_v1.0 [07:07:57]action value=close_receipt [07:07:57]process_action close_receipt [07:07:57]cmd_close_receipt [07:07:57]MH_GetDate [07:07:57]Write to MH i2c: F0 00 00 BF 93 41 [07:07:57]Write i2c OK [07:07:57]MH_I2C_Read... [07:07:57]Read from MH i2c: F0 [07:07:57]MH_I2C_Read... [07:07:57]Read from MH i2c: F0 09 00 [07:07:57]MH_I2C_Read... [07:07:57]Read from MH i2c: F0 09 00 BF 93 00 56 91 A8 66 90 0F 3E 66 82 [07:07:57]GetLastDocTimeStamp 1722322426 [07:07:57]current date 1722323286 [07:07:57]FM_GetShiftState [07:07:57]SAM_PROTO_GetShiftState [07:07:57]wFMCommunicate request_size=4 [07:07:57]MH_SAM_APDU [07:07:57]CAPDU: 80 13 01 00 [07:07:57]Write to MH i2c: E2 08 00 C0 93 80 13 01 00 00 00 00 00 D0 [07:07:57]Write i2c OK [07:07:57]MH_I2C_Read... [07:07:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:57]Read from MH i2c: E2 [07:07:57]MH_I2C_Read... [07:07:57]Read from MH i2c: E2 0E 00 [07:07:57]MH_I2C_Read... [07:07:57]Read from MH i2c: E2 0E 00 C0 93 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9B [07:07:57]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:07:57]wFMCommunicate OK [07:07:57]SAM_PROTO_GetShiftState done [07:07:57]FM_GetShiftState done [07:07:57]opened in 1722298242 [07:07:57]opened+sec_in_day 1722384642 [07:07:57]quantity*price = 150037 [07:07:57]sum+1 = 150039 [07:07:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 24 30.07.2024 07:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118972 ФПД: 248387257303026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T070806&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118972&fm=248387257303026&tin=02508201610067®Number=0000000000092660&sum=150000 [07:07:58]StoreToDocumentArchive [07:07:58]shift 435 fd 118972 [07:07:58]save to /storage/0435/doc_00118972 [07:07:58]save last doc name /storage/0435/doc_00118972 to /storage/kkm_last_doc_name [07:07:58]save OK [07:07:58]Clear old archive folders... [07:07:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:07:58]tlvbuf is 01E56BA0 [07:07:58]SAM_PROTO_ClearQueue [07:07:58]wFMCommunicate request_size=4 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 09 00 00 [07:07:58]Write to MH i2c: E2 08 00 CD 93 80 09 00 00 00 00 00 00 D2 [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:58]Read from MH i2c: E2 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 CD 93 00 90 00 D4 [07:07:58]RAPDU: 90 00 [07:07:58]wFMCommunicate OK [07:07:58]SAM_PROTO_ClearQueue done [07:07:58]KKMCreateOFDPacket [07:07:58]OFDProtocolAddRootSTLVToBuf [07:07:58]FM_MakeSignedData [07:07:58]FM_MakeSignedData [07:07:58]SAM_PROTO_SignData [07:07:58]wFMCommunicate request_size=4 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 0D 01 02 [07:07:58]Write to MH i2c: E2 08 00 CE 93 80 0D 01 02 00 00 00 00 DA [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:58]Read from MH i2c: E2 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 CE 93 00 90 00 D5 [07:07:58]RAPDU: 90 00 [07:07:58]wFMCommunicate OK [07:07:58]wFMCommunicate request_size=255 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 56 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC D0 01 00 35 04 06 00 E1 E8 2A 3C [07:07:58]Write to MH i2c: E2 02 01 CF 93 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 56 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC D0 01 00 35 04 06 00 E1 E8 2A 3C 00 00 5E [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:58]Read from MH i2c: E2 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 CF 93 00 90 00 D6 [07:07:58]RAPDU: 90 00 [07:07:58]wFMCommunicate OK [07:07:58]wFMCommunicate request_size=7 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 0D 02 02 02 FF F2 [07:07:58]Write to MH i2c: E2 0A 00 D0 93 80 0D 02 02 02 00 FF F2 00 00 D2 [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:58]Read from MH i2c: E2 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 03 00 D0 93 00 90 00 D7 [07:07:58]RAPDU: 90 00 [07:07:58]wFMCommunicate OK [07:07:58]wFMCommunicate request_size=4 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 0D 03 02 [07:07:58]Write to MH i2c: E2 08 00 D1 93 80 0D 03 02 00 00 00 00 DF [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:58]Read from MH i2c: E2 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 0B 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 0B 00 D1 93 00 F9 D2 7D F8 18 5F B4 9E 90 00 E9 [07:07:58]RAPDU: F9 D2 7D F8 18 5F B4 9E 90 00 [07:07:58]wFMCommunicate OK [07:07:58]SAM_PROTO_SignData done [07:07:58]FM_MakeSignedData done [07:07:58]CreateOFDProtocolMessage [07:07:58]wFMCommunicate request_size=4 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 11 00 00 [07:07:58]Write to MH i2c: E2 08 00 D2 93 80 11 00 00 00 00 00 00 DF [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:59]Read from MH i2c: E2 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: E2 17 00 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: E2 17 00 D2 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3A [07:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:07:59]wFMCommunicate OK [07:07:59]CreateOFDProtocolMessage done [07:07:59]OFDSenderStorePacket 118972 [07:07:59]StoreOFDPacket docnum=118972 [07:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 48 04 01 9C 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 56 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC D0 01 00 35 04 06 00 E1 E8 2A 3C FF F2 F9 D2 7D F8 18 5F B4 9E [07:07:59]CheckFolder [07:07:59]dirname=/storage/ofd_packets [07:07:59]CheckFolder done [07:07:59]ProducePacketName [07:07:59]name=ofd_packets/00118972 [07:07:59]NVStorageSaveData ofd_packets/00118972 [07:07:59]File name is /storage/ofd_packets/00118972 [07:07:59]Write 298 bytes [07:07:59]NVStorageSaveData done [07:07:59]OFDSenderStorePacket done [07:07:59]KKMCreateOFDPacket done [07:07:59]NVStorageSaveData kkm_last_timestamp [07:07:59]File name is /storage/kkm_last_timestamp [07:07:59]Write 4 bytes [07:07:59]NVStorageSaveData done [07:07:59]ExternCall_PrintAddStr [07:07:59]wPrintStart [07:07:59]Write to MH i2c: 01 00 00 D3 93 66 [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: 01 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: 01 07 00 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: 01 07 00 D3 93 00 00 00 00 00 FF 0F 7B [07:07:59]RasterBufferAndPrint [07:07:59]line Счет N : (1)949890 [07:07:59]line ИНН: 02508201610067 [07:07:59]line Контрольно-Кассовый Чек [07:07:59]line ПРОДАЖА [07:07:59]line ТРК (МРК, ГНК) : 44 [07:07:59]line Товар: 2710194800 [07:07:59]line ДТ-К-5 [07:07:59]line 19.690 * 76.20 [07:07:59]line = 1500.38 [07:07:59]line НДС 12% НСП 1% [07:07:59]line > о реализуемом товаре [07:07:59]line ОКРУГЛЕНИЕ: -0.38 [07:07:59]line ИТОГО: 1500.00 [07:07:59]line Внесено: 1500.00 [07:07:59]line СДАЧА: 0.00 [07:07:59]line НСП 1% : 13.28 [07:07:59]line НДС 12% : 159.33 [07:07:59]line Наличными: 1500.00 [07:07:59]line Безнал.: 0.00 [07:07:59]line Место: АЗС № 134 "Партнер Нефть" [07:07:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:07:59]line СНО: Общий режим [07:07:59]line Чек 24 30.07.2024 07:08 [07:07:59]line Смена: 435 ФФД: 1.0 [07:07:59]line ЗНМ: 0300000044 [07:07:59]line РНМ: 0000000000092660 [07:07:59]line Версия ККМ: 001 [07:07:59]line ФМ: 0000000000874939 [07:07:59]line ФД: 118972 [07:07:59]line ФПД: 248387257303026 [07:07:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T070806&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118972&fm=248387257303026&tin=02508201610067®Number=0000000000092660&sum=150000 [07:07:59]OFD Sender: Processing packet 118972 [packets to send 86, broken 85] [07:07:59]ProducePacketName [07:07:59]name=ofd_packets/00118972 [07:07:59]OFD Sender: To server: pG, [07:07:59]CommunicateWithHost lk.salyk.kg:30040 [07:07:59]ConnectInit lk.salyk.kg [07:07:59]written 0, free lines is 4095 [07:07:59]Connected sock=10 [07:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 40 48 04 01 9C 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 56 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BC D0 01 00 35 04 06 00 E1 E8 2A 3C FF F2 F9 D2 7D F8 18 5F B4 9E [07:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BA 4B 47 00 28 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 34 39 33 39 10 04 04 00 BC D0 01 00 F4 03 04 00 E2 3E A8 66 B6 04 01 00 00 4F 8B 56 C3 7E DF 18 9E [07:07:59]CommunicateWithHost err = 0 [07:07:59]CheckOFDResponse [07:07:59]1017 (14) - 77093643461234 [07:07:59]1041 (16) - 0000000000874939 [07:07:59]1040 (4) - 118972 [07:07:59]1012 (4) - 30.07.2024 01:16 [07:07:59]1206 (1) - 0 [07:07:59]OFD Sender: Remove packet 118972 [07:07:59]ProducePacketName [07:07:59]name=ofd_packets/00118972 [07:07:59]NVStorageDeleteData [07:07:59]Write to MH i2c: 01 00 00 FD 93 90 [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: 01 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: 01 07 00 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: 01 07 00 FD 93 00 00 00 00 00 D1 0C 74 [07:07:59]RasterBufferAndPrint [07:07:59]line [07:07:59]line [07:07:59]line [07:07:59]line [07:07:59]line [07:07:59]written 0, free lines is 3288 [07:07:59]MH_Cut [07:07:59]Write to MH i2c: D1 01 00 04 94 01 6A [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: D1 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: D1 01 00 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: D1 01 00 04 94 00 69 [07:07:59]Write to MH i2c: 01 00 00 05 94 99 [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:08:00]OFD Sender: No OFD packet to send [07:08:00]*** Cut start [07:08:00]*** Partial cut [07:08:00]*** CUTSNS_PIN = 1 [07:08:00]*** CUTSNS_PIN = 0 [07:08:00]*** Brake cut motor [07:08:01]Read from MH i2c: 01 [07:08:01]MH_I2C_Read... [07:08:01]*** Stop cut motor [07:08:01]*** Cut end [07:08:01]Read from MH i2c: 01 07 00 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: 01 07 00 05 94 00 00 00 00 00 FF 0F AE [07:08:01]process_action close_receipt done [07:08:01]requested_data is exist [07:08:01]produce_requested_data [07:08:01]requested_item fm.sn is exist - process it [07:08:01]wFMCommunicate request_size=4 [07:08:01]MH_SAM_APDU [07:08:01]CAPDU: 80 11 00 00 [07:08:01]Write to MH i2c: E2 08 00 06 94 80 11 00 00 00 00 00 00 14 [07:08:01]Write i2c OK [07:08:01]MH_I2C_Read... [07:08:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:01]Read from MH i2c: E2 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 17 00 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 17 00 06 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [07:08:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:08:01]wFMCommunicate OK [07:08:01]requested_item fd.num is exist - process it [07:08:01]SAM_PROTO_GetFieldsCounters [07:08:01]wFMCommunicate request_size=4 [07:08:01]MH_SAM_APDU [07:08:01]CAPDU: 80 13 00 00 [07:08:01]Write to MH i2c: E2 08 00 07 94 80 13 00 00 00 00 00 00 17 [07:08:01]Write i2c OK [07:08:01]MH_I2C_Read... [07:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:01]Read from MH i2c: E2 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 62 00 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 62 00 07 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [07:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:01]wFMCommunicate OK [07:08:01]SAM_PROTO_GetFieldsCounters done [07:08:01]requested_item shift.num is exist - process it [07:08:01]requested_item shift.opened is exist - process it [07:08:01]req_shift_opened [07:08:01]FM_GetShiftState [07:08:01]SAM_PROTO_GetShiftState [07:08:01]wFMCommunicate request_size=4 [07:08:01]MH_SAM_APDU [07:08:01]CAPDU: 80 13 01 00 [07:08:01]Write to MH i2c: E2 08 00 08 94 80 13 01 00 00 00 00 00 19 [07:08:01]Write i2c OK [07:08:01]MH_I2C_Read... [07:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:01]Read from MH i2c: E2 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 0E 00 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 0E 00 08 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E4 [07:08:01]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:08:01]wFMCommunicate OK [07:08:01]SAM_PROTO_GetShiftState done [07:08:01]FM_GetShiftState done [07:08:01]req_shift_opened done [07:08:01]requested_item shift.open_date is exist - process it [07:08:01]req_shift_open_date [07:08:01]req_shift_open_date done [07:08:01]produce_requested_data done [07:08:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118972,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:08:01]process_action_free close_receipt [07:08:01]json_value_free [07:08:01]json_value_free done [07:08:01]process_json_proto returns [07:08:01]Send response to host [07:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118972,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:08:01]free response buf [07:08:01]execute_script done [07:08:01]execute_script returns [07:08:01]free content buf [07:08:01]Sock 9.Close socket [07:08:01]Sock 9.Thread stoped [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:27]accept exits with 7 [07:09:27]New connection [07:09:27]New thread 3067239780 created [07:09:27]Thread 3067383140 joined [07:09:27]Waiting for new connection... [07:09:27] Sock 7.Parse request [07:09:27]Sock 7.Check first char [07:09:27]Sock 7.First char is OK [07:09:27]request: POST /json_proto HTTP/1.0 [07:09:27]Method: POST [07:09:27]URL: /json_proto [07:09:27]Method is POST - this is cgi request [07:09:27]url: /json_proto [07:09:27]query_string will be loaded in cgi processing [07:09:27]execute_cgi json_proto POST (null) [07:09:27]execute_cgi path=json_proto method=POST [07:09:27]POST find Content-Length [07:09:27]Host: 172.17.45.7:8080 [07:09:27]Content-Length: 679 [07:09:27]Content-Type: application/json [07:09:27] [07:09:27]POST finish read [07:09:27]Found Content-Length = 679 [07:09:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:27]execute_script... [07:09:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:27]POST & json_proto [07:09:27]process_json_proto [07:09:27]json parsed OK: [07:09:27]protocol is kg_v1.0 [07:09:27]action value=close_receipt [07:09:27]process_action close_receipt [07:09:27]cmd_close_receipt [07:09:27]MH_GetDate [07:09:27]Write to MH i2c: F0 00 00 09 94 8C [07:09:27]Write i2c OK [07:09:27]MH_I2C_Read... [07:09:27]Read from MH i2c: F0 [07:09:27]MH_I2C_Read... [07:09:27]Read from MH i2c: F0 09 00 [07:09:27]MH_I2C_Read... [07:09:27]Read from MH i2c: F0 09 00 09 94 00 B0 91 A8 66 90 0F 3E 66 27 [07:09:27]GetLastDocTimeStamp 1722323286 [07:09:27]current date 1722323376 [07:09:27]FM_GetShiftState [07:09:27]SAM_PROTO_GetShiftState [07:09:27]wFMCommunicate request_size=4 [07:09:27]MH_SAM_APDU [07:09:27]CAPDU: 80 13 01 00 [07:09:27]Write to MH i2c: E2 08 00 0A 94 80 13 01 00 00 00 00 00 1B [07:09:27]Write i2c OK [07:09:27]MH_I2C_Read... [07:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:27]Read from MH i2c: E2 [07:09:27]MH_I2C_Read... [07:09:27]Read from MH i2c: E2 0E 00 [07:09:27]MH_I2C_Read... [07:09:27]Read from MH i2c: E2 0E 00 0A 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E6 [07:09:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:09:27]wFMCommunicate OK [07:09:27]SAM_PROTO_GetShiftState done [07:09:27]FM_GetShiftState done [07:09:27]opened in 1722298242 [07:09:27]opened+sec_in_day 1722384642 [07:09:27]quantity*price = 300075 [07:09:27]sum+1 = 300077 [07:09:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 25 30.07.2024 07:09 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118973 ФПД: 60714009673096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T070936&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118973&fm=60714009673096&tin=02508201610067®Number=0000000000092660&sum=300000 [07:09:28]StoreToDocumentArchive [07:09:28]shift 435 fd 118973 [07:09:28]save to /storage/0435/doc_00118973 [07:09:28]save last doc name /storage/0435/doc_00118973 to /storage/kkm_last_doc_name [07:09:28]save OK [07:09:28]Clear old archive folders... [07:09:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:09:28]tlvbuf is 01E4D250 [07:09:28]SAM_PROTO_ClearQueue [07:09:28]wFMCommunicate request_size=4 [07:09:28]MH_SAM_APDU [07:09:28]CAPDU: 80 09 00 00 [07:09:28]Write to MH i2c: E2 08 00 17 94 80 09 00 00 00 00 00 00 1D [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:28]Read from MH i2c: E2 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 17 94 00 90 00 1F [07:09:28]RAPDU: 90 00 [07:09:28]wFMCommunicate OK [07:09:28]SAM_PROTO_ClearQueue done [07:09:28]KKMCreateOFDPacket [07:09:28]OFDProtocolAddRootSTLVToBuf [07:09:28]FM_MakeSignedData [07:09:28]FM_MakeSignedData [07:09:28]SAM_PROTO_SignData [07:09:28]wFMCommunicate request_size=4 [07:09:28]MH_SAM_APDU [07:09:28]CAPDU: 80 0D 01 02 [07:09:28]Write to MH i2c: E2 08 00 18 94 80 0D 01 02 00 00 00 00 25 [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:28]Read from MH i2c: E2 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 18 94 00 90 00 20 [07:09:28]RAPDU: 90 00 [07:09:28]wFMCommunicate OK [07:09:28]wFMCommunicate request_size=255 [07:09:28]MH_SAM_APDU [07:09:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B0 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD D0 01 00 35 04 06 00 37 38 14 FA [07:09:28]Write to MH i2c: E2 02 01 19 94 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B0 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD D0 01 00 35 04 06 00 37 38 14 FA 00 00 13 [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:28]Read from MH i2c: E2 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 19 94 00 90 00 21 [07:09:28]RAPDU: 90 00 [07:09:28]wFMCommunicate OK [07:09:28]wFMCommunicate request_size=7 [07:09:28]MH_SAM_APDU [07:09:28]CAPDU: 80 0D 02 02 02 BD 88 [07:09:28]Write to MH i2c: E2 0A 00 1A 94 80 0D 02 02 02 00 BD 88 00 00 71 [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:28]Read from MH i2c: E2 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 03 00 1A 94 00 90 00 22 [07:09:28]RAPDU: 90 00 [07:09:28]wFMCommunicate OK [07:09:28]wFMCommunicate request_size=4 [07:09:28]MH_SAM_APDU [07:09:28]CAPDU: 80 0D 03 02 [07:09:28]Write to MH i2c: E2 08 00 1B 94 80 0D 03 02 00 00 00 00 2A [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:28]Read from MH i2c: E2 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 0B 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 0B 00 1B 94 00 B7 33 DB 68 CB F2 D9 35 90 00 23 [07:09:28]RAPDU: B7 33 DB 68 CB F2 D9 35 90 00 [07:09:28]wFMCommunicate OK [07:09:28]SAM_PROTO_SignData done [07:09:28]FM_MakeSignedData done [07:09:28]CreateOFDProtocolMessage [07:09:28]wFMCommunicate request_size=4 [07:09:28]MH_SAM_APDU [07:09:28]CAPDU: 80 11 00 00 [07:09:28]Write to MH i2c: E2 08 00 1C 94 80 11 00 00 00 00 00 00 2A [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:28]Read from MH i2c: E2 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 17 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: E2 17 00 1C 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 85 [07:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:09:28]wFMCommunicate OK [07:09:28]CreateOFDProtocolMessage done [07:09:28]OFDSenderStorePacket 118973 [07:09:28]StoreOFDPacket docnum=118973 [07:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2C 56 04 01 EC 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B0 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD D0 01 00 35 04 06 00 37 38 14 FA BD 88 B7 33 DB 68 CB F2 D9 35 [07:09:28]CheckFolder [07:09:28]dirname=/storage/ofd_packets [07:09:28]CheckFolder done [07:09:28]ProducePacketName [07:09:28]name=ofd_packets/00118973 [07:09:28]NVStorageSaveData ofd_packets/00118973 [07:09:28]File name is /storage/ofd_packets/00118973 [07:09:28]Write 298 bytes [07:09:28]NVStorageSaveData done [07:09:28]OFDSenderStorePacket done [07:09:28]KKMCreateOFDPacket done [07:09:28]NVStorageSaveData kkm_last_timestamp [07:09:28]File name is /storage/kkm_last_timestamp [07:09:28]Write 4 bytes [07:09:28]NVStorageSaveData done [07:09:28]ExternCall_PrintAddStr [07:09:28]wPrintStart [07:09:28]Write to MH i2c: 01 00 00 1D 94 B1 [07:09:28]Write i2c OK [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: 01 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: 01 07 00 [07:09:28]MH_I2C_Read... [07:09:28]Read from MH i2c: 01 07 00 1D 94 00 00 00 00 00 FF 0F C6 [07:09:28]RasterBufferAndPrint [07:09:28]line Счет N : (1)949891 [07:09:28]line ИНН: 02508201610067 [07:09:28]line Контрольно-Кассовый Чек [07:09:28]line ПРОДАЖА [07:09:28]line ТРК (МРК, ГНК) : 34 [07:09:28]line Товар: 2710194800 [07:09:28]line ДТ-К-5 [07:09:28]line 39.380 * 76.20 [07:09:28]line = 3000.76 [07:09:28]line НДС 12% НСП 1% [07:09:28]line > о реализуемом товаре [07:09:28]line ОКРУГЛЕНИЕ: -0.76 [07:09:28]line ИТОГО: 3000.00 [07:09:28]line Внесено: 3000.00 [07:09:28]line СДАЧА: 0.00 [07:09:28]line НСП 1% : 26.55 [07:09:28]line НДС 12% : 318.66 [07:09:28]line Наличными: 3000.00 [07:09:28]line Безнал.: 0.00 [07:09:28]line Место: АЗС № 134 "Партнер Нефть" [07:09:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:09:28]line СНО: Общий режим [07:09:28]line Чек 25 30.07.2024 07:09 [07:09:28]line Смена: 435 ФФД: 1.0 [07:09:28]line ЗНМ: 0300000044 [07:09:28]line РНМ: 0000000000092660 [07:09:28]line Версия ККМ: 001 [07:09:28]line ФМ: 0000000000874939 [07:09:28]line ФД: 118973 [07:09:28]line ФПД: 60714009673096 [07:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T070936&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118973&fm=60714009673096&tin=02508201610067®Number=0000000000092660&sum=300000 [07:09:29]OFD Sender: Processing packet 118973 [packets to send 86, broken 85] [07:09:29]ProducePacketName [07:09:29]name=ofd_packets/00118973 [07:09:29]OFD Sender: To server: pG, [07:09:29]CommunicateWithHost lk.salyk.kg:30040 [07:09:29]ConnectInit lk.salyk.kg [07:09:29]written 0, free lines is 4095 [07:09:29]Connected sock=10 [07:09:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2C 56 04 01 EC 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 B0 91 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD D0 01 00 35 04 06 00 37 38 14 FA BD 88 B7 33 DB 68 CB F2 D9 35 [07:09:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0F 9B 47 00 42 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BD D0 01 00 F4 03 04 00 3C 3F A8 66 B6 04 01 00 00 31 D3 9D 3B 3E C5 EF 39 [07:09:29]CommunicateWithHost err = 0 [07:09:29]CheckOFDResponse [07:09:29]1017 (14) - 77093643461234 [07:09:29]1041 (16) - 0000000000874939 [07:09:29]1040 (4) - 118973 [07:09:29]1012 (4) - 30.07.2024 01:17 [07:09:29]1206 (1) - 0 [07:09:29]OFD Sender: Remove packet 118973 [07:09:29]ProducePacketName [07:09:29]name=ofd_packets/00118973 [07:09:29]NVStorageDeleteData [07:09:29]Write to MH i2c: 01 00 00 47 94 DB [07:09:29]Write i2c OK [07:09:29]MH_I2C_Read... [07:09:29]Read from MH i2c: 01 [07:09:29]MH_I2C_Read... [07:09:29]Read from MH i2c: 01 07 00 [07:09:29]MH_I2C_Read... [07:09:29]Read from MH i2c: 01 07 00 47 94 00 00 00 00 00 C8 0C B6 [07:09:29]RasterBufferAndPrint [07:09:29]line [07:09:29]line [07:09:29]line [07:09:29]line [07:09:29]line [07:09:29]written 0, free lines is 3278 [07:09:29]MH_Cut [07:09:29]Write to MH i2c: D1 01 00 4E 94 01 B4 [07:09:29]Write i2c OK [07:09:29]MH_I2C_Read... [07:09:29]Read from MH i2c: D1 [07:09:29]MH_I2C_Read... [07:09:29]Read from MH i2c: D1 01 00 [07:09:29]MH_I2C_Read... [07:09:29]Read from MH i2c: D1 01 00 4E 94 00 B3 [07:09:29]Write to MH i2c: 01 00 00 4F 94 E3 [07:09:29]Write i2c OK [07:09:29]MH_I2C_Read... [07:09:29]OFD Sender: No OFD packet to send [07:09:30]*** Cut start [07:09:30]*** Partial cut [07:09:30]*** CUTSNS_PIN = 1 [07:09:30]*** CUTSNS_PIN = 0 [07:09:30]*** Brake cut motor [07:09:31]Read from MH i2c: 01 [07:09:31]MH_I2C_Read... [07:09:31]*** Stop cut motor [07:09:31]*** Cut end [07:09:31]Read from MH i2c: 01 07 00 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: 01 07 00 4F 94 00 00 00 00 00 FF 0F F8 [07:09:31]process_action close_receipt done [07:09:31]requested_data is exist [07:09:31]produce_requested_data [07:09:31]requested_item fm.sn is exist - process it [07:09:31]wFMCommunicate request_size=4 [07:09:31]MH_SAM_APDU [07:09:31]CAPDU: 80 11 00 00 [07:09:31]Write to MH i2c: E2 08 00 50 94 80 11 00 00 00 00 00 00 5E [07:09:31]Write i2c OK [07:09:31]MH_I2C_Read... [07:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:31]Read from MH i2c: E2 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 17 00 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 17 00 50 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B9 [07:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:09:31]wFMCommunicate OK [07:09:31]requested_item fd.num is exist - process it [07:09:31]SAM_PROTO_GetFieldsCounters [07:09:31]wFMCommunicate request_size=4 [07:09:31]MH_SAM_APDU [07:09:31]CAPDU: 80 13 00 00 [07:09:31]Write to MH i2c: E2 08 00 51 94 80 13 00 00 00 00 00 00 61 [07:09:31]Write i2c OK [07:09:31]MH_I2C_Read... [07:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:31]Read from MH i2c: E2 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 62 00 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 62 00 51 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [07:09:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:31]wFMCommunicate OK [07:09:31]SAM_PROTO_GetFieldsCounters done [07:09:31]requested_item shift.num is exist - process it [07:09:31]requested_item shift.opened is exist - process it [07:09:31]req_shift_opened [07:09:31]FM_GetShiftState [07:09:31]SAM_PROTO_GetShiftState [07:09:31]wFMCommunicate request_size=4 [07:09:31]MH_SAM_APDU [07:09:31]CAPDU: 80 13 01 00 [07:09:31]Write to MH i2c: E2 08 00 52 94 80 13 01 00 00 00 00 00 63 [07:09:31]Write i2c OK [07:09:31]MH_I2C_Read... [07:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:31]Read from MH i2c: E2 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 0E 00 [07:09:31]MH_I2C_Read... [07:09:31]Read from MH i2c: E2 0E 00 52 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2E [07:09:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:09:31]wFMCommunicate OK [07:09:31]SAM_PROTO_GetShiftState done [07:09:31]FM_GetShiftState done [07:09:31]req_shift_opened done [07:09:31]requested_item shift.open_date is exist - process it [07:09:31]req_shift_open_date [07:09:31]req_shift_open_date done [07:09:31]produce_requested_data done [07:09:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118973,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:09:31]process_action_free close_receipt [07:09:31]json_value_free [07:09:31]json_value_free done [07:09:31]process_json_proto returns [07:09:31]Send response to host [07:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118973,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:09:31]free response buf [07:09:31]execute_script done [07:09:31]execute_script returns [07:09:31]free content buf [07:09:31]Sock 7.Close socket [07:09:31]Sock 7.Thread stoped [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:12]accept exits with 9 [07:12:12]New connection [07:12:12]New thread 3067383140 created [07:12:12]Thread 3067239780 joined [07:12:12]Waiting for new connection... [07:12:12] Sock 9.Parse request [07:12:12]Sock 9.Check first char [07:12:12]Sock 9.First char is OK [07:12:12]request: POST /json_proto HTTP/1.0 [07:12:12]Method: POST [07:12:12]URL: /json_proto [07:12:12]Method is POST - this is cgi request [07:12:12]url: /json_proto [07:12:12]query_string will be loaded in cgi processing [07:12:12]execute_cgi json_proto POST (null) [07:12:12]execute_cgi path=json_proto method=POST [07:12:12]POST find Content-Length [07:12:12]Host: 172.17.45.7:8080 [07:12:12]Content-Length: 682 [07:12:12]Content-Type: application/json [07:12:12] [07:12:12]POST finish read [07:12:12]Found Content-Length = 682 [07:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:12]execute_script... [07:12: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)949892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:12]POST & json_proto [07:12:12]process_json_proto [07:12:12]json parsed OK: [07:12:12]protocol is kg_v1.0 [07:12:12]action value=close_receipt [07:12:12]process_action close_receipt [07:12:12]cmd_close_receipt [07:12:12]MH_GetDate [07:12:12]Write to MH i2c: F0 00 00 53 94 D6 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: F0 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: F0 09 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: F0 09 00 53 94 00 55 92 A8 66 90 0F 3E 66 17 [07:12:12]GetLastDocTimeStamp 1722323376 [07:12:12]current date 1722323541 [07:12:12]FM_GetShiftState [07:12:12]SAM_PROTO_GetShiftState [07:12:12]wFMCommunicate request_size=4 [07:12:12]MH_SAM_APDU [07:12:12]CAPDU: 80 13 01 00 [07:12:12]Write to MH i2c: E2 08 00 54 94 80 13 01 00 00 00 00 00 65 [07:12:12]Write i2c OK [07:12:12]MH_I2C_Read... [07:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:12]Read from MH i2c: E2 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 0E 00 [07:12:12]MH_I2C_Read... [07:12:12]Read from MH i2c: E2 0E 00 54 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 30 [07:12:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:12:12]wFMCommunicate OK [07:12:12]SAM_PROTO_GetShiftState done [07:12:12]FM_GetShiftState done [07:12:12]opened in 1722298242 [07:12:12]opened+sec_in_day 1722384642 [07:12:12]quantity*price = 100005 [07:12:12]sum+1 = 100006 [07:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 26 30.07.2024 07:12 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118974 ФПД: 218357930958094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T071221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118974&fm=218357930958094&tin=02508201610067®Number=0000000000092660&sum=100000 [07:12:13]StoreToDocumentArchive [07:12:13]shift 435 fd 118974 [07:12:13]save to /storage/0435/doc_00118974 [07:12:13]save last doc name /storage/0435/doc_00118974 to /storage/kkm_last_doc_name [07:12:13]save OK [07:12:13]Clear old archive folders... [07:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:13]tlvbuf is 02015BB0 [07:12:13]SAM_PROTO_ClearQueue [07:12:13]wFMCommunicate request_size=4 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 09 00 00 [07:12:13]Write to MH i2c: E2 08 00 61 94 80 09 00 00 00 00 00 00 67 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 03 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 03 00 61 94 00 90 00 69 [07:12:13]RAPDU: 90 00 [07:12:13]wFMCommunicate OK [07:12:13]SAM_PROTO_ClearQueue done [07:12:13]KKMCreateOFDPacket [07:12:13]OFDProtocolAddRootSTLVToBuf [07:12:13]FM_MakeSignedData [07:12:13]FM_MakeSignedData [07:12:13]SAM_PROTO_SignData [07:12:13]wFMCommunicate request_size=4 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 0D 01 02 [07:12:13]Write to MH i2c: E2 08 00 62 94 80 0D 01 02 00 00 00 00 6F [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 03 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 03 00 62 94 00 90 00 6A [07:12:13]RAPDU: 90 00 [07:12:13]wFMCommunicate OK [07:12:13]wFMCommunicate request_size=255 [07:12:13]MH_SAM_APDU [07:12: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE D0 01 00 35 04 06 00 C6 [07:12:13]Write to MH i2c: E2 02 01 63 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE D0 01 00 35 04 06 00 C6 00 00 9A [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 03 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 03 00 63 94 00 90 00 6B [07:12:13]RAPDU: 90 00 [07:12:13]wFMCommunicate OK [07:12:13]wFMCommunicate request_size=10 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 0D 02 02 05 98 6A E8 9D 0E [07:12:13]Write to MH i2c: E2 0D 00 64 94 80 0D 02 02 05 00 98 6A E8 9D 0E 00 00 11 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 03 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 03 00 64 94 00 90 00 6C [07:12:14]RAPDU: 90 00 [07:12:14]wFMCommunicate OK [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 0D 03 02 [07:12:14]Write to MH i2c: E2 08 00 65 94 80 0D 03 02 00 00 00 00 74 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 0B 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 0B 00 65 94 00 66 DE 46 E4 35 48 6E 29 90 00 F7 [07:12:14]RAPDU: 66 DE 46 E4 35 48 6E 29 90 00 [07:12:14]wFMCommunicate OK [07:12:14]SAM_PROTO_SignData done [07:12:14]FM_MakeSignedData done [07:12:14]CreateOFDProtocolMessage [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 11 00 00 [07:12:14]Write to MH i2c: E2 08 00 66 94 80 11 00 00 00 00 00 00 74 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 17 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 17 00 66 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CF [07:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:12:14]wFMCommunicate OK [07:12:14]CreateOFDProtocolMessage done [07:12:14]OFDSenderStorePacket 118974 [07:12:14]StoreOFDPacket docnum=118974 [07:12:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FA B6 07 01 B9 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE D0 01 00 35 04 06 00 C6 98 6A E8 9D 0E 66 DE 46 E4 35 48 6E 29 [07:12:14]CheckFolder [07:12:14]dirname=/storage/ofd_packets [07:12:14]CheckFolder done [07:12:14]ProducePacketName [07:12:14]name=ofd_packets/00118974 [07:12:14]NVStorageSaveData ofd_packets/00118974 [07:12:14]File name is /storage/ofd_packets/00118974 [07:12:14]Write 301 bytes [07:12:14]NVStorageSaveData done [07:12:14]OFDSenderStorePacket done [07:12:14]KKMCreateOFDPacket done [07:12:14]NVStorageSaveData kkm_last_timestamp [07:12:14]File name is /storage/kkm_last_timestamp [07:12:14]Write 4 bytes [07:12:14]NVStorageSaveData done [07:12:14]ExternCall_PrintAddStr [07:12:14]wPrintStart [07:12:14]Write to MH i2c: 01 00 00 67 94 FB [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 07 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 07 00 67 94 00 00 00 00 00 FF 0F 10 [07:12:14]RasterBufferAndPrint [07:12:14]line Счет N : (1)949892 [07:12:14]line ИНН: 02508201610067 [07:12:14]line Контрольно-Кассовый Чек [07:12:14]line ПРОДАЖА [07:12:14]line ТРК (МРК, ГНК) : 41 [07:12:14]line Товар: 2710124130 [07:12:14]line Аи-92-К-4 [07:12:14]line 14.750 * 67.80 [07:12:14]line = 1000.05 [07:12:14]line НДС 12% НСП 1% [07:12:14]line > о реализуемом товаре [07:12:14]line ОКРУГЛЕНИЕ: -0.05 [07:12:14]line ИТОГО: 1000.00 [07:12:14]line Внесено: 1000.00 [07:12:14]line СДАЧА: 0.00 [07:12:14]line НСП 1% : 8.85 [07:12:14]line НДС 12% : 106.20 [07:12:14]line Наличными: 1000.00 [07:12:14]line Безнал.: 0.00 [07:12:14]line Место: АЗС № 134 "Партнер Нефть" [07:12:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:12:14]line СНО: Общий режим [07:12:14]line Чек 26 30.07.2024 07:12 [07:12:14]line Смена: 435 ФФД: 1.0 [07:12:14]line ЗНМ: 0300000044 [07:12:14]line РНМ: 0000000000092660 [07:12:14]line Версия ККМ: 001 [07:12:14]line ФМ: 0000000000874939 [07:12:14]line ФД: 118974 [07:12:14]line ФПД: 218357930958094 [07:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T071221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118974&fm=218357930958094&tin=02508201610067®Number=0000000000092660&sum=100000 [07:12:14]OFD Sender: Processing packet 118974 [packets to send 86, broken 85] [07:12:14]ProducePacketName [07:12:14]name=ofd_packets/00118974 [07:12:14]OFD Sender: To server: pG, [07:12:14]CommunicateWithHost lk.salyk.kg:30040 [07:12:14]ConnectInit lk.salyk.kg [07:12:14]written 0, free lines is 4095 [07:12:14]Connected sock=10 [07:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FA B6 07 01 B9 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 55 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE D0 01 00 35 04 06 00 C6 98 6A E8 9D 0E 66 DE 46 E4 35 48 6E 29 [07:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 33 3E 47 00 BF 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BE D0 01 00 F4 03 04 00 E1 3F A8 66 B6 04 01 00 00 52 84 05 95 0B 9F A6 0F [07:12:14]CommunicateWithHost err = 0 [07:12:14]CheckOFDResponse [07:12:14]1017 (14) - 77093643461234 [07:12:14]1041 (16) - 0000000000874939 [07:12:14]1040 (4) - 118974 [07:12:14]1012 (4) - 30.07.2024 01:20 [07:12:14]1206 (1) - 0 [07:12:14]OFD Sender: Remove packet 118974 [07:12:14]ProducePacketName [07:12:14]name=ofd_packets/00118974 [07:12:14]NVStorageDeleteData [07:12:14]Write to MH i2c: 01 00 00 91 94 25 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 07 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: 01 07 00 91 94 00 00 00 00 00 D9 0C 11 [07:12:14]RasterBufferAndPrint [07:12:14]line [07:12:14]line [07:12:14]line [07:12:14]line [07:12:14]line [07:12:14]written 0, free lines is 3294 [07:12:14]MH_Cut [07:12:14]Write to MH i2c: D1 01 00 98 94 01 FE [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: D1 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: D1 01 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: D1 01 00 98 94 00 FD [07:12:14]Write to MH i2c: 01 00 00 99 94 2D [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:15]OFD Sender: No OFD packet to send [07:12:15]*** Cut start [07:12:15]*** Partial cut [07:12:15]*** CUTSNS_PIN = 1 [07:12:15]*** CUTSNS_PIN = 0 [07:12:15]*** Brake cut motor [07:12:16]Read from MH i2c: 01 [07:12:16]MH_I2C_Read... [07:12:16]*** Stop cut motor [07:12:16]*** Cut end [07:12:16]Read from MH i2c: 01 07 00 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: 01 07 00 99 94 00 00 00 00 00 FF 0F 42 [07:12:16]process_action close_receipt done [07:12:16]requested_data is exist [07:12:16]produce_requested_data [07:12:16]requested_item fm.sn is exist - process it [07:12:16]wFMCommunicate request_size=4 [07:12:16]MH_SAM_APDU [07:12:16]CAPDU: 80 11 00 00 [07:12:16]Write to MH i2c: E2 08 00 9A 94 80 11 00 00 00 00 00 00 A8 [07:12:16]Write i2c OK [07:12:16]MH_I2C_Read... [07:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:16]Read from MH i2c: E2 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: E2 17 00 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: E2 17 00 9A 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 03 [07:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:12:16]wFMCommunicate OK [07:12:16]requested_item fd.num is exist - process it [07:12:16]SAM_PROTO_GetFieldsCounters [07:12:16]wFMCommunicate request_size=4 [07:12:16]MH_SAM_APDU [07:12:16]CAPDU: 80 13 00 00 [07:12:16]Write to MH i2c: E2 08 00 9B 94 80 13 00 00 00 00 00 00 AB [07:12:16]Write i2c OK [07:12:16]MH_I2C_Read... [07:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:16]Read from MH i2c: E2 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: E2 62 00 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: E2 62 00 9B 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [07:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:16]wFMCommunicate OK [07:12:16]SAM_PROTO_GetFieldsCounters done [07:12:16]requested_item shift.num is exist - process it [07:12:16]requested_item shift.opened is exist - process it [07:12:16]req_shift_opened [07:12:16]FM_GetShiftState [07:12:16]SAM_PROTO_GetShiftState [07:12:16]wFMCommunicate request_size=4 [07:12:16]MH_SAM_APDU [07:12:16]CAPDU: 80 13 01 00 [07:12:16]Write to MH i2c: E2 08 00 9C 94 80 13 01 00 00 00 00 00 AD [07:12:16]Write i2c OK [07:12:16]MH_I2C_Read... [07:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:16]Read from MH i2c: E2 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: E2 0E 00 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: E2 0E 00 9C 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 78 [07:12:16]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:12:16]wFMCommunicate OK [07:12:16]SAM_PROTO_GetShiftState done [07:12:16]FM_GetShiftState done [07:12:16]req_shift_opened done [07:12:16]requested_item shift.open_date is exist - process it [07:12:16]req_shift_open_date [07:12:16]req_shift_open_date done [07:12:16]produce_requested_data done [07:12:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118974,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:12:16]process_action_free close_receipt [07:12:16]json_value_free [07:12:16]json_value_free done [07:12:16]process_json_proto returns [07:12:16]Send response to host [07:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118974,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:12:16]free response buf [07:12:16]execute_script done [07:12:16]execute_script returns [07:12:16]free content buf [07:12:16]Sock 9.Close socket [07:12:16]Sock 9.Thread stoped [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:40]accept exits with 7 [07:13:40]New connection [07:13:40]New thread 3067239780 created [07:13:40]Thread 3067383140 joined [07:13:40]Waiting for new connection... [07:13:40] Sock 7.Parse request [07:13:40]Sock 7.Check first char [07:13:40]Sock 7.First char is OK [07:13:40]request: POST /json_proto HTTP/1.0 [07:13:40]Method: POST [07:13:40]URL: /json_proto [07:13:40]Method is POST - this is cgi request [07:13:40]url: /json_proto [07:13:40]query_string will be loaded in cgi processing [07:13:40]execute_cgi json_proto POST (null) [07:13:40]execute_cgi path=json_proto method=POST [07:13:40]POST find Content-Length [07:13:40]Host: 172.17.45.7:8080 [07:13:40]Content-Length: 818 [07:13:40]Content-Type: application/json [07:13:40] [07:13:40]POST finish read [07:13:40]Found Content-Length = 818 [07:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:40]execute_script... [07:13: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)949889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:40]POST & json_proto [07:13:40]process_json_proto [07:13:40]json parsed OK: [07:13:40]protocol is kg_v1.0 [07:13:40]action value=close_receipt [07:13:40]process_action close_receipt [07:13:40]cmd_close_receipt [07:13:40]MH_GetDate [07:13:40]Write to MH i2c: F0 00 00 9D 94 20 [07:13:40]Write i2c OK [07:13:40]MH_I2C_Read... [07:13:40]Read from MH i2c: F0 [07:13:40]MH_I2C_Read... [07:13:40]Read from MH i2c: F0 09 00 [07:13:40]MH_I2C_Read... [07:13:40]Read from MH i2c: F0 09 00 9D 94 00 AD 92 A8 66 90 0F 3E 66 B9 [07:13:40]GetLastDocTimeStamp 1722323541 [07:13:40]current date 1722323629 [07:13:40]FM_GetShiftState [07:13:40]SAM_PROTO_GetShiftState [07:13:40]wFMCommunicate request_size=4 [07:13:40]MH_SAM_APDU [07:13:40]CAPDU: 80 13 01 00 [07:13:40]Write to MH i2c: E2 08 00 9E 94 80 13 01 00 00 00 00 00 AF [07:13:40]Write i2c OK [07:13:40]MH_I2C_Read... [07:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:40]Read from MH i2c: E2 [07:13:40]MH_I2C_Read... [07:13:40]Read from MH i2c: E2 0E 00 [07:13:40]MH_I2C_Read... [07:13:40]Read from MH i2c: E2 0E 00 9E 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 7A [07:13:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:13:40]wFMCommunicate OK [07:13:40]SAM_PROTO_GetShiftState done [07:13:40]FM_GetShiftState done [07:13:40]opened in 1722298242 [07:13:40]opened+sec_in_day 1722384642 [07:13:40]quantity*price = 30035 [07:13:40]sum+1 = 30036 [07:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 27 30.07.2024 07:13 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118975 ФПД: 266511788736797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T071349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118975&fm=266511788736797&tin=02508201610067®Number=0000000000092660&sum=30000 [07:13:41]StoreToDocumentArchive [07:13:41]shift 435 fd 118975 [07:13:41]save to /storage/0435/doc_00118975 [07:13:41]save last doc name /storage/0435/doc_00118975 to /storage/kkm_last_doc_name [07:13:41]save OK [07:13:41]Clear old archive folders... [07:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:41]tlvbuf is 01E547B0 [07:13:41]SAM_PROTO_ClearQueue [07:13:41]wFMCommunicate request_size=4 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 09 00 00 [07:13:41]Write to MH i2c: E2 08 00 AB 94 80 09 00 00 00 00 00 00 B1 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:41]Read from MH i2c: E2 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 03 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 03 00 AB 94 00 90 00 B3 [07:13:41]RAPDU: 90 00 [07:13:41]wFMCommunicate OK [07:13:41]SAM_PROTO_ClearQueue done [07:13:41]KKMCreateOFDPacket [07:13:41]OFDProtocolAddRootSTLVToBuf [07:13:41]FM_MakeSignedData [07:13:41]FM_MakeSignedData [07:13:41]SAM_PROTO_SignData [07:13:41]wFMCommunicate request_size=4 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 0D 01 02 [07:13:41]Write to MH i2c: E2 08 00 AC 94 80 0D 01 02 00 00 00 00 B9 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:41]Read from MH i2c: E2 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 03 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 03 00 AC 94 00 90 00 B4 [07:13:41]RAPDU: 90 00 [07:13:41]wFMCommunicate OK [07:13:41]wFMCommunicate request_size=255 [07:13:41]MH_SAM_APDU [07:13: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF D0 01 00 35 04 06 00 F2 [07:13:41]Write to MH i2c: E2 02 01 AD 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF D0 01 00 35 04 06 00 F2 00 00 FA [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:41]Read from MH i2c: E2 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 03 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: E2 03 00 AD 94 00 90 00 B5 [07:13:41]RAPDU: 90 00 [07:13:41]wFMCommunicate OK [07:13:41]wFMCommunicate request_size=10 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 0D 02 02 05 64 1C 7F 01 1D [07:13:41]Write to MH i2c: E2 0D 00 AE 94 80 0D 02 02 05 00 64 1C 7F 01 1D 00 00 E3 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:42]Read from MH i2c: E2 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 03 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 03 00 AE 94 00 90 00 B6 [07:13:42]RAPDU: 90 00 [07:13:42]wFMCommunicate OK [07:13:42]wFMCommunicate request_size=4 [07:13:42]MH_SAM_APDU [07:13:42]CAPDU: 80 0D 03 02 [07:13:42]Write to MH i2c: E2 08 00 AF 94 80 0D 03 02 00 00 00 00 BE [07:13:42]Write i2c OK [07:13:42]MH_I2C_Read... [07:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:42]Read from MH i2c: E2 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 0B 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 0B 00 AF 94 00 D8 8B 4C 7E 2E 18 C2 9C 90 00 90 [07:13:42]RAPDU: D8 8B 4C 7E 2E 18 C2 9C 90 00 [07:13:42]wFMCommunicate OK [07:13:42]SAM_PROTO_SignData done [07:13:42]FM_MakeSignedData done [07:13:42]CreateOFDProtocolMessage [07:13:42]wFMCommunicate request_size=4 [07:13:42]MH_SAM_APDU [07:13:42]CAPDU: 80 11 00 00 [07:13:42]Write to MH i2c: E2 08 00 B0 94 80 11 00 00 00 00 00 00 BE [07:13:42]Write i2c OK [07:13:42]MH_I2C_Read... [07:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:42]Read from MH i2c: E2 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 17 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 17 00 B0 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 19 [07:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:13:42]wFMCommunicate OK [07:13:42]CreateOFDProtocolMessage done [07:13:42]OFDSenderStorePacket 118975 [07:13:42]StoreOFDPacket docnum=118975 [07:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A 7E 07 01 72 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF D0 01 00 35 04 06 00 F2 64 1C 7F 01 1D D8 8B 4C 7E 2E 18 C2 9C [07:13:42]CheckFolder [07:13:42]dirname=/storage/ofd_packets [07:13:42]CheckFolder done [07:13:42]ProducePacketName [07:13:42]name=ofd_packets/00118975 [07:13:42]NVStorageSaveData ofd_packets/00118975 [07:13:42]File name is /storage/ofd_packets/00118975 [07:13:42]Write 301 bytes [07:13:42]NVStorageSaveData done [07:13:42]OFDSenderStorePacket done [07:13:42]KKMCreateOFDPacket done [07:13:42]NVStorageSaveData kkm_last_timestamp [07:13:42]File name is /storage/kkm_last_timestamp [07:13:42]Write 4 bytes [07:13:42]NVStorageSaveData done [07:13:42]ExternCall_PrintAddStr [07:13:42]wPrintStart [07:13:42]Write to MH i2c: 01 00 00 B1 94 45 [07:13:42]Write i2c OK [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: 01 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: 01 07 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: 01 07 00 B1 94 00 00 00 00 00 FF 0F 5A [07:13:42]RasterBufferAndPrint [07:13:42]line Счет N : (1)949889 [07:13:42]line ИНН: 02508201610067 [07:13:42]line Контрольно-Кассовый Чек [07:13:42]line ПРОДАЖА [07:13:42]line ТРК (МРК, ГНК) : 51 [07:13:42]line Товар: 2710124130 [07:13:42]line Аи-92-К-4 [07:13:42]line 4.430 * 67.80 [07:13:42]line = 300.35 [07:13:42]line НДС 12% НСП 1% [07:13:42]line > о реализуемом товаре [07:13:42]line ОКРУГЛЕНИЕ: -0.35 [07:13:42]line ИТОГО: 300.00 [07:13:42]line НСП 1% : 2.66 [07:13:42]line НДС 12% : 31.90 [07:13:42]line Наличными: 0.00 [07:13:42]line Безнал.: 300.00 [07:13:42]line Место: АЗС № 134 "Партнер Нефть" [07:13:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:13:42]line СНО: Общий режим [07:13:42]line Чек 27 30.07.2024 07:13 [07:13:42]line Смена: 435 ФФД: 1.0 [07:13:42]line ЗНМ: 0300000044 [07:13:42]line РНМ: 0000000000092660 [07:13:42]line Версия ККМ: 001 [07:13:42]line Платежная система: O! деньги [07:13:42]line ФМ: 0000000000874939 [07:13:42]line ФД: 118975 [07:13:42]line ФПД: 266511788736797 [07:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T071349&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118975&fm=266511788736797&tin=02508201610067®Number=0000000000092660&sum=30000 [07:13:42]written 0, free lines is 4095 [07:13:42]OFD Sender: Processing packet 118975 [packets to send 86, broken 85] [07:13:42]ProducePacketName [07:13:42]name=ofd_packets/00118975 [07:13:42]OFD Sender: To server: pG, [07:13:42]CommunicateWithHost lk.salyk.kg:30040 [07:13:42]ConnectInit lk.salyk.kg [07:13:42]Connected sock=10 [07:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A 7E 07 01 72 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 AD 92 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF D0 01 00 35 04 06 00 F2 64 1C 7F 01 1D D8 8B 4C 7E 2E 18 C2 9C [07:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3A DC 47 00 BE 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BF D0 01 00 F4 03 04 00 39 40 A8 66 B6 04 01 00 00 70 C8 75 43 FE EB C9 A7 [07:13:42]CommunicateWithHost err = 0 [07:13:42]CheckOFDResponse [07:13:42]1017 (14) - 77093643461234 [07:13:42]1041 (16) - 0000000000874939 [07:13:42]1040 (4) - 118975 [07:13:42]1012 (4) - 30.07.2024 01:22 [07:13:42]1206 (1) - 0 [07:13:42]OFD Sender: Remove packet 118975 [07:13:42]ProducePacketName [07:13:42]name=ofd_packets/00118975 [07:13:42]NVStorageDeleteData [07:13:42]Write to MH i2c: 01 00 00 DB 94 6F [07:13:42]Write i2c OK [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: 01 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: 01 07 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: 01 07 00 DB 94 00 00 00 00 00 D1 0C 53 [07:13:42]RasterBufferAndPrint [07:13:42]line [07:13:42]line [07:13:42]line [07:13:42]line [07:13:42]line [07:13:42]written 0, free lines is 3288 [07:13:42]MH_Cut [07:13:42]Write to MH i2c: D1 01 00 E2 94 01 48 [07:13:42]Write i2c OK [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: D1 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: D1 01 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: D1 01 00 E2 94 00 47 [07:13:42]Write to MH i2c: 01 00 00 E3 94 77 [07:13:42]Write i2c OK [07:13:42]MH_I2C_Read... [07:13:43]OFD Sender: No OFD packet to send [07:13:43]*** Cut start [07:13:43]*** Partial cut [07:13:43]*** CUTSNS_PIN = 1 [07:13:43]*** CUTSNS_PIN = 0 [07:13:43]*** Brake cut motor [07:13:44]Read from MH i2c: 01 [07:13:44]MH_I2C_Read... [07:13:44]*** Stop cut motor [07:13:44]*** Cut end [07:13:44]Read from MH i2c: 01 07 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: 01 07 00 E3 94 00 00 00 00 00 FF 0F 8C [07:13:44]process_action close_receipt done [07:13:44]requested_data is exist [07:13:44]produce_requested_data [07:13:44]requested_item fm.sn is exist - process it [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 11 00 00 [07:13:44]Write to MH i2c: E2 08 00 E4 94 80 11 00 00 00 00 00 00 F2 [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 17 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 17 00 E4 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4D [07:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:13:44]wFMCommunicate OK [07:13:44]requested_item fd.num is exist - process it [07:13:44]SAM_PROTO_GetFieldsCounters [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 13 00 00 [07:13:44]Write to MH i2c: E2 08 00 E5 94 80 13 00 00 00 00 00 00 F5 [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 62 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 62 00 E5 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [07:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 BF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:44]wFMCommunicate OK [07:13:44]SAM_PROTO_GetFieldsCounters done [07:13:44]requested_item shift.num is exist - process it [07:13:44]requested_item shift.opened is exist - process it [07:13:44]req_shift_opened [07:13:44]FM_GetShiftState [07:13:44]SAM_PROTO_GetShiftState [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 13 01 00 [07:13:44]Write to MH i2c: E2 08 00 E6 94 80 13 01 00 00 00 00 00 F7 [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 0E 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 0E 00 E6 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C2 [07:13:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:13:44]wFMCommunicate OK [07:13:44]SAM_PROTO_GetShiftState done [07:13:44]FM_GetShiftState done [07:13:44]req_shift_opened done [07:13:44]requested_item shift.open_date is exist - process it [07:13:44]req_shift_open_date [07:13:44]req_shift_open_date done [07:13:44]produce_requested_data done [07:13:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118975,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:13:44]process_action_free close_receipt [07:13:44]json_value_free [07:13:44]json_value_free done [07:13:44]process_json_proto returns [07:13:44]Send response to host [07:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118975,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:13:44]free response buf [07:13:44]execute_script done [07:13:44]execute_script returns [07:13:44]free content buf [07:13:44]Sock 7.Close socket [07:13:44]Sock 7.Thread stoped [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:35]accept exits with 9 [07:20:35]New connection [07:20:35]New thread 3067383140 created [07:20:35]Thread 3067239780 joined [07:20:35]Waiting for new connection... [07:20:35] Sock 9.Parse request [07:20:35]Sock 9.Check first char [07:20:35]Sock 9.First char is OK [07:20:35]request: POST /json_proto HTTP/1.0 [07:20:35]Method: POST [07:20:35]URL: /json_proto [07:20:35]Method is POST - this is cgi request [07:20:35]url: /json_proto [07:20:35]query_string will be loaded in cgi processing [07:20:35]execute_cgi json_proto POST (null) [07:20:35]execute_cgi path=json_proto method=POST [07:20:35]POST find Content-Length [07:20:35]Host: 172.17.45.7:8080 [07:20:35]Content-Length: 677 [07:20:35]Content-Type: application/json [07:20:35] [07:20:35]POST finish read [07:20:35]Found Content-Length = 677 [07:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:35]execute_script... [07: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)949893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:35]POST & json_proto [07:20:35]process_json_proto [07:20:35]json parsed OK: [07:20:35]protocol is kg_v1.0 [07:20:35]action value=close_receipt [07:20:35]process_action close_receipt [07:20:35]cmd_close_receipt [07:20:35]MH_GetDate [07:20:35]Write to MH i2c: F0 00 00 E7 94 6A [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: F0 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: F0 09 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: F0 09 00 E7 94 00 4D 94 A8 66 90 0F 3E 66 A5 [07:20:35]GetLastDocTimeStamp 1722323629 [07:20:35]current date 1722324045 [07:20:35]FM_GetShiftState [07:20:35]SAM_PROTO_GetShiftState [07:20:35]wFMCommunicate request_size=4 [07:20:35]MH_SAM_APDU [07:20:35]CAPDU: 80 13 01 00 [07:20:35]Write to MH i2c: E2 08 00 E8 94 80 13 01 00 00 00 00 00 F9 [07:20:35]Write i2c OK [07:20:35]MH_I2C_Read... [07:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:35]Read from MH i2c: E2 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 0E 00 [07:20:35]MH_I2C_Read... [07:20:35]Read from MH i2c: E2 0E 00 E8 94 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C4 [07:20:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:20:35]wFMCommunicate OK [07:20:35]SAM_PROTO_GetShiftState done [07:20:35]FM_GetShiftState done [07:20:35]opened in 1722298242 [07:20:35]opened+sec_in_day 1722384642 [07:20:35]quantity*price = 50036 [07:20:35]sum+1 = 50037 [07:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 28 30.07.2024 07:20 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118976 ФПД: 193841875227540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T072045&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118976&fm=193841875227540&tin=02508201610067®Number=0000000000092660&sum=50000 [07:20:36]StoreToDocumentArchive [07:20:36]shift 435 fd 118976 [07:20:36]save to /storage/0435/doc_00118976 [07:20:36]save last doc name /storage/0435/doc_00118976 to /storage/kkm_last_doc_name [07:20:36]save OK [07:20:36]Clear old archive folders... [07:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:20:36]tlvbuf is 01E4F770 [07:20:36]SAM_PROTO_ClearQueue [07:20:36]wFMCommunicate request_size=4 [07:20:36]MH_SAM_APDU [07:20:36]CAPDU: 80 09 00 00 [07:20:36]Write to MH i2c: E2 08 00 F5 94 80 09 00 00 00 00 00 00 FB [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:36]Read from MH i2c: E2 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: E2 03 00 [07:20:36]MH_I2C_Read... [07:20:36]Read from MH i2c: E2 03 00 F5 94 00 90 00 FD [07:20:36]RAPDU: 90 00 [07:20:36]wFMCommunicate OK [07:20:36]SAM_PROTO_ClearQueue done [07:20:36]KKMCreateOFDPacket [07:20:36]OFDProtocolAddRootSTLVToBuf [07:20:36]FM_MakeSignedData [07:20:36]FM_MakeSignedData [07:20:36]SAM_PROTO_SignData [07:20:36]wFMCommunicate request_size=4 [07:20:36]MH_SAM_APDU [07:20:36]CAPDU: 80 0D 01 02 [07:20:36]Write to MH i2c: E2 08 00 F6 94 80 0D 01 02 00 00 00 00 03 [07:20:36]Write i2c OK [07:20:36]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 F6 94 00 90 00 FE [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]wFMCommunicate request_size=255 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D 94 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 D0 01 00 35 04 06 00 B0 [07:20:37]Write to MH i2c: E2 02 01 F7 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D 94 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 D0 01 00 35 04 06 00 B0 00 00 87 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 F7 94 00 90 00 FF [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]wFMCommunicate request_size=10 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 02 02 05 4C 54 1D 93 94 [07:20:37]Write to MH i2c: E2 0D 00 F8 94 80 0D 02 02 05 00 4C 54 1D 93 94 00 00 F4 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 03 00 F8 94 00 90 00 00 [07:20:37]RAPDU: 90 00 [07:20:37]wFMCommunicate OK [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 0D 03 02 [07:20:37]Write to MH i2c: E2 08 00 F9 94 80 0D 03 02 00 00 00 00 08 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 0B 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 0B 00 F9 94 00 14 18 4F 76 5F 5F 6A 00 90 00 22 [07:20:37]RAPDU: 14 18 4F 76 5F 5F 6A 00 90 00 [07:20:37]wFMCommunicate OK [07:20:37]SAM_PROTO_SignData done [07:20:37]FM_MakeSignedData done [07:20:37]CreateOFDProtocolMessage [07:20:37]wFMCommunicate request_size=4 [07:20:37]MH_SAM_APDU [07:20:37]CAPDU: 80 11 00 00 [07:20:37]Write to MH i2c: E2 08 00 FA 94 80 11 00 00 00 00 00 00 08 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:37]Read from MH i2c: E2 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 17 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: E2 17 00 FA 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 63 [07:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:20:37]wFMCommunicate OK [07:20:37]CreateOFDProtocolMessage done [07:20:37]OFDSenderStorePacket 118976 [07:20:37]StoreOFDPacket docnum=118976 [07:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 89 07 01 5A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D 94 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 D0 01 00 35 04 06 00 B0 4C 54 1D 93 94 14 18 4F 76 5F 5F 6A 00 [07:20:37]CheckFolder [07:20:37]dirname=/storage/ofd_packets [07:20:37]CheckFolder done [07:20:37]ProducePacketName [07:20:37]name=ofd_packets/00118976 [07:20:37]NVStorageSaveData ofd_packets/00118976 [07:20:37]File name is /storage/ofd_packets/00118976 [07:20:37]Write 301 bytes [07:20:37]NVStorageSaveData done [07:20:37]OFDSenderStorePacket done [07:20:37]KKMCreateOFDPacket done [07:20:37]NVStorageSaveData kkm_last_timestamp [07:20:37]File name is /storage/kkm_last_timestamp [07:20:37]Write 4 bytes [07:20:37]NVStorageSaveData done [07:20:37]ExternCall_PrintAddStr [07:20:37]wPrintStart [07:20:37]Write to MH i2c: 01 00 00 FB 94 8F [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 FB 94 00 00 00 00 00 FF 0F A4 [07:20:37]RasterBufferAndPrint [07:20:37]line Счет N : (1)949893 [07:20:37]line ИНН: 02508201610067 [07:20:37]line Контрольно-Кассовый Чек [07:20:37]line ПРОДАЖА [07:20:37]line ТРК (МРК, ГНК) : 31 [07:20:37]line Товар: 2710124130 [07:20:37]line Аи-92-К-4 [07:20:37]line 7.380 * 67.80 [07:20:37]line = 500.36 [07:20:37]line НДС 12% НСП 1% [07:20:37]line > о реализуемом товаре [07:20:37]line ОКРУГЛЕНИЕ: -0.36 [07:20:37]line ИТОГО: 500.00 [07:20:37]line Внесено: 500.00 [07:20:37]line СДАЧА: 0.00 [07:20:37]line НСП 1% : 4.43 [07:20:37]line НДС 12% : 53.14 [07:20:37]line Наличными: 500.00 [07:20:37]line Безнал.: 0.00 [07:20:37]line Место: АЗС № 134 "Партнер Нефть" [07:20:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:20:37]line СНО: Общий режим [07:20:37]line Чек 28 30.07.2024 07:20 [07:20:37]line Смена: 435 ФФД: 1.0 [07:20:37]line ЗНМ: 0300000044 [07:20:37]line РНМ: 0000000000092660 [07:20:37]line Версия ККМ: 001 [07:20:37]line ФМ: 0000000000874939 [07:20:37]line ФД: 118976 [07:20:37]line ФПД: 193841875227540 [07:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T072045&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118976&fm=193841875227540&tin=02508201610067®Number=0000000000092660&sum=50000 [07:20:37]written 0, free lines is 4095 [07:20:37]OFD Sender: Processing packet 118976 [packets to send 86, broken 85] [07:20:37]ProducePacketName [07:20:37]name=ofd_packets/00118976 [07:20:37]OFD Sender: To server: pG, [07:20:37]CommunicateWithHost lk.salyk.kg:30040 [07:20:37]ConnectInit lk.salyk.kg [07:20:37]Connected sock=10 [07:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 82 89 07 01 5A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D 94 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 D0 01 00 35 04 06 00 B0 4C 54 1D 93 94 14 18 4F 76 5F 5F 6A 00 [07:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D2 AD 47 00 FE 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C0 D0 01 00 F4 03 04 00 D8 41 A8 66 B6 04 01 00 00 39 77 92 57 78 22 4E 5A [07:20:37]CommunicateWithHost err = 0 [07:20:37]CheckOFDResponse [07:20:37]1017 (14) - 77093643461234 [07:20:37]1041 (16) - 0000000000874939 [07:20:37]1040 (4) - 118976 [07:20:37]1012 (4) - 30.07.2024 01:28 [07:20:37]1206 (1) - 0 [07:20:37]OFD Sender: Remove packet 118976 [07:20:37]ProducePacketName [07:20:37]name=ofd_packets/00118976 [07:20:37]NVStorageDeleteData [07:20:37]Write to MH i2c: 01 00 00 25 95 BA [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: 01 07 00 25 95 00 00 00 00 00 DD 0C AA [07:20:37]RasterBufferAndPrint [07:20:37]line [07:20:37]line [07:20:37]line [07:20:37]line [07:20:37]line [07:20:37]written 0, free lines is 3299 [07:20:37]MH_Cut [07:20:37]Write to MH i2c: D1 01 00 2C 95 01 93 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: D1 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: D1 01 00 [07:20:37]MH_I2C_Read... [07:20:37]Read from MH i2c: D1 01 00 2C 95 00 92 [07:20:37]Write to MH i2c: 01 00 00 2D 95 C2 [07:20:37]Write i2c OK [07:20:37]MH_I2C_Read... [07:20:38]OFD Sender: No OFD packet to send [07:20:38]*** Cut start [07:20:38]*** Partial cut [07:20:38]*** CUTSNS_PIN = 1 [07:20:38]*** CUTSNS_PIN = 0 [07:20:38]*** Brake cut motor [07:20:39]Read from MH i2c: 01 [07:20:39]MH_I2C_Read... [07:20:39]*** Stop cut motor [07:20:39]*** Cut end [07:20:39]Read from MH i2c: 01 07 00 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: 01 07 00 2D 95 00 00 00 00 00 FF 0F D7 [07:20:39]process_action close_receipt done [07:20:39]requested_data is exist [07:20:39]produce_requested_data [07:20:39]requested_item fm.sn is exist - process it [07:20:39]wFMCommunicate request_size=4 [07:20:39]MH_SAM_APDU [07:20:39]CAPDU: 80 11 00 00 [07:20:39]Write to MH i2c: E2 08 00 2E 95 80 11 00 00 00 00 00 00 3D [07:20:39]Write i2c OK [07:20:39]MH_I2C_Read... [07:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:39]Read from MH i2c: E2 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: E2 17 00 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: E2 17 00 2E 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [07:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:20:39]wFMCommunicate OK [07:20:39]requested_item fd.num is exist - process it [07:20:39]SAM_PROTO_GetFieldsCounters [07:20:39]wFMCommunicate request_size=4 [07:20:39]MH_SAM_APDU [07:20:39]CAPDU: 80 13 00 00 [07:20:39]Write to MH i2c: E2 08 00 2F 95 80 13 00 00 00 00 00 00 40 [07:20:39]Write i2c OK [07:20:39]MH_I2C_Read... [07:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:39]Read from MH i2c: E2 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: E2 62 00 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: E2 62 00 2F 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [07: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:20:39]wFMCommunicate OK [07:20:39]SAM_PROTO_GetFieldsCounters done [07:20:39]requested_item shift.num is exist - process it [07:20:39]requested_item shift.opened is exist - process it [07:20:39]req_shift_opened [07:20:39]FM_GetShiftState [07:20:39]SAM_PROTO_GetShiftState [07:20:39]wFMCommunicate request_size=4 [07:20:39]MH_SAM_APDU [07:20:39]CAPDU: 80 13 01 00 [07:20:39]Write to MH i2c: E2 08 00 30 95 80 13 01 00 00 00 00 00 42 [07:20:39]Write i2c OK [07:20:39]MH_I2C_Read... [07:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:39]Read from MH i2c: E2 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: E2 0E 00 [07:20:39]MH_I2C_Read... [07:20:39]Read from MH i2c: E2 0E 00 30 95 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0D [07:20:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:20:39]wFMCommunicate OK [07:20:39]SAM_PROTO_GetShiftState done [07:20:39]FM_GetShiftState done [07:20:39]req_shift_opened done [07:20:39]requested_item shift.open_date is exist - process it [07:20:39]req_shift_open_date [07:20:39]req_shift_open_date done [07:20:39]produce_requested_data done [07:20:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118976,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:20:39]process_action_free close_receipt [07:20:39]json_value_free [07:20:39]json_value_free done [07:20:39]process_json_proto returns [07:20:39]Send response to host [07:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118976,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:20:39]free response buf [07:20:39]execute_script done [07:20:39]execute_script returns [07:20:39]free content buf [07:20:39]Sock 9.Close socket [07:20:39]Sock 9.Thread stoped [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:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]accept exits with 7 [07:24:58]New connection [07:24:58]New thread 3067239780 created [07:24:58]Thread 3067383140 joined [07:24:58]Waiting for new connection... [07:24:58] Sock 7.Parse request [07:24:58]Sock 7.Check first char [07:24:58]Sock 7.First char is OK [07:24:58]request: POST /json_proto HTTP/1.0 [07:24:58]Method: POST [07:24:58]URL: /json_proto [07:24:58]Method is POST - this is cgi request [07:24:58]url: /json_proto [07:24:58]query_string will be loaded in cgi processing [07:24:58]execute_cgi json_proto POST (null) [07:24:58]execute_cgi path=json_proto method=POST [07:24:58]POST find Content-Length [07:24:58]Host: 172.17.45.7:8080 [07:24:58]Content-Length: 677 [07:24:58]Content-Type: application/json [07:24:58] [07:24:58]POST finish read [07:24:58]Found Content-Length = 677 [07:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:58]execute_script... [07:24: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)949894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:58]POST & json_proto [07:24:58]process_json_proto [07:24:58]json parsed OK: [07:24:58]protocol is kg_v1.0 [07:24:58]action value=close_receipt [07:24:58]process_action close_receipt [07:24:58]cmd_close_receipt [07:24:58]MH_GetDate [07:24:58]Write to MH i2c: F0 00 00 31 95 B5 [07:24:58]Write i2c OK [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: F0 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: F0 09 00 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: F0 09 00 31 95 00 53 95 A8 66 90 0F 3E 66 F7 [07:24:58]GetLastDocTimeStamp 1722324045 [07:24:58]current date 1722324307 [07:24:58]FM_GetShiftState [07:24:58]SAM_PROTO_GetShiftState [07:24:58]wFMCommunicate request_size=4 [07:24:58]MH_SAM_APDU [07:24:58]CAPDU: 80 13 01 00 [07:24:58]Write to MH i2c: E2 08 00 32 95 80 13 01 00 00 00 00 00 44 [07:24:58]Write i2c OK [07:24:58]MH_I2C_Read... [07:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:58]Read from MH i2c: E2 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: E2 0E 00 [07:24:58]MH_I2C_Read... [07:24:58]Read from MH i2c: E2 0E 00 32 95 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0F [07:24:58]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:24:58]wFMCommunicate OK [07:24:58]SAM_PROTO_GetShiftState done [07:24:58]FM_GetShiftState done [07:24:58]opened in 1722298242 [07:24:58]opened+sec_in_day 1722384642 [07:24:58]quantity*price = 50036 [07:24:58]sum+1 = 50037 [07:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 29 30.07.2024 07:25 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118977 ФПД: 253347869127801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T072507&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118977&fm=253347869127801&tin=02508201610067®Number=0000000000092660&sum=50000 [07:24:59]StoreToDocumentArchive [07:24:59]shift 435 fd 118977 [07:24:59]save to /storage/0435/doc_00118977 [07:24:59]save last doc name /storage/0435/doc_00118977 to /storage/kkm_last_doc_name [07:24:59]save OK [07:24:59]Clear old archive folders... [07:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:59]tlvbuf is 020CECF0 [07:24:59]SAM_PROTO_ClearQueue [07:24:59]wFMCommunicate request_size=4 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 09 00 00 [07:24:59]Write to MH i2c: E2 08 00 3F 95 80 09 00 00 00 00 00 00 46 [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 3F 95 00 90 00 48 [07:24:59]RAPDU: 90 00 [07:24:59]wFMCommunicate OK [07:24:59]SAM_PROTO_ClearQueue done [07:24:59]KKMCreateOFDPacket [07:24:59]OFDProtocolAddRootSTLVToBuf [07:24:59]FM_MakeSignedData [07:24:59]FM_MakeSignedData [07:24:59]SAM_PROTO_SignData [07:24:59]wFMCommunicate request_size=4 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 0D 01 02 [07:24:59]Write to MH i2c: E2 08 00 40 95 80 0D 01 02 00 00 00 00 4E [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 40 95 00 90 00 49 [07:24:59]RAPDU: 90 00 [07:24:59]wFMCommunicate OK [07:24:59]wFMCommunicate request_size=255 [07:24:59]MH_SAM_APDU [07:24: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 95 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 D0 01 00 35 04 06 00 E6 [07:24:59]Write to MH i2c: E2 02 01 41 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 95 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 D0 01 00 35 04 06 00 E6 00 00 11 [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 41 95 00 90 00 4A [07:24:59]RAPDU: 90 00 [07:24:59]wFMCommunicate OK [07:24:59]wFMCommunicate request_size=10 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 0D 02 02 05 6B 25 BE 74 79 [07:24:59]Write to MH i2c: E2 0D 00 42 95 80 0D 02 02 05 00 6B 25 BE 74 79 00 00 96 [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 03 00 42 95 00 90 00 4B [07:24:59]RAPDU: 90 00 [07:24:59]wFMCommunicate OK [07:24:59]wFMCommunicate request_size=4 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 0D 03 02 [07:24:59]Write to MH i2c: E2 08 00 43 95 80 0D 03 02 00 00 00 00 53 [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 0B 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 0B 00 43 95 00 DE A8 BD E3 1D 9B F0 A7 90 00 C9 [07:24:59]RAPDU: DE A8 BD E3 1D 9B F0 A7 90 00 [07:24:59]wFMCommunicate OK [07:24:59]SAM_PROTO_SignData done [07:24:59]FM_MakeSignedData done [07:24:59]CreateOFDProtocolMessage [07:24:59]wFMCommunicate request_size=4 [07:24:59]MH_SAM_APDU [07:24:59]CAPDU: 80 11 00 00 [07:24:59]Write to MH i2c: E2 08 00 44 95 80 11 00 00 00 00 00 00 53 [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:59]Read from MH i2c: E2 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 17 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: E2 17 00 44 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AE [07:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:24:59]wFMCommunicate OK [07:24:59]CreateOFDProtocolMessage done [07:24:59]OFDSenderStorePacket 118977 [07:24:59]StoreOFDPacket docnum=118977 [07:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 44 58 07 01 1B 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 95 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 D0 01 00 35 04 06 00 E6 6B 25 BE 74 79 DE A8 BD E3 1D 9B F0 A7 [07:24:59]CheckFolder [07:24:59]dirname=/storage/ofd_packets [07:24:59]CheckFolder done [07:24:59]ProducePacketName [07:24:59]name=ofd_packets/00118977 [07:24:59]NVStorageSaveData ofd_packets/00118977 [07:24:59]File name is /storage/ofd_packets/00118977 [07:24:59]Write 301 bytes [07:24:59]NVStorageSaveData done [07:24:59]OFDSenderStorePacket done [07:24:59]KKMCreateOFDPacket done [07:24:59]NVStorageSaveData kkm_last_timestamp [07:24:59]File name is /storage/kkm_last_timestamp [07:24:59]Write 4 bytes [07:24:59]NVStorageSaveData done [07:24:59]ExternCall_PrintAddStr [07:24:59]wPrintStart [07:24:59]Write to MH i2c: 01 00 00 45 95 DA [07:24:59]Write i2c OK [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: 01 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: 01 07 00 [07:24:59]MH_I2C_Read... [07:24:59]Read from MH i2c: 01 07 00 45 95 00 00 00 00 00 FF 0F EF [07:24:59]RasterBufferAndPrint [07:24:59]line Счет N : (1)949894 [07:24:59]line ИНН: 02508201610067 [07:24:59]line Контрольно-Кассовый Чек [07:24:59]line ПРОДАЖА [07:24:59]line ТРК (МРК, ГНК) : 31 [07:24:59]line Товар: 2710124130 [07:24:59]line Аи-92-К-4 [07:24:59]line 7.380 * 67.80 [07:24:59]line = 500.36 [07:24:59]line НДС 12% НСП 1% [07:24:59]line > о реализуемом товаре [07:24:59]line ОКРУГЛЕНИЕ: -0.36 [07:24:59]line ИТОГО: 500.00 [07:24:59]line Внесено: 500.00 [07:24:59]line СДАЧА: 0.00 [07:24:59]line НСП 1% : 4.43 [07:24:59]line НДС 12% : 53.14 [07:24:59]line Наличными: 500.00 [07:24:59]line Безнал.: 0.00 [07:24:59]line Место: АЗС № 134 "Партнер Нефть" [07:24:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:24:59]line СНО: Общий режим [07:24:59]line Чек 29 30.07.2024 07:25 [07:24:59]line Смена: 435 ФФД: 1.0 [07:24:59]line ЗНМ: 0300000044 [07:24:59]line РНМ: 0000000000092660 [07:24:59]line Версия ККМ: 001 [07:24:59]line ФМ: 0000000000874939 [07:24:59]line ФД: 118977 [07:24:59]line ФПД: 253347869127801 [07:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T072507&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118977&fm=253347869127801&tin=02508201610067®Number=0000000000092660&sum=50000 [07:24:59]written 0, free lines is 4095 [07:24:59]OFD Sender: Processing packet 118977 [packets to send 86, broken 85] [07:24:59]ProducePacketName [07:24:59]name=ofd_packets/00118977 [07:25:00]OFD Sender: To server: pG, [07:25:00]CommunicateWithHost lk.salyk.kg:30040 [07:25:00]ConnectInit lk.salyk.kg [07:25:00]Connected sock=10 [07:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 44 58 07 01 1B 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 95 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 D0 01 00 35 04 06 00 E6 6B 25 BE 74 79 DE A8 BD E3 1D 9B F0 A7 [07:25:00]Write to MH i2c: 01 00 00 6F 95 04 [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: 01 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: 01 07 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: 01 07 00 6F 95 00 00 00 00 00 D8 0C EF [07:25:00]RasterBufferAndPrint [07:25:00]line [07:25:00]line [07:25:00]line [07:25:00]line [07:25:00]line [07:25:00]written 0, free lines is 3295 [07:25:00]MH_Cut [07:25:00]Write to MH i2c: D1 01 00 76 95 01 DD [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: D1 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: D1 01 00 [07:25:00]MH_I2C_Read... [07:25:00]Read from MH i2c: D1 01 00 76 95 00 DC [07:25:00]Write to MH i2c: 01 00 00 77 95 0C [07:25:00]Write i2c OK [07:25:00]MH_I2C_Read... [07:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 63 9B 47 00 28 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C1 D0 01 00 F4 03 04 00 DF 42 A8 66 B6 04 01 00 00 88 BA FB 95 FD EE 16 FC [07:25:00]CommunicateWithHost err = 0 [07:25:00]CheckOFDResponse [07:25:00]1017 (14) - 77093643461234 [07:25:00]1041 (16) - 0000000000874939 [07:25:00]1040 (4) - 118977 [07:25:00]1012 (4) - 30.07.2024 01:33 [07:25:00]1206 (1) - 0 [07:25:00]OFD Sender: Remove packet 118977 [07:25:00]ProducePacketName [07:25:00]name=ofd_packets/00118977 [07:25:00]NVStorageDeleteData [07:25:01]OFD Sender: No OFD packet to send [07:25:01]*** Cut start [07:25:01]*** Partial cut [07:25:01]*** CUTSNS_PIN = 1 [07:25:01]*** CUTSNS_PIN = 0 [07:25:01]*** Brake cut motor [07:25:01]Read from MH i2c: 01 [07:25:01]MH_I2C_Read... [07:25:01]*** Stop cut motor [07:25:01]*** Cut end [07:25:01]Read from MH i2c: 01 07 00 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: 01 07 00 77 95 00 00 00 00 00 FF 0F 21 [07:25:01]process_action close_receipt done [07:25:01]requested_data is exist [07:25:01]produce_requested_data [07:25:01]requested_item fm.sn is exist - process it [07:25:01]wFMCommunicate request_size=4 [07:25:01]MH_SAM_APDU [07:25:01]CAPDU: 80 11 00 00 [07:25:01]Write to MH i2c: E2 08 00 78 95 80 11 00 00 00 00 00 00 87 [07:25:01]Write i2c OK [07:25:01]MH_I2C_Read... [07:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:01]Read from MH i2c: E2 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: E2 17 00 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: E2 17 00 78 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [07:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:25:01]wFMCommunicate OK [07:25:01]requested_item fd.num is exist - process it [07:25:01]SAM_PROTO_GetFieldsCounters [07:25:01]wFMCommunicate request_size=4 [07:25:01]MH_SAM_APDU [07:25:01]CAPDU: 80 13 00 00 [07:25:01]Write to MH i2c: E2 08 00 79 95 80 13 00 00 00 00 00 00 8A [07:25:01]Write i2c OK [07:25:01]MH_I2C_Read... [07:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:01]Read from MH i2c: E2 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: E2 62 00 [07:25:01]MH_I2C_Read... [07:25:01]Read from MH i2c: E2 62 00 79 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [07:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:01]wFMCommunicate OK [07:25:01]SAM_PROTO_GetFieldsCounters done [07:25:01]requested_item shift.num is exist - process it [07:25:01]requested_item shift.opened is exist - process it [07:25:01]req_shift_opened [07:25:01]FM_GetShiftState [07:25:01]SAM_PROTO_GetShiftState [07:25:01]wFMCommunicate request_size=4 [07:25:01]MH_SAM_APDU [07:25:01]CAPDU: 80 13 01 00 [07:25:01]Write to MH i2c: E2 08 00 7A 95 80 13 01 00 00 00 00 00 8C [07:25:01]Write i2c OK [07:25:01]MH_I2C_Read... [07:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:02]Read from MH i2c: E2 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 0E 00 [07:25:02]MH_I2C_Read... [07:25:02]Read from MH i2c: E2 0E 00 7A 95 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 57 [07:25:02]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:25:02]wFMCommunicate OK [07:25:02]SAM_PROTO_GetShiftState done [07:25:02]FM_GetShiftState done [07:25:02]req_shift_opened done [07:25:02]requested_item shift.open_date is exist - process it [07:25:02]req_shift_open_date [07:25:02]req_shift_open_date done [07:25:02]produce_requested_data done [07:25:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118977,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:25:02]process_action_free close_receipt [07:25:02]json_value_free [07:25:02]json_value_free done [07:25:02]process_json_proto returns [07:25:02]Send response to host [07:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118977,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:25:02]free response buf [07:25:02]execute_script done [07:25:02]execute_script returns [07:25:02]free content buf [07:25:02]Sock 7.Close socket [07:25:02]Sock 7.Thread stoped [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:27]accept exits with 9 [07:35:27]New connection [07:35:27]New thread 3067383140 created [07:35:27]Thread 3067239780 joined [07:35:27]Waiting for new connection... [07:35:27] Sock 9.Parse request [07:35:27]Sock 9.Check first char [07:35:27]Sock 9.First char is OK [07:35:27]request: POST /json_proto HTTP/1.0 [07:35:27]Method: POST [07:35:27]URL: /json_proto [07:35:27]Method is POST - this is cgi request [07:35:27]url: /json_proto [07:35:27]query_string will be loaded in cgi processing [07:35:27]execute_cgi json_proto POST (null) [07:35:27]execute_cgi path=json_proto method=POST [07:35:27]POST find Content-Length [07:35:27]Host: 172.17.45.7:8080 [07:35:27]Content-Length: 679 [07:35:27]Content-Type: application/json [07:35:27] [07:35:27]POST finish read [07:35:27]Found Content-Length = 679 [07:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:27]execute_script... [07:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:27]POST & json_proto [07:35:27]process_json_proto [07:35:27]json parsed OK: [07:35:27]protocol is kg_v1.0 [07:35:27]action value=close_receipt [07:35:27]process_action close_receipt [07:35:27]cmd_close_receipt [07:35:27]MH_GetDate [07:35:27]Write to MH i2c: F0 00 00 7B 95 FF [07:35:27]Write i2c OK [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: F0 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: F0 09 00 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: F0 09 00 7B 95 00 C8 97 A8 66 90 0F 3E 66 B8 [07:35:27]GetLastDocTimeStamp 1722324307 [07:35:27]current date 1722324936 [07:35:27]FM_GetShiftState [07:35:27]SAM_PROTO_GetShiftState [07:35:27]wFMCommunicate request_size=4 [07:35:27]MH_SAM_APDU [07:35:27]CAPDU: 80 13 01 00 [07:35:27]Write to MH i2c: E2 08 00 7C 95 80 13 01 00 00 00 00 00 8E [07:35:27]Write i2c OK [07:35:27]MH_I2C_Read... [07:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:27]Read from MH i2c: E2 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: E2 0E 00 [07:35:27]MH_I2C_Read... [07:35:27]Read from MH i2c: E2 0E 00 7C 95 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 59 [07:35:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:35:27]wFMCommunicate OK [07:35:27]SAM_PROTO_GetShiftState done [07:35:27]FM_GetShiftState done [07:35:27]opened in 1722298242 [07:35:27]opened+sec_in_day 1722384642 [07:35:27]quantity*price = 100050 [07:35:27]sum+1 = 100052 [07:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 30 30.07.2024 07:35 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118978 ФПД: 71761840082147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T073536&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118978&fm=71761840082147&tin=02508201610067®Number=0000000000092660&sum=100000 [07:35:28]StoreToDocumentArchive [07:35:28]shift 435 fd 118978 [07:35:28]save to /storage/0435/doc_00118978 [07:35:28]save last doc name /storage/0435/doc_00118978 to /storage/kkm_last_doc_name [07:35:28]save OK [07:35:28]Clear old archive folders... [07:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:35:28]tlvbuf is 02042D10 [07:35:28]SAM_PROTO_ClearQueue [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 09 00 00 [07:35:28]Write to MH i2c: E2 08 00 89 95 80 09 00 00 00 00 00 00 90 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 89 95 00 90 00 92 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]SAM_PROTO_ClearQueue done [07:35:28]KKMCreateOFDPacket [07:35:28]OFDProtocolAddRootSTLVToBuf [07:35:28]FM_MakeSignedData [07:35:28]FM_MakeSignedData [07:35:28]SAM_PROTO_SignData [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 01 02 [07:35:28]Write to MH i2c: E2 08 00 8A 95 80 0D 01 02 00 00 00 00 98 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 8A 95 00 90 00 93 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]wFMCommunicate request_size=255 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C8 97 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 D0 01 00 35 04 06 00 41 44 5A FC [07:35:28]Write to MH i2c: E2 02 01 8B 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C8 97 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 D0 01 00 35 04 06 00 41 44 5A FC 00 00 D5 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 8B 95 00 90 00 94 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]wFMCommunicate request_size=7 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 02 02 02 8C E3 [07:35:28]Write to MH i2c: E2 0A 00 8C 95 80 0D 02 02 02 00 8C E3 00 00 0E [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 03 00 8C 95 00 90 00 95 [07:35:28]RAPDU: 90 00 [07:35:28]wFMCommunicate OK [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 0D 03 02 [07:35:28]Write to MH i2c: E2 08 00 8D 95 80 0D 03 02 00 00 00 00 9D [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 0B 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 0B 00 8D 95 00 EE E5 93 B9 E5 26 FB E8 90 00 AB [07:35:28]RAPDU: EE E5 93 B9 E5 26 FB E8 90 00 [07:35:28]wFMCommunicate OK [07:35:28]SAM_PROTO_SignData done [07:35:28]FM_MakeSignedData done [07:35:28]CreateOFDProtocolMessage [07:35:28]wFMCommunicate request_size=4 [07:35:28]MH_SAM_APDU [07:35:28]CAPDU: 80 11 00 00 [07:35:28]Write to MH i2c: E2 08 00 8E 95 80 11 00 00 00 00 00 00 9D [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:28]Read from MH i2c: E2 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 17 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: E2 17 00 8E 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [07:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:35:28]wFMCommunicate OK [07:35:28]CreateOFDProtocolMessage done [07:35:28]OFDSenderStorePacket 118978 [07:35:28]StoreOFDPacket docnum=118978 [07:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 70 04 01 31 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C8 97 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 D0 01 00 35 04 06 00 41 44 5A FC 8C E3 EE E5 93 B9 E5 26 FB E8 [07:35:28]CheckFolder [07:35:28]dirname=/storage/ofd_packets [07:35:28]CheckFolder done [07:35:28]ProducePacketName [07:35:28]name=ofd_packets/00118978 [07:35:28]NVStorageSaveData ofd_packets/00118978 [07:35:28]File name is /storage/ofd_packets/00118978 [07:35:28]Write 298 bytes [07:35:28]NVStorageSaveData done [07:35:28]OFDSenderStorePacket done [07:35:28]KKMCreateOFDPacket done [07:35:28]NVStorageSaveData kkm_last_timestamp [07:35:28]File name is /storage/kkm_last_timestamp [07:35:28]Write 4 bytes [07:35:28]NVStorageSaveData done [07:35:28]ExternCall_PrintAddStr [07:35:28]wPrintStart [07:35:28]Write to MH i2c: 01 00 00 8F 95 24 [07:35:28]Write i2c OK [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: 01 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: 01 07 00 [07:35:28]MH_I2C_Read... [07:35:28]Read from MH i2c: 01 07 00 8F 95 00 00 00 00 00 FF 0F 39 [07:35:28]RasterBufferAndPrint [07:35:28]line Счет N : (1)949895 [07:35:28]line ИНН: 02508201610067 [07:35:28]line Контрольно-Кассовый Чек [07:35:28]line ПРОДАЖА [07:35:28]line ТРК (МРК, ГНК) : 34 [07:35:28]line Товар: 2710194800 [07:35:28]line ДТ-К-5 [07:35:28]line 13.130 * 76.20 [07:35:28]line = 1000.51 [07:35:28]line НДС 12% НСП 1% [07:35:28]line > о реализуемом товаре [07:35:28]line ОКРУГЛЕНИЕ: -0.51 [07:35:28]line ИТОГО: 1000.00 [07:35:28]line Внесено: 1000.00 [07:35:28]line СДАЧА: 0.00 [07:35:28]line НСП 1% : 8.85 [07:35:28]line НДС 12% : 106.25 [07:35:28]line Наличными: 1000.00 [07:35:28]line Безнал.: 0.00 [07:35:28]line Место: АЗС № 134 "Партнер Нефть" [07:35:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:35:28]line СНО: Общий режим [07:35:28]line Чек 30 30.07.2024 07:35 [07:35:28]line Смена: 435 ФФД: 1.0 [07:35:28]line ЗНМ: 0300000044 [07:35:28]line РНМ: 0000000000092660 [07:35:28]line Версия ККМ: 001 [07:35:28]line ФМ: 0000000000874939 [07:35:28]line ФД: 118978 [07:35:28]line ФПД: 71761840082147 [07:35:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T073536&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118978&fm=71761840082147&tin=02508201610067®Number=0000000000092660&sum=100000 [07:35:29]OFD Sender: Processing packet 118978 [packets to send 86, broken 85] [07:35:29]ProducePacketName [07:35:29]name=ofd_packets/00118978 [07:35:29]OFD Sender: To server: pG, [07:35:29]CommunicateWithHost lk.salyk.kg:30040 [07:35:29]ConnectInit lk.salyk.kg [07:35:29]written 0, free lines is 4095 [07:35:29]Connected sock=10 [07:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E2 70 04 01 31 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 C8 97 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 D0 01 00 35 04 06 00 41 44 5A FC 8C E3 EE E5 93 B9 E5 26 FB E8 [07:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 35 13 47 00 92 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C2 D0 01 00 F4 03 04 00 54 45 A8 66 B6 04 01 00 00 BC 02 37 F8 BD 44 4C 7B [07:35:29]CommunicateWithHost err = 0 [07:35:29]CheckOFDResponse [07:35:29]1017 (14) - 77093643461234 [07:35:29]1041 (16) - 0000000000874939 [07:35:29]1040 (4) - 118978 [07:35:29]1012 (4) - 30.07.2024 01:43 [07:35:29]1206 (1) - 0 [07:35:29]OFD Sender: Remove packet 118978 [07:35:29]ProducePacketName [07:35:29]name=ofd_packets/00118978 [07:35:29]NVStorageDeleteData [07:35:29]Write to MH i2c: 01 00 00 B9 95 4E [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 07 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: 01 07 00 B9 95 00 00 00 00 00 CA 0C 2B [07:35:29]RasterBufferAndPrint [07:35:29]line [07:35:29]line [07:35:29]line [07:35:29]line [07:35:29]line [07:35:29]written 0, free lines is 3282 [07:35:29]MH_Cut [07:35:29]Write to MH i2c: D1 01 00 C0 95 01 27 [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: D1 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: D1 01 00 [07:35:29]MH_I2C_Read... [07:35:29]Read from MH i2c: D1 01 00 C0 95 00 26 [07:35:29]Write to MH i2c: 01 00 00 C1 95 56 [07:35:29]Write i2c OK [07:35:29]MH_I2C_Read... [07:35:29]OFD Sender: No OFD packet to send [07:35:30]*** Cut start [07:35:30]*** Partial cut [07:35:30]*** CUTSNS_PIN = 1 [07:35:30]*** CUTSNS_PIN = 0 [07:35:30]*** Brake cut motor [07:35:30]Read from MH i2c: 01 [07:35:30]MH_I2C_Read... [07:35:30]*** Stop cut motor [07:35:30]*** Cut end [07:35:30]Read from MH i2c: 01 07 00 [07:35:30]MH_I2C_Read... [07:35:30]Read from MH i2c: 01 07 00 C1 95 00 00 00 00 00 FF 0F 6B [07:35:30]process_action close_receipt done [07:35:30]requested_data is exist [07:35:30]produce_requested_data [07:35:30]requested_item fm.sn is exist - process it [07:35:30]wFMCommunicate request_size=4 [07:35:30]MH_SAM_APDU [07:35:30]CAPDU: 80 11 00 00 [07:35:30]Write to MH i2c: E2 08 00 C2 95 80 11 00 00 00 00 00 00 D1 [07:35:30]Write i2c OK [07:35:30]MH_I2C_Read... [07:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:31]Read from MH i2c: E2 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 17 00 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 17 00 C2 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [07:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:35:31]wFMCommunicate OK [07:35:31]requested_item fd.num is exist - process it [07:35:31]SAM_PROTO_GetFieldsCounters [07:35:31]wFMCommunicate request_size=4 [07:35:31]MH_SAM_APDU [07:35:31]CAPDU: 80 13 00 00 [07:35:31]Write to MH i2c: E2 08 00 C3 95 80 13 00 00 00 00 00 00 D4 [07:35:31]Write i2c OK [07:35:31]MH_I2C_Read... [07:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:31]Read from MH i2c: E2 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 62 00 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 62 00 C3 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [07:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:31]wFMCommunicate OK [07:35:31]SAM_PROTO_GetFieldsCounters done [07:35:31]requested_item shift.num is exist - process it [07:35:31]requested_item shift.opened is exist - process it [07:35:31]req_shift_opened [07:35:31]FM_GetShiftState [07:35:31]SAM_PROTO_GetShiftState [07:35:31]wFMCommunicate request_size=4 [07:35:31]MH_SAM_APDU [07:35:31]CAPDU: 80 13 01 00 [07:35:31]Write to MH i2c: E2 08 00 C4 95 80 13 01 00 00 00 00 00 D6 [07:35:31]Write i2c OK [07:35:31]MH_I2C_Read... [07:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:31]Read from MH i2c: E2 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 0E 00 [07:35:31]MH_I2C_Read... [07:35:31]Read from MH i2c: E2 0E 00 C4 95 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A1 [07:35:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:35:31]wFMCommunicate OK [07:35:31]SAM_PROTO_GetShiftState done [07:35:31]FM_GetShiftState done [07:35:31]req_shift_opened done [07:35:31]requested_item shift.open_date is exist - process it [07:35:31]req_shift_open_date [07:35:31]req_shift_open_date done [07:35:31]produce_requested_data done [07:35:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118978,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:35:31]process_action_free close_receipt [07:35:31]json_value_free [07:35:31]json_value_free done [07:35:31]process_json_proto returns [07:35:31]Send response to host [07:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118978,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:35:31]free response buf [07:35:31]execute_script done [07:35:31]execute_script returns [07:35:31]free content buf [07:35:31]Sock 9.Close socket [07:35:31]Sock 9.Thread stoped [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:07]accept exits with 7 [07:53:07]New connection [07:53:07]New thread 3067239780 created [07:53:07]Thread 3067383140 joined [07:53:07]Waiting for new connection... [07:53:07] Sock 7.Parse request [07:53:07]Sock 7.Check first char [07:53:07]Sock 7.First char is OK [07:53:07]request: POST /json_proto HTTP/1.0 [07:53:07]Method: POST [07:53:07]URL: /json_proto [07:53:07]Method is POST - this is cgi request [07:53:07]url: /json_proto [07:53:07]query_string will be loaded in cgi processing [07:53:07]execute_cgi json_proto POST (null) [07:53:07]execute_cgi path=json_proto method=POST [07:53:07]POST find Content-Length [07:53:07]Host: 172.17.45.7:8080 [07:53:07]Content-Length: 819 [07:53:07]Content-Type: application/json [07:53:07] [07:53:07]POST finish read [07:53:07]Found Content-Length = 819 [07:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:07]execute_script... [07:53: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)949896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3500.00, "payments": [ { "type": 1, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:07]POST & json_proto [07:53:07]process_json_proto [07:53:07]json parsed OK: [07:53:07]protocol is kg_v1.0 [07:53:07]action value=close_receipt [07:53:07]process_action close_receipt [07:53:07]cmd_close_receipt [07:53:07]MH_GetDate [07:53:07]Write to MH i2c: F0 00 00 C5 95 49 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: F0 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: F0 09 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: F0 09 00 C5 95 00 EC 9B A8 66 90 0F 3E 66 2A [07:53:07]GetLastDocTimeStamp 1722324936 [07:53:07]current date 1722325996 [07:53:07]FM_GetShiftState [07:53:07]SAM_PROTO_GetShiftState [07:53:07]wFMCommunicate request_size=4 [07:53:07]MH_SAM_APDU [07:53:07]CAPDU: 80 13 01 00 [07:53:07]Write to MH i2c: E2 08 00 C6 95 80 13 01 00 00 00 00 00 D8 [07:53:07]Write i2c OK [07:53:07]MH_I2C_Read... [07:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:07]Read from MH i2c: E2 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 0E 00 [07:53:07]MH_I2C_Read... [07:53:07]Read from MH i2c: E2 0E 00 C6 95 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A3 [07:53:07]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:53:07]wFMCommunicate OK [07:53:07]SAM_PROTO_GetShiftState done [07:53:07]FM_GetShiftState done [07:53:07]opened in 1722298242 [07:53:07]opened+sec_in_day 1722384642 [07:53:07]quantity*price = 350062 [07:53:07]sum+1 = 350064 [07:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 31 30.07.2024 07:53 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118979 ФПД: 211156640214650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T075316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118979&fm=211156640214650&tin=02508201610067®Number=0000000000092660&sum=350000 [07:53:08]StoreToDocumentArchive [07:53:08]shift 435 fd 118979 [07:53:08]save to /storage/0435/doc_00118979 [07:53:08]save last doc name /storage/0435/doc_00118979 to /storage/kkm_last_doc_name [07:53:08]save OK [07:53:08]Clear old archive folders... [07:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:53:08]tlvbuf is 02138DE0 [07:53:08]SAM_PROTO_ClearQueue [07:53:08]wFMCommunicate request_size=4 [07:53:08]MH_SAM_APDU [07:53:08]CAPDU: 80 09 00 00 [07:53:08]Write to MH i2c: E2 08 00 D3 95 80 09 00 00 00 00 00 00 DA [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:08]Read from MH i2c: E2 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 D3 95 00 90 00 DC [07:53:08]RAPDU: 90 00 [07:53:08]wFMCommunicate OK [07:53:08]SAM_PROTO_ClearQueue done [07:53:08]KKMCreateOFDPacket [07:53:08]OFDProtocolAddRootSTLVToBuf [07:53:08]FM_MakeSignedData [07:53:08]FM_MakeSignedData [07:53:08]SAM_PROTO_SignData [07:53:08]wFMCommunicate request_size=4 [07:53:08]MH_SAM_APDU [07:53:08]CAPDU: 80 0D 01 02 [07:53:08]Write to MH i2c: E2 08 00 D4 95 80 0D 01 02 00 00 00 00 E2 [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:08]Read from MH i2c: E2 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 D4 95 00 90 00 DD [07:53:08]RAPDU: 90 00 [07:53:08]wFMCommunicate OK [07:53:08]wFMCommunicate request_size=255 [07:53:08]MH_SAM_APDU [07:53:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC 9B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 D0 01 00 35 04 06 00 C0 0B BC 88 [07:53:08]Write to MH i2c: E2 02 01 D5 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC 9B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 D0 01 00 35 04 06 00 C0 0B BC 88 00 00 2E [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:08]Read from MH i2c: E2 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 D5 95 00 90 00 DE [07:53:08]RAPDU: 90 00 [07:53:08]wFMCommunicate OK [07:53:08]wFMCommunicate request_size=7 [07:53:08]MH_SAM_APDU [07:53:08]CAPDU: 80 0D 02 02 02 2E 7A [07:53:08]Write to MH i2c: E2 0A 00 D6 95 80 0D 02 02 02 00 2E 7A 00 00 91 [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:08]Read from MH i2c: E2 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 03 00 D6 95 00 90 00 DF [07:53:08]RAPDU: 90 00 [07:53:08]wFMCommunicate OK [07:53:08]wFMCommunicate request_size=4 [07:53:08]MH_SAM_APDU [07:53:08]CAPDU: 80 0D 03 02 [07:53:08]Write to MH i2c: E2 08 00 D7 95 80 0D 03 02 00 00 00 00 E7 [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:08]Read from MH i2c: E2 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 0B 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 0B 00 D7 95 00 33 13 14 64 B8 C7 3C 78 90 00 D9 [07:53:08]RAPDU: 33 13 14 64 B8 C7 3C 78 90 00 [07:53:08]wFMCommunicate OK [07:53:08]SAM_PROTO_SignData done [07:53:08]FM_MakeSignedData done [07:53:08]CreateOFDProtocolMessage [07:53:08]wFMCommunicate request_size=4 [07:53:08]MH_SAM_APDU [07:53:08]CAPDU: 80 11 00 00 [07:53:08]Write to MH i2c: E2 08 00 D8 95 80 11 00 00 00 00 00 00 E7 [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:08]Read from MH i2c: E2 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 17 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: E2 17 00 D8 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 42 [07:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:53:08]wFMCommunicate OK [07:53:08]CreateOFDProtocolMessage done [07:53:08]OFDSenderStorePacket 118979 [07:53:08]StoreOFDPacket docnum=118979 [07:53:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A 25 04 01 B0 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC 9B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 D0 01 00 35 04 06 00 C0 0B BC 88 2E 7A 33 13 14 64 B8 C7 3C 78 [07:53:08]CheckFolder [07:53:08]dirname=/storage/ofd_packets [07:53:08]CheckFolder done [07:53:08]ProducePacketName [07:53:08]name=ofd_packets/00118979 [07:53:08]NVStorageSaveData ofd_packets/00118979 [07:53:08]File name is /storage/ofd_packets/00118979 [07:53:08]Write 298 bytes [07:53:08]NVStorageSaveData done [07:53:08]OFDSenderStorePacket done [07:53:08]KKMCreateOFDPacket done [07:53:08]NVStorageSaveData kkm_last_timestamp [07:53:08]File name is /storage/kkm_last_timestamp [07:53:08]Write 4 bytes [07:53:08]NVStorageSaveData done [07:53:08]ExternCall_PrintAddStr [07:53:08]wPrintStart [07:53:08]Write to MH i2c: 01 00 00 D9 95 6E [07:53:08]Write i2c OK [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: 01 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: 01 07 00 [07:53:08]MH_I2C_Read... [07:53:08]Read from MH i2c: 01 07 00 D9 95 00 00 00 00 00 FF 0F 83 [07:53:08]RasterBufferAndPrint [07:53:08]line Счет N : (1)949896 [07:53:08]line ИНН: 02508201610067 [07:53:08]line Контрольно-Кассовый Чек [07:53:08]line ПРОДАЖА [07:53:08]line ТРК (МРК, ГНК) : 11 [07:53:08]line Товар: 2710194800 [07:53:08]line ДТ-К-5 [07:53:08]line 45.940 * 76.20 [07:53:08]line = 3500.63 [07:53:08]line НДС 12% НСП 1% [07:53:08]line > о реализуемом товаре [07:53:08]line ОКРУГЛЕНИЕ: -0.63 [07:53:08]line ИТОГО: 3500.00 [07:53:08]line НСП 1% : 30.98 [07:53:08]line НДС 12% : 371.75 [07:53:08]line Наличными: 0.00 [07:53:08]line Безнал.: 3500.00 [07:53:08]line Место: АЗС № 134 "Партнер Нефть" [07:53:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:53:08]line СНО: Общий режим [07:53:08]line Чек 31 30.07.2024 07:53 [07:53:08]line Смена: 435 ФФД: 1.0 [07:53:08]line ЗНМ: 0300000044 [07:53:08]line РНМ: 0000000000092660 [07:53:08]line Версия ККМ: 001 [07:53:08]line Платежная система: O! деньги [07:53:08]line ФМ: 0000000000874939 [07:53:08]line ФД: 118979 [07:53:08]line ФПД: 211156640214650 [07:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T075316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118979&fm=211156640214650&tin=02508201610067®Number=0000000000092660&sum=350000 [07:53:09]OFD Sender: Processing packet 118979 [packets to send 86, broken 85] [07:53:09]ProducePacketName [07:53:09]name=ofd_packets/00118979 [07:53:09]OFD Sender: To server: pG, [07:53:09]CommunicateWithHost lk.salyk.kg:30040 [07:53:09]ConnectInit lk.salyk.kg [07:53:09]written 0, free lines is 4095 [07:53:09]Connected sock=9 [07:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A 25 04 01 B0 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 EC 9B A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 D0 01 00 35 04 06 00 C0 0B BC 88 2E 7A 33 13 14 64 B8 C7 3C 78 [07:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3F 67 47 00 BE 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C3 D0 01 00 F4 03 04 00 78 49 A8 66 B6 04 01 00 00 16 3D 81 E2 9B 4B 5A 9B [07:53:09]CommunicateWithHost err = 0 [07:53:09]CheckOFDResponse [07:53:09]1017 (14) - 77093643461234 [07:53:09]1041 (16) - 0000000000874939 [07:53:09]1040 (4) - 118979 [07:53:09]1012 (4) - 30.07.2024 02:01 [07:53:09]1206 (1) - 0 [07:53:09]OFD Sender: Remove packet 118979 [07:53:09]ProducePacketName [07:53:09]name=ofd_packets/00118979 [07:53:09]NVStorageDeleteData [07:53:09]Write to MH i2c: 01 00 00 03 96 99 [07:53:09]Write i2c OK [07:53:09]MH_I2C_Read... [07:53:09]Read from MH i2c: 01 [07:53:09]MH_I2C_Read... [07:53:09]Read from MH i2c: 01 07 00 [07:53:09]MH_I2C_Read... [07:53:09]Read from MH i2c: 01 07 00 03 96 00 00 00 00 00 D6 0C 82 [07:53:09]RasterBufferAndPrint [07:53:09]line [07:53:09]line [07:53:09]line [07:53:09]line [07:53:09]line [07:53:09]written 0, free lines is 3294 [07:53:09]MH_Cut [07:53:09]Write to MH i2c: D1 01 00 0A 96 01 72 [07:53:09]Write i2c OK [07:53:09]MH_I2C_Read... [07:53:09]Read from MH i2c: D1 [07:53:09]MH_I2C_Read... [07:53:09]Read from MH i2c: D1 01 00 [07:53:09]MH_I2C_Read... [07:53:09]Read from MH i2c: D1 01 00 0A 96 00 71 [07:53:09]Write to MH i2c: 01 00 00 0B 96 A1 [07:53:09]Write i2c OK [07:53:09]MH_I2C_Read... [07:53:09]OFD Sender: No OFD packet to send [07:53:10]*** Cut start [07:53:10]*** Partial cut [07:53:10]*** CUTSNS_PIN = 1 [07:53:10]*** CUTSNS_PIN = 0 [07:53:10]*** Brake cut motor [07:53:10]Read from MH i2c: 01 [07:53:10]MH_I2C_Read... [07:53:10]*** Stop cut motor [07:53:10]*** Cut end [07:53:10]Read from MH i2c: 01 07 00 [07:53:10]MH_I2C_Read... [07:53:10]Read from MH i2c: 01 07 00 0B 96 00 00 00 00 00 FF 0F B6 [07:53:10]process_action close_receipt done [07:53:10]requested_data is exist [07:53:10]produce_requested_data [07:53:10]requested_item fm.sn is exist - process it [07:53:10]wFMCommunicate request_size=4 [07:53:10]MH_SAM_APDU [07:53:10]CAPDU: 80 11 00 00 [07:53:10]Write to MH i2c: E2 08 00 0C 96 80 11 00 00 00 00 00 00 1C [07:53:10]Write i2c OK [07:53:10]MH_I2C_Read... [07:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:10]Read from MH i2c: E2 [07:53:10]MH_I2C_Read... [07:53:10]Read from MH i2c: E2 17 00 [07:53:10]MH_I2C_Read... [07:53:10]Read from MH i2c: E2 17 00 0C 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [07:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [07:53:10]wFMCommunicate OK [07:53:10]requested_item fd.num is exist - process it [07:53:10]SAM_PROTO_GetFieldsCounters [07:53:10]wFMCommunicate request_size=4 [07:53:10]MH_SAM_APDU [07:53:10]CAPDU: 80 13 00 00 [07:53:10]Write to MH i2c: E2 08 00 0D 96 80 13 00 00 00 00 00 00 1F [07:53:10]Write i2c OK [07:53:10]MH_I2C_Read... [07:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:11]Read from MH i2c: E2 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 62 00 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 62 00 0D 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [07:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:53:11]wFMCommunicate OK [07:53:11]SAM_PROTO_GetFieldsCounters done [07:53:11]requested_item shift.num is exist - process it [07:53:11]requested_item shift.opened is exist - process it [07:53:11]req_shift_opened [07:53:11]FM_GetShiftState [07:53:11]SAM_PROTO_GetShiftState [07:53:11]wFMCommunicate request_size=4 [07:53:11]MH_SAM_APDU [07:53:11]CAPDU: 80 13 01 00 [07:53:11]Write to MH i2c: E2 08 00 0E 96 80 13 01 00 00 00 00 00 21 [07:53:11]Write i2c OK [07:53:11]MH_I2C_Read... [07:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:11]Read from MH i2c: E2 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 0E 00 [07:53:11]MH_I2C_Read... [07:53:11]Read from MH i2c: E2 0E 00 0E 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EC [07:53:11]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [07:53:11]wFMCommunicate OK [07:53:11]SAM_PROTO_GetShiftState done [07:53:11]FM_GetShiftState done [07:53:11]req_shift_opened done [07:53:11]requested_item shift.open_date is exist - process it [07:53:11]req_shift_open_date [07:53:11]req_shift_open_date done [07:53:11]produce_requested_data done [07:53:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118979,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [07:53:11]process_action_free close_receipt [07:53:11]json_value_free [07:53:11]json_value_free done [07:53:11]process_json_proto returns [07:53:11]Send response to host [07:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118979,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [07:53:11]free response buf [07:53:11]execute_script done [07:53:11]execute_script returns [07:53:11]free content buf [07:53:11]Sock 7.Close socket [07:53:11]Sock 7.Thread stoped [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:37]accept exits with 10 [08:00:37]New connection [08:00:37]New thread 3067383140 created [08:00:37]Thread 3067239780 joined [08:00:37]Waiting for new connection... [08:00:37] Sock 10.Parse request [08:00:37]Sock 10.Check first char [08:00:37]Sock 10.First char is OK [08:00:37]request: POST /json_proto HTTP/1.0 [08:00:37]Method: POST [08:00:37]URL: /json_proto [08:00:37]Method is POST - this is cgi request [08:00:37]url: /json_proto [08:00:37]query_string will be loaded in cgi processing [08:00:37]execute_cgi json_proto POST (null) [08:00:37]execute_cgi path=json_proto method=POST [08:00:37]POST find Content-Length [08:00:37]Host: 172.17.45.7:8080 [08:00:37]Content-Length: 1202 [08:00:37]Content-Type: application/json [08:00:37] [08:00:37]POST finish read [08:00:37]Found Content-Length = 1202 [08:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949897\u000A30.07.2024 07:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 19.170 x 67.80\u000A\u0418\u0422\u041E\u0413: 1299.73\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74593\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:37]execute_script... [08:00:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949897\u000A30.07.2024 07:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 19.170 x 67.80\u000A\u0418\u0422\u041E\u0413: 1299.73\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74593\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:37]POST & json_proto [08:00:37]process_json_proto [08:00:37]json parsed OK: [08:00:37]protocol is kg_v1.0 [08:00:37]action value=print_text [08:00:37]process_action print_text [08:00:37]cmd_print_text [08:00:37]ExternCall_PrintAddStr [08:00:37]wPrintStart [08:00:37]Write to MH i2c: 01 00 00 0F 96 A5 [08:00:37]Write i2c OK [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: 01 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: 01 07 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: 01 07 00 0F 96 00 00 00 00 00 FF 0F BA [08:00:37]RasterBufferAndPrint [08:00:37]line *****ТОВАРНЫЙ ЧЕК***** [08:00:37]line АЗС-134 [08:00:37]line Партнер нефть [08:00:37]line 02508201610067 [08:00:37]line Кассир : Айдарали у Б. [08:00:37]line Счет N : (1)949897 [08:00:37]line 30.07.2024 07:58 [08:00:37]line ПРОДАЖА [08:00:37]line ТРК (МРК, ГНК): 31 [08:00:37]line Вид ГСМ : 2710124130 [08:00:37]line Аи-92-К-4 [08:00:37]line 19.170 x 67.80 [08:00:37]line ИТОГ: 1299.73 [08:00:37]line Тип оплаты: Талоны: Топливная Карта [08:00:37]line 74593 [08:00:37]line ______________________ [08:00:37]line (подпись) [08:00:37]written 0, free lines is 4095 [08:00:38]Write to MH i2c: 01 00 00 23 96 B9 [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: 01 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: 01 07 00 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: 01 07 00 23 96 00 00 00 00 00 11 0E DF [08:00:38]RasterBufferAndPrint [08:00:38]line [08:00:38]line [08:00:38]line [08:00:38]line [08:00:38]line [08:00:38]written 0, free lines is 3602 [08:00:38]MH_Cut [08:00:38]Write to MH i2c: D1 01 00 2A 96 01 92 [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: D1 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: D1 01 00 [08:00:38]MH_I2C_Read... [08:00:38]Read from MH i2c: D1 01 00 2A 96 00 91 [08:00:38]Write to MH i2c: 01 00 00 2B 96 C1 [08:00:38]Write i2c OK [08:00:38]MH_I2C_Read... [08:00:38]*** Cut start [08:00:38]*** Partial cut [08:00:38]*** CUTSNS_PIN = 1 [08:00:38]*** CUTSNS_PIN = 0 [08:00:38]*** Brake cut motor [08:00:39]Read from MH i2c: 01 [08:00:39]MH_I2C_Read... [08:00:39]*** Stop cut motor [08:00:39]*** Cut end [08:00:39]Read from MH i2c: 01 07 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: 01 07 00 2B 96 00 00 00 00 00 FF 0F D6 [08:00:39]process_action print_text done [08:00:39]requested_data is exist [08:00:39]produce_requested_data [08:00:39]requested_item fm.sn is exist - process it [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 11 00 00 [08:00:39]Write to MH i2c: E2 08 00 2C 96 80 11 00 00 00 00 00 00 3C [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 17 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 17 00 2C 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [08:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:00:39]wFMCommunicate OK [08:00:39]requested_item fd.num is exist - process it [08:00:39]SAM_PROTO_GetFieldsCounters [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 13 00 00 [08:00:39]Write to MH i2c: E2 08 00 2D 96 80 13 00 00 00 00 00 00 3F [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 62 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 62 00 2D 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [08:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:39]wFMCommunicate OK [08:00:39]SAM_PROTO_GetFieldsCounters done [08:00:39]requested_item shift.num is exist - process it [08:00:39]requested_item shift.opened is exist - process it [08:00:39]req_shift_opened [08:00:39]FM_GetShiftState [08:00:39]SAM_PROTO_GetShiftState [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 13 01 00 [08:00:39]Write to MH i2c: E2 08 00 2E 96 80 13 01 00 00 00 00 00 41 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0E 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0E 00 2E 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0C [08:00:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:00:39]wFMCommunicate OK [08:00:39]SAM_PROTO_GetShiftState done [08:00:39]FM_GetShiftState done [08:00:39]req_shift_opened done [08:00:39]requested_item shift.open_date is exist - process it [08:00:39]req_shift_open_date [08:00:39]req_shift_open_date done [08:00:39]produce_requested_data done [08:00:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118979,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:00:39]process_action_free print_text [08:00:39]json_value_free [08:00:39]json_value_free done [08:00:39]process_json_proto returns [08:00:39]Send response to host [08:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118979,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:00:39]free response buf [08:00:39]execute_script done [08:00:39]execute_script returns [08:00:39]free content buf [08:00:39]Sock 10.Close socket [08:00:39]Sock 10.Thread stoped [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01: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:24]accept exits with 7 [08:05:24]New connection [08:05:24]New thread 3067239780 created [08:05:24]Thread 3067383140 joined [08:05:24]Waiting for new connection... [08:05:24] Sock 7.Parse request [08:05:24]Sock 7.Check first char [08:05:24]Sock 7.First char is OK [08:05:24]request: POST /json_proto HTTP/1.0 [08:05:24]Method: POST [08:05:24]URL: /json_proto [08:05:24]Method is POST - this is cgi request [08:05:24]url: /json_proto [08:05:24]query_string will be loaded in cgi processing [08:05:24]execute_cgi json_proto POST (null) [08:05:24]execute_cgi path=json_proto method=POST [08:05:24]POST find Content-Length [08:05:24]Host: 172.17.45.7:8080 [08:05:24]Content-Length: 682 [08:05:24]Content-Type: application/json [08:05:24] [08:05:24]POST finish read [08:05:24]Found Content-Length = 682 [08:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:05:24]execute_script... [08:05: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)949898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:05:24]POST & json_proto [08:05:24]process_json_proto [08:05:24]json parsed OK: [08:05:24]protocol is kg_v1.0 [08:05:24]action value=close_receipt [08:05:24]process_action close_receipt [08:05:24]cmd_close_receipt [08:05:24]MH_GetDate [08:05:24]Write to MH i2c: F0 00 00 2F 96 B4 [08:05:24]Write i2c OK [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: F0 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: F0 09 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: F0 09 00 2F 96 00 CE 9E A8 66 90 0F 3E 66 7A [08:05:24]GetLastDocTimeStamp 1722325996 [08:05:24]current date 1722326734 [08:05:24]FM_GetShiftState [08:05:24]SAM_PROTO_GetShiftState [08:05:24]wFMCommunicate request_size=4 [08:05:24]MH_SAM_APDU [08:05:24]CAPDU: 80 13 01 00 [08:05:24]Write to MH i2c: E2 08 00 30 96 80 13 01 00 00 00 00 00 43 [08:05:24]Write i2c OK [08:05:24]MH_I2C_Read... [08:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:24]Read from MH i2c: E2 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 0E 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 0E 00 30 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0E [08:05:24]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:05:24]wFMCommunicate OK [08:05:24]SAM_PROTO_GetShiftState done [08:05:24]FM_GetShiftState done [08:05:24]opened in 1722298242 [08:05:24]opened+sec_in_day 1722384642 [08:05:24]quantity*price = 100005 [08:05:24]sum+1 = 100006 [08:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 32 30.07.2024 08:05 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118980 ФПД: 89010702504619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080534&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118980&fm=89010702504619&tin=02508201610067®Number=0000000000092660&sum=100000 [08:05:25]StoreToDocumentArchive [08:05:25]shift 435 fd 118980 [08:05:25]save to /storage/0435/doc_00118980 [08:05:25]save last doc name /storage/0435/doc_00118980 to /storage/kkm_last_doc_name [08:05:25]save OK [08:05:25]Clear old archive folders... [08:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:25]tlvbuf is 01E70FB0 [08:05:25]SAM_PROTO_ClearQueue [08:05:25]wFMCommunicate request_size=4 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 09 00 00 [08:05:25]Write to MH i2c: E2 08 00 3D 96 80 09 00 00 00 00 00 00 45 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]OFD Sender: No OFD packet to send [08:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 3D 96 00 90 00 47 [08:05:25]RAPDU: 90 00 [08:05:25]wFMCommunicate OK [08:05:25]SAM_PROTO_ClearQueue done [08:05:25]KKMCreateOFDPacket [08:05:25]OFDProtocolAddRootSTLVToBuf [08:05:25]FM_MakeSignedData [08:05:25]FM_MakeSignedData [08:05:25]SAM_PROTO_SignData [08:05:25]wFMCommunicate request_size=4 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 0D 01 02 [08:05:25]Write to MH i2c: E2 08 00 3E 96 80 0D 01 02 00 00 00 00 4D [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 3E 96 00 90 00 48 [08:05:25]RAPDU: 90 00 [08:05:25]wFMCommunicate OK [08:05:25]wFMCommunicate request_size=255 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CE 9E A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 D0 01 00 35 04 06 00 50 [08:05:25]Write to MH i2c: E2 02 01 3F 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CE 9E A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 D0 01 00 35 04 06 00 50 00 00 93 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 03 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 03 00 3F 96 00 90 00 49 [08:05:26]RAPDU: 90 00 [08:05:26]wFMCommunicate OK [08:05:26]wFMCommunicate request_size=10 [08:05:26]MH_SAM_APDU [08:05:26]CAPDU: 80 0D 02 02 05 F4 6B 4D D2 AB [08:05:26]Write to MH i2c: E2 0D 00 40 96 80 0D 02 02 05 00 F4 6B 4D D2 AB 00 00 83 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 03 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 03 00 40 96 00 90 00 4A [08:05:26]RAPDU: 90 00 [08:05:26]wFMCommunicate OK [08:05:26]wFMCommunicate request_size=4 [08:05:26]MH_SAM_APDU [08:05:26]CAPDU: 80 0D 03 02 [08:05:26]Write to MH i2c: E2 08 00 41 96 80 0D 03 02 00 00 00 00 52 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 0B 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 0B 00 41 96 00 F6 69 C4 49 58 09 A9 34 90 00 FD [08:05:26]RAPDU: F6 69 C4 49 58 09 A9 34 90 00 [08:05:26]wFMCommunicate OK [08:05:26]SAM_PROTO_SignData done [08:05:26]FM_MakeSignedData done [08:05:26]CreateOFDProtocolMessage [08:05:26]wFMCommunicate request_size=4 [08:05:26]MH_SAM_APDU [08:05:26]CAPDU: 80 11 00 00 [08:05:26]Write to MH i2c: E2 08 00 42 96 80 11 00 00 00 00 00 00 52 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:26]Read from MH i2c: E2 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 17 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: E2 17 00 42 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [08:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:05:26]wFMCommunicate OK [08:05:26]CreateOFDProtocolMessage done [08:05:26]OFDSenderStorePacket 118980 [08:05:26]StoreOFDPacket docnum=118980 [08:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2E 5E 07 01 8F 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CE 9E A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 D0 01 00 35 04 06 00 50 F4 6B 4D D2 AB F6 69 C4 49 58 09 A9 34 [08:05:26]CheckFolder [08:05:26]dirname=/storage/ofd_packets [08:05:26]CheckFolder done [08:05:26]ProducePacketName [08:05:26]name=ofd_packets/00118980 [08:05:26]NVStorageSaveData ofd_packets/00118980 [08:05:26]File name is /storage/ofd_packets/00118980 [08:05:26]Write 301 bytes [08:05:26]NVStorageSaveData done [08:05:26]OFDSenderStorePacket done [08:05:26]KKMCreateOFDPacket done [08:05:26]NVStorageSaveData kkm_last_timestamp [08:05:26]File name is /storage/kkm_last_timestamp [08:05:26]Write 4 bytes [08:05:26]NVStorageSaveData done [08:05:26]ExternCall_PrintAddStr [08:05:26]wPrintStart [08:05:26]Write to MH i2c: 01 00 00 43 96 D9 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 07 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 07 00 43 96 00 00 00 00 00 FF 0F EE [08:05:26]RasterBufferAndPrint [08:05:26]line Счет N : (1)949898 [08:05:26]line ИНН: 02508201610067 [08:05:26]line Контрольно-Кассовый Чек [08:05:26]line ПРОДАЖА [08:05:26]line ТРК (МРК, ГНК) : 41 [08:05:26]line Товар: 2710124130 [08:05:26]line Аи-92-К-4 [08:05:26]line 14.750 * 67.80 [08:05:26]line = 1000.05 [08:05:26]line НДС 12% НСП 1% [08:05:26]line > о реализуемом товаре [08:05:26]line ОКРУГЛЕНИЕ: -0.05 [08:05:26]line ИТОГО: 1000.00 [08:05:26]line Внесено: 1000.00 [08:05:26]line СДАЧА: 0.00 [08:05:26]line НСП 1% : 8.85 [08:05:26]line НДС 12% : 106.20 [08:05:26]line Наличными: 1000.00 [08:05:26]line Безнал.: 0.00 [08:05:26]line Место: АЗС № 134 "Партнер Нефть" [08:05:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:05:26]line СНО: Общий режим [08:05:26]line Чек 32 30.07.2024 08:05 [08:05:26]line Смена: 435 ФФД: 1.0 [08:05:26]line ЗНМ: 0300000044 [08:05:26]line РНМ: 0000000000092660 [08:05:26]line Версия ККМ: 001 [08:05:26]line ФМ: 0000000000874939 [08:05:26]line ФД: 118980 [08:05:26]line ФПД: 89010702504619 [08:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080534&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118980&fm=89010702504619&tin=02508201610067®Number=0000000000092660&sum=100000 [08:05:26]OFD Sender: Processing packet 118980 [packets to send 86, broken 85] [08:05:26]ProducePacketName [08:05:26]name=ofd_packets/00118980 [08:05:26]OFD Sender: To server: pG, [08:05:26]CommunicateWithHost lk.salyk.kg:30040 [08:05:26]ConnectInit lk.salyk.kg [08:05:26]written 0, free lines is 4095 [08:05:26]Connected sock=10 [08:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2E 5E 07 01 8F 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 CE 9E A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 D0 01 00 35 04 06 00 50 F4 6B 4D D2 AB F6 69 C4 49 58 09 A9 34 [08:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 25 7D 47 00 01 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C4 D0 01 00 F4 03 04 00 5A 4C A8 66 B6 04 01 00 00 83 BD D6 A0 E8 0F 96 EF [08:05:26]CommunicateWithHost err = 0 [08:05:26]CheckOFDResponse [08:05:26]1017 (14) - 77093643461234 [08:05:26]1041 (16) - 0000000000874939 [08:05:26]1040 (4) - 118980 [08:05:26]1012 (4) - 30.07.2024 02:13 [08:05:26]1206 (1) - 0 [08:05:26]OFD Sender: Remove packet 118980 [08:05:26]ProducePacketName [08:05:26]name=ofd_packets/00118980 [08:05:26]NVStorageDeleteData [08:05:27]Write to MH i2c: 01 00 00 6D 96 03 [08:05:27]Write i2c OK [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: 01 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: 01 07 00 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: 01 07 00 6D 96 00 00 00 00 00 D4 0C EA [08:05:27]RasterBufferAndPrint [08:05:27]line [08:05:27]line [08:05:27]line [08:05:27]line [08:05:27]line [08:05:27]written 0, free lines is 3292 [08:05:27]MH_Cut [08:05:27]Write to MH i2c: D1 01 00 74 96 01 DC [08:05:27]Write i2c OK [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: D1 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: D1 01 00 [08:05:27]MH_I2C_Read... [08:05:27]Read from MH i2c: D1 01 00 74 96 00 DB [08:05:27]Write to MH i2c: 01 00 00 75 96 0B [08:05:27]Write i2c OK [08:05:27]MH_I2C_Read... [08:05:27]OFD Sender: No OFD packet to send [08:05:27]*** Cut start [08:05:27]*** Partial cut [08:05:27]*** CUTSNS_PIN = 1 [08:05:27]*** CUTSNS_PIN = 0 [08:05:28]*** Brake cut motor [08:05:28]Read from MH i2c: 01 [08:05:28]MH_I2C_Read... [08:05:28]*** Stop cut motor [08:05:28]*** Cut end [08:05:28]Read from MH i2c: 01 07 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: 01 07 00 75 96 00 00 00 00 00 FF 0F 20 [08:05:28]process_action close_receipt done [08:05:28]requested_data is exist [08:05:28]produce_requested_data [08:05:28]requested_item fm.sn is exist - process it [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 11 00 00 [08:05:28]Write to MH i2c: E2 08 00 76 96 80 11 00 00 00 00 00 00 86 [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 17 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 17 00 76 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [08:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:05:28]wFMCommunicate OK [08:05:28]requested_item fd.num is exist - process it [08:05:28]SAM_PROTO_GetFieldsCounters [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 13 00 00 [08:05:28]Write to MH i2c: E2 08 00 77 96 80 13 00 00 00 00 00 00 89 [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 62 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 62 00 77 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [08:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:28]wFMCommunicate OK [08:05:28]SAM_PROTO_GetFieldsCounters done [08:05:28]requested_item shift.num is exist - process it [08:05:28]requested_item shift.opened is exist - process it [08:05:28]req_shift_opened [08:05:28]FM_GetShiftState [08:05:28]SAM_PROTO_GetShiftState [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 13 01 00 [08:05:28]Write to MH i2c: E2 08 00 78 96 80 13 01 00 00 00 00 00 8B [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 0E 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 0E 00 78 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 56 [08:05:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:05:28]wFMCommunicate OK [08:05:28]SAM_PROTO_GetShiftState done [08:05:28]FM_GetShiftState done [08:05:28]req_shift_opened done [08:05:28]requested_item shift.open_date is exist - process it [08:05:28]req_shift_open_date [08:05:28]req_shift_open_date done [08:05:28]produce_requested_data done [08:05:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118980,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:05:28]process_action_free close_receipt [08:05:28]json_value_free [08:05:28]json_value_free done [08:05:28]process_json_proto returns [08:05:28]Send response to host [08:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118980,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:05:28]free response buf [08:05:28]execute_script done [08:05:28]execute_script returns [08:05:28]free content buf [08:05:28]Sock 7.Close socket [08:05:28]Sock 7.Thread stoped [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:35]accept exits with 9 [08:07:35]New connection [08:07:35]New thread 3067383140 created [08:07:35]Thread 3067239780 joined [08:07:35]Waiting for new connection... [08:07:35] Sock 9.Parse request [08:07:35]Sock 9.Check first char [08:07:35]Sock 9.First char is OK [08:07:35]request: POST /json_proto HTTP/1.0 [08:07:35]Method: POST [08:07:35]URL: /json_proto [08:07:35]Method is POST - this is cgi request [08:07:35]url: /json_proto [08:07:35]query_string will be loaded in cgi processing [08:07:35]execute_cgi json_proto POST (null) [08:07:35]execute_cgi path=json_proto method=POST [08:07:35]POST find Content-Length [08:07:35]Host: 172.17.45.7:8080 [08:07:35]Content-Length: 677 [08:07:35]Content-Type: application/json [08:07:35] [08:07:35]POST finish read [08:07:35]Found Content-Length = 677 [08:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:07:35]execute_script... [08:07:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:07:35]POST & json_proto [08:07:35]process_json_proto [08:07:35]json parsed OK: [08:07:35]protocol is kg_v1.0 [08:07:35]action value=close_receipt [08:07:35]process_action close_receipt [08:07:35]cmd_close_receipt [08:07:35]MH_GetDate [08:07:35]Write to MH i2c: F0 00 00 79 96 FE [08:07:35]Write i2c OK [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: F0 [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: F0 09 00 [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: F0 09 00 79 96 00 51 9F A8 66 90 0F 3E 66 48 [08:07:35]GetLastDocTimeStamp 1722326734 [08:07:35]current date 1722326865 [08:07:35]FM_GetShiftState [08:07:35]SAM_PROTO_GetShiftState [08:07:35]wFMCommunicate request_size=4 [08:07:35]MH_SAM_APDU [08:07:35]CAPDU: 80 13 01 00 [08:07:35]Write to MH i2c: E2 08 00 7A 96 80 13 01 00 00 00 00 00 8D [08:07:35]Write i2c OK [08:07:35]MH_I2C_Read... [08:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:36]Read from MH i2c: E2 [08:07:36]MH_I2C_Read... [08:07:36]Read from MH i2c: E2 0E 00 [08:07:36]MH_I2C_Read... [08:07:36]Read from MH i2c: E2 0E 00 7A 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 58 [08:07:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:07:36]wFMCommunicate OK [08:07:36]SAM_PROTO_GetShiftState done [08:07:36]FM_GetShiftState done [08:07:36]opened in 1722298242 [08:07:36]opened+sec_in_day 1722384642 [08:07:36]quantity*price = 30035 [08:07:36]sum+1 = 30036 [08:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 33 30.07.2024 08:07 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118981 ФПД: 153085168746418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118981&fm=153085168746418&tin=02508201610067®Number=0000000000092660&sum=30000 [08:07:37]StoreToDocumentArchive [08:07:37]shift 435 fd 118981 [08:07:37]save to /storage/0435/doc_00118981 [08:07:37]save last doc name /storage/0435/doc_00118981 to /storage/kkm_last_doc_name [08:07:37]save OK [08:07:37]Clear old archive folders... [08:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:37]tlvbuf is 01F06390 [08:07:37]SAM_PROTO_ClearQueue [08:07:37]wFMCommunicate request_size=4 [08:07:37]MH_SAM_APDU [08:07:37]CAPDU: 80 09 00 00 [08:07:37]Write to MH i2c: E2 08 00 87 96 80 09 00 00 00 00 00 00 8F [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 87 96 00 90 00 91 [08:07:37]RAPDU: 90 00 [08:07:37]wFMCommunicate OK [08:07:37]SAM_PROTO_ClearQueue done [08:07:37]KKMCreateOFDPacket [08:07:37]OFDProtocolAddRootSTLVToBuf [08:07:37]FM_MakeSignedData [08:07:37]FM_MakeSignedData [08:07:37]SAM_PROTO_SignData [08:07:37]wFMCommunicate request_size=4 [08:07:37]MH_SAM_APDU [08:07:37]CAPDU: 80 0D 01 02 [08:07:37]Write to MH i2c: E2 08 00 88 96 80 0D 01 02 00 00 00 00 97 [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 88 96 00 90 00 92 [08:07:37]RAPDU: 90 00 [08:07:37]wFMCommunicate OK [08:07:37]wFMCommunicate request_size=255 [08:07:37]MH_SAM_APDU [08:07: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 51 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 D0 01 00 35 04 06 00 8B [08:07:37]Write to MH i2c: E2 02 01 89 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 51 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 D0 01 00 35 04 06 00 8B 00 00 2E [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]OFD Sender: No OFD packet to send [08:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 89 96 00 90 00 93 [08:07:37]RAPDU: 90 00 [08:07:37]wFMCommunicate OK [08:07:37]wFMCommunicate request_size=10 [08:07:37]MH_SAM_APDU [08:07:37]CAPDU: 80 0D 02 02 05 3A EB 1A 7F B2 [08:07:37]Write to MH i2c: E2 0D 00 8A 96 80 0D 02 02 05 00 3A EB 1A 7F B2 00 00 14 [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 03 00 8A 96 00 90 00 94 [08:07:37]RAPDU: 90 00 [08:07:37]wFMCommunicate OK [08:07:37]wFMCommunicate request_size=4 [08:07:37]MH_SAM_APDU [08:07:37]CAPDU: 80 0D 03 02 [08:07:37]Write to MH i2c: E2 08 00 8B 96 80 0D 03 02 00 00 00 00 9C [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 0B 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 0B 00 8B 96 00 0D A4 FA EE 85 3C 7D 89 90 00 FD [08:07:37]RAPDU: 0D A4 FA EE 85 3C 7D 89 90 00 [08:07:37]wFMCommunicate OK [08:07:37]SAM_PROTO_SignData done [08:07:37]FM_MakeSignedData done [08:07:37]CreateOFDProtocolMessage [08:07:37]wFMCommunicate request_size=4 [08:07:37]MH_SAM_APDU [08:07:37]CAPDU: 80 11 00 00 [08:07:37]Write to MH i2c: E2 08 00 8C 96 80 11 00 00 00 00 00 00 9C [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 17 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 17 00 8C 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [08:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:07:37]wFMCommunicate OK [08:07:37]CreateOFDProtocolMessage done [08:07:37]OFDSenderStorePacket 118981 [08:07:37]StoreOFDPacket docnum=118981 [08:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 32 07 01 9D 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 51 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 D0 01 00 35 04 06 00 8B 3A EB 1A 7F B2 0D A4 FA EE 85 3C 7D 89 [08:07:37]CheckFolder [08:07:37]dirname=/storage/ofd_packets [08:07:37]CheckFolder done [08:07:37]ProducePacketName [08:07:37]name=ofd_packets/00118981 [08:07:37]NVStorageSaveData ofd_packets/00118981 [08:07:37]File name is /storage/ofd_packets/00118981 [08:07:37]Write 301 bytes [08:07:37]NVStorageSaveData done [08:07:37]OFDSenderStorePacket done [08:07:37]KKMCreateOFDPacket done [08:07:37]NVStorageSaveData kkm_last_timestamp [08:07:37]File name is /storage/kkm_last_timestamp [08:07:37]Write 4 bytes [08:07:37]NVStorageSaveData done [08:07:37]ExternCall_PrintAddStr [08:07:37]wPrintStart [08:07:37]Write to MH i2c: 01 00 00 8D 96 23 [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: 01 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: 01 07 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: 01 07 00 8D 96 00 00 00 00 00 FF 0F 38 [08:07:37]RasterBufferAndPrint [08:07:37]line Счет N : (1)949899 [08:07:37]line ИНН: 02508201610067 [08:07:37]line Контрольно-Кассовый Чек [08:07:37]line ПРОДАЖА [08:07:37]line ТРК (МРК, ГНК) : 31 [08:07:37]line Товар: 2710124130 [08:07:37]line Аи-92-К-4 [08:07:37]line 4.430 * 67.80 [08:07:37]line = 300.35 [08:07:37]line НДС 12% НСП 1% [08:07:37]line > о реализуемом товаре [08:07:37]line ОКРУГЛЕНИЕ: -0.35 [08:07:37]line ИТОГО: 300.00 [08:07:37]line Внесено: 300.00 [08:07:37]line СДАЧА: 0.00 [08:07:37]line НСП 1% : 2.66 [08:07:37]line НДС 12% : 31.90 [08:07:37]line Наличными: 300.00 [08:07:37]line Безнал.: 0.00 [08:07:37]line Место: АЗС № 134 "Партнер Нефть" [08:07:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:07:37]line СНО: Общий режим [08:07:37]line Чек 33 30.07.2024 08:07 [08:07:37]line Смена: 435 ФФД: 1.0 [08:07:37]line ЗНМ: 0300000044 [08:07:37]line РНМ: 0000000000092660 [08:07:37]line Версия ККМ: 001 [08:07:37]line ФМ: 0000000000874939 [08:07:37]line ФД: 118981 [08:07:37]line ФПД: 153085168746418 [08:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118981&fm=153085168746418&tin=02508201610067®Number=0000000000092660&sum=30000 [08:07:38]OFD Sender: Processing packet 118981 [packets to send 86, broken 85] [08:07:38]ProducePacketName [08:07:38]name=ofd_packets/00118981 [08:07:38]OFD Sender: To server: pG, [08:07:38]CommunicateWithHost lk.salyk.kg:30040 [08:07:38]ConnectInit lk.salyk.kg [08:07:38]written 0, free lines is 4095 [08:07:38]Connected sock=10 [08:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 35 32 07 01 9D 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 21 00 00 00 F4 03 04 00 51 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 D0 01 00 35 04 06 00 8B 3A EB 1A 7F B2 0D A4 FA EE 85 3C 7D 89 [08:07:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B0 82 47 00 46 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C5 D0 01 00 F4 03 04 00 DD 4C A8 66 B6 04 01 00 00 3A 04 DE 23 3D 40 4E E2 [08:07:38]CommunicateWithHost err = 0 [08:07:38]CheckOFDResponse [08:07:38]1017 (14) - 77093643461234 [08:07:38]1041 (16) - 0000000000874939 [08:07:38]1040 (4) - 118981 [08:07:38]1012 (4) - 30.07.2024 02:15 [08:07:38]1206 (1) - 0 [08:07:38]OFD Sender: Remove packet 118981 [08:07:38]ProducePacketName [08:07:38]name=ofd_packets/00118981 [08:07:38]NVStorageDeleteData [08:07:38]Write to MH i2c: 01 00 00 B7 96 4D [08:07:38]Write i2c OK [08:07:38]MH_I2C_Read... [08:07:38]Read from MH i2c: 01 [08:07:38]MH_I2C_Read... [08:07:38]Read from MH i2c: 01 07 00 [08:07:38]MH_I2C_Read... [08:07:38]Read from MH i2c: 01 07 00 B7 96 00 00 00 00 00 E4 0C 44 [08:07:38]RasterBufferAndPrint [08:07:38]line [08:07:38]line [08:07:38]line [08:07:38]line [08:07:38]line [08:07:38]written 0, free lines is 3306 [08:07:38]MH_Cut [08:07:38]Write to MH i2c: D1 01 00 BE 96 01 26 [08:07:38]Write i2c OK [08:07:38]MH_I2C_Read... [08:07:38]Read from MH i2c: D1 [08:07:38]MH_I2C_Read... [08:07:38]Read from MH i2c: D1 01 00 [08:07:38]MH_I2C_Read... [08:07:38]Read from MH i2c: D1 01 00 BE 96 00 25 [08:07:38]Write to MH i2c: 01 00 00 BF 96 55 [08:07:38]Write i2c OK [08:07:38]MH_I2C_Read... [08:07:38]OFD Sender: No OFD packet to send [08:07:39]*** Cut start [08:07:39]*** Partial cut [08:07:39]*** CUTSNS_PIN = 1 [08:07:39]*** CUTSNS_PIN = 0 [08:07:39]*** Brake cut motor [08:07:39]Read from MH i2c: 01 [08:07:39]MH_I2C_Read... [08:07:39]*** Stop cut motor [08:07:39]*** Cut end [08:07:39]Read from MH i2c: 01 07 00 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: 01 07 00 BF 96 00 00 00 00 00 FF 0F 6A [08:07:39]process_action close_receipt done [08:07:39]requested_data is exist [08:07:39]produce_requested_data [08:07:39]requested_item fm.sn is exist - process it [08:07:39]wFMCommunicate request_size=4 [08:07:39]MH_SAM_APDU [08:07:39]CAPDU: 80 11 00 00 [08:07:39]Write to MH i2c: E2 08 00 C0 96 80 11 00 00 00 00 00 00 D0 [08:07:39]Write i2c OK [08:07:39]MH_I2C_Read... [08:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:39]Read from MH i2c: E2 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: E2 17 00 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: E2 17 00 C0 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [08:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:07:39]wFMCommunicate OK [08:07:39]requested_item fd.num is exist - process it [08:07:39]SAM_PROTO_GetFieldsCounters [08:07:39]wFMCommunicate request_size=4 [08:07:39]MH_SAM_APDU [08:07:39]CAPDU: 80 13 00 00 [08:07:39]Write to MH i2c: E2 08 00 C1 96 80 13 00 00 00 00 00 00 D3 [08:07:39]Write i2c OK [08:07:39]MH_I2C_Read... [08:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:39]Read from MH i2c: E2 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: E2 62 00 [08:07:39]MH_I2C_Read... [08:07:39]Read from MH i2c: E2 62 00 C1 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:40]wFMCommunicate OK [08:07:40]SAM_PROTO_GetFieldsCounters done [08:07:40]requested_item shift.num is exist - process it [08:07:40]requested_item shift.opened is exist - process it [08:07:40]req_shift_opened [08:07:40]FM_GetShiftState [08:07:40]SAM_PROTO_GetShiftState [08:07:40]wFMCommunicate request_size=4 [08:07:40]MH_SAM_APDU [08:07:40]CAPDU: 80 13 01 00 [08:07:40]Write to MH i2c: E2 08 00 C2 96 80 13 01 00 00 00 00 00 D5 [08:07:40]Write i2c OK [08:07:40]MH_I2C_Read... [08:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:40]Read from MH i2c: E2 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 0E 00 [08:07:40]MH_I2C_Read... [08:07:40]Read from MH i2c: E2 0E 00 C2 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A0 [08:07:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:07:40]wFMCommunicate OK [08:07:40]SAM_PROTO_GetShiftState done [08:07:40]FM_GetShiftState done [08:07:40]req_shift_opened done [08:07:40]requested_item shift.open_date is exist - process it [08:07:40]req_shift_open_date [08:07:40]req_shift_open_date done [08:07:40]produce_requested_data done [08:07:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118981,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:07:40]process_action_free close_receipt [08:07:40]json_value_free [08:07:40]json_value_free done [08:07:40]process_json_proto returns [08:07:40]Send response to host [08:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118981,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:07:40]free response buf [08:07:40]execute_script done [08:07:40]execute_script returns [08:07:40]free content buf [08:07:40]Sock 9.Close socket [08:07:40]Sock 9.Thread stoped [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]accept exits with 7 [08:08:23]New connection [08:08:23]New thread 3067239780 created [08:08:23]Thread 3067383140 joined [08:08:23]Waiting for new connection... [08:08:23] Sock 7.Parse request [08:08:23]Sock 7.Check first char [08:08:23]Sock 7.First char is OK [08:08:23]request: POST /json_proto HTTP/1.0 [08:08:23]Method: POST [08:08:23]URL: /json_proto [08:08:23]Method is POST - this is cgi request [08:08:23]url: /json_proto [08:08:23]query_string will be loaded in cgi processing [08:08:23]execute_cgi json_proto POST (null) [08:08:23]execute_cgi path=json_proto method=POST [08:08:23]POST find Content-Length [08:08:23]Host: 172.17.45.7:8080 [08:08:23]Content-Length: 682 [08:08:23]Content-Type: application/json [08:08:23] [08:08:23]POST finish read [08:08:23]Found Content-Length = 682 [08:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:08:23]execute_script... [08:08: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)949900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:08:23]POST & json_proto [08:08:23]process_json_proto [08:08:23]json parsed OK: [08:08:23]protocol is kg_v1.0 [08:08:23]action value=close_receipt [08:08:23]process_action close_receipt [08:08:23]cmd_close_receipt [08:08:23]MH_GetDate [08:08:23]Write to MH i2c: F0 00 00 C3 96 48 [08:08:23]Write i2c OK [08:08:23]MH_I2C_Read... [08:08:23]Read from MH i2c: F0 [08:08:23]MH_I2C_Read... [08:08:23]Read from MH i2c: F0 09 00 [08:08:23]MH_I2C_Read... [08:08:23]Read from MH i2c: F0 09 00 C3 96 00 80 9F A8 66 90 0F 3E 66 C1 [08:08:23]GetLastDocTimeStamp 1722326865 [08:08:23]current date 1722326912 [08:08:23]FM_GetShiftState [08:08:23]SAM_PROTO_GetShiftState [08:08:23]wFMCommunicate request_size=4 [08:08:23]MH_SAM_APDU [08:08:23]CAPDU: 80 13 01 00 [08:08:23]Write to MH i2c: E2 08 00 C4 96 80 13 01 00 00 00 00 00 D7 [08:08:23]Write i2c OK [08:08:23]MH_I2C_Read... [08:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:23]Read from MH i2c: E2 [08:08:23]MH_I2C_Read... [08:08:23]Read from MH i2c: E2 0E 00 [08:08:23]MH_I2C_Read... [08:08:23]Read from MH i2c: E2 0E 00 C4 96 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A2 [08:08:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:08:23]wFMCommunicate OK [08:08:23]SAM_PROTO_GetShiftState done [08:08:23]FM_GetShiftState done [08:08:23]opened in 1722298242 [08:08:23]opened+sec_in_day 1722384642 [08:08:23]quantity*price = 100005 [08:08:23]sum+1 = 100006 [08:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 34 30.07.2024 08:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118982 ФПД: 260419093771782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080832&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118982&fm=260419093771782&tin=02508201610067®Number=0000000000092660&sum=100000 [08:08:24]StoreToDocumentArchive [08:08:24]shift 435 fd 118982 [08:08:24]save to /storage/0435/doc_00118982 [08:08:24]save last doc name /storage/0435/doc_00118982 to /storage/kkm_last_doc_name [08:08:24]save OK [08:08:24]Clear old archive folders... [08:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:08:24]tlvbuf is 02081240 [08:08:24]SAM_PROTO_ClearQueue [08:08:24]wFMCommunicate request_size=4 [08:08:24]MH_SAM_APDU [08:08:24]CAPDU: 80 09 00 00 [08:08:24]Write to MH i2c: E2 08 00 D1 96 80 09 00 00 00 00 00 00 D9 [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:24]Read from MH i2c: E2 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 D1 96 00 90 00 DB [08:08:24]RAPDU: 90 00 [08:08:24]wFMCommunicate OK [08:08:24]SAM_PROTO_ClearQueue done [08:08:24]KKMCreateOFDPacket [08:08:24]OFDProtocolAddRootSTLVToBuf [08:08:24]FM_MakeSignedData [08:08:24]FM_MakeSignedData [08:08:24]SAM_PROTO_SignData [08:08:24]wFMCommunicate request_size=4 [08:08:24]MH_SAM_APDU [08:08:24]CAPDU: 80 0D 01 02 [08:08:24]Write to MH i2c: E2 08 00 D2 96 80 0D 01 02 00 00 00 00 E1 [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:24]Read from MH i2c: E2 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 D2 96 00 90 00 DC [08:08:24]RAPDU: 90 00 [08:08:24]wFMCommunicate OK [08:08:24]wFMCommunicate request_size=255 [08:08:24]MH_SAM_APDU [08:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 80 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 D0 01 00 35 04 06 00 EC [08:08:24]Write to MH i2c: E2 02 01 D3 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 80 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 D0 01 00 35 04 06 00 EC 00 00 7A [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:24]Read from MH i2c: E2 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 D3 96 00 90 00 DD [08:08:24]RAPDU: 90 00 [08:08:24]wFMCommunicate OK [08:08:24]wFMCommunicate request_size=10 [08:08:24]MH_SAM_APDU [08:08:24]CAPDU: 80 0D 02 02 05 D9 8B 93 B6 06 [08:08:24]Write to MH i2c: E2 0D 00 D4 96 80 0D 02 02 05 00 D9 8B 93 B6 06 00 00 A1 [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:24]Read from MH i2c: E2 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 03 00 D4 96 00 90 00 DE [08:08:24]RAPDU: 90 00 [08:08:24]wFMCommunicate OK [08:08:24]wFMCommunicate request_size=4 [08:08:24]MH_SAM_APDU [08:08:24]CAPDU: 80 0D 03 02 [08:08:24]Write to MH i2c: E2 08 00 D5 96 80 0D 03 02 00 00 00 00 E6 [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:24]Read from MH i2c: E2 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 0B 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 0B 00 D5 96 00 08 BB 95 55 5C AE EE 58 90 00 E4 [08:08:24]RAPDU: 08 BB 95 55 5C AE EE 58 90 00 [08:08:24]wFMCommunicate OK [08:08:24]SAM_PROTO_SignData done [08:08:24]FM_MakeSignedData done [08:08:24]CreateOFDProtocolMessage [08:08:24]wFMCommunicate request_size=4 [08:08:24]MH_SAM_APDU [08:08:24]CAPDU: 80 11 00 00 [08:08:24]Write to MH i2c: E2 08 00 D6 96 80 11 00 00 00 00 00 00 E6 [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:24]Read from MH i2c: E2 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 17 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: E2 17 00 D6 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [08:08:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:08:24]wFMCommunicate OK [08:08:24]CreateOFDProtocolMessage done [08:08:24]OFDSenderStorePacket 118982 [08:08:24]StoreOFDPacket docnum=118982 [08:08:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 01 A6 07 01 CF 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 80 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 D0 01 00 35 04 06 00 EC D9 8B 93 B6 06 08 BB 95 55 5C AE EE 58 [08:08:24]CheckFolder [08:08:24]dirname=/storage/ofd_packets [08:08:24]CheckFolder done [08:08:24]ProducePacketName [08:08:24]name=ofd_packets/00118982 [08:08:24]NVStorageSaveData ofd_packets/00118982 [08:08:24]File name is /storage/ofd_packets/00118982 [08:08:24]Write 301 bytes [08:08:24]NVStorageSaveData done [08:08:24]OFDSenderStorePacket done [08:08:24]KKMCreateOFDPacket done [08:08:24]NVStorageSaveData kkm_last_timestamp [08:08:24]File name is /storage/kkm_last_timestamp [08:08:24]Write 4 bytes [08:08:24]NVStorageSaveData done [08:08:24]ExternCall_PrintAddStr [08:08:24]wPrintStart [08:08:24]Write to MH i2c: 01 00 00 D7 96 6D [08:08:24]Write i2c OK [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: 01 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: 01 07 00 [08:08:24]MH_I2C_Read... [08:08:24]Read from MH i2c: 01 07 00 D7 96 00 00 00 00 00 FF 0F 82 [08:08:24]RasterBufferAndPrint [08:08:24]line Счет N : (1)949900 [08:08:24]line ИНН: 02508201610067 [08:08:24]line Контрольно-Кассовый Чек [08:08:24]line ПРОДАЖА [08:08:24]line ТРК (МРК, ГНК) : 41 [08:08:24]line Товар: 2710124130 [08:08:24]line Аи-92-К-4 [08:08:24]line 14.750 * 67.80 [08:08:24]line = 1000.05 [08:08:24]line НДС 12% НСП 1% [08:08:24]line > о реализуемом товаре [08:08:24]line ОКРУГЛЕНИЕ: -0.05 [08:08:24]line ИТОГО: 1000.00 [08:08:24]line Внесено: 1000.00 [08:08:24]line СДАЧА: 0.00 [08:08:24]line НСП 1% : 8.85 [08:08:24]line НДС 12% : 106.20 [08:08:24]line Наличными: 1000.00 [08:08:24]line Безнал.: 0.00 [08:08:24]line Место: АЗС № 134 "Партнер Нефть" [08:08:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:08:24]line СНО: Общий режим [08:08:24]line Чек 34 30.07.2024 08:08 [08:08:24]line Смена: 435 ФФД: 1.0 [08:08:24]line ЗНМ: 0300000044 [08:08:24]line РНМ: 0000000000092660 [08:08:24]line Версия ККМ: 001 [08:08:24]line ФМ: 0000000000874939 [08:08:24]line ФД: 118982 [08:08:24]line ФПД: 260419093771782 [08:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080832&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118982&fm=260419093771782&tin=02508201610067®Number=0000000000092660&sum=100000 [08:08:25]written 0, free lines is 4095 [08:08:25]OFD Sender: Processing packet 118982 [packets to send 86, broken 85] [08:08:25]ProducePacketName [08:08:25]name=ofd_packets/00118982 [08:08:25]OFD Sender: To server: pG, [08:08:25]CommunicateWithHost lk.salyk.kg:30040 [08:08:25]ConnectInit lk.salyk.kg [08:08:25]Connected sock=11 [08:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 01 A6 07 01 CF 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 80 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C6 D0 01 00 35 04 06 00 EC D9 8B 93 B6 06 08 BB 95 55 5C AE EE 58 [08:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AC DA 47 00 E3 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 34 39 33 39 10 04 04 00 C6 D0 01 00 F4 03 04 00 0C 4D A8 66 B6 04 01 00 00 80 06 95 FC 27 6D 10 5B [08:08:25]CommunicateWithHost err = 0 [08:08:25]CheckOFDResponse [08:08:25]1017 (14) - 77093643461234 [08:08:25]1041 (16) - 0000000000874939 [08:08:25]1040 (4) - 118982 [08:08:25]1012 (4) - 30.07.2024 02:16 [08:08:25]1206 (1) - 0 [08:08:25]OFD Sender: Remove packet 118982 [08:08:25]ProducePacketName [08:08:25]name=ofd_packets/00118982 [08:08:25]NVStorageDeleteData [08:08:25]Write to MH i2c: 01 00 00 01 97 98 [08:08:25]Write i2c OK [08:08:25]MH_I2C_Read... [08:08:25]Read from MH i2c: 01 [08:08:25]MH_I2C_Read... [08:08:25]Read from MH i2c: 01 07 00 [08:08:25]MH_I2C_Read... [08:08:25]Read from MH i2c: 01 07 00 01 97 00 00 00 00 00 DA 0C 85 [08:08:25]RasterBufferAndPrint [08:08:25]line [08:08:25]line [08:08:25]line [08:08:25]line [08:08:25]line [08:08:25]written 0, free lines is 3296 [08:08:25]MH_Cut [08:08:25]Write to MH i2c: D1 01 00 08 97 01 71 [08:08:25]Write i2c OK [08:08:25]MH_I2C_Read... [08:08:25]Read from MH i2c: D1 [08:08:25]MH_I2C_Read... [08:08:25]Read from MH i2c: D1 01 00 [08:08:25]MH_I2C_Read... [08:08:25]Read from MH i2c: D1 01 00 08 97 00 70 [08:08:25]Write to MH i2c: 01 00 00 09 97 A0 [08:08:25]Write i2c OK [08:08:25]MH_I2C_Read... [08:08:26]OFD Sender: No OFD packet to send [08:08:26]*** Cut start [08:08:26]*** Partial cut [08:08:26]*** CUTSNS_PIN = 1 [08:08:26]*** CUTSNS_PIN = 0 [08:08:26]*** Brake cut motor [08:08:27]Read from MH i2c: 01 [08:08:27]MH_I2C_Read... [08:08:27]*** Stop cut motor [08:08:27]*** Cut end [08:08:27]Read from MH i2c: 01 07 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: 01 07 00 09 97 00 00 00 00 00 FF 0F B5 [08:08:27]process_action close_receipt done [08:08:27]requested_data is exist [08:08:27]produce_requested_data [08:08:27]requested_item fm.sn is exist - process it [08:08:27]wFMCommunicate request_size=4 [08:08:27]MH_SAM_APDU [08:08:27]CAPDU: 80 11 00 00 [08:08:27]Write to MH i2c: E2 08 00 0A 97 80 11 00 00 00 00 00 00 1B [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:27]Read from MH i2c: E2 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 17 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 17 00 0A 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [08:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:08:27]wFMCommunicate OK [08:08:27]requested_item fd.num is exist - process it [08:08:27]SAM_PROTO_GetFieldsCounters [08:08:27]wFMCommunicate request_size=4 [08:08:27]MH_SAM_APDU [08:08:27]CAPDU: 80 13 00 00 [08:08:27]Write to MH i2c: E2 08 00 0B 97 80 13 00 00 00 00 00 00 1E [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:27]Read from MH i2c: E2 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 62 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 62 00 0B 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [08:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:08:27]wFMCommunicate OK [08:08:27]SAM_PROTO_GetFieldsCounters done [08:08:27]requested_item shift.num is exist - process it [08:08:27]requested_item shift.opened is exist - process it [08:08:27]req_shift_opened [08:08:27]FM_GetShiftState [08:08:27]SAM_PROTO_GetShiftState [08:08:27]wFMCommunicate request_size=4 [08:08:27]MH_SAM_APDU [08:08:27]CAPDU: 80 13 01 00 [08:08:27]Write to MH i2c: E2 08 00 0C 97 80 13 01 00 00 00 00 00 20 [08:08:27]Write i2c OK [08:08:27]MH_I2C_Read... [08:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:27]Read from MH i2c: E2 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 0E 00 [08:08:27]MH_I2C_Read... [08:08:27]Read from MH i2c: E2 0E 00 0C 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EB [08:08:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:08:27]wFMCommunicate OK [08:08:27]SAM_PROTO_GetShiftState done [08:08:27]FM_GetShiftState done [08:08:27]req_shift_opened done [08:08:27]requested_item shift.open_date is exist - process it [08:08:27]req_shift_open_date [08:08:27]req_shift_open_date done [08:08:27]produce_requested_data done [08:08:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118982,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:08:27]process_action_free close_receipt [08:08:27]json_value_free [08:08:27]json_value_free done [08:08:27]process_json_proto returns [08:08:27]Send response to host [08:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118982,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:08:27]free response buf [08:08:27]execute_script done [08:08:27]execute_script returns [08:08:27]free content buf [08:08:27]Sock 7.Close socket [08:08:27]Sock 7.Thread stoped [08:08:31]OFD Sender: No OFD packet to send [08:08:36]OFD Sender: No OFD packet to send [08:08:41]OFD Sender: No OFD packet to send [08:08:46]OFD Sender: No OFD packet to send [08:08:51]OFD Sender: No OFD packet to send [08:08:56]OFD Sender: No OFD packet to send [08:09:01]OFD Sender: No OFD packet to send [08:09:06]OFD Sender: No OFD packet to send [08:09:10]accept exits with 9 [08:09:10]New connection [08:09:10]New thread 3067383140 created [08:09:10]Thread 3067239780 joined [08:09:10]Waiting for new connection... [08:09:10] Sock 9.Parse request [08:09:10]Sock 9.Check first char [08:09:10]Sock 9.First char is OK [08:09:10]request: POST /json_proto HTTP/1.0 [08:09:10]Method: POST [08:09:10]URL: /json_proto [08:09:10]Method is POST - this is cgi request [08:09:10]url: /json_proto [08:09:10]query_string will be loaded in cgi processing [08:09:10]execute_cgi json_proto POST (null) [08:09:10]execute_cgi path=json_proto method=POST [08:09:10]POST find Content-Length [08:09:10]Host: 172.17.45.7:8080 [08:09:10]Content-Length: 677 [08:09:10]Content-Type: application/json [08:09:10] [08:09:10]POST finish read [08:09:10]Found Content-Length = 677 [08:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:10]execute_script... [08:09: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)949901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:10]POST & json_proto [08:09:10]process_json_proto [08:09:10]json parsed OK: [08:09:10]protocol is kg_v1.0 [08:09:10]action value=close_receipt [08:09:10]process_action close_receipt [08:09:10]cmd_close_receipt [08:09:10]MH_GetDate [08:09:10]Write to MH i2c: F0 00 00 0D 97 93 [08:09:10]Write i2c OK [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: F0 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: F0 09 00 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: F0 09 00 0D 97 00 B0 9F A8 66 90 0F 3E 66 3C [08:09:10]GetLastDocTimeStamp 1722326912 [08:09:10]current date 1722326960 [08:09:10]FM_GetShiftState [08:09:10]SAM_PROTO_GetShiftState [08:09:10]wFMCommunicate request_size=4 [08:09:10]MH_SAM_APDU [08:09:10]CAPDU: 80 13 01 00 [08:09:10]Write to MH i2c: E2 08 00 0E 97 80 13 01 00 00 00 00 00 22 [08:09:10]Write i2c OK [08:09:10]MH_I2C_Read... [08:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:10]Read from MH i2c: E2 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: E2 0E 00 [08:09:10]MH_I2C_Read... [08:09:10]Read from MH i2c: E2 0E 00 0E 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 ED [08:09:10]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:09:10]wFMCommunicate OK [08:09:10]SAM_PROTO_GetShiftState done [08:09:10]FM_GetShiftState done [08:09:10]opened in 1722298242 [08:09:10]opened+sec_in_day 1722384642 [08:09:10]quantity*price = 50036 [08:09:10]sum+1 = 50037 [08:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 35 30.07.2024 08:09 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118983 ФПД: 214573145624376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080920&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118983&fm=214573145624376&tin=02508201610067®Number=0000000000092660&sum=50000 [08:09:11]StoreToDocumentArchive [08:09:11]shift 435 fd 118983 [08:09:11]save to /storage/0435/doc_00118983 [08:09:11]save last doc name /storage/0435/doc_00118983 to /storage/kkm_last_doc_name [08:09:11]save OK [08:09:11]Clear old archive folders... [08:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:11]tlvbuf is 01E82E20 [08:09:11]SAM_PROTO_ClearQueue [08:09:11]wFMCommunicate request_size=4 [08:09:11]MH_SAM_APDU [08:09:11]CAPDU: 80 09 00 00 [08:09:11]Write to MH i2c: E2 08 00 1B 97 80 09 00 00 00 00 00 00 24 [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:11]Read from MH i2c: E2 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: E2 03 00 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: E2 03 00 1B 97 00 90 00 26 [08:09:11]RAPDU: 90 00 [08:09:11]wFMCommunicate OK [08:09:11]SAM_PROTO_ClearQueue done [08:09:11]KKMCreateOFDPacket [08:09:11]OFDProtocolAddRootSTLVToBuf [08:09:11]FM_MakeSignedData [08:09:11]FM_MakeSignedData [08:09:11]SAM_PROTO_SignData [08:09:11]wFMCommunicate request_size=4 [08:09:11]MH_SAM_APDU [08:09:11]CAPDU: 80 0D 01 02 [08:09:11]Write to MH i2c: E2 08 00 1C 97 80 0D 01 02 00 00 00 00 2C [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:11]Read from MH i2c: E2 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: E2 03 00 [08:09:11]MH_I2C_Read... [08:09:11]Read from MH i2c: E2 03 00 1C 97 00 90 00 27 [08:09:11]RAPDU: 90 00 [08:09:11]wFMCommunicate OK [08:09:11]wFMCommunicate request_size=255 [08:09:11]MH_SAM_APDU [08:09: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 B0 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 D0 01 00 35 04 06 00 C3 [08:09:11]Write to MH i2c: E2 02 01 1D 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 B0 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 D0 01 00 35 04 06 00 C3 00 00 3F [08:09:11]Write i2c OK [08:09:11]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 1D 97 00 90 00 28 [08:09:12]RAPDU: 90 00 [08:09:12]wFMCommunicate OK [08:09:12]wFMCommunicate request_size=10 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 0D 02 02 05 27 34 1F 8F 38 [08:09:12]Write to MH i2c: E2 0D 00 1E 97 80 0D 02 02 05 00 27 34 1F 8F 38 00 00 7A [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 03 00 1E 97 00 90 00 29 [08:09:12]RAPDU: 90 00 [08:09:12]wFMCommunicate OK [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 0D 03 02 [08:09:12]Write to MH i2c: E2 08 00 1F 97 80 0D 03 02 00 00 00 00 31 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 0B 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 0B 00 1F 97 00 5F 8F FD A6 58 20 57 F2 90 00 84 [08:09:12]RAPDU: 5F 8F FD A6 58 20 57 F2 90 00 [08:09:12]wFMCommunicate OK [08:09:12]SAM_PROTO_SignData done [08:09:12]FM_MakeSignedData done [08:09:12]CreateOFDProtocolMessage [08:09:12]wFMCommunicate request_size=4 [08:09:12]MH_SAM_APDU [08:09:12]CAPDU: 80 11 00 00 [08:09:12]Write to MH i2c: E2 08 00 20 97 80 11 00 00 00 00 00 00 31 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:12]Read from MH i2c: E2 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 17 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: E2 17 00 20 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8C [08:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:12]wFMCommunicate OK [08:09:12]CreateOFDProtocolMessage done [08:09:12]OFDSenderStorePacket 118983 [08:09:12]StoreOFDPacket docnum=118983 [08:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DA B2 07 01 68 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 B0 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 D0 01 00 35 04 06 00 C3 27 34 1F 8F 38 5F 8F FD A6 58 20 57 F2 [08:09:12]CheckFolder [08:09:12]dirname=/storage/ofd_packets [08:09:12]CheckFolder done [08:09:12]ProducePacketName [08:09:12]name=ofd_packets/00118983 [08:09:12]NVStorageSaveData ofd_packets/00118983 [08:09:12]File name is /storage/ofd_packets/00118983 [08:09:12]Write 301 bytes [08:09:12]NVStorageSaveData done [08:09:12]OFDSenderStorePacket done [08:09:12]KKMCreateOFDPacket done [08:09:12]NVStorageSaveData kkm_last_timestamp [08:09:12]File name is /storage/kkm_last_timestamp [08:09:12]Write 4 bytes [08:09:12]NVStorageSaveData done [08:09:12]ExternCall_PrintAddStr [08:09:12]wPrintStart [08:09:12]Write to MH i2c: 01 00 00 21 97 B8 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 21 97 00 00 00 00 00 FF 0F CD [08:09:12]RasterBufferAndPrint [08:09:12]line Счет N : (1)949901 [08:09:12]line ИНН: 02508201610067 [08:09:12]line Контрольно-Кассовый Чек [08:09:12]line ПРОДАЖА [08:09:12]line ТРК (МРК, ГНК) : 61 [08:09:12]line Товар: 2710124130 [08:09:12]line Аи-92-К-4 [08:09:12]line 7.380 * 67.80 [08:09:12]line = 500.36 [08:09:12]line НДС 12% НСП 1% [08:09:12]line > о реализуемом товаре [08:09:12]line ОКРУГЛЕНИЕ: -0.36 [08:09:12]line ИТОГО: 500.00 [08:09:12]line Внесено: 500.00 [08:09:12]line СДАЧА: 0.00 [08:09:12]line НСП 1% : 4.43 [08:09:12]line НДС 12% : 53.14 [08:09:12]line Наличными: 500.00 [08:09:12]line Безнал.: 0.00 [08:09:12]line Место: АЗС № 134 "Партнер Нефть" [08:09:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:09:12]line СНО: Общий режим [08:09:12]line Чек 35 30.07.2024 08:09 [08:09:12]line Смена: 435 ФФД: 1.0 [08:09:12]line ЗНМ: 0300000044 [08:09:12]line РНМ: 0000000000092660 [08:09:12]line Версия ККМ: 001 [08:09:12]line ФМ: 0000000000874939 [08:09:12]line ФД: 118983 [08:09:12]line ФПД: 214573145624376 [08:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T080920&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118983&fm=214573145624376&tin=02508201610067®Number=0000000000092660&sum=50000 [08:09:12]written 0, free lines is 4095 [08:09:12]OFD Sender: Processing packet 118983 [packets to send 86, broken 85] [08:09:12]ProducePacketName [08:09:12]name=ofd_packets/00118983 [08:09:12]OFD Sender: To server: pG, [08:09:12]CommunicateWithHost lk.salyk.kg:30040 [08:09:12]ConnectInit lk.salyk.kg [08:09:12]Connected sock=10 [08:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DA B2 07 01 68 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 B0 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C7 D0 01 00 35 04 06 00 C3 27 34 1F 8F 38 5F 8F FD A6 58 20 57 F2 [08:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 2A 47 00 C3 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 34 39 33 39 10 04 04 00 C7 D0 01 00 F4 03 04 00 3B 4D A8 66 B6 04 01 00 00 95 3E F0 E0 26 9B AC A9 [08:09:12]CommunicateWithHost err = 0 [08:09:12]CheckOFDResponse [08:09:12]1017 (14) - 77093643461234 [08:09:12]1041 (16) - 0000000000874939 [08:09:12]1040 (4) - 118983 [08:09:12]1012 (4) - 30.07.2024 02:17 [08:09:12]1206 (1) - 0 [08:09:12]OFD Sender: Remove packet 118983 [08:09:12]ProducePacketName [08:09:12]name=ofd_packets/00118983 [08:09:12]NVStorageDeleteData [08:09:12]Write to MH i2c: 01 00 00 4B 97 E2 [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: 01 07 00 4B 97 00 00 00 00 00 EB 0C E0 [08:09:12]RasterBufferAndPrint [08:09:12]line [08:09:12]line [08:09:12]line [08:09:12]line [08:09:12]line [08:09:12]written 0, free lines is 3316 [08:09:12]MH_Cut [08:09:12]Write to MH i2c: D1 01 00 52 97 01 BB [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: D1 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: D1 01 00 [08:09:12]MH_I2C_Read... [08:09:12]Read from MH i2c: D1 01 00 52 97 00 BA [08:09:12]Write to MH i2c: 01 00 00 53 97 EA [08:09:12]Write i2c OK [08:09:12]MH_I2C_Read... [08:09:13]OFD Sender: No OFD packet to send [08:09:13]*** Cut start [08:09:13]*** Partial cut [08:09:13]*** CUTSNS_PIN = 1 [08:09:13]*** CUTSNS_PIN = 0 [08:09:13]*** Brake cut motor [08:09:14]Read from MH i2c: 01 [08:09:14]MH_I2C_Read... [08:09:14]*** Stop cut motor [08:09:14]*** Cut end [08:09:14]Read from MH i2c: 01 07 00 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: 01 07 00 53 97 00 00 00 00 00 FF 0F FF [08:09:14]process_action close_receipt done [08:09:14]requested_data is exist [08:09:14]produce_requested_data [08:09:14]requested_item fm.sn is exist - process it [08:09:14]wFMCommunicate request_size=4 [08:09:14]MH_SAM_APDU [08:09:14]CAPDU: 80 11 00 00 [08:09:14]Write to MH i2c: E2 08 00 54 97 80 11 00 00 00 00 00 00 65 [08:09:14]Write i2c OK [08:09:14]MH_I2C_Read... [08:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:14]Read from MH i2c: E2 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: E2 17 00 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: E2 17 00 54 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [08:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:09:14]wFMCommunicate OK [08:09:14]requested_item fd.num is exist - process it [08:09:14]SAM_PROTO_GetFieldsCounters [08:09:14]wFMCommunicate request_size=4 [08:09:14]MH_SAM_APDU [08:09:14]CAPDU: 80 13 00 00 [08:09:14]Write to MH i2c: E2 08 00 55 97 80 13 00 00 00 00 00 00 68 [08:09:14]Write i2c OK [08:09:14]MH_I2C_Read... [08:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:14]Read from MH i2c: E2 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: E2 62 00 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: E2 62 00 55 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [08:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:14]wFMCommunicate OK [08:09:14]SAM_PROTO_GetFieldsCounters done [08:09:14]requested_item shift.num is exist - process it [08:09:14]requested_item shift.opened is exist - process it [08:09:14]req_shift_opened [08:09:14]FM_GetShiftState [08:09:14]SAM_PROTO_GetShiftState [08:09:14]wFMCommunicate request_size=4 [08:09:14]MH_SAM_APDU [08:09:14]CAPDU: 80 13 01 00 [08:09:14]Write to MH i2c: E2 08 00 56 97 80 13 01 00 00 00 00 00 6A [08:09:14]Write i2c OK [08:09:14]MH_I2C_Read... [08:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:14]Read from MH i2c: E2 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: E2 0E 00 [08:09:14]MH_I2C_Read... [08:09:14]Read from MH i2c: E2 0E 00 56 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 35 [08:09:14]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:09:14]wFMCommunicate OK [08:09:14]SAM_PROTO_GetShiftState done [08:09:14]FM_GetShiftState done [08:09:14]req_shift_opened done [08:09:14]requested_item shift.open_date is exist - process it [08:09:14]req_shift_open_date [08:09:14]req_shift_open_date done [08:09:14]produce_requested_data done [08:09:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118983,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:09:14]process_action_free close_receipt [08:09:14]json_value_free [08:09:14]json_value_free done [08:09:14]process_json_proto returns [08:09:14]Send response to host [08:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118983,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:09:14]free response buf [08:09:14]execute_script done [08:09:14]execute_script returns [08:09:14]free content buf [08:09:14]Sock 9.Close socket [08:09:14]Sock 9.Thread stoped [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:17]accept exits with 7 [08:10:17]New connection [08:10:17]New thread 3067239780 created [08:10:17]Thread 3067383140 joined [08:10:17]Waiting for new connection... [08:10:17] Sock 7.Parse request [08:10:17]Sock 7.Check first char [08:10:17]Sock 7.First char is OK [08:10:17]request: POST /json_proto HTTP/1.0 [08:10:17]Method: POST [08:10:17]URL: /json_proto [08:10:17]Method is POST - this is cgi request [08:10:17]url: /json_proto [08:10:17]query_string will be loaded in cgi processing [08:10:17]execute_cgi json_proto POST (null) [08:10:17]execute_cgi path=json_proto method=POST [08:10:17]POST find Content-Length [08:10:17]Host: 172.17.45.7:8080 [08:10:17]Content-Length: 674 [08:10:17]Content-Type: application/json [08:10:17] [08:10:17]POST finish read [08:10:17]Found Content-Length = 674 [08:10:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:17]execute_script... [08:10: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)949902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:17]POST & json_proto [08:10:17]process_json_proto [08:10:17]json parsed OK: [08:10:17]protocol is kg_v1.0 [08:10:17]action value=close_receipt [08:10:17]process_action close_receipt [08:10:17]cmd_close_receipt [08:10:17]MH_GetDate [08:10:17]Write to MH i2c: F0 00 00 57 97 DD [08:10:17]Write i2c OK [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: F0 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: F0 09 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: F0 09 00 57 97 00 F2 9F A8 66 90 0F 3E 66 C8 [08:10:17]GetLastDocTimeStamp 1722326960 [08:10:17]current date 1722327026 [08:10:17]FM_GetShiftState [08:10:17]SAM_PROTO_GetShiftState [08:10:17]wFMCommunicate request_size=4 [08:10:17]MH_SAM_APDU [08:10:17]CAPDU: 80 13 01 00 [08:10:17]Write to MH i2c: E2 08 00 58 97 80 13 01 00 00 00 00 00 6C [08:10:17]Write i2c OK [08:10:17]MH_I2C_Read... [08:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:17]Read from MH i2c: E2 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 0E 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 0E 00 58 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 37 [08:10:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:10:17]wFMCommunicate OK [08:10:17]SAM_PROTO_GetShiftState done [08:10:17]FM_GetShiftState done [08:10:17]opened in 1722298242 [08:10:17]opened+sec_in_day 1722384642 [08:10:17]quantity*price = 60045 [08:10:17]sum+1 = 60047 [08:10:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 36 30.07.2024 08:10 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118984 ФПД: 121415985672663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081026&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118984&fm=121415985672663&tin=02508201610067®Number=0000000000092660&sum=60000 [08:10:18]StoreToDocumentArchive [08:10:18]shift 435 fd 118984 [08:10:18]save to /storage/0435/doc_00118984 [08:10:18]save last doc name /storage/0435/doc_00118984 to /storage/kkm_last_doc_name [08:10:18]save OK [08:10:18]Clear old archive folders... [08:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:10:18]tlvbuf is 01E70890 [08:10:18]SAM_PROTO_ClearQueue [08:10:18]wFMCommunicate request_size=4 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 09 00 00 [08:10:18]Write to MH i2c: E2 08 00 65 97 80 09 00 00 00 00 00 00 6E [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 65 97 00 90 00 70 [08:10:18]RAPDU: 90 00 [08:10:18]wFMCommunicate OK [08:10:18]SAM_PROTO_ClearQueue done [08:10:18]KKMCreateOFDPacket [08:10:18]OFDProtocolAddRootSTLVToBuf [08:10:18]FM_MakeSignedData [08:10:18]FM_MakeSignedData [08:10:18]SAM_PROTO_SignData [08:10:18]wFMCommunicate request_size=4 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 0D 01 02 [08:10:18]Write to MH i2c: E2 08 00 66 97 80 0D 01 02 00 00 00 00 76 [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 66 97 00 90 00 71 [08:10:18]RAPDU: 90 00 [08:10:18]wFMCommunicate OK [08:10:18]wFMCommunicate request_size=255 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F2 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 D0 01 00 35 04 06 00 6E 6D 5C B2 [08:10:18]Write to MH i2c: E2 02 01 67 97 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F2 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 D0 01 00 35 04 06 00 6E 6D 5C B2 00 00 C0 [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 67 97 00 90 00 72 [08:10:18]RAPDU: 90 00 [08:10:18]wFMCommunicate OK [08:10:18]wFMCommunicate request_size=7 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 0D 02 02 02 31 D7 [08:10:18]Write to MH i2c: E2 0A 00 68 97 80 0D 02 02 02 00 31 D7 00 00 85 [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 03 00 68 97 00 90 00 73 [08:10:18]RAPDU: 90 00 [08:10:18]wFMCommunicate OK [08:10:18]wFMCommunicate request_size=4 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 0D 03 02 [08:10:18]Write to MH i2c: E2 08 00 69 97 80 0D 03 02 00 00 00 00 7B [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 0B 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 0B 00 69 97 00 DF C7 6A 25 19 CE 3E 20 90 00 F6 [08:10:18]RAPDU: DF C7 6A 25 19 CE 3E 20 90 00 [08:10:18]wFMCommunicate OK [08:10:18]SAM_PROTO_SignData done [08:10:18]FM_MakeSignedData done [08:10:18]CreateOFDProtocolMessage [08:10:18]wFMCommunicate request_size=4 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 11 00 00 [08:10:18]Write to MH i2c: E2 08 00 6A 97 80 11 00 00 00 00 00 00 7B [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 17 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 17 00 6A 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D6 [08:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:10:18]wFMCommunicate OK [08:10:18]CreateOFDProtocolMessage done [08:10:18]OFDSenderStorePacket 118984 [08:10:18]StoreOFDPacket docnum=118984 [08:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A 31 04 01 93 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F2 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 D0 01 00 35 04 06 00 6E 6D 5C B2 31 D7 DF C7 6A 25 19 CE 3E 20 [08:10:18]CheckFolder [08:10:18]dirname=/storage/ofd_packets [08:10:18]CheckFolder done [08:10:18]ProducePacketName [08:10:18]name=ofd_packets/00118984 [08:10:18]NVStorageSaveData ofd_packets/00118984 [08:10:18]File name is /storage/ofd_packets/00118984 [08:10:18]Write 298 bytes [08:10:18]NVStorageSaveData done [08:10:18]OFDSenderStorePacket done [08:10:18]KKMCreateOFDPacket done [08:10:18]NVStorageSaveData kkm_last_timestamp [08:10:18]File name is /storage/kkm_last_timestamp [08:10:18]Write 4 bytes [08:10:18]NVStorageSaveData done [08:10:18]ExternCall_PrintAddStr [08:10:18]wPrintStart [08:10:18]Write to MH i2c: 01 00 00 6B 97 02 [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: 01 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: 01 07 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: 01 07 00 6B 97 00 00 00 00 00 FF 0F 17 [08:10:18]RasterBufferAndPrint [08:10:18]line Счет N : (1)949902 [08:10:18]line ИНН: 02508201610067 [08:10:18]line Контрольно-Кассовый Чек [08:10:18]line ПРОДАЖА [08:10:18]line ТРК (МРК, ГНК) : 34 [08:10:18]line Товар: 2710194800 [08:10:18]line ДТ-К-5 [08:10:18]line 7.880 * 76.20 [08:10:18]line = 600.46 [08:10:18]line НДС 12% НСП 1% [08:10:18]line > о реализуемом товаре [08:10:18]line ОКРУГЛЕНИЕ: -0.46 [08:10:18]line ИТОГО: 600.00 [08:10:18]line Внесено: 600.00 [08:10:18]line СДАЧА: 0.00 [08:10:18]line НСП 1% : 5.31 [08:10:18]line НДС 12% : 63.77 [08:10:18]line Наличными: 600.00 [08:10:18]line Безнал.: 0.00 [08:10:18]line Место: АЗС № 134 "Партнер Нефть" [08:10:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:10:18]line СНО: Общий режим [08:10:18]line Чек 36 30.07.2024 08:10 [08:10:18]line Смена: 435 ФФД: 1.0 [08:10:18]line ЗНМ: 0300000044 [08:10:18]line РНМ: 0000000000092660 [08:10:18]line Версия ККМ: 001 [08:10:18]line ФМ: 0000000000874939 [08:10:18]line ФД: 118984 [08:10:18]line ФПД: 121415985672663 [08:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081026&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118984&fm=121415985672663&tin=02508201610067®Number=0000000000092660&sum=60000 [08:10:19]OFD Sender: Processing packet 118984 [packets to send 86, broken 85] [08:10:19]ProducePacketName [08:10:19]name=ofd_packets/00118984 [08:10:19]OFD Sender: To server: pG, [08:10:19]CommunicateWithHost lk.salyk.kg:30040 [08:10:19]ConnectInit lk.salyk.kg [08:10:19]written 0, free lines is 4095 [08:10:19]Connected sock=10 [08:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0A 31 04 01 93 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 F2 9F A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 D0 01 00 35 04 06 00 6E 6D 5C B2 31 D7 DF C7 6A 25 19 CE 3E 20 [08:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A 3B 47 00 18 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C8 D0 01 00 F4 03 04 00 7E 4D A8 66 B6 04 01 00 00 E2 26 4D 69 A5 70 50 BB [08:10:19]CommunicateWithHost err = 0 [08:10:19]CheckOFDResponse [08:10:19]1017 (14) - 77093643461234 [08:10:19]1041 (16) - 0000000000874939 [08:10:19]1040 (4) - 118984 [08:10:19]1012 (4) - 30.07.2024 02:18 [08:10:19]1206 (1) - 0 [08:10:19]OFD Sender: Remove packet 118984 [08:10:19]ProducePacketName [08:10:19]name=ofd_packets/00118984 [08:10:19]NVStorageDeleteData [08:10:19]Write to MH i2c: 01 00 00 95 97 2C [08:10:19]Write i2c OK [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: 01 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: 01 07 00 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: 01 07 00 95 97 00 00 00 00 00 E3 0C 22 [08:10:19]RasterBufferAndPrint [08:10:19]line [08:10:19]line [08:10:19]line [08:10:19]line [08:10:19]line [08:10:19]written 0, free lines is 3305 [08:10:19]MH_Cut [08:10:19]Write to MH i2c: D1 01 00 9C 97 01 05 [08:10:19]Write i2c OK [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: D1 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: D1 01 00 [08:10:19]MH_I2C_Read... [08:10:19]Read from MH i2c: D1 01 00 9C 97 00 04 [08:10:19]Write to MH i2c: 01 00 00 9D 97 34 [08:10:19]Write i2c OK [08:10:19]MH_I2C_Read... [08:10:19]OFD Sender: No OFD packet to send [08:10:20]*** Cut start [08:10:20]*** Partial cut [08:10:20]*** CUTSNS_PIN = 1 [08:10:20]*** CUTSNS_PIN = 0 [08:10:20]*** Brake cut motor [08:10:21]Read from MH i2c: 01 [08:10:21]MH_I2C_Read... [08:10:21]*** Stop cut motor [08:10:21]*** Cut end [08:10:21]Read from MH i2c: 01 07 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: 01 07 00 9D 97 00 00 00 00 00 FF 0F 49 [08:10:21]process_action close_receipt done [08:10:21]requested_data is exist [08:10:21]produce_requested_data [08:10:21]requested_item fm.sn is exist - process it [08:10:21]wFMCommunicate request_size=4 [08:10:21]MH_SAM_APDU [08:10:21]CAPDU: 80 11 00 00 [08:10:21]Write to MH i2c: E2 08 00 9E 97 80 11 00 00 00 00 00 00 AF [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:21]Read from MH i2c: E2 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 17 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 17 00 9E 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [08:10:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:10:21]wFMCommunicate OK [08:10:21]requested_item fd.num is exist - process it [08:10:21]SAM_PROTO_GetFieldsCounters [08:10:21]wFMCommunicate request_size=4 [08:10:21]MH_SAM_APDU [08:10:21]CAPDU: 80 13 00 00 [08:10:21]Write to MH i2c: E2 08 00 9F 97 80 13 00 00 00 00 00 00 B2 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:21]Read from MH i2c: E2 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 62 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 62 00 9F 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [08:10:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:21]wFMCommunicate OK [08:10:21]SAM_PROTO_GetFieldsCounters done [08:10:21]requested_item shift.num is exist - process it [08:10:21]requested_item shift.opened is exist - process it [08:10:21]req_shift_opened [08:10:21]FM_GetShiftState [08:10:21]SAM_PROTO_GetShiftState [08:10:21]wFMCommunicate request_size=4 [08:10:21]MH_SAM_APDU [08:10:21]CAPDU: 80 13 01 00 [08:10:21]Write to MH i2c: E2 08 00 A0 97 80 13 01 00 00 00 00 00 B4 [08:10:21]Write i2c OK [08:10:21]MH_I2C_Read... [08:10:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:21]Read from MH i2c: E2 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 0E 00 [08:10:21]MH_I2C_Read... [08:10:21]Read from MH i2c: E2 0E 00 A0 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 7F [08:10:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:10:21]wFMCommunicate OK [08:10:21]SAM_PROTO_GetShiftState done [08:10:21]FM_GetShiftState done [08:10:21]req_shift_opened done [08:10:21]requested_item shift.open_date is exist - process it [08:10:21]req_shift_open_date [08:10:21]req_shift_open_date done [08:10:21]produce_requested_data done [08:10:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118984,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:10:21]process_action_free close_receipt [08:10:21]json_value_free [08:10:21]json_value_free done [08:10:21]process_json_proto returns [08:10:21]Send response to host [08:10:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118984,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:10:21]free response buf [08:10:21]execute_script done [08:10:21]execute_script returns [08:10:21]free content buf [08:10:21]Sock 7.Close socket [08:10:21]Sock 7.Thread stoped [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:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:08]accept exits with 9 [08:16:08]New connection [08:16:08]New thread 3067383140 created [08:16:08]Thread 3067239780 joined [08:16:08]Waiting for new connection... [08:16:08] Sock 9.Parse request [08:16:08]Sock 9.Check first char [08:16:08]Sock 9.First char is OK [08:16:08]request: POST /json_proto HTTP/1.0 [08:16:08]Method: POST [08:16:08]URL: /json_proto [08:16:08]Method is POST - this is cgi request [08:16:08]url: /json_proto [08:16:08]query_string will be loaded in cgi processing [08:16:08]execute_cgi json_proto POST (null) [08:16:08]execute_cgi path=json_proto method=POST [08:16:08]POST find Content-Length [08:16:08]Host: 172.17.45.7:8080 [08:16:08]Content-Length: 819 [08:16:08]Content-Type: application/json [08:16:08] [08:16:08]POST finish read [08:16:08]Found Content-Length = 819 [08:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:08]execute_script... [08:16: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)949903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:08]POST & json_proto [08:16:08]process_json_proto [08:16:08]json parsed OK: [08:16:08]protocol is kg_v1.0 [08:16:08]action value=close_receipt [08:16:08]process_action close_receipt [08:16:08]cmd_close_receipt [08:16:08]MH_GetDate [08:16:08]Write to MH i2c: F0 00 00 A1 97 27 [08:16:08]Write i2c OK [08:16:08]MH_I2C_Read... [08:16:08]Read from MH i2c: F0 [08:16:08]MH_I2C_Read... [08:16:08]Read from MH i2c: F0 09 00 [08:16:08]MH_I2C_Read... [08:16:08]Read from MH i2c: F0 09 00 A1 97 00 52 A1 A8 66 90 0F 3E 66 74 [08:16:08]GetLastDocTimeStamp 1722327026 [08:16:08]current date 1722327378 [08:16:08]FM_GetShiftState [08:16:08]SAM_PROTO_GetShiftState [08:16:08]wFMCommunicate request_size=4 [08:16:08]MH_SAM_APDU [08:16:08]CAPDU: 80 13 01 00 [08:16:08]Write to MH i2c: E2 08 00 A2 97 80 13 01 00 00 00 00 00 B6 [08:16:08]Write i2c OK [08:16:08]MH_I2C_Read... [08:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:08]Read from MH i2c: E2 [08:16:08]MH_I2C_Read... [08:16:08]Read from MH i2c: E2 0E 00 [08:16:08]MH_I2C_Read... [08:16:08]Read from MH i2c: E2 0E 00 A2 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 81 [08:16:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:16:08]wFMCommunicate OK [08:16:08]SAM_PROTO_GetShiftState done [08:16:08]FM_GetShiftState done [08:16:08]opened in 1722298242 [08:16:08]opened+sec_in_day 1722384642 [08:16:08]quantity*price = 200025 [08:16:08]sum+1 = 200026 [08:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 37 30.07.2024 08:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118985 ФПД: 212340374459154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118985&fm=212340374459154&tin=02508201610067®Number=0000000000092660&sum=200000 [08:16:10]StoreToDocumentArchive [08:16:10]shift 435 fd 118985 [08:16:10]save to /storage/0435/doc_00118985 [08:16:10]save last doc name /storage/0435/doc_00118985 to /storage/kkm_last_doc_name [08:16:10]save OK [08:16:10]Clear old archive folders... [08:16:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:16:10]tlvbuf is 020CE6B0 [08:16:10]SAM_PROTO_ClearQueue [08:16:10]wFMCommunicate request_size=4 [08:16:10]MH_SAM_APDU [08:16:10]CAPDU: 80 09 00 00 [08:16:10]Write to MH i2c: E2 08 00 AF 97 80 09 00 00 00 00 00 00 B8 [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:10]Read from MH i2c: E2 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 AF 97 00 90 00 BA [08:16:10]RAPDU: 90 00 [08:16:10]wFMCommunicate OK [08:16:10]SAM_PROTO_ClearQueue done [08:16:10]KKMCreateOFDPacket [08:16:10]OFDProtocolAddRootSTLVToBuf [08:16:10]FM_MakeSignedData [08:16:10]FM_MakeSignedData [08:16:10]SAM_PROTO_SignData [08:16:10]wFMCommunicate request_size=4 [08:16:10]MH_SAM_APDU [08:16:10]CAPDU: 80 0D 01 02 [08:16:10]Write to MH i2c: E2 08 00 B0 97 80 0D 01 02 00 00 00 00 C0 [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:10]Read from MH i2c: E2 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 B0 97 00 90 00 BB [08:16:10]RAPDU: 90 00 [08:16:10]wFMCommunicate OK [08:16:10]wFMCommunicate request_size=255 [08:16:10]MH_SAM_APDU [08:16:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 52 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 D0 01 00 35 04 06 00 C1 1F 58 97 [08:16:10]Write to MH i2c: E2 02 01 B1 97 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 52 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 D0 01 00 35 04 06 00 C1 1F 58 97 00 00 81 [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]OFD Sender: No OFD packet to send [08:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:10]Read from MH i2c: E2 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 B1 97 00 90 00 BC [08:16:10]RAPDU: 90 00 [08:16:10]wFMCommunicate OK [08:16:10]wFMCommunicate request_size=7 [08:16:10]MH_SAM_APDU [08:16:10]CAPDU: 80 0D 02 02 02 53 12 [08:16:10]Write to MH i2c: E2 0A 00 B2 97 80 0D 02 02 02 00 53 12 00 00 2C [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:10]Read from MH i2c: E2 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 03 00 B2 97 00 90 00 BD [08:16:10]RAPDU: 90 00 [08:16:10]wFMCommunicate OK [08:16:10]wFMCommunicate request_size=4 [08:16:10]MH_SAM_APDU [08:16:10]CAPDU: 80 0D 03 02 [08:16:10]Write to MH i2c: E2 08 00 B3 97 80 0D 03 02 00 00 00 00 C5 [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:10]Read from MH i2c: E2 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 0B 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 0B 00 B3 97 00 EC 91 81 21 67 A3 1B E6 90 00 F0 [08:16:10]RAPDU: EC 91 81 21 67 A3 1B E6 90 00 [08:16:10]wFMCommunicate OK [08:16:10]SAM_PROTO_SignData done [08:16:10]FM_MakeSignedData done [08:16:10]CreateOFDProtocolMessage [08:16:10]wFMCommunicate request_size=4 [08:16:10]MH_SAM_APDU [08:16:10]CAPDU: 80 11 00 00 [08:16:10]Write to MH i2c: E2 08 00 B4 97 80 11 00 00 00 00 00 00 C5 [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:10]Read from MH i2c: E2 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 17 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: E2 17 00 B4 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 20 [08:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:10]wFMCommunicate OK [08:16:10]CreateOFDProtocolMessage done [08:16:10]OFDSenderStorePacket 118985 [08:16:10]StoreOFDPacket docnum=118985 [08:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D3 96 04 01 8A D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 52 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 D0 01 00 35 04 06 00 C1 1F 58 97 53 12 EC 91 81 21 67 A3 1B E6 [08:16:10]CheckFolder [08:16:10]dirname=/storage/ofd_packets [08:16:10]CheckFolder done [08:16:10]ProducePacketName [08:16:10]name=ofd_packets/00118985 [08:16:10]NVStorageSaveData ofd_packets/00118985 [08:16:10]File name is /storage/ofd_packets/00118985 [08:16:10]Write 298 bytes [08:16:10]NVStorageSaveData done [08:16:10]OFDSenderStorePacket done [08:16:10]KKMCreateOFDPacket done [08:16:10]NVStorageSaveData kkm_last_timestamp [08:16:10]File name is /storage/kkm_last_timestamp [08:16:10]Write 4 bytes [08:16:10]NVStorageSaveData done [08:16:10]ExternCall_PrintAddStr [08:16:10]wPrintStart [08:16:10]Write to MH i2c: 01 00 00 B5 97 4C [08:16:10]Write i2c OK [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: 01 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: 01 07 00 [08:16:10]MH_I2C_Read... [08:16:10]Read from MH i2c: 01 07 00 B5 97 00 00 00 00 00 FF 0F 61 [08:16:10]RasterBufferAndPrint [08:16:10]line Счет N : (1)949903 [08:16:10]line ИНН: 02508201610067 [08:16:10]line Контрольно-Кассовый Чек [08:16:10]line ПРОДАЖА [08:16:10]line ТРК (МРК, ГНК) : 44 [08:16:10]line Товар: 2710194800 [08:16:10]line ДТ-К-5 [08:16:10]line 26.250 * 76.20 [08:16:10]line = 2000.25 [08:16:10]line НДС 12% НСП 1% [08:16:10]line > о реализуемом товаре [08:16:10]line ОКРУГЛЕНИЕ: -0.25 [08:16:10]line ИТОГО: 2000.00 [08:16:10]line НСП 1% : 17.70 [08:16:10]line НДС 12% : 212.42 [08:16:10]line Наличными: 0.00 [08:16:10]line Безнал.: 2000.00 [08:16:10]line Место: АЗС № 134 "Партнер Нефть" [08:16:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:16:10]line СНО: Общий режим [08:16:10]line Чек 37 30.07.2024 08:16 [08:16:10]line Смена: 435 ФФД: 1.0 [08:16:10]line ЗНМ: 0300000044 [08:16:10]line РНМ: 0000000000092660 [08:16:10]line Версия ККМ: 001 [08:16:10]line Платежная система: O! деньги [08:16:10]line ФМ: 0000000000874939 [08:16:10]line ФД: 118985 [08:16:10]line ФПД: 212340374459154 [08:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118985&fm=212340374459154&tin=02508201610067®Number=0000000000092660&sum=200000 [08:16:10]OFD Sender: Processing packet 118985 [packets to send 86, broken 85] [08:16:10]ProducePacketName [08:16:10]name=ofd_packets/00118985 [08:16:10]OFD Sender: To server: pG, [08:16:10]CommunicateWithHost lk.salyk.kg:30040 [08:16:10]ConnectInit lk.salyk.kg [08:16:10]written 0, free lines is 4095 [08:16:11]Connected sock=10 [08:16:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D3 96 04 01 8A D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 52 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 D0 01 00 35 04 06 00 C1 1F 58 97 53 12 EC 91 81 21 67 A3 1B E6 [08:16:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 87 47 00 0C E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 C9 D0 01 00 F4 03 04 00 DE 4E A8 66 B6 04 01 00 00 CC E0 9F 7B A9 65 06 E5 [08:16:11]CommunicateWithHost err = 0 [08:16:11]CheckOFDResponse [08:16:11]1017 (14) - 77093643461234 [08:16:11]1041 (16) - 0000000000874939 [08:16:11]1040 (4) - 118985 [08:16:11]1012 (4) - 30.07.2024 02:24 [08:16:11]1206 (1) - 0 [08:16:11]OFD Sender: Remove packet 118985 [08:16:11]ProducePacketName [08:16:11]name=ofd_packets/00118985 [08:16:11]NVStorageDeleteData [08:16:11]Write to MH i2c: 01 00 00 DF 97 76 [08:16:11]Write i2c OK [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: 01 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: 01 07 00 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: 01 07 00 DF 97 00 00 00 00 00 D1 0C 5A [08:16:11]RasterBufferAndPrint [08:16:11]line [08:16:11]line [08:16:11]line [08:16:11]line [08:16:11]line [08:16:11]written 0, free lines is 3289 [08:16:11]MH_Cut [08:16:11]Write to MH i2c: D1 01 00 E6 97 01 4F [08:16:11]Write i2c OK [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: D1 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: D1 01 00 [08:16:11]MH_I2C_Read... [08:16:11]Read from MH i2c: D1 01 00 E6 97 00 4E [08:16:11]Write to MH i2c: 01 00 00 E7 97 7E [08:16:11]Write i2c OK [08:16:11]MH_I2C_Read... [08:16:11]OFD Sender: No OFD packet to send [08:16:12]*** Cut start [08:16:12]*** Partial cut [08:16:12]*** CUTSNS_PIN = 1 [08:16:12]*** CUTSNS_PIN = 0 [08:16:12]*** Brake cut motor [08:16:12]Read from MH i2c: 01 [08:16:12]MH_I2C_Read... [08:16:12]*** Stop cut motor [08:16:12]*** Cut end [08:16:12]Read from MH i2c: 01 07 00 [08:16:12]MH_I2C_Read... [08:16:12]Read from MH i2c: 01 07 00 E7 97 00 00 00 00 00 FF 0F 93 [08:16:12]process_action close_receipt done [08:16:12]requested_data is exist [08:16:12]produce_requested_data [08:16:12]requested_item fm.sn is exist - process it [08:16:12]wFMCommunicate request_size=4 [08:16:12]MH_SAM_APDU [08:16:12]CAPDU: 80 11 00 00 [08:16:12]Write to MH i2c: E2 08 00 E8 97 80 11 00 00 00 00 00 00 F9 [08:16:12]Write i2c OK [08:16:12]MH_I2C_Read... [08:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:12]Read from MH i2c: E2 [08:16:12]MH_I2C_Read... [08:16:12]Read from MH i2c: E2 17 00 [08:16:12]MH_I2C_Read... [08:16:12]Read from MH i2c: E2 17 00 E8 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [08:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:12]wFMCommunicate OK [08:16:12]requested_item fd.num is exist - process it [08:16:12]SAM_PROTO_GetFieldsCounters [08:16:12]wFMCommunicate request_size=4 [08:16:12]MH_SAM_APDU [08:16:12]CAPDU: 80 13 00 00 [08:16:12]Write to MH i2c: E2 08 00 E9 97 80 13 00 00 00 00 00 00 FC [08:16:12]Write i2c OK [08:16:12]MH_I2C_Read... [08:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:12]Read from MH i2c: E2 [08:16:12]MH_I2C_Read... [08:16:12]Read from MH i2c: E2 62 00 [08:16:12]MH_I2C_Read... [08:16:12]Read from MH i2c: E2 62 00 E9 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [08:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 C9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:12]wFMCommunicate OK [08:16:12]SAM_PROTO_GetFieldsCounters done [08:16:12]requested_item shift.num is exist - process it [08:16:12]requested_item shift.opened is exist - process it [08:16:12]req_shift_opened [08:16:12]FM_GetShiftState [08:16:12]SAM_PROTO_GetShiftState [08:16:12]wFMCommunicate request_size=4 [08:16:12]MH_SAM_APDU [08:16:12]CAPDU: 80 13 01 00 [08:16:12]Write to MH i2c: E2 08 00 EA 97 80 13 01 00 00 00 00 00 FE [08:16:12]Write i2c OK [08:16:12]MH_I2C_Read... [08:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:13]Read from MH i2c: E2 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 0E 00 [08:16:13]MH_I2C_Read... [08:16:13]Read from MH i2c: E2 0E 00 EA 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C9 [08:16:13]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:16:13]wFMCommunicate OK [08:16:13]SAM_PROTO_GetShiftState done [08:16:13]FM_GetShiftState done [08:16:13]req_shift_opened done [08:16:13]requested_item shift.open_date is exist - process it [08:16:13]req_shift_open_date [08:16:13]req_shift_open_date done [08:16:13]produce_requested_data done [08:16:13]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118985,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:16:13]process_action_free close_receipt [08:16:13]json_value_free [08:16:13]json_value_free done [08:16:13]process_json_proto returns [08:16:13]Send response to host [08:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118985,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:16:13]free response buf [08:16:13]execute_script done [08:16:13]execute_script returns [08:16:13]free content buf [08:16:13]Sock 9.Close socket [08:16:13]Sock 9.Thread stoped [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:27]accept exits with 7 [08:16:27]New connection [08:16:27]New thread 3067239780 created [08:16:27]Thread 3067383140 joined [08:16:27]Waiting for new connection... [08:16:27] Sock 7.Parse request [08:16:27]Sock 7.Check first char [08:16:27]Sock 7.First char is OK [08:16:27]request: POST /json_proto HTTP/1.0 [08:16:27]Method: POST [08:16:27]URL: /json_proto [08:16:27]Method is POST - this is cgi request [08:16:27]url: /json_proto [08:16:27]query_string will be loaded in cgi processing [08:16:27]execute_cgi json_proto POST (null) [08:16:27]execute_cgi path=json_proto method=POST [08:16:27]POST find Content-Length [08:16:27]Host: 172.17.45.7:8080 [08:16:27]Content-Length: 679 [08:16:27]Content-Type: application/json [08:16:27] [08:16:27]POST finish read [08:16:27]Found Content-Length = 679 [08:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:27]execute_script... [08:16:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:27]POST & json_proto [08:16:27]process_json_proto [08:16:27]json parsed OK: [08:16:27]protocol is kg_v1.0 [08:16:27]action value=close_receipt [08:16:27]process_action close_receipt [08:16:27]cmd_close_receipt [08:16:27]MH_GetDate [08:16:27]Write to MH i2c: F0 00 00 EB 97 71 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: F0 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: F0 09 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: F0 09 00 EB 97 00 65 A1 A8 66 90 0F 3E 66 D1 [08:16:27]GetLastDocTimeStamp 1722327378 [08:16:27]current date 1722327397 [08:16:27]FM_GetShiftState [08:16:27]SAM_PROTO_GetShiftState [08:16:27]wFMCommunicate request_size=4 [08:16:27]MH_SAM_APDU [08:16:27]CAPDU: 80 13 01 00 [08:16:27]Write to MH i2c: E2 08 00 EC 97 80 13 01 00 00 00 00 00 00 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:27]Read from MH i2c: E2 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 EC 97 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CB [08:16:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:16:27]wFMCommunicate OK [08:16:27]SAM_PROTO_GetShiftState done [08:16:27]FM_GetShiftState done [08:16:27]opened in 1722298242 [08:16:27]opened+sec_in_day 1722384642 [08:16:27]quantity*price = 100050 [08:16:27]sum+1 = 100052 [08:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 38 30.07.2024 08:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118986 ФПД: 72840821956668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118986&fm=72840821956668&tin=02508201610067®Number=0000000000092660&sum=100000 [08:16:28]StoreToDocumentArchive [08:16:28]shift 435 fd 118986 [08:16:28]save to /storage/0435/doc_00118986 [08:16:28]save last doc name /storage/0435/doc_00118986 to /storage/kkm_last_doc_name [08:16:28]save OK [08:16:28]Clear old archive folders... [08:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:16:28]tlvbuf is 01E591C0 [08:16:28]SAM_PROTO_ClearQueue [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 09 00 00 [08:16:28]Write to MH i2c: E2 08 00 F9 97 80 09 00 00 00 00 00 00 02 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 F9 97 00 90 00 04 [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]SAM_PROTO_ClearQueue done [08:16:28]KKMCreateOFDPacket [08:16:28]OFDProtocolAddRootSTLVToBuf [08:16:28]FM_MakeSignedData [08:16:28]FM_MakeSignedData [08:16:28]SAM_PROTO_SignData [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 01 02 [08:16:28]Write to MH i2c: E2 08 00 FA 97 80 0D 01 02 00 00 00 00 0A [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 FA 97 00 90 00 05 [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]wFMCommunicate request_size=255 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 65 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA D0 01 00 35 04 06 00 42 3F 93 51 [08:16:28]Write to MH i2c: E2 02 01 FB 97 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 65 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA D0 01 00 35 04 06 00 42 3F 93 51 00 00 88 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 FB 97 00 90 00 06 [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]wFMCommunicate request_size=7 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 02 02 02 60 3C [08:16:28]Write to MH i2c: E2 0A 00 FC 97 80 0D 02 02 02 00 60 3C 00 00 AD [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 FC 97 00 90 00 07 [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 03 02 [08:16:28]Write to MH i2c: E2 08 00 FD 97 80 0D 03 02 00 00 00 00 0F [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 0B 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 0B 00 FD 97 00 78 8B 64 A3 C7 09 D5 7D 90 00 3C [08:16:29]RAPDU: 78 8B 64 A3 C7 09 D5 7D 90 00 [08:16:29]wFMCommunicate OK [08:16:29]SAM_PROTO_SignData done [08:16:29]FM_MakeSignedData done [08:16:29]CreateOFDProtocolMessage [08:16:29]wFMCommunicate request_size=4 [08:16:29]MH_SAM_APDU [08:16:29]CAPDU: 80 11 00 00 [08:16:29]Write to MH i2c: E2 08 00 FE 97 80 11 00 00 00 00 00 00 0F [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:29]Read from MH i2c: E2 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 17 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: E2 17 00 FE 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6A [08:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:29]wFMCommunicate OK [08:16:29]CreateOFDProtocolMessage done [08:16:29]OFDSenderStorePacket 118986 [08:16:29]StoreOFDPacket docnum=118986 [08:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC D0 04 01 8D 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 65 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA D0 01 00 35 04 06 00 42 3F 93 51 60 3C 78 8B 64 A3 C7 09 D5 7D [08:16:29]CheckFolder [08:16:29]dirname=/storage/ofd_packets [08:16:29]CheckFolder done [08:16:29]ProducePacketName [08:16:29]name=ofd_packets/00118986 [08:16:29]NVStorageSaveData ofd_packets/00118986 [08:16:29]File name is /storage/ofd_packets/00118986 [08:16:29]Write 298 bytes [08:16:29]NVStorageSaveData done [08:16:29]OFDSenderStorePacket done [08:16:29]KKMCreateOFDPacket done [08:16:29]NVStorageSaveData kkm_last_timestamp [08:16:29]File name is /storage/kkm_last_timestamp [08:16:29]Write 4 bytes [08:16:29]NVStorageSaveData done [08:16:29]ExternCall_PrintAddStr [08:16:29]wPrintStart [08:16:29]Write to MH i2c: 01 00 00 FF 97 96 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 FF 97 00 00 00 00 00 FF 0F AB [08:16:29]RasterBufferAndPrint [08:16:29]line Счет N : (1)949904 [08:16:29]line ИНН: 02508201610067 [08:16:29]line Контрольно-Кассовый Чек [08:16:29]line ПРОДАЖА [08:16:29]line ТРК (МРК, ГНК) : 11 [08:16:29]line Товар: 2710194800 [08:16:29]line ДТ-К-5 [08:16:29]line 13.130 * 76.20 [08:16:29]line = 1000.51 [08:16:29]line НДС 12% НСП 1% [08:16:29]line > о реализуемом товаре [08:16:29]line ОКРУГЛЕНИЕ: -0.51 [08:16:29]line ИТОГО: 1000.00 [08:16:29]line Внесено: 1000.00 [08:16:29]line СДАЧА: 0.00 [08:16:29]line НСП 1% : 8.85 [08:16:29]line НДС 12% : 106.25 [08:16:29]line Наличными: 1000.00 [08:16:29]line Безнал.: 0.00 [08:16:29]line Место: АЗС № 134 "Партнер Нефть" [08:16:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:16:29]line СНО: Общий режим [08:16:29]line Чек 38 30.07.2024 08:16 [08:16:29]line Смена: 435 ФФД: 1.0 [08:16:29]line ЗНМ: 0300000044 [08:16:29]line РНМ: 0000000000092660 [08:16:29]line Версия ККМ: 001 [08:16:29]line ФМ: 0000000000874939 [08:16:29]line ФД: 118986 [08:16:29]line ФПД: 72840821956668 [08:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081637&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118986&fm=72840821956668&tin=02508201610067®Number=0000000000092660&sum=100000 [08:16:29]OFD Sender: Processing packet 118986 [packets to send 86, broken 85] [08:16:29]ProducePacketName [08:16:29]name=ofd_packets/00118986 [08:16:29]OFD Sender: To server: pG, [08:16:29]CommunicateWithHost lk.salyk.kg:30040 [08:16:29]ConnectInit lk.salyk.kg [08:16:29]written 0, free lines is 4095 [08:16:29]Connected sock=10 [08:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AC D0 04 01 8D 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 65 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA D0 01 00 35 04 06 00 42 3F 93 51 60 3C 78 8B 64 A3 C7 09 D5 7D [08:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F6 B6 47 00 7F 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CA D0 01 00 F4 03 04 00 F0 4E A8 66 B6 04 01 00 00 0E F8 82 67 3D 85 CE A5 [08:16:29]CommunicateWithHost err = 0 [08:16:29]CheckOFDResponse [08:16:29]1017 (14) - 77093643461234 [08:16:29]1041 (16) - 0000000000874939 [08:16:29]1040 (4) - 118986 [08:16:29]1012 (4) - 30.07.2024 02:24 [08:16:29]1206 (1) - 0 [08:16:29]OFD Sender: Remove packet 118986 [08:16:29]ProducePacketName [08:16:29]name=ofd_packets/00118986 [08:16:29]NVStorageDeleteData [08:16:29]Write to MH i2c: 01 00 00 29 98 C1 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 29 98 00 00 00 00 00 CB 0C 9F [08:16:29]RasterBufferAndPrint [08:16:29]line [08:16:29]line [08:16:29]line [08:16:29]line [08:16:29]line [08:16:29]written 0, free lines is 3285 [08:16:29]MH_Cut [08:16:29]Write to MH i2c: D1 01 00 30 98 01 9A [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: D1 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: D1 01 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: D1 01 00 30 98 00 99 [08:16:29]Write to MH i2c: 01 00 00 31 98 C9 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:30]OFD Sender: No OFD packet to send [08:16:30]*** Cut start [08:16:30]*** Partial cut [08:16:30]*** CUTSNS_PIN = 1 [08:16:30]*** CUTSNS_PIN = 0 [08:16:30]*** Brake cut motor [08:16:31]Read from MH i2c: 01 [08:16:31]MH_I2C_Read... [08:16:31]*** Stop cut motor [08:16:31]*** Cut end [08:16:31]Read from MH i2c: 01 07 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: 01 07 00 31 98 00 00 00 00 00 FF 0F DE [08:16:31]process_action close_receipt done [08:16:31]requested_data is exist [08:16:31]produce_requested_data [08:16:31]requested_item fm.sn is exist - process it [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 11 00 00 [08:16:31]Write to MH i2c: E2 08 00 32 98 80 11 00 00 00 00 00 00 44 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 17 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 17 00 32 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [08:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:16:31]wFMCommunicate OK [08:16:31]requested_item fd.num is exist - process it [08:16:31]SAM_PROTO_GetFieldsCounters [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 13 00 00 [08:16:31]Write to MH i2c: E2 08 00 33 98 80 13 00 00 00 00 00 00 47 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 62 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 62 00 33 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [08:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:31]wFMCommunicate OK [08:16:31]SAM_PROTO_GetFieldsCounters done [08:16:31]requested_item shift.num is exist - process it [08:16:31]requested_item shift.opened is exist - process it [08:16:31]req_shift_opened [08:16:31]FM_GetShiftState [08:16:31]SAM_PROTO_GetShiftState [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 13 01 00 [08:16:31]Write to MH i2c: E2 08 00 34 98 80 13 01 00 00 00 00 00 49 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 0E 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 0E 00 34 98 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 14 [08:16:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:16:31]wFMCommunicate OK [08:16:31]SAM_PROTO_GetShiftState done [08:16:31]FM_GetShiftState done [08:16:31]req_shift_opened done [08:16:31]requested_item shift.open_date is exist - process it [08:16:31]req_shift_open_date [08:16:31]req_shift_open_date done [08:16:31]produce_requested_data done [08:16:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118986,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:16:31]process_action_free close_receipt [08:16:31]json_value_free [08:16:31]json_value_free done [08:16:31]process_json_proto returns [08:16:31]Send response to host [08:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118986,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:16:31]free response buf [08:16:31]execute_script done [08:16:31]execute_script returns [08:16:31]free content buf [08:16:31]Sock 7.Close socket [08:16:31]Sock 7.Thread stoped [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:15]accept exits with 9 [08:17:15]New connection [08:17:15]New thread 3067383140 created [08:17:15]Thread 3067239780 joined [08:17:15]Waiting for new connection... [08:17:15] Sock 9.Parse request [08:17:15]Sock 9.Check first char [08:17:15]Sock 9.First char is OK [08:17:15]request: POST /json_proto HTTP/1.0 [08:17:15]Method: POST [08:17:15]URL: /json_proto [08:17:15]Method is POST - this is cgi request [08:17:15]url: /json_proto [08:17:15]query_string will be loaded in cgi processing [08:17:15]execute_cgi json_proto POST (null) [08:17:15]execute_cgi path=json_proto method=POST [08:17:15]POST find Content-Length [08:17:15]Host: 172.17.45.7:8080 [08:17:15]Content-Length: 736 [08:17:15]Content-Type: application/json [08:17:15] [08:17:15]POST finish read [08:17:15]Found Content-Length = 736 [08:17:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118986, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:15]execute_script... [08:17:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 118986, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:15]POST & json_proto [08:17:15]process_json_proto [08:17:15]json parsed OK: [08:17:15]protocol is kg_v1.0 [08:17:15]action value=close_receipt [08:17:15]process_action close_receipt [08:17:15]cmd_close_receipt [08:17:15]MH_GetDate [08:17:15]Write to MH i2c: F0 00 00 35 98 BC [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: F0 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: F0 09 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: F0 09 00 35 98 00 95 A1 A8 66 90 0F 3E 66 4C [08:17:15]GetLastDocTimeStamp 1722327397 [08:17:15]current date 1722327445 [08:17:15]FM_GetShiftState [08:17:15]SAM_PROTO_GetShiftState [08:17:15]wFMCommunicate request_size=4 [08:17:15]MH_SAM_APDU [08:17:15]CAPDU: 80 13 01 00 [08:17:15]Write to MH i2c: E2 08 00 36 98 80 13 01 00 00 00 00 00 4B [08:17:15]Write i2c OK [08:17:15]MH_I2C_Read... [08:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:15]Read from MH i2c: E2 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 0E 00 [08:17:15]MH_I2C_Read... [08:17:15]Read from MH i2c: E2 0E 00 36 98 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 16 [08:17:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:17:15]wFMCommunicate OK [08:17:15]SAM_PROTO_GetShiftState done [08:17:15]FM_GetShiftState done [08:17:15]opened in 1722298242 [08:17:15]opened+sec_in_day 1722384642 [08:17:15]quantity*price = 100050 [08:17:15]sum+1 = 100052 [08:17:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 39 30.07.2024 08:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 118986 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 118987 ФПД: 180007597088141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081725&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118987&fm=180007597088141&tin=02508201610067®Number=0000000000092660&sum=100000 [08:17:17]StoreToDocumentArchive [08:17:17]shift 435 fd 118987 [08:17:17]save to /storage/0435/doc_00118987 [08:17:17]save last doc name /storage/0435/doc_00118987 to /storage/kkm_last_doc_name [08:17:17]save OK [08:17:17]Clear old archive folders... [08:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:17:17]tlvbuf is 01E58E50 [08:17:17]SAM_PROTO_ClearQueue [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 09 00 00 [08:17:17]Write to MH i2c: E2 08 00 45 98 80 09 00 00 00 00 00 00 4F [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 45 98 00 90 00 51 [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]SAM_PROTO_ClearQueue done [08:17:17]KKMCreateOFDPacket [08:17:17]OFDProtocolAddRootSTLVToBuf [08:17:17]FM_MakeSignedData [08:17:17]FM_MakeSignedData [08:17:17]SAM_PROTO_SignData [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 01 02 [08:17:17]Write to MH i2c: E2 08 00 46 98 80 0D 01 02 00 00 00 00 57 [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 46 98 00 90 00 52 [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]wFMCommunicate request_size=255 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 CA D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 [08:17:17]Write to MH i2c: E2 02 01 47 98 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 CA D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 00 00 93 [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 47 98 00 90 00 53 [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]wFMCommunicate request_size=35 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D0 01 00 35 04 06 00 A3 B7 48 E1 9D 8D [08:17:17]Write to MH i2c: E2 26 00 48 98 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D0 01 00 35 04 06 00 A3 B7 48 E1 9D 8D 00 00 9E [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 03 00 48 98 00 90 00 54 [08:17:17]RAPDU: 90 00 [08:17:17]wFMCommunicate OK [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 0D 03 02 [08:17:17]Write to MH i2c: E2 08 00 49 98 80 0D 03 02 00 00 00 00 5C [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 0B 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 0B 00 49 98 00 B0 FC A0 3A 88 95 25 90 90 00 B5 [08:17:17]RAPDU: B0 FC A0 3A 88 95 25 90 90 00 [08:17:17]wFMCommunicate OK [08:17:17]SAM_PROTO_SignData done [08:17:17]FM_MakeSignedData done [08:17:17]CreateOFDProtocolMessage [08:17:17]wFMCommunicate request_size=4 [08:17:17]MH_SAM_APDU [08:17:17]CAPDU: 80 11 00 00 [08:17:17]Write to MH i2c: E2 08 00 4A 98 80 11 00 00 00 00 00 00 5C [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:17]Read from MH i2c: E2 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 17 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: E2 17 00 4A 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B7 [08:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:17]wFMCommunicate OK [08:17:17]CreateOFDProtocolMessage done [08:17:17]OFDSenderStorePacket 118987 [08:17:17]StoreOFDPacket docnum=118987 [08:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 55 10 20 01 D9 D1 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 CA D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D0 01 00 35 04 06 00 A3 B7 48 E1 9D 8D B0 FC A0 3A 88 95 25 90 [08:17:17]CheckFolder [08:17:17]dirname=/storage/ofd_packets [08:17:17]CheckFolder done [08:17:17]ProducePacketName [08:17:17]name=ofd_packets/00118987 [08:17:17]NVStorageSaveData ofd_packets/00118987 [08:17:17]File name is /storage/ofd_packets/00118987 [08:17:17]Write 326 bytes [08:17:17]NVStorageSaveData done [08:17:17]OFDSenderStorePacket done [08:17:17]KKMCreateOFDPacket done [08:17:17]NVStorageSaveData kkm_last_timestamp [08:17:17]File name is /storage/kkm_last_timestamp [08:17:17]Write 4 bytes [08:17:17]NVStorageSaveData done [08:17:17]ExternCall_PrintAddStr [08:17:17]wPrintStart [08:17:17]Write to MH i2c: 01 00 00 4B 98 E3 [08:17:17]Write i2c OK [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: 01 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: 01 07 00 [08:17:17]MH_I2C_Read... [08:17:17]Read from MH i2c: 01 07 00 4B 98 00 00 00 00 00 FF 0F F8 [08:17:17]RasterBufferAndPrint [08:17:17]line Счет N : (1)949904 [08:17:17]line ИНН: 02508201610067 [08:17:17]line Контрольно-Кассовый Чек [08:17:17]line ВОЗВРАТ ПРОДАЖИ [08:17:17]line ТРК (МРК, ГНК) : 11 [08:17:17]line Товар: 2710194800 [08:17:17]line ДТ-К-5 [08:17:17]line 13.130 * 76.20 [08:17:17]line = 1000.51 [08:17:17]line НДС 12% НСП 1% [08:17:17]line > о реализуемом товаре [08:17:17]line ОКРУГЛЕНИЕ: -0.51 [08:17:17]line ИТОГО: 1000.00 [08:17:17]line НСП 1% : 8.85 [08:17:17]line НДС 12% : 106.25 [08:17:17]line Наличными: 1000.00 [08:17:17]line Безнал.: 0.00 [08:17:17]line Место: АЗС № 134 "Партнер Нефть" [08:17:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:17:17]line СНО: Общий режим [08:17:17]line Чек 39 30.07.2024 08:17 [08:17:17]line Смена: 435 ФФД: 1.0 [08:17:17]line ЗНМ: 0300000044 [08:17:17]line РНМ: 0000000000092660 [08:17:17]line Версия ККМ: 001 [08:17:17]line ФД осн.: 118986 [08:17:17]line ФМ осн.: 0000000000874939 [08:17:17]line ФМ: 0000000000874939 [08:17:17]line ФД: 118987 [08:17:17]line ФПД: 180007597088141 [08:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081725&type=2&operation_type=1&fn_number=0000000000874939&fd_number=118987&fm=180007597088141&tin=02508201610067®Number=0000000000092660&sum=100000 [08:17:18]OFD Sender: Processing packet 118987 [packets to send 86, broken 85] [08:17:18]ProducePacketName [08:17:18]name=ofd_packets/00118987 [08:17:18]OFD Sender: To server: pG, [08:17:18]CommunicateWithHost lk.salyk.kg:30040 [08:17:18]ConnectInit lk.salyk.kg [08:17:18]written 0, free lines is 4095 [08:17:18]Connected sock=11 [08:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 55 10 20 01 D9 D1 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 95 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 CA D0 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D0 01 00 35 04 06 00 A3 B7 48 E1 9D 8D B0 FC A0 3A 88 95 25 90 [08:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F1 95 47 00 AE 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D0 01 00 F4 03 04 00 21 4F A8 66 B6 04 01 00 00 3D B3 9A 7D CE E3 65 8F [08:17:18]CommunicateWithHost err = 0 [08:17:18]CheckOFDResponse [08:17:18]1017 (14) - 77093643461234 [08:17:18]1041 (16) - 0000000000874939 [08:17:18]1040 (4) - 118987 [08:17:18]1012 (4) - 30.07.2024 02:25 [08:17:18]1206 (1) - 0 [08:17:18]OFD Sender: Remove packet 118987 [08:17:18]ProducePacketName [08:17:18]name=ofd_packets/00118987 [08:17:18]NVStorageDeleteData [08:17:18]Write to MH i2c: 01 00 00 75 98 0D [08:17:18]Write i2c OK [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: 01 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: 01 07 00 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: 01 07 00 75 98 00 00 00 00 00 E5 0C 05 [08:17:18]RasterBufferAndPrint [08:17:18]line [08:17:18]line [08:17:18]line [08:17:18]line [08:17:18]line [08:17:18]written 0, free lines is 3307 [08:17:18]MH_Cut [08:17:18]Write to MH i2c: D1 01 00 7C 98 01 E6 [08:17:18]Write i2c OK [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: D1 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: D1 01 00 [08:17:18]MH_I2C_Read... [08:17:18]Read from MH i2c: D1 01 00 7C 98 00 E5 [08:17:18]Write to MH i2c: 01 00 00 7D 98 15 [08:17:18]Write i2c OK [08:17:18]MH_I2C_Read... [08:17:18]OFD Sender: No OFD packet to send [08:17:19]*** Cut start [08:17:19]*** Partial cut [08:17:19]*** CUTSNS_PIN = 1 [08:17:19]*** CUTSNS_PIN = 0 [08:17:19]*** Brake cut motor [08:17:19]Read from MH i2c: 01 [08:17:19]MH_I2C_Read... [08:17:19]*** Stop cut motor [08:17:19]*** Cut end [08:17:19]Read from MH i2c: 01 07 00 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: 01 07 00 7D 98 00 00 00 00 00 FF 0F 2A [08:17:19]process_action close_receipt done [08:17:19]requested_data is exist [08:17:19]produce_requested_data [08:17:19]requested_item fm.sn is exist - process it [08:17:19]wFMCommunicate request_size=4 [08:17:19]MH_SAM_APDU [08:17:19]CAPDU: 80 11 00 00 [08:17:19]Write to MH i2c: E2 08 00 7E 98 80 11 00 00 00 00 00 00 90 [08:17:19]Write i2c OK [08:17:19]MH_I2C_Read... [08:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:19]Read from MH i2c: E2 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: E2 17 00 [08:17:19]MH_I2C_Read... [08:17:19]Read from MH i2c: E2 17 00 7E 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EB [08:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:19]wFMCommunicate OK [08:17:19]requested_item fd.num is exist - process it [08:17:19]SAM_PROTO_GetFieldsCounters [08:17:19]wFMCommunicate request_size=4 [08:17:19]MH_SAM_APDU [08:17:19]CAPDU: 80 13 00 00 [08:17:19]Write to MH i2c: E2 08 00 7F 98 80 13 00 00 00 00 00 00 93 [08:17:19]Write i2c OK [08:17:19]MH_I2C_Read... [08:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:20]Read from MH i2c: E2 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 62 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 62 00 7F 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [08:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:20]wFMCommunicate OK [08:17:20]SAM_PROTO_GetFieldsCounters done [08:17:20]requested_item shift.num is exist - process it [08:17:20]requested_item shift.opened is exist - process it [08:17:20]req_shift_opened [08:17:20]FM_GetShiftState [08:17:20]SAM_PROTO_GetShiftState [08:17:20]wFMCommunicate request_size=4 [08:17:20]MH_SAM_APDU [08:17:20]CAPDU: 80 13 01 00 [08:17:20]Write to MH i2c: E2 08 00 80 98 80 13 01 00 00 00 00 00 95 [08:17:20]Write i2c OK [08:17:20]MH_I2C_Read... [08:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:20]Read from MH i2c: E2 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 80 98 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 60 [08:17:20]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:17:20]wFMCommunicate OK [08:17:20]SAM_PROTO_GetShiftState done [08:17:20]FM_GetShiftState done [08:17:20]req_shift_opened done [08:17:20]requested_item shift.open_date is exist - process it [08:17:20]req_shift_open_date [08:17:20]req_shift_open_date done [08:17:20]produce_requested_data done [08:17:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118987,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:17:20]process_action_free close_receipt [08:17:20]json_value_free [08:17:20]json_value_free done [08:17:20]process_json_proto returns [08:17:20]Send response to host [08:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118987,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:17:20]free response buf [08:17:20]execute_script done [08:17:20]execute_script returns [08:17:20]free content buf [08:17:20]Sock 9.Close socket [08:17:20]Sock 9.Thread stoped [08:17:20]accept exits with 7 [08:17:20]New connection [08:17:20]New thread 3067239780 created [08:17:20]Thread 3067383140 joined [08:17:20]Waiting for new connection... [08:17:20] Sock 7.Parse request [08:17:20]Sock 7.Check first char [08:17:20]Sock 7.First char is OK [08:17:20]request: POST /json_proto HTTP/1.0 [08:17:20]Method: POST [08:17:20]URL: /json_proto [08:17:20]Method is POST - this is cgi request [08:17:20]url: /json_proto [08:17:20]query_string will be loaded in cgi processing [08:17:20]execute_cgi json_proto POST (null) [08:17:20]execute_cgi path=json_proto method=POST [08:17:20]POST find Content-Length [08:17:20]Host: 172.17.45.7:8080 [08:17:20]Content-Length: 676 [08:17:20]Content-Type: application/json [08:17:20] [08:17:20]POST finish read [08:17:20]Found Content-Length = 676 [08:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.070, "sum" : 995.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 995.00, "payments": [ { "type": 0, "sum" : 995.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:20]execute_script... [08:17:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.070, "sum" : 995.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 995.00, "payments": [ { "type": 0, "sum" : 995.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:20]POST & json_proto [08:17:20]process_json_proto [08:17:20]json parsed OK: [08:17:20]protocol is kg_v1.0 [08:17:20]action value=close_receipt [08:17:20]process_action close_receipt [08:17:20]cmd_close_receipt [08:17:20]MH_GetDate [08:17:20]Write to MH i2c: F0 00 00 81 98 08 [08:17:20]Write i2c OK [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: F0 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: F0 09 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: F0 09 00 81 98 00 9A A1 A8 66 90 0F 3E 66 9D [08:17:20]GetLastDocTimeStamp 1722327445 [08:17:20]current date 1722327450 [08:17:20]FM_GetShiftState [08:17:20]SAM_PROTO_GetShiftState [08:17:20]wFMCommunicate request_size=4 [08:17:20]MH_SAM_APDU [08:17:20]CAPDU: 80 13 01 00 [08:17:20]Write to MH i2c: E2 08 00 82 98 80 13 01 00 00 00 00 00 97 [08:17:20]Write i2c OK [08:17:20]MH_I2C_Read... [08:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:20]Read from MH i2c: E2 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 [08:17:20]MH_I2C_Read... [08:17:20]Read from MH i2c: E2 0E 00 82 98 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 62 [08:17:20]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:17:20]wFMCommunicate OK [08:17:20]SAM_PROTO_GetShiftState done [08:17:20]FM_GetShiftState done [08:17:20]opened in 1722298242 [08:17:20]opened+sec_in_day 1722384642 [08:17:20]quantity*price = 99593 [08:17:20]sum+1 = 99594 [08:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 995.00 Внесено: 1000.00 СДАЧА: 5.00 НСП 1% : 8.81 НДС 12% : 105.76 Наличными: 995.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 40 30.07.2024 08:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118988 ФПД: 124209413313464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081730&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118988&fm=124209413313464&tin=02508201610067®Number=0000000000092660&sum=99500 [08:17:21]StoreToDocumentArchive [08:17:21]shift 435 fd 118988 [08:17:21]save to /storage/0435/doc_00118988 [08:17:21]save last doc name /storage/0435/doc_00118988 to /storage/kkm_last_doc_name [08:17:21]save OK [08:17:21]Clear old archive folders... [08:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:17:21]tlvbuf is 01E8C9C0 [08:17:21]SAM_PROTO_ClearQueue [08:17:21]wFMCommunicate request_size=4 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 09 00 00 [08:17:21]Write to MH i2c: E2 08 00 8F 98 80 09 00 00 00 00 00 00 99 [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 8F 98 00 90 00 9B [08:17:21]RAPDU: 90 00 [08:17:21]wFMCommunicate OK [08:17:21]SAM_PROTO_ClearQueue done [08:17:21]KKMCreateOFDPacket [08:17:21]OFDProtocolAddRootSTLVToBuf [08:17:21]FM_MakeSignedData [08:17:21]FM_MakeSignedData [08:17:21]SAM_PROTO_SignData [08:17:21]wFMCommunicate request_size=4 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 0D 01 02 [08:17:21]Write to MH i2c: E2 08 00 90 98 80 0D 01 02 00 00 00 00 A1 [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:21]Read from MH i2c: E2 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 [08:17:21]MH_I2C_Read... [08:17:21]Read from MH i2c: E2 03 00 90 98 00 90 00 9C [08:17:21]RAPDU: 90 00 [08:17:21]wFMCommunicate OK [08:17:21]wFMCommunicate request_size=255 [08:17:21]MH_SAM_APDU [08:17:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 29 00 00 00 00 07 04 06 00 AC 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9A A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D0 01 00 35 04 06 00 70 F7 C1 F5 [08:17:21]Write to MH i2c: E2 02 01 91 98 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 29 00 00 00 00 07 04 06 00 AC 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9A A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D0 01 00 35 04 06 00 70 F7 C1 F5 00 00 E8 [08:17:21]Write i2c OK [08:17:21]MH_I2C_Read... [08:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:22]Read from MH i2c: E2 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 03 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 03 00 91 98 00 90 00 9D [08:17:22]RAPDU: 90 00 [08:17:22]wFMCommunicate OK [08:17:22]wFMCommunicate request_size=7 [08:17:22]MH_SAM_APDU [08:17:22]CAPDU: 80 0D 02 02 02 53 B8 [08:17:22]Write to MH i2c: E2 0A 00 92 98 80 0D 02 02 02 00 53 B8 00 00 B3 [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:22]Read from MH i2c: E2 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 03 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 03 00 92 98 00 90 00 9E [08:17:22]RAPDU: 90 00 [08:17:22]wFMCommunicate OK [08:17:22]wFMCommunicate request_size=4 [08:17:22]MH_SAM_APDU [08:17:22]CAPDU: 80 0D 03 02 [08:17:22]Write to MH i2c: E2 08 00 93 98 80 0D 03 02 00 00 00 00 A6 [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:22]Read from MH i2c: E2 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 0B 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 0B 00 93 98 00 F1 68 46 5B 84 BD 1B 45 90 00 42 [08:17:22]RAPDU: F1 68 46 5B 84 BD 1B 45 90 00 [08:17:22]wFMCommunicate OK [08:17:22]SAM_PROTO_SignData done [08:17:22]FM_MakeSignedData done [08:17:22]CreateOFDProtocolMessage [08:17:22]wFMCommunicate request_size=4 [08:17:22]MH_SAM_APDU [08:17:22]CAPDU: 80 11 00 00 [08:17:22]Write to MH i2c: E2 08 00 94 98 80 11 00 00 00 00 00 00 A6 [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:22]Read from MH i2c: E2 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 17 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: E2 17 00 94 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [08:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:22]wFMCommunicate OK [08:17:22]CreateOFDProtocolMessage done [08:17:22]OFDSenderStorePacket 118988 [08:17:22]StoreOFDPacket docnum=118988 [08:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1F 82 04 01 EB 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 29 00 00 00 00 07 04 06 00 AC 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9A A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D0 01 00 35 04 06 00 70 F7 C1 F5 53 B8 F1 68 46 5B 84 BD 1B 45 [08:17:22]CheckFolder [08:17:22]dirname=/storage/ofd_packets [08:17:22]CheckFolder done [08:17:22]ProducePacketName [08:17:22]name=ofd_packets/00118988 [08:17:22]NVStorageSaveData ofd_packets/00118988 [08:17:22]File name is /storage/ofd_packets/00118988 [08:17:22]Write 298 bytes [08:17:22]NVStorageSaveData done [08:17:22]OFDSenderStorePacket done [08:17:22]KKMCreateOFDPacket done [08:17:22]NVStorageSaveData kkm_last_timestamp [08:17:22]File name is /storage/kkm_last_timestamp [08:17:22]Write 4 bytes [08:17:22]NVStorageSaveData done [08:17:22]ExternCall_PrintAddStr [08:17:22]wPrintStart [08:17:22]Write to MH i2c: 01 00 00 95 98 2D [08:17:22]Write i2c OK [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: 01 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: 01 07 00 [08:17:22]MH_I2C_Read... [08:17:22]Read from MH i2c: 01 07 00 95 98 00 00 00 00 00 FF 0F 42 [08:17:22]RasterBufferAndPrint [08:17:22]line Счет N : (1)949904 [08:17:22]line ИНН: 02508201610067 [08:17:22]line Контрольно-Кассовый Чек [08:17:22]line ПРОДАЖА [08:17:22]line ТРК (МРК, ГНК) : 11 [08:17:22]line Товар: 2710194800 [08:17:22]line ДТ-К-5 [08:17:22]line 13.070 * 76.20 [08:17:22]line = 995.93 [08:17:22]line НДС 12% НСП 1% [08:17:22]line > о реализуемом товаре [08:17:22]line ОКРУГЛЕНИЕ: -0.93 [08:17:22]line ИТОГО: 995.00 [08:17:22]line Внесено: 1000.00 [08:17:22]line СДАЧА: 5.00 [08:17:22]line НСП 1% : 8.81 [08:17:22]line НДС 12% : 105.76 [08:17:22]line Наличными: 995.00 [08:17:22]line Безнал.: 0.00 [08:17:22]line Место: АЗС № 134 "Партнер Нефть" [08:17:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:17:22]line СНО: Общий режим [08:17:22]line Чек 40 30.07.2024 08:17 [08:17:22]line Смена: 435 ФФД: 1.0 [08:17:22]line ЗНМ: 0300000044 [08:17:22]line РНМ: 0000000000092660 [08:17:22]line Версия ККМ: 001 [08:17:22]line ФМ: 0000000000874939 [08:17:22]line ФД: 118988 [08:17:22]line ФПД: 124209413313464 [08:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081730&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118988&fm=124209413313464&tin=02508201610067®Number=0000000000092660&sum=99500 [08:17:22]written 0, free lines is 4095 [08:17:23]OFD Sender: Processing packet 118988 [packets to send 86, broken 85] [08:17:23]ProducePacketName [08:17:23]name=ofd_packets/00118988 [08:17:23]OFD Sender: To server: pG, [08:17:23]CommunicateWithHost lk.salyk.kg:30040 [08:17:23]ConnectInit lk.salyk.kg [08:17:23]Connected sock=10 [08:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 1F 82 04 01 EB 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0E 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 09 85 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 29 00 00 00 00 07 04 06 00 AC 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 9A A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D0 01 00 35 04 06 00 70 F7 C1 F5 53 B8 F1 68 46 5B 84 BD 1B 45 [08:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 44 8F 47 00 A4 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D0 01 00 F4 03 04 00 26 4F A8 66 B6 04 01 00 00 DA F2 67 6F 39 3D 47 BE [08:17:23]CommunicateWithHost err = 0 [08:17:23]CheckOFDResponse [08:17:23]1017 (14) - 77093643461234 [08:17:23]1041 (16) - 0000000000874939 [08:17:23]1040 (4) - 118988 [08:17:23]1012 (4) - 30.07.2024 02:25 [08:17:23]1206 (1) - 0 [08:17:23]OFD Sender: Remove packet 118988 [08:17:23]ProducePacketName [08:17:23]name=ofd_packets/00118988 [08:17:23]NVStorageDeleteData [08:17:23]Write to MH i2c: 01 00 00 BF 98 57 [08:17:23]Write i2c OK [08:17:23]MH_I2C_Read... [08:17:23]Read from MH i2c: 01 [08:17:23]MH_I2C_Read... [08:17:23]Read from MH i2c: 01 07 00 [08:17:23]MH_I2C_Read... [08:17:23]Read from MH i2c: 01 07 00 BF 98 00 00 00 00 00 D9 0C 43 [08:17:23]RasterBufferAndPrint [08:17:23]line [08:17:23]line [08:17:23]line [08:17:23]line [08:17:23]line [08:17:23]written 0, free lines is 3301 [08:17:23]MH_Cut [08:17:23]Write to MH i2c: D1 01 00 C6 98 01 30 [08:17:23]Write i2c OK [08:17:23]MH_I2C_Read... [08:17:23]Read from MH i2c: D1 [08:17:23]MH_I2C_Read... [08:17:23]Read from MH i2c: D1 01 00 [08:17:23]MH_I2C_Read... [08:17:23]Read from MH i2c: D1 01 00 C6 98 00 2F [08:17:23]Write to MH i2c: 01 00 00 C7 98 5F [08:17:23]Write i2c OK [08:17:23]MH_I2C_Read... [08:17:23]OFD Sender: No OFD packet to send [08:17:24]*** Cut start [08:17:24]*** Partial cut [08:17:24]*** CUTSNS_PIN = 1 [08:17:24]*** CUTSNS_PIN = 0 [08:17:24]*** Brake cut motor [08:17:24]Read from MH i2c: 01 [08:17:24]MH_I2C_Read... [08:17:24]*** Stop cut motor [08:17:24]*** Cut end [08:17:24]Read from MH i2c: 01 07 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: 01 07 00 C7 98 00 00 00 00 00 FF 0F 74 [08:17:24]process_action close_receipt done [08:17:24]requested_data is exist [08:17:24]produce_requested_data [08:17:24]requested_item fm.sn is exist - process it [08:17:24]wFMCommunicate request_size=4 [08:17:24]MH_SAM_APDU [08:17:24]CAPDU: 80 11 00 00 [08:17:24]Write to MH i2c: E2 08 00 C8 98 80 11 00 00 00 00 00 00 DA [08:17:24]Write i2c OK [08:17:24]MH_I2C_Read... [08:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:24]Read from MH i2c: E2 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 17 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 17 00 C8 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [08:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:24]wFMCommunicate OK [08:17:24]requested_item fd.num is exist - process it [08:17:24]SAM_PROTO_GetFieldsCounters [08:17:24]wFMCommunicate request_size=4 [08:17:24]MH_SAM_APDU [08:17:24]CAPDU: 80 13 00 00 [08:17:24]Write to MH i2c: E2 08 00 C9 98 80 13 00 00 00 00 00 00 DD [08:17:24]Write i2c OK [08:17:24]MH_I2C_Read... [08:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:24]Read from MH i2c: E2 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 62 00 [08:17:24]MH_I2C_Read... [08:17:24]Read from MH i2c: E2 62 00 C9 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [08: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:25]wFMCommunicate OK [08:17:25]SAM_PROTO_GetFieldsCounters done [08:17:25]requested_item shift.num is exist - process it [08:17:25]requested_item shift.opened is exist - process it [08:17:25]req_shift_opened [08:17:25]FM_GetShiftState [08:17:25]SAM_PROTO_GetShiftState [08:17:25]wFMCommunicate request_size=4 [08:17:25]MH_SAM_APDU [08:17:25]CAPDU: 80 13 01 00 [08:17:25]Write to MH i2c: E2 08 00 CA 98 80 13 01 00 00 00 00 00 DF [08:17:25]Write i2c OK [08:17:25]MH_I2C_Read... [08:17:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:25]Read from MH i2c: E2 [08:17:25]MH_I2C_Read... [08:17:25]Read from MH i2c: E2 0E 00 [08:17:25]MH_I2C_Read... [08:17:25]Read from MH i2c: E2 0E 00 CA 98 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AA [08:17:25]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:17:25]wFMCommunicate OK [08:17:25]SAM_PROTO_GetShiftState done [08:17:25]FM_GetShiftState done [08:17:25]req_shift_opened done [08:17:25]requested_item shift.open_date is exist - process it [08:17:25]req_shift_open_date [08:17:25]req_shift_open_date done [08:17:25]produce_requested_data done [08:17:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118988,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:17:25]process_action_free close_receipt [08:17:25]json_value_free [08:17:25]json_value_free done [08:17:25]process_json_proto returns [08:17:25]Send response to host [08:17:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118988,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:17:25]free response buf [08:17:25]execute_script done [08:17:25]execute_script returns [08:17:25]free content buf [08:17:25]Sock 7.Close socket [08:17:25]Sock 7.Thread stoped [08:17:27]accept exits with 9 [08:17:27]New connection [08:17:27]New thread 3067383140 created [08:17:27]Thread 3067239780 joined [08:17:27]Waiting for new connection... [08:17:27] Sock 9.Parse request [08:17:27]Sock 9.Check first char [08:17:27]Sock 9.First char is OK [08:17:27]request: POST /json_proto HTTP/1.0 [08:17:27]Method: POST [08:17:27]URL: /json_proto [08:17:27]Method is POST - this is cgi request [08:17:27]url: /json_proto [08:17:27]query_string will be loaded in cgi processing [08:17:27]execute_cgi json_proto POST (null) [08:17:27]execute_cgi path=json_proto method=POST [08:17:27]POST find Content-Length [08:17:27]Host: 172.17.45.7:8080 [08:17:27]Content-Length: 682 [08:17:27]Content-Type: application/json [08:17:27] [08:17:27]POST finish read [08:17:27]Found Content-Length = 682 [08:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:17:27]execute_script... [08:17: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)949905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:17:27]POST & json_proto [08:17:27]process_json_proto [08:17:27]json parsed OK: [08:17:27]protocol is kg_v1.0 [08:17:27]action value=close_receipt [08:17:27]process_action close_receipt [08:17:27]cmd_close_receipt [08:17:27]MH_GetDate [08:17:27]Write to MH i2c: F0 00 00 CB 98 52 [08:17:27]Write i2c OK [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: F0 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: F0 09 00 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: F0 09 00 CB 98 00 A1 A1 A8 66 90 0F 3E 66 EE [08:17:27]GetLastDocTimeStamp 1722327450 [08:17:27]current date 1722327457 [08:17:27]FM_GetShiftState [08:17:27]SAM_PROTO_GetShiftState [08:17:27]wFMCommunicate request_size=4 [08:17:27]MH_SAM_APDU [08:17:27]CAPDU: 80 13 01 00 [08:17:27]Write to MH i2c: E2 08 00 CC 98 80 13 01 00 00 00 00 00 E1 [08:17:27]Write i2c OK [08:17:27]MH_I2C_Read... [08:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:27]Read from MH i2c: E2 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: E2 0E 00 [08:17:27]MH_I2C_Read... [08:17:27]Read from MH i2c: E2 0E 00 CC 98 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AC [08:17:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:17:27]wFMCommunicate OK [08:17:27]SAM_PROTO_GetShiftState done [08:17:27]FM_GetShiftState done [08:17:27]opened in 1722298242 [08:17:27]opened+sec_in_day 1722384642 [08:17:27]quantity*price = 100005 [08:17:27]sum+1 = 100006 [08:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 41 30.07.2024 08:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118989 ФПД: 197886130874489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118989&fm=197886130874489&tin=02508201610067®Number=0000000000092660&sum=100000 [08:17:28]StoreToDocumentArchive [08:17:28]shift 435 fd 118989 [08:17:28]save to /storage/0435/doc_00118989 [08:17:28]save last doc name /storage/0435/doc_00118989 to /storage/kkm_last_doc_name [08:17:28]save OK [08:17:28]Clear old archive folders... [08:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:28]tlvbuf is 02081420 [08:17:28]SAM_PROTO_ClearQueue [08:17:28]wFMCommunicate request_size=4 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 09 00 00 [08:17:28]Write to MH i2c: E2 08 00 D9 98 80 09 00 00 00 00 00 00 E3 [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 D9 98 00 90 00 E5 [08:17:28]RAPDU: 90 00 [08:17:28]wFMCommunicate OK [08:17:28]SAM_PROTO_ClearQueue done [08:17:28]KKMCreateOFDPacket [08:17:28]OFDProtocolAddRootSTLVToBuf [08:17:28]FM_MakeSignedData [08:17:28]FM_MakeSignedData [08:17:28]SAM_PROTO_SignData [08:17:28]wFMCommunicate request_size=4 [08:17:28]MH_SAM_APDU [08:17:28]CAPDU: 80 0D 01 02 [08:17:28]Write to MH i2c: E2 08 00 DA 98 80 0D 01 02 00 00 00 00 EB [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:28]OFD Sender: No OFD packet to send [08:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:28]Read from MH i2c: E2 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 [08:17:28]MH_I2C_Read... [08:17:28]Read from MH i2c: E2 03 00 DA 98 00 90 00 E6 [08:17:28]RAPDU: 90 00 [08:17:28]wFMCommunicate OK [08:17:28]wFMCommunicate request_size=255 [08:17:28]MH_SAM_APDU [08:17: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D0 01 00 35 04 06 00 B3 [08:17:28]Write to MH i2c: E2 02 01 DB 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D0 01 00 35 04 06 00 B3 00 00 7C [08:17:28]Write i2c OK [08:17:28]MH_I2C_Read... [08:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:29]Read from MH i2c: E2 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 03 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 03 00 DB 98 00 90 00 E7 [08:17:29]RAPDU: 90 00 [08:17:29]wFMCommunicate OK [08:17:29]wFMCommunicate request_size=10 [08:17:29]MH_SAM_APDU [08:17:29]CAPDU: 80 0D 02 02 05 F9 F4 89 68 79 [08:17:29]Write to MH i2c: E2 0D 00 DC 98 80 0D 02 02 05 00 F9 F4 89 68 79 00 00 4F [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:29]Read from MH i2c: E2 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 03 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 03 00 DC 98 00 90 00 E8 [08:17:29]RAPDU: 90 00 [08:17:29]wFMCommunicate OK [08:17:29]wFMCommunicate request_size=4 [08:17:29]MH_SAM_APDU [08:17:29]CAPDU: 80 0D 03 02 [08:17:29]Write to MH i2c: E2 08 00 DD 98 80 0D 03 02 00 00 00 00 F0 [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:29]Read from MH i2c: E2 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 0B 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 0B 00 DD 98 00 E4 DD BA C0 E9 22 7E F4 90 00 A9 [08:17:29]RAPDU: E4 DD BA C0 E9 22 7E F4 90 00 [08:17:29]wFMCommunicate OK [08:17:29]SAM_PROTO_SignData done [08:17:29]FM_MakeSignedData done [08:17:29]CreateOFDProtocolMessage [08:17:29]wFMCommunicate request_size=4 [08:17:29]MH_SAM_APDU [08:17:29]CAPDU: 80 11 00 00 [08:17:29]Write to MH i2c: E2 08 00 DE 98 80 11 00 00 00 00 00 00 F0 [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:29]Read from MH i2c: E2 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 17 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: E2 17 00 DE 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [08:17:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:29]wFMCommunicate OK [08:17:29]CreateOFDProtocolMessage done [08:17:29]OFDSenderStorePacket 118989 [08:17:29]StoreOFDPacket docnum=118989 [08:17:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2F 33 07 01 29 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D0 01 00 35 04 06 00 B3 F9 F4 89 68 79 E4 DD BA C0 E9 22 7E F4 [08:17:29]CheckFolder [08:17:29]dirname=/storage/ofd_packets [08:17:29]CheckFolder done [08:17:29]ProducePacketName [08:17:29]name=ofd_packets/00118989 [08:17:29]NVStorageSaveData ofd_packets/00118989 [08:17:29]File name is /storage/ofd_packets/00118989 [08:17:29]Write 301 bytes [08:17:29]NVStorageSaveData done [08:17:29]OFDSenderStorePacket done [08:17:29]KKMCreateOFDPacket done [08:17:29]NVStorageSaveData kkm_last_timestamp [08:17:29]File name is /storage/kkm_last_timestamp [08:17:29]Write 4 bytes [08:17:29]NVStorageSaveData done [08:17:29]ExternCall_PrintAddStr [08:17:29]wPrintStart [08:17:29]Write to MH i2c: 01 00 00 DF 98 77 [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 07 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 07 00 DF 98 00 00 00 00 00 FF 0F 8C [08:17:29]RasterBufferAndPrint [08:17:29]line Счет N : (1)949905 [08:17:29]line ИНН: 02508201610067 [08:17:29]line Контрольно-Кассовый Чек [08:17:29]line ПРОДАЖА [08:17:29]line ТРК (МРК, ГНК) : 31 [08:17:29]line Товар: 2710124130 [08:17:29]line Аи-92-К-4 [08:17:29]line 14.750 * 67.80 [08:17:29]line = 1000.05 [08:17:29]line НДС 12% НСП 1% [08:17:29]line > о реализуемом товаре [08:17:29]line ОКРУГЛЕНИЕ: -0.05 [08:17:29]line ИТОГО: 1000.00 [08:17:29]line Внесено: 1000.00 [08:17:29]line СДАЧА: 0.00 [08:17:29]line НСП 1% : 8.85 [08:17:29]line НДС 12% : 106.20 [08:17:29]line Наличными: 1000.00 [08:17:29]line Безнал.: 0.00 [08:17:29]line Место: АЗС № 134 "Партнер Нефть" [08:17:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:17:29]line СНО: Общий режим [08:17:29]line Чек 41 30.07.2024 08:17 [08:17:29]line Смена: 435 ФФД: 1.0 [08:17:29]line ЗНМ: 0300000044 [08:17:29]line РНМ: 0000000000092660 [08:17:29]line Версия ККМ: 001 [08:17:29]line ФМ: 0000000000874939 [08:17:29]line ФД: 118989 [08:17:29]line ФПД: 197886130874489 [08:17:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118989&fm=197886130874489&tin=02508201610067®Number=0000000000092660&sum=100000 [08:17:29]written 0, free lines is 4095 [08:17:29]OFD Sender: Processing packet 118989 [packets to send 86, broken 85] [08:17:29]ProducePacketName [08:17:29]name=ofd_packets/00118989 [08:17:29]OFD Sender: To server: pG, [08:17:29]CommunicateWithHost lk.salyk.kg:30040 [08:17:29]ConnectInit lk.salyk.kg [08:17:29]Connected sock=10 [08:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2F 33 07 01 29 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 A1 A1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D0 01 00 35 04 06 00 B3 F9 F4 89 68 79 E4 DD BA C0 E9 22 7E F4 [08:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 89 7E 47 00 81 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D0 01 00 F4 03 04 00 2D 4F A8 66 B6 04 01 00 00 07 51 07 FC 01 79 65 94 [08:17:29]CommunicateWithHost err = 0 [08:17:29]CheckOFDResponse [08:17:29]1017 (14) - 77093643461234 [08:17:29]1041 (16) - 0000000000874939 [08:17:29]1040 (4) - 118989 [08:17:29]1012 (4) - 30.07.2024 02:25 [08:17:29]1206 (1) - 0 [08:17:29]OFD Sender: Remove packet 118989 [08:17:29]ProducePacketName [08:17:29]name=ofd_packets/00118989 [08:17:29]NVStorageDeleteData [08:17:29]Write to MH i2c: 01 00 00 09 99 A2 [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 07 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: 01 07 00 09 99 00 00 00 00 00 EE 0C A3 [08:17:29]RasterBufferAndPrint [08:17:29]line [08:17:29]line [08:17:29]line [08:17:29]line [08:17:29]line [08:17:29]written 0, free lines is 3328 [08:17:29]MH_Cut [08:17:29]Write to MH i2c: D1 01 00 10 99 01 7B [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: D1 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: D1 01 00 [08:17:29]MH_I2C_Read... [08:17:29]Read from MH i2c: D1 01 00 10 99 00 7A [08:17:29]Write to MH i2c: 01 00 00 11 99 AA [08:17:29]Write i2c OK [08:17:29]MH_I2C_Read... [08:17:30]OFD Sender: No OFD packet to send [08:17:30]*** Cut start [08:17:30]*** Partial cut [08:17:30]*** CUTSNS_PIN = 1 [08:17:30]*** CUTSNS_PIN = 0 [08:17:30]*** Brake cut motor [08:17:31]Read from MH i2c: 01 [08:17:31]MH_I2C_Read... [08:17:31]*** Stop cut motor [08:17:31]*** Cut end [08:17:31]Read from MH i2c: 01 07 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: 01 07 00 11 99 00 00 00 00 00 FF 0F BF [08:17:31]process_action close_receipt done [08:17:31]requested_data is exist [08:17:31]produce_requested_data [08:17:31]requested_item fm.sn is exist - process it [08:17:31]wFMCommunicate request_size=4 [08:17:31]MH_SAM_APDU [08:17:31]CAPDU: 80 11 00 00 [08:17:31]Write to MH i2c: E2 08 00 12 99 80 11 00 00 00 00 00 00 25 [08:17:31]Write i2c OK [08:17:31]MH_I2C_Read... [08:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:31]Read from MH i2c: E2 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 17 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 17 00 12 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 80 [08:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:17:31]wFMCommunicate OK [08:17:31]requested_item fd.num is exist - process it [08:17:31]SAM_PROTO_GetFieldsCounters [08:17:31]wFMCommunicate request_size=4 [08:17:31]MH_SAM_APDU [08:17:31]CAPDU: 80 13 00 00 [08:17:31]Write to MH i2c: E2 08 00 13 99 80 13 00 00 00 00 00 00 28 [08:17:31]Write i2c OK [08:17:31]MH_I2C_Read... [08:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:31]Read from MH i2c: E2 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 62 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 62 00 13 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [08: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:31]wFMCommunicate OK [08:17:31]SAM_PROTO_GetFieldsCounters done [08:17:31]requested_item shift.num is exist - process it [08:17:31]requested_item shift.opened is exist - process it [08:17:31]req_shift_opened [08:17:31]FM_GetShiftState [08:17:31]SAM_PROTO_GetShiftState [08:17:31]wFMCommunicate request_size=4 [08:17:31]MH_SAM_APDU [08:17:31]CAPDU: 80 13 01 00 [08:17:31]Write to MH i2c: E2 08 00 14 99 80 13 01 00 00 00 00 00 2A [08:17:31]Write i2c OK [08:17:31]MH_I2C_Read... [08:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:31]Read from MH i2c: E2 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 0E 00 [08:17:31]MH_I2C_Read... [08:17:31]Read from MH i2c: E2 0E 00 14 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F5 [08:17:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:17:31]wFMCommunicate OK [08:17:31]SAM_PROTO_GetShiftState done [08:17:31]FM_GetShiftState done [08:17:31]req_shift_opened done [08:17:31]requested_item shift.open_date is exist - process it [08:17:31]req_shift_open_date [08:17:31]req_shift_open_date done [08:17:31]produce_requested_data done [08:17:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118989,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:17:31]process_action_free close_receipt [08:17:31]json_value_free [08:17:31]json_value_free done [08:17:31]process_json_proto returns [08:17:31]Send response to host [08:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118989,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:17:31]free response buf [08:17:31]execute_script done [08:17:31]execute_script returns [08:17:31]free content buf [08:17:31]Sock 9.Close socket [08:17:31]Sock 9.Thread stoped [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:46]accept exits with 7 [08:19:46]New connection [08:19:46]New thread 3067239780 created [08:19:46]Thread 3067383140 joined [08:19:46]Waiting for new connection... [08:19:46] Sock 7.Parse request [08:19:46]Sock 7.Check first char [08:19:46]Sock 7.First char is OK [08:19:46]request: POST /json_proto HTTP/1.0 [08:19:46]Method: POST [08:19:46]URL: /json_proto [08:19:46]Method is POST - this is cgi request [08:19:46]url: /json_proto [08:19:46]query_string will be loaded in cgi processing [08:19:46]execute_cgi json_proto POST (null) [08:19:46]execute_cgi path=json_proto method=POST [08:19:46]POST find Content-Length [08:19:46]Host: 172.17.45.7:8080 [08:19:46]Content-Length: 677 [08:19:46]Content-Type: application/json [08:19:46] [08:19:46]POST finish read [08:19:46]Found Content-Length = 677 [08:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:46]execute_script... [08:19: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)949906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:46]POST & json_proto [08:19:46]process_json_proto [08:19:46]json parsed OK: [08:19:46]protocol is kg_v1.0 [08:19:46]action value=close_receipt [08:19:46]process_action close_receipt [08:19:46]cmd_close_receipt [08:19:46]MH_GetDate [08:19:46]Write to MH i2c: F0 00 00 15 99 9D [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 09 00 [08:19:46]MH_I2C_Read... [08:19:46]Read from MH i2c: F0 09 00 15 99 00 2C A2 A8 66 90 0F 3E 66 C5 [08:19:46]GetLastDocTimeStamp 1722327457 [08:19:46]current date 1722327596 [08:19:46]FM_GetShiftState [08:19:46]SAM_PROTO_GetShiftState [08:19:46]wFMCommunicate request_size=4 [08:19:46]MH_SAM_APDU [08:19:46]CAPDU: 80 13 01 00 [08:19:46]Write to MH i2c: E2 08 00 16 99 80 13 01 00 00 00 00 00 2C [08:19:46]Write i2c OK [08:19:46]MH_I2C_Read... [08:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:47]Read from MH i2c: E2 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0E 00 [08:19:47]MH_I2C_Read... [08:19:47]Read from MH i2c: E2 0E 00 16 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F7 [08:19:47]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:19:47]wFMCommunicate OK [08:19:47]SAM_PROTO_GetShiftState done [08:19:47]FM_GetShiftState done [08:19:47]opened in 1722298242 [08:19:47]opened+sec_in_day 1722384642 [08:19:47]quantity*price = 20001 [08:19:47]sum+1 = 20002 [08:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 42 30.07.2024 08:19 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118990 ФПД: 147624949857230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081956&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118990&fm=147624949857230&tin=02508201610067®Number=0000000000092660&sum=20000 [08:19:48]StoreToDocumentArchive [08:19:48]shift 435 fd 118990 [08:19:48]save to /storage/0435/doc_00118990 [08:19:48]save last doc name /storage/0435/doc_00118990 to /storage/kkm_last_doc_name [08:19:48]save OK [08:19:48]Clear old archive folders... [08:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:48]tlvbuf is 01E70470 [08:19:48]SAM_PROTO_ClearQueue [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 09 00 00 [08:19:48]Write to MH i2c: E2 08 00 23 99 80 09 00 00 00 00 00 00 2E [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 23 99 00 90 00 30 [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]SAM_PROTO_ClearQueue done [08:19:48]KKMCreateOFDPacket [08:19:48]OFDProtocolAddRootSTLVToBuf [08:19:48]FM_MakeSignedData [08:19:48]FM_MakeSignedData [08:19:48]SAM_PROTO_SignData [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 0D 01 02 [08:19:48]Write to MH i2c: E2 08 00 24 99 80 0D 01 02 00 00 00 00 36 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 24 99 00 90 00 31 [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]wFMCommunicate request_size=255 [08:19:48]MH_SAM_APDU [08:19: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2A 00 00 00 F4 03 04 00 2C A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D0 01 00 35 04 06 00 86 [08:19:48]Write to MH i2c: E2 02 01 25 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2A 00 00 00 F4 03 04 00 2C A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D0 01 00 35 04 06 00 86 00 00 9B [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 25 99 00 90 00 32 [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]wFMCommunicate request_size=10 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 0D 02 02 05 43 9C B2 3B CE [08:19:48]Write to MH i2c: E2 0D 00 26 99 80 0D 02 02 05 00 43 9C B2 3B CE 00 00 DD [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 03 00 26 99 00 90 00 33 [08:19:48]RAPDU: 90 00 [08:19:48]wFMCommunicate OK [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 0D 03 02 [08:19:48]Write to MH i2c: E2 08 00 27 99 80 0D 03 02 00 00 00 00 3B [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 0B 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 0B 00 27 99 00 BA 9E 25 3A 8B D4 67 FF 90 00 B8 [08:19:48]RAPDU: BA 9E 25 3A 8B D4 67 FF 90 00 [08:19:48]wFMCommunicate OK [08:19:48]SAM_PROTO_SignData done [08:19:48]FM_MakeSignedData done [08:19:48]CreateOFDProtocolMessage [08:19:48]wFMCommunicate request_size=4 [08:19:48]MH_SAM_APDU [08:19:48]CAPDU: 80 11 00 00 [08:19:48]Write to MH i2c: E2 08 00 28 99 80 11 00 00 00 00 00 00 3B [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:48]Read from MH i2c: E2 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 17 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: E2 17 00 28 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [08:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:19:48]wFMCommunicate OK [08:19:48]CreateOFDProtocolMessage done [08:19:48]OFDSenderStorePacket 118990 [08:19:48]StoreOFDPacket docnum=118990 [08:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 4E 07 01 A0 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2A 00 00 00 F4 03 04 00 2C A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D0 01 00 35 04 06 00 86 43 9C B2 3B CE BA 9E 25 3A 8B D4 67 FF [08:19:48]CheckFolder [08:19:48]dirname=/storage/ofd_packets [08:19:48]CheckFolder done [08:19:48]ProducePacketName [08:19:48]name=ofd_packets/00118990 [08:19:48]NVStorageSaveData ofd_packets/00118990 [08:19:48]File name is /storage/ofd_packets/00118990 [08:19:48]Write 301 bytes [08:19:48]NVStorageSaveData done [08:19:48]OFDSenderStorePacket done [08:19:48]KKMCreateOFDPacket done [08:19:48]NVStorageSaveData kkm_last_timestamp [08:19:48]File name is /storage/kkm_last_timestamp [08:19:48]Write 4 bytes [08:19:48]NVStorageSaveData done [08:19:48]ExternCall_PrintAddStr [08:19:48]wPrintStart [08:19:48]Write to MH i2c: 01 00 00 29 99 C2 [08:19:48]Write i2c OK [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 07 00 [08:19:48]MH_I2C_Read... [08:19:48]Read from MH i2c: 01 07 00 29 99 00 00 00 00 00 FF 0F D7 [08:19:48]RasterBufferAndPrint [08:19:48]line Счет N : (1)949906 [08:19:48]line ИНН: 02508201610067 [08:19:48]line Контрольно-Кассовый Чек [08:19:48]line ПРОДАЖА [08:19:48]line ТРК (МРК, ГНК) : 51 [08:19:48]line Товар: 2710124130 [08:19:48]line Аи-92-К-4 [08:19:48]line 2.950 * 67.80 [08:19:48]line = 200.01 [08:19:48]line НДС 12% НСП 1% [08:19:48]line > о реализуемом товаре [08:19:48]line ОКРУГЛЕНИЕ: -0.01 [08:19:48]line ИТОГО: 200.00 [08:19:48]line Внесено: 200.00 [08:19:48]line СДАЧА: 0.00 [08:19:48]line НСП 1% : 1.77 [08:19:48]line НДС 12% : 21.24 [08:19:48]line Наличными: 200.00 [08:19:48]line Безнал.: 0.00 [08:19:48]line Место: АЗС № 134 "Партнер Нефть" [08:19:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:19:48]line СНО: Общий режим [08:19:48]line Чек 42 30.07.2024 08:19 [08:19:48]line Смена: 435 ФФД: 1.0 [08:19:48]line ЗНМ: 0300000044 [08:19:48]line РНМ: 0000000000092660 [08:19:48]line Версия ККМ: 001 [08:19:48]line ФМ: 0000000000874939 [08:19:48]line ФД: 118990 [08:19:48]line ФПД: 147624949857230 [08:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T081956&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118990&fm=147624949857230&tin=02508201610067®Number=0000000000092660&sum=20000 [08:19:48]written 0, free lines is 4095 [08:19:48]OFD Sender: Processing packet 118990 [packets to send 86, broken 85] [08:19:48]ProducePacketName [08:19:48]name=ofd_packets/00118990 [08:19:49]OFD Sender: To server: pG, [08:19:49]CommunicateWithHost lk.salyk.kg:30040 [08:19:49]ConnectInit lk.salyk.kg [08:19:49]Connected sock=10 [08:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A2 4E 07 01 A0 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2A 00 00 00 F4 03 04 00 2C A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D0 01 00 35 04 06 00 86 43 9C B2 3B CE BA 9E 25 3A 8B D4 67 FF [08:19:49]Write to MH i2c: 01 00 00 53 99 EC [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: 01 07 00 53 99 00 00 00 00 00 DE 0C DD [08:19:49]RasterBufferAndPrint [08:19:49]line [08:19:49]line [08:19:49]line [08:19:49]line [08:19:49]line [08:19:49]written 0, free lines is 3300 [08:19:49]MH_Cut [08:19:49]Write to MH i2c: D1 01 00 5A 99 01 C5 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: D1 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: D1 01 00 [08:19:49]MH_I2C_Read... [08:19:49]Read from MH i2c: D1 01 00 5A 99 00 C4 [08:19:49]Write to MH i2c: 01 00 00 5B 99 F4 [08:19:49]Write i2c OK [08:19:49]MH_I2C_Read... [08:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CF 15 47 00 A5 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D0 01 00 F4 03 04 00 B8 4F A8 66 B6 04 01 00 00 83 50 C5 2C CF 64 96 07 [08:19:49]CommunicateWithHost err = 0 [08:19:49]CheckOFDResponse [08:19:49]1017 (14) - 77093643461234 [08:19:49]1041 (16) - 0000000000874939 [08:19:49]1040 (4) - 118990 [08:19:49]1012 (4) - 30.07.2024 02:28 [08:19:49]1206 (1) - 0 [08:19:49]OFD Sender: Remove packet 118990 [08:19:49]ProducePacketName [08:19:49]name=ofd_packets/00118990 [08:19:49]NVStorageDeleteData [08:19:49]OFD Sender: No OFD packet to send [08:19:49]*** Cut start [08:19:49]*** Partial cut [08:19:49]*** CUTSNS_PIN = 1 [08:19:49]*** CUTSNS_PIN = 0 [08:19:50]*** Brake cut motor [08:19:50]Read from MH i2c: 01 [08:19:50]MH_I2C_Read... [08:19:50]*** Stop cut motor [08:19:50]*** Cut end [08:19:50]Read from MH i2c: 01 07 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: 01 07 00 5B 99 00 00 00 00 00 FF 0F 09 [08:19:50]process_action close_receipt done [08:19:50]requested_data is exist [08:19:50]produce_requested_data [08:19:50]requested_item fm.sn is exist - process it [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 11 00 00 [08:19:50]Write to MH i2c: E2 08 00 5C 99 80 11 00 00 00 00 00 00 6F [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 17 00 5C 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CA [08:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:19:50]wFMCommunicate OK [08:19:50]requested_item fd.num is exist - process it [08:19:50]SAM_PROTO_GetFieldsCounters [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 00 00 [08:19:50]Write to MH i2c: E2 08 00 5D 99 80 13 00 00 00 00 00 00 72 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 62 00 5D 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:19:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetFieldsCounters done [08:19:50]requested_item shift.num is exist - process it [08:19:50]requested_item shift.opened is exist - process it [08:19:50]req_shift_opened [08:19:50]FM_GetShiftState [08:19:50]SAM_PROTO_GetShiftState [08:19:50]wFMCommunicate request_size=4 [08:19:50]MH_SAM_APDU [08:19:50]CAPDU: 80 13 01 00 [08:19:50]Write to MH i2c: E2 08 00 5E 99 80 13 01 00 00 00 00 00 74 [08:19:50]Write i2c OK [08:19:50]MH_I2C_Read... [08:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:50]Read from MH i2c: E2 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 [08:19:50]MH_I2C_Read... [08:19:50]Read from MH i2c: E2 0E 00 5E 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3F [08:19:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:19:50]wFMCommunicate OK [08:19:50]SAM_PROTO_GetShiftState done [08:19:50]FM_GetShiftState done [08:19:50]req_shift_opened done [08:19:50]requested_item shift.open_date is exist - process it [08:19:50]req_shift_open_date [08:19:50]req_shift_open_date done [08:19:50]produce_requested_data done [08:19:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118990,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:19:50]process_action_free close_receipt [08:19:50]json_value_free [08:19:50]json_value_free done [08:19:50]process_json_proto returns [08:19:50]Send response to host [08:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118990,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:19:50]free response buf [08:19:50]execute_script done [08:19:50]execute_script returns [08:19:50]free content buf [08:19:50]Sock 7.Close socket [08:19:50]Sock 7.Thread stoped [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:40]accept exits with 9 [08:20:40]New connection [08:20:40]New thread 3067383140 created [08:20:40]Thread 3067239780 joined [08:20:40]Waiting for new connection... [08:20:40] Sock 9.Parse request [08:20:40]Sock 9.Check first char [08:20:40]Sock 9.First char is OK [08:20:40]request: POST /json_proto HTTP/1.0 [08:20:40]Method: POST [08:20:40]URL: /json_proto [08:20:40]Method is POST - this is cgi request [08:20:40]url: /json_proto [08:20:40]query_string will be loaded in cgi processing [08:20:40]execute_cgi json_proto POST (null) [08:20:40]execute_cgi path=json_proto method=POST [08:20:40]POST find Content-Length [08:20:40]Host: 172.17.45.7:8080 [08:20:40]Content-Length: 678 [08:20:40]Content-Type: application/json [08:20:40] [08:20:40]POST finish read [08:20:40]Found Content-Length = 678 [08:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:40]execute_script... [08:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:40]POST & json_proto [08:20:40]process_json_proto [08:20:40]json parsed OK: [08:20:40]protocol is kg_v1.0 [08:20:40]action value=close_receipt [08:20:40]process_action close_receipt [08:20:40]cmd_close_receipt [08:20:40]MH_GetDate [08:20:40]Write to MH i2c: F0 00 00 5F 99 E7 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: F0 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: F0 09 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: F0 09 00 5F 99 00 62 A2 A8 66 90 0F 3E 66 45 [08:20:40]GetLastDocTimeStamp 1722327596 [08:20:40]current date 1722327650 [08:20:40]FM_GetShiftState [08:20:40]SAM_PROTO_GetShiftState [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 13 01 00 [08:20:40]Write to MH i2c: E2 08 00 60 99 80 13 01 00 00 00 00 00 76 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 0E 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 0E 00 60 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 41 [08:20:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:20:40]wFMCommunicate OK [08:20:40]SAM_PROTO_GetShiftState done [08:20:40]FM_GetShiftState done [08:20:40]opened in 1722298242 [08:20:40]opened+sec_in_day 1722384642 [08:20:40]quantity*price = 90038 [08:20:40]sum+1 = 90039 [08:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 43 30.07.2024 08:20 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118991 ФПД: 75982738167083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T082050&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118991&fm=75982738167083&tin=02508201610067®Number=0000000000092660&sum=90000 [08:20:41]StoreToDocumentArchive [08:20:41]shift 435 fd 118991 [08:20:41]save to /storage/0435/doc_00118991 [08:20:41]save last doc name /storage/0435/doc_00118991 to /storage/kkm_last_doc_name [08:20:41]save OK [08:20:41]Clear old archive folders... [08:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:41]tlvbuf is 01F060D0 [08:20:41]SAM_PROTO_ClearQueue [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 09 00 00 [08:20:41]Write to MH i2c: E2 08 00 6D 99 80 09 00 00 00 00 00 00 78 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 6D 99 00 90 00 7A [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_ClearQueue done [08:20:41]KKMCreateOFDPacket [08:20:41]OFDProtocolAddRootSTLVToBuf [08:20:41]FM_MakeSignedData [08:20:41]FM_MakeSignedData [08:20:41]SAM_PROTO_SignData [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 01 02 [08:20:41]Write to MH i2c: E2 08 00 6E 99 80 0D 01 02 00 00 00 00 80 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 6E 99 00 90 00 7B [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=255 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF D0 01 00 35 04 06 00 45 [08:20:41]Write to MH i2c: E2 02 01 6F 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF D0 01 00 35 04 06 00 45 00 00 A3 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 6F 99 00 90 00 7C [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=10 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 02 02 05 1B 1C 1E 15 2B [08:20:41]Write to MH i2c: E2 0D 00 70 99 80 0D 02 02 05 00 1B 1C 1E 15 2B 00 00 22 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 70 99 00 90 00 7D [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 03 02 [08:20:41]Write to MH i2c: E2 08 00 71 99 80 0D 03 02 00 00 00 00 85 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 71 99 00 E2 29 16 CB 0E E6 F6 3F 90 00 9B [08:20:41]RAPDU: E2 29 16 CB 0E E6 F6 3F 90 00 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_SignData done [08:20:41]FM_MakeSignedData done [08:20:41]CreateOFDProtocolMessage [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 11 00 00 [08:20:41]Write to MH i2c: E2 08 00 72 99 80 11 00 00 00 00 00 00 85 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:42]Read from MH i2c: E2 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 17 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: E2 17 00 72 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [08:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:20:42]wFMCommunicate OK [08:20:42]CreateOFDProtocolMessage done [08:20:42]OFDSenderStorePacket 118991 [08:20:42]StoreOFDPacket docnum=118991 [08:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1B 76 07 01 17 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF D0 01 00 35 04 06 00 45 1B 1C 1E 15 2B E2 29 16 CB 0E E6 F6 3F [08:20:42]CheckFolder [08:20:42]dirname=/storage/ofd_packets [08:20:42]CheckFolder done [08:20:42]ProducePacketName [08:20:42]name=ofd_packets/00118991 [08:20:42]NVStorageSaveData ofd_packets/00118991 [08:20:42]File name is /storage/ofd_packets/00118991 [08:20:42]Write 301 bytes [08:20:42]NVStorageSaveData done [08:20:42]OFDSenderStorePacket done [08:20:42]KKMCreateOFDPacket done [08:20:42]NVStorageSaveData kkm_last_timestamp [08:20:42]File name is /storage/kkm_last_timestamp [08:20:42]Write 4 bytes [08:20:42]NVStorageSaveData done [08:20:42]ExternCall_PrintAddStr [08:20:42]wPrintStart [08:20:42]Write to MH i2c: 01 00 00 73 99 0C [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 73 99 00 00 00 00 00 FF 0F 21 [08:20:42]RasterBufferAndPrint [08:20:42]line Счет N : (1)949907 [08:20:42]line ИНН: 02508201610067 [08:20:42]line Контрольно-Кассовый Чек [08:20:42]line ПРОДАЖА [08:20:42]line ТРК (МРК, ГНК) : 31 [08:20:42]line Товар: 2710124130 [08:20:42]line Аи-92-К-4 [08:20:42]line 13.280 * 67.80 [08:20:42]line = 900.38 [08:20:42]line НДС 12% НСП 1% [08:20:42]line > о реализуемом товаре [08:20:42]line ОКРУГЛЕНИЕ: -0.38 [08:20:42]line ИТОГО: 900.00 [08:20:42]line Внесено: 900.00 [08:20:42]line СДАЧА: 0.00 [08:20:42]line НСП 1% : 7.97 [08:20:42]line НДС 12% : 95.62 [08:20:42]line Наличными: 900.00 [08:20:42]line Безнал.: 0.00 [08:20:42]line Место: АЗС № 134 "Партнер Нефть" [08:20:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:20:42]line СНО: Общий режим [08:20:42]line Чек 43 30.07.2024 08:20 [08:20:42]line Смена: 435 ФФД: 1.0 [08:20:42]line ЗНМ: 0300000044 [08:20:42]line РНМ: 0000000000092660 [08:20:42]line Версия ККМ: 001 [08:20:42]line ФМ: 0000000000874939 [08:20:42]line ФД: 118991 [08:20:42]line ФПД: 75982738167083 [08:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T082050&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118991&fm=75982738167083&tin=02508201610067®Number=0000000000092660&sum=90000 [08:20:42]written 0, free lines is 4095 [08:20:42]OFD Sender: Processing packet 118991 [packets to send 86, broken 85] [08:20:42]ProducePacketName [08:20:42]name=ofd_packets/00118991 [08:20:42]OFD Sender: To server: pG, [08:20:42]CommunicateWithHost lk.salyk.kg:30040 [08:20:42]ConnectInit lk.salyk.kg [08:20:42]Connected sock=10 [08:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1B 76 07 01 17 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 62 A2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF D0 01 00 35 04 06 00 45 1B 1C 1E 15 2B E2 29 16 CB 0E E6 F6 3F [08:20:42]Write to MH i2c: 01 00 00 9D 99 36 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 9D 99 00 00 00 00 00 DE 0C 27 [08:20:42]RasterBufferAndPrint [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]written 0, free lines is 3300 [08:20:42]MH_Cut [08:20:42]Write to MH i2c: D1 01 00 A4 99 01 0F [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 A4 99 00 0E [08:20:42]Write to MH i2c: 01 00 00 A5 99 3E [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C 91 47 00 4B 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 34 39 33 39 10 04 04 00 CF D0 01 00 F4 03 04 00 ED 4F A8 66 B6 04 01 00 00 5F 8E F2 08 9C 53 18 D1 [08:20:42]CommunicateWithHost err = 0 [08:20:42]CheckOFDResponse [08:20:42]1017 (14) - 77093643461234 [08:20:42]1041 (16) - 0000000000874939 [08:20:42]1040 (4) - 118991 [08:20:42]1012 (4) - 30.07.2024 02:29 [08:20:42]1206 (1) - 0 [08:20:42]OFD Sender: Remove packet 118991 [08:20:42]ProducePacketName [08:20:42]name=ofd_packets/00118991 [08:20:42]NVStorageDeleteData [08:20:43]OFD Sender: No OFD packet to send [08:20:43]*** Cut start [08:20:43]*** Partial cut [08:20:43]*** CUTSNS_PIN = 1 [08:20:43]*** CUTSNS_PIN = 0 [08:20:43]*** Brake cut motor [08:20:43]Read from MH i2c: 01 [08:20:43]MH_I2C_Read... [08:20:43]*** Stop cut motor [08:20:43]*** Cut end [08:20:43]Read from MH i2c: 01 07 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: 01 07 00 A5 99 00 00 00 00 00 FF 0F 53 [08:20:43]process_action close_receipt done [08:20:43]requested_data is exist [08:20:43]produce_requested_data [08:20:43]requested_item fm.sn is exist - process it [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 11 00 00 [08:20:43]Write to MH i2c: E2 08 00 A6 99 80 11 00 00 00 00 00 00 B9 [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 A6 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [08:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:20:43]wFMCommunicate OK [08:20:43]requested_item fd.num is exist - process it [08:20:43]SAM_PROTO_GetFieldsCounters [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 00 00 [08:20:43]Write to MH i2c: E2 08 00 A7 99 80 13 00 00 00 00 00 00 BC [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:44]Read from MH i2c: E2 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 62 00 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 62 00 A7 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [08:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 CF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:44]wFMCommunicate OK [08:20:44]SAM_PROTO_GetFieldsCounters done [08:20:44]requested_item shift.num is exist - process it [08:20:44]requested_item shift.opened is exist - process it [08:20:44]req_shift_opened [08:20:44]FM_GetShiftState [08:20:44]SAM_PROTO_GetShiftState [08:20:44]wFMCommunicate request_size=4 [08:20:44]MH_SAM_APDU [08:20:44]CAPDU: 80 13 01 00 [08:20:44]Write to MH i2c: E2 08 00 A8 99 80 13 01 00 00 00 00 00 BE [08:20:44]Write i2c OK [08:20:44]MH_I2C_Read... [08:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:44]Read from MH i2c: E2 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 0E 00 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 0E 00 A8 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 89 [08:20:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:20:44]wFMCommunicate OK [08:20:44]SAM_PROTO_GetShiftState done [08:20:44]FM_GetShiftState done [08:20:44]req_shift_opened done [08:20:44]requested_item shift.open_date is exist - process it [08:20:44]req_shift_open_date [08:20:44]req_shift_open_date done [08:20:44]produce_requested_data done [08:20:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118991,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:20:44]process_action_free close_receipt [08:20:44]json_value_free [08:20:44]json_value_free done [08:20:44]process_json_proto returns [08:20:44]Send response to host [08:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118991,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:20:44]free response buf [08:20:44]execute_script done [08:20:44]execute_script returns [08:20:44]free content buf [08:20:44]Sock 9.Close socket [08:20:44]Sock 9.Thread stoped [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]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:25]accept exits with 7 [08:28:25]New connection [08:28:25]New thread 3067239780 created [08:28:25]Thread 3067383140 joined [08:28:25]Waiting for new connection... [08:28:25] Sock 7.Parse request [08:28:25]Sock 7.Check first char [08:28:25]Sock 7.First char is OK [08:28:25]request: POST /json_proto HTTP/1.0 [08:28:25]Method: POST [08:28:25]URL: /json_proto [08:28:25]Method is POST - this is cgi request [08:28:25]url: /json_proto [08:28:25]query_string will be loaded in cgi processing [08:28:25]execute_cgi json_proto POST (null) [08:28:25]execute_cgi path=json_proto method=POST [08:28:25]POST find Content-Length [08:28:25]Host: 172.17.45.7:8080 [08:28:25]Content-Length: 677 [08:28:25]Content-Type: application/json [08:28:25] [08:28:25]POST finish read [08:28:25]Found Content-Length = 677 [08:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:25]execute_script... [08:28: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)949909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:25]POST & json_proto [08:28:25]process_json_proto [08:28:25]json parsed OK: [08:28:25]protocol is kg_v1.0 [08:28:25]action value=close_receipt [08:28:25]process_action close_receipt [08:28:25]cmd_close_receipt [08:28:25]MH_GetDate [08:28:25]Write to MH i2c: F0 00 00 A9 99 31 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: F0 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: F0 09 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: F0 09 00 A9 99 00 33 A4 A8 66 90 0F 3E 66 62 [08:28:25]GetLastDocTimeStamp 1722327650 [08:28:25]current date 1722328115 [08:28:25]FM_GetShiftState [08:28:25]SAM_PROTO_GetShiftState [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 13 01 00 [08:28:25]Write to MH i2c: E2 08 00 AA 99 80 13 01 00 00 00 00 00 C0 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 0E 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 0E 00 AA 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8B [08:28:25]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:28:25]wFMCommunicate OK [08:28:25]SAM_PROTO_GetShiftState done [08:28:25]FM_GetShiftState done [08:28:25]opened in 1722298242 [08:28:25]opened+sec_in_day 1722384642 [08:28:25]quantity*price = 20001 [08:28:25]sum+1 = 20002 [08:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 44 30.07.2024 08:28 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118992 ФПД: 108795032719349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T082835&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118992&fm=108795032719349&tin=02508201610067®Number=0000000000092660&sum=20000 [08:28:27]StoreToDocumentArchive [08:28:27]shift 435 fd 118992 [08:28:27]save to /storage/0435/doc_00118992 [08:28:27]save last doc name /storage/0435/doc_00118992 to /storage/kkm_last_doc_name [08:28:27]save OK [08:28:27]Clear old archive folders... [08:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:27]tlvbuf is 020810F0 [08:28:27]SAM_PROTO_ClearQueue [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 09 00 00 [08:28:27]Write to MH i2c: E2 08 00 B7 99 80 09 00 00 00 00 00 00 C2 [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 B7 99 00 90 00 C4 [08:28:27]RAPDU: 90 00 [08:28:27]wFMCommunicate OK [08:28:27]SAM_PROTO_ClearQueue done [08:28:27]KKMCreateOFDPacket [08:28:27]OFDProtocolAddRootSTLVToBuf [08:28:27]FM_MakeSignedData [08:28:27]FM_MakeSignedData [08:28:27]SAM_PROTO_SignData [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 0D 01 02 [08:28:27]Write to MH i2c: E2 08 00 B8 99 80 0D 01 02 00 00 00 00 CA [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 B8 99 00 90 00 C5 [08:28:27]RAPDU: 90 00 [08:28:27]wFMCommunicate OK [08:28:27]wFMCommunicate request_size=255 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2C 00 00 00 F4 03 04 00 33 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 D0 01 00 35 04 06 00 62 [08:28:27]Write to MH i2c: E2 02 01 B9 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2C 00 00 00 F4 03 04 00 33 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 D0 01 00 35 04 06 00 62 00 00 18 [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 B9 99 00 90 00 C6 [08:28:27]RAPDU: 90 00 [08:28:27]wFMCommunicate OK [08:28:27]wFMCommunicate request_size=10 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 0D 02 02 05 F2 D1 47 4F F5 [08:28:27]Write to MH i2c: E2 0D 00 BA 99 80 0D 02 02 05 00 F2 D1 47 4F F5 00 00 25 [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 03 00 BA 99 00 90 00 C7 [08:28:27]RAPDU: 90 00 [08:28:27]wFMCommunicate OK [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 0D 03 02 [08:28:27]Write to MH i2c: E2 08 00 BB 99 80 0D 03 02 00 00 00 00 CF [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 0B 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 0B 00 BB 99 00 4C C8 70 97 AA 42 A6 BC 90 00 39 [08:28:27]RAPDU: 4C C8 70 97 AA 42 A6 BC 90 00 [08:28:27]wFMCommunicate OK [08:28:27]SAM_PROTO_SignData done [08:28:27]FM_MakeSignedData done [08:28:27]CreateOFDProtocolMessage [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 11 00 00 [08:28:27]Write to MH i2c: E2 08 00 BC 99 80 11 00 00 00 00 00 00 CF [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 17 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 17 00 BC 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [08:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:28:27]wFMCommunicate OK [08:28:27]CreateOFDProtocolMessage done [08:28:27]OFDSenderStorePacket 118992 [08:28:27]StoreOFDPacket docnum=118992 [08:28:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B7 AE 07 01 0F 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2C 00 00 00 F4 03 04 00 33 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 D0 01 00 35 04 06 00 62 F2 D1 47 4F F5 4C C8 70 97 AA 42 A6 BC [08:28:27]CheckFolder [08:28:27]dirname=/storage/ofd_packets [08:28:27]CheckFolder done [08:28:27]ProducePacketName [08:28:27]name=ofd_packets/00118992 [08:28:27]NVStorageSaveData ofd_packets/00118992 [08:28:27]File name is /storage/ofd_packets/00118992 [08:28:27]Write 301 bytes [08:28:27]NVStorageSaveData done [08:28:27]OFDSenderStorePacket done [08:28:27]KKMCreateOFDPacket done [08:28:27]NVStorageSaveData kkm_last_timestamp [08:28:27]File name is /storage/kkm_last_timestamp [08:28:27]Write 4 bytes [08:28:27]NVStorageSaveData done [08:28:27]ExternCall_PrintAddStr [08:28:27]wPrintStart [08:28:27]Write to MH i2c: 01 00 00 BD 99 56 [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: 01 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: 01 07 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: 01 07 00 BD 99 00 00 00 00 00 FF 0F 6B [08:28:27]RasterBufferAndPrint [08:28:27]line Счет N : (1)949909 [08:28:27]line ИНН: 02508201610067 [08:28:27]line Контрольно-Кассовый Чек [08:28:27]line ПРОДАЖА [08:28:27]line ТРК (МРК, ГНК) : 41 [08:28:27]line Товар: 2710124130 [08:28:27]line Аи-92-К-4 [08:28:27]line 2.950 * 67.80 [08:28:27]line = 200.01 [08:28:27]line НДС 12% НСП 1% [08:28:27]line > о реализуемом товаре [08:28:27]line ОКРУГЛЕНИЕ: -0.01 [08:28:27]line ИТОГО: 200.00 [08:28:27]line Внесено: 200.00 [08:28:27]line СДАЧА: 0.00 [08:28:27]line НСП 1% : 1.77 [08:28:27]line НДС 12% : 21.24 [08:28:27]line Наличными: 200.00 [08:28:27]line Безнал.: 0.00 [08:28:27]line Место: АЗС № 134 "Партнер Нефть" [08:28:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:28:27]line СНО: Общий режим [08:28:27]line Чек 44 30.07.2024 08:28 [08:28:27]line Смена: 435 ФФД: 1.0 [08:28:27]line ЗНМ: 0300000044 [08:28:27]line РНМ: 0000000000092660 [08:28:27]line Версия ККМ: 001 [08:28:27]line ФМ: 0000000000874939 [08:28:27]line ФД: 118992 [08:28:27]line ФПД: 108795032719349 [08:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T082835&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118992&fm=108795032719349&tin=02508201610067®Number=0000000000092660&sum=20000 [08:28:27]written 0, free lines is 4095 [08:28:27]OFD Sender: Processing packet 118992 [packets to send 86, broken 85] [08:28:27]ProducePacketName [08:28:27]name=ofd_packets/00118992 [08:28:27]OFD Sender: To server: pG, [08:28:27]CommunicateWithHost lk.salyk.kg:30040 [08:28:27]ConnectInit lk.salyk.kg [08:28:27]Connected sock=11 [08:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B7 AE 07 01 0F 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 2C 00 00 00 F4 03 04 00 33 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 D0 01 00 35 04 06 00 62 F2 D1 47 4F F5 4C C8 70 97 AA 42 A6 BC [08:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CF BC 47 00 E9 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 34 39 33 39 10 04 04 00 D0 D0 01 00 F4 03 04 00 BF 51 A8 66 B6 04 01 00 00 3D EB BB A9 6B 5C 10 1D [08:28:27]CommunicateWithHost err = 0 [08:28:27]CheckOFDResponse [08:28:27]1017 (14) - 77093643461234 [08:28:27]1041 (16) - 0000000000874939 [08:28:27]1040 (4) - 118992 [08:28:27]1012 (4) - 30.07.2024 02:36 [08:28:27]1206 (1) - 0 [08:28:27]OFD Sender: Remove packet 118992 [08:28:27]ProducePacketName [08:28:27]name=ofd_packets/00118992 [08:28:27]NVStorageDeleteData [08:28:28]Write to MH i2c: 01 00 00 E7 99 80 [08:28:28]Write i2c OK [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: 01 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: 01 07 00 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: 01 07 00 E7 99 00 00 00 00 00 DC 0C 6F [08:28:28]RasterBufferAndPrint [08:28:28]line [08:28:28]line [08:28:28]line [08:28:28]line [08:28:28]line [08:28:28]written 0, free lines is 3298 [08:28:28]MH_Cut [08:28:28]Write to MH i2c: D1 01 00 EE 99 01 59 [08:28:28]Write i2c OK [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: D1 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: D1 01 00 [08:28:28]MH_I2C_Read... [08:28:28]Read from MH i2c: D1 01 00 EE 99 00 58 [08:28:28]Write to MH i2c: 01 00 00 EF 99 88 [08:28:28]Write i2c OK [08:28:28]MH_I2C_Read... [08:28:28]OFD Sender: No OFD packet to send [08:28:28]*** Cut start [08:28:28]*** Partial cut [08:28:28]*** CUTSNS_PIN = 1 [08:28:28]*** CUTSNS_PIN = 0 [08:28:29]*** Brake cut motor [08:28:29]Read from MH i2c: 01 [08:28:29]MH_I2C_Read... [08:28:29]*** Stop cut motor [08:28:29]*** Cut end [08:28:29]Read from MH i2c: 01 07 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: 01 07 00 EF 99 00 00 00 00 00 FF 0F 9D [08:28:29]process_action close_receipt done [08:28:29]requested_data is exist [08:28:29]produce_requested_data [08:28:29]requested_item fm.sn is exist - process it [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 11 00 00 [08:28:29]Write to MH i2c: E2 08 00 F0 99 80 11 00 00 00 00 00 00 03 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 17 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 17 00 F0 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [08:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:28:29]wFMCommunicate OK [08:28:29]requested_item fd.num is exist - process it [08:28:29]SAM_PROTO_GetFieldsCounters [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 13 00 00 [08:28:29]Write to MH i2c: E2 08 00 F1 99 80 13 00 00 00 00 00 00 06 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 62 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 62 00 F1 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [08:28:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:29]wFMCommunicate OK [08:28:29]SAM_PROTO_GetFieldsCounters done [08:28:29]requested_item shift.num is exist - process it [08:28:29]requested_item shift.opened is exist - process it [08:28:29]req_shift_opened [08:28:29]FM_GetShiftState [08:28:29]SAM_PROTO_GetShiftState [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 13 01 00 [08:28:29]Write to MH i2c: E2 08 00 F2 99 80 13 01 00 00 00 00 00 08 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 0E 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 0E 00 F2 99 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D3 [08:28:29]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:28:29]wFMCommunicate OK [08:28:29]SAM_PROTO_GetShiftState done [08:28:29]FM_GetShiftState done [08:28:29]req_shift_opened done [08:28:29]requested_item shift.open_date is exist - process it [08:28:29]req_shift_open_date [08:28:29]req_shift_open_date done [08:28:29]produce_requested_data done [08:28:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118992,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:28:29]process_action_free close_receipt [08:28:29]json_value_free [08:28:29]json_value_free done [08:28:29]process_json_proto returns [08:28:29]Send response to host [08:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118992,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:28:29]free response buf [08:28:29]execute_script done [08:28:29]execute_script returns [08:28:29]free content buf [08:28:29]Sock 7.Close socket [08:28:29]Sock 7.Thread stoped [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:27]accept exits with 9 [08:29:27]New connection [08:29:27]New thread 3067383140 created [08:29:27]Thread 3067239780 joined [08:29:27]Waiting for new connection... [08:29:27] Sock 9.Parse request [08:29:27]Sock 9.Check first char [08:29:27]Sock 9.First char is OK [08:29:27]request: POST /json_proto HTTP/1.0 [08:29:27]Method: POST [08:29:27]URL: /json_proto [08:29:27]Method is POST - this is cgi request [08:29:27]url: /json_proto [08:29:27]query_string will be loaded in cgi processing [08:29:27]execute_cgi json_proto POST (null) [08:29:27]execute_cgi path=json_proto method=POST [08:29:27]POST find Content-Length [08:29:27]Host: 172.17.45.7:8080 [08:29:27]Content-Length: 1202 [08:29:27]Content-Type: application/json [08:29:27] [08:29:27]POST finish read [08:29:27]Found Content-Length = 1202 [08:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949908\u000A30.07.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2712.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92859\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:27]execute_script... [08:29:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949908\u000A30.07.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 2712.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92859\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:27]POST & json_proto [08:29:27]process_json_proto [08:29:27]json parsed OK: [08:29:27]protocol is kg_v1.0 [08:29:27]action value=print_text [08:29:27]process_action print_text [08:29:27]cmd_print_text [08:29:27]ExternCall_PrintAddStr [08:29:27]wPrintStart [08:29:27]Write to MH i2c: 01 00 00 F3 99 8C [08:29:27]Write i2c OK [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: 01 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: 01 07 00 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: 01 07 00 F3 99 00 00 00 00 00 FF 0F A1 [08:29:27]RasterBufferAndPrint [08:29:27]line *****ТОВАРНЫЙ ЧЕК***** [08:29:27]line АЗС-134 [08:29:27]line Партнер нефть [08:29:27]line 02508201610067 [08:29:27]line Кассир : Айдарали у Б. [08:29:27]line Счет N : (1)949908 [08:29:27]line 30.07.2024 08:27 [08:29:27]line ПРОДАЖА [08:29:27]line ТРК (МРК, ГНК): 31 [08:29:27]line Вид ГСМ : 2710124130 [08:29:27]line Аи-92-К-4 [08:29:27]line 40.000 x 67.80 [08:29:27]line ИТОГ: 2712.00 [08:29:27]line Тип оплаты: Талоны: Топливная Карта [08:29:27]line 92859 [08:29:27]line ______________________ [08:29:27]line (подпись) [08:29:27]written 0, free lines is 4095 [08:29:27]Write to MH i2c: 01 00 00 07 9A A1 [08:29:27]Write i2c OK [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: 01 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: 01 07 00 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: 01 07 00 07 9A 00 00 00 00 00 11 0E C7 [08:29:27]RasterBufferAndPrint [08:29:27]line [08:29:27]line [08:29:27]line [08:29:27]line [08:29:27]line [08:29:27]written 0, free lines is 3603 [08:29:27]MH_Cut [08:29:27]Write to MH i2c: D1 01 00 0E 9A 01 7A [08:29:27]Write i2c OK [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: D1 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: D1 01 00 [08:29:27]MH_I2C_Read... [08:29:27]Read from MH i2c: D1 01 00 0E 9A 00 79 [08:29:27]Write to MH i2c: 01 00 00 0F 9A A9 [08:29:27]Write i2c OK [08:29:27]MH_I2C_Read... [08:29:28]*** Cut start [08:29:28]*** Partial cut [08:29:28]*** CUTSNS_PIN = 1 [08:29:28]*** CUTSNS_PIN = 0 [08:29:28]*** Brake cut motor [08:29:28]OFD Sender: No OFD packet to send [08:29:28]Read from MH i2c: 01 [08:29:28]MH_I2C_Read... [08:29:28]*** Stop cut motor [08:29:28]*** Cut end [08:29:28]Read from MH i2c: 01 07 00 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: 01 07 00 0F 9A 00 00 00 00 00 FF 0F BE [08:29:28]process_action print_text done [08:29:28]requested_data is exist [08:29:28]produce_requested_data [08:29:28]requested_item fm.sn is exist - process it [08:29:28]wFMCommunicate request_size=4 [08:29:28]MH_SAM_APDU [08:29:28]CAPDU: 80 11 00 00 [08:29:28]Write to MH i2c: E2 08 00 10 9A 80 11 00 00 00 00 00 00 24 [08:29:28]Write i2c OK [08:29:28]MH_I2C_Read... [08:29:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:28]Read from MH i2c: E2 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 17 00 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 17 00 10 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [08:29:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:29:28]wFMCommunicate OK [08:29:28]requested_item fd.num is exist - process it [08:29:28]SAM_PROTO_GetFieldsCounters [08:29:28]wFMCommunicate request_size=4 [08:29:28]MH_SAM_APDU [08:29:28]CAPDU: 80 13 00 00 [08:29:28]Write to MH i2c: E2 08 00 11 9A 80 13 00 00 00 00 00 00 27 [08:29:28]Write i2c OK [08:29:28]MH_I2C_Read... [08:29:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:28]Read from MH i2c: E2 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 62 00 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 62 00 11 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [08:29:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:28]wFMCommunicate OK [08:29:28]SAM_PROTO_GetFieldsCounters done [08:29:28]requested_item shift.num is exist - process it [08:29:28]requested_item shift.opened is exist - process it [08:29:28]req_shift_opened [08:29:28]FM_GetShiftState [08:29:28]SAM_PROTO_GetShiftState [08:29:28]wFMCommunicate request_size=4 [08:29:28]MH_SAM_APDU [08:29:28]CAPDU: 80 13 01 00 [08:29:28]Write to MH i2c: E2 08 00 12 9A 80 13 01 00 00 00 00 00 29 [08:29:28]Write i2c OK [08:29:28]MH_I2C_Read... [08:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:28]Read from MH i2c: E2 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 0E 00 [08:29:28]MH_I2C_Read... [08:29:28]Read from MH i2c: E2 0E 00 12 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F4 [08:29:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:29:28]wFMCommunicate OK [08:29:28]SAM_PROTO_GetShiftState done [08:29:28]FM_GetShiftState done [08:29:28]req_shift_opened done [08:29:28]requested_item shift.open_date is exist - process it [08:29:28]req_shift_open_date [08:29:28]req_shift_open_date done [08:29:28]produce_requested_data done [08:29:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118992,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:29:28]process_action_free print_text [08:29:28]json_value_free [08:29:28]json_value_free done [08:29:28]process_json_proto returns [08:29:28]Send response to host [08:29:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118992,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:29:28]free response buf [08:29:28]execute_script done [08:29:28]execute_script returns [08:29:28]free content buf [08:29:28]Sock 9.Close socket [08:29:28]Sock 9.Thread stoped [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:51]accept exits with 7 [08:29:51]New connection [08:29:51]New thread 3067239780 created [08:29:51]Thread 3067383140 joined [08:29:51]Waiting for new connection... [08:29:51] Sock 7.Parse request [08:29:51]Sock 7.Check first char [08:29:51]Sock 7.First char is OK [08:29:51]request: POST /json_proto HTTP/1.0 [08:29:51]Method: POST [08:29:51]URL: /json_proto [08:29:51]Method is POST - this is cgi request [08:29:51]url: /json_proto [08:29:51]query_string will be loaded in cgi processing [08:29:51]execute_cgi json_proto POST (null) [08:29:51]execute_cgi path=json_proto method=POST [08:29:51]POST find Content-Length [08:29:51]Host: 172.17.45.7:8080 [08:29:51]Content-Length: 678 [08:29:51]Content-Type: application/json [08:29:51] [08:29:51]POST finish read [08:29:51]Found Content-Length = 678 [08:29:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.310, "sum" : 970.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:51]execute_script... [08:29: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)949910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.310, "sum" : 970.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 970.00, "total" : 970.00, "payments": [ { "type": 0, "sum" : 970.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:51]POST & json_proto [08:29:51]process_json_proto [08:29:51]json parsed OK: [08:29:51]protocol is kg_v1.0 [08:29:51]action value=close_receipt [08:29:51]process_action close_receipt [08:29:51]cmd_close_receipt [08:29:51]MH_GetDate [08:29:51]Write to MH i2c: F0 00 00 13 9A 9C [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: F0 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: F0 09 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: F0 09 00 13 9A 00 89 A4 A8 66 90 0F 3E 66 23 [08:29:51]GetLastDocTimeStamp 1722328115 [08:29:51]current date 1722328201 [08:29:51]FM_GetShiftState [08:29:51]SAM_PROTO_GetShiftState [08:29:51]wFMCommunicate request_size=4 [08:29:51]MH_SAM_APDU [08:29:51]CAPDU: 80 13 01 00 [08:29:51]Write to MH i2c: E2 08 00 14 9A 80 13 01 00 00 00 00 00 2B [08:29:51]Write i2c OK [08:29:51]MH_I2C_Read... [08:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:51]Read from MH i2c: E2 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 0E 00 [08:29:51]MH_I2C_Read... [08:29:51]Read from MH i2c: E2 0E 00 14 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F6 [08:29:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:29:51]wFMCommunicate OK [08:29:51]SAM_PROTO_GetShiftState done [08:29:51]FM_GetShiftState done [08:29:51]opened in 1722298242 [08:29:51]opened+sec_in_day 1722384642 [08:29:51]quantity*price = 97021 [08:29:51]sum+1 = 97023 [08:29:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 970.00 Внесено: 970.00 СДАЧА: 0.00 НСП 1% : 8.59 НДС 12% : 103.03 Наличными: 970.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 45 30.07.2024 08:30 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118993 ФПД: 142799996674000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083001&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118993&fm=142799996674000&tin=02508201610067®Number=0000000000092660&sum=97000 [08:29:52]StoreToDocumentArchive [08:29:52]shift 435 fd 118993 [08:29:52]save to /storage/0435/doc_00118993 [08:29:52]save last doc name /storage/0435/doc_00118993 to /storage/kkm_last_doc_name [08:29:52]save OK [08:29:52]Clear old archive folders... [08:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:52]tlvbuf is 01E501D0 [08:29:52]SAM_PROTO_ClearQueue [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 09 00 00 [08:29:52]Write to MH i2c: E2 08 00 21 9A 80 09 00 00 00 00 00 00 2D [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 21 9A 00 90 00 2F [08:29:52]RAPDU: 90 00 [08:29:52]wFMCommunicate OK [08:29:52]SAM_PROTO_ClearQueue done [08:29:52]KKMCreateOFDPacket [08:29:52]OFDProtocolAddRootSTLVToBuf [08:29:52]FM_MakeSignedData [08:29:52]FM_MakeSignedData [08:29:52]SAM_PROTO_SignData [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 0D 01 02 [08:29:52]Write to MH i2c: E2 08 00 22 9A 80 0D 01 02 00 00 00 00 35 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 22 9A 00 90 00 30 [08:29:52]RAPDU: 90 00 [08:29:52]wFMCommunicate OK [08:29:52]wFMCommunicate request_size=255 [08:29:52]MH_SAM_APDU [08:29: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 37 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 28 00 00 00 00 07 04 06 00 E8 7A 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 89 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 D0 01 00 35 04 06 00 81 [08:29:52]Write to MH i2c: E2 02 01 23 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 37 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 28 00 00 00 00 07 04 06 00 E8 7A 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 89 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 D0 01 00 35 04 06 00 81 00 00 3A [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 23 9A 00 90 00 31 [08:29:52]RAPDU: 90 00 [08:29:52]wFMCommunicate OK [08:29:52]wFMCommunicate request_size=10 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 0D 02 02 05 E0 37 13 5F D0 [08:29:52]Write to MH i2c: E2 0D 00 24 9A 80 0D 02 02 05 00 E0 37 13 5F D0 00 00 9B [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 03 00 24 9A 00 90 00 32 [08:29:52]RAPDU: 90 00 [08:29:52]wFMCommunicate OK [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 0D 03 02 [08:29:52]Write to MH i2c: E2 08 00 25 9A 80 0D 03 02 00 00 00 00 3A [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0B 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0B 00 25 9A 00 76 00 9A 9A 76 35 AE B7 90 00 F5 [08:29:52]RAPDU: 76 00 9A 9A 76 35 AE B7 90 00 [08:29:52]wFMCommunicate OK [08:29:52]SAM_PROTO_SignData done [08:29:52]FM_MakeSignedData done [08:29:52]CreateOFDProtocolMessage [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 11 00 00 [08:29:52]Write to MH i2c: E2 08 00 26 9A 80 11 00 00 00 00 00 00 3A [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 17 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 17 00 26 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [08:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:29:52]wFMCommunicate OK [08:29:52]CreateOFDProtocolMessage done [08:29:52]OFDSenderStorePacket 118993 [08:29:52]StoreOFDPacket docnum=118993 [08:29:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 41 AD 07 01 7D 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 E6 37 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 28 00 00 00 00 07 04 06 00 E8 7A 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 89 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 D0 01 00 35 04 06 00 81 E0 37 13 5F D0 76 00 9A 9A 76 35 AE B7 [08:29:52]CheckFolder [08:29:52]dirname=/storage/ofd_packets [08:29:52]CheckFolder done [08:29:52]ProducePacketName [08:29:52]name=ofd_packets/00118993 [08:29:52]NVStorageSaveData ofd_packets/00118993 [08:29:52]File name is /storage/ofd_packets/00118993 [08:29:52]Write 301 bytes [08:29:52]NVStorageSaveData done [08:29:52]OFDSenderStorePacket done [08:29:52]KKMCreateOFDPacket done [08:29:52]NVStorageSaveData kkm_last_timestamp [08:29:52]File name is /storage/kkm_last_timestamp [08:29:52]Write 4 bytes [08:29:52]NVStorageSaveData done [08:29:52]ExternCall_PrintAddStr [08:29:52]wPrintStart [08:29:52]Write to MH i2c: 01 00 00 27 9A C1 [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: 01 07 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 07 00 27 9A 00 00 00 00 00 FF 0F D6 [08:29:53]RasterBufferAndPrint [08:29:53]line Счет N : (1)949910 [08:29:53]line ИНН: 02508201610067 [08:29:53]line Контрольно-Кассовый Чек [08:29:53]line ПРОДАЖА [08:29:53]line ТРК (МРК, ГНК) : 51 [08:29:53]line Товар: 2710124130 [08:29:53]line Аи-92-К-4 [08:29:53]line 14.310 * 67.80 [08:29:53]line = 970.22 [08:29:53]line НДС 12% НСП 1% [08:29:53]line > о реализуемом товаре [08:29:53]line ОКРУГЛЕНИЕ: -0.22 [08:29:53]line ИТОГО: 970.00 [08:29:53]line Внесено: 970.00 [08:29:53]line СДАЧА: 0.00 [08:29:53]line НСП 1% : 8.59 [08:29:53]line НДС 12% : 103.03 [08:29:53]line Наличными: 970.00 [08:29:53]line Безнал.: 0.00 [08:29:53]line Место: АЗС № 134 "Партнер Нефть" [08:29:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:29:53]line СНО: Общий режим [08:29:53]line Чек 45 30.07.2024 08:30 [08:29:53]line Смена: 435 ФФД: 1.0 [08:29:53]line ЗНМ: 0300000044 [08:29:53]line РНМ: 0000000000092660 [08:29:53]line Версия ККМ: 001 [08:29:53]line ФМ: 0000000000874939 [08:29:53]line ФД: 118993 [08:29:53]line ФПД: 142799996674000 [08:29:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083001&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118993&fm=142799996674000&tin=02508201610067®Number=0000000000092660&sum=97000 [08:29:53]OFD Sender: Processing packet 118993 [packets to send 86, broken 85] [08:29:53]ProducePacketName [08:29:53]name=ofd_packets/00118993 [08:29:53]OFD Sender: To server: pG, [08:29:53]CommunicateWithHost lk.salyk.kg:30040 [08:29:53]ConnectInit lk.salyk.kg [08:29:53]written 0, free lines is 4095 [08:29:53]Connected sock=10 [08:29:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 41 AD 07 01 7D 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 E6 37 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE 7A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 7A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 28 00 00 00 00 07 04 06 00 E8 7A 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 89 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 D0 01 00 35 04 06 00 81 E0 37 13 5F D0 76 00 9A 9A 76 35 AE B7 [08:29:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 AF 47 00 E5 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 34 39 33 39 10 04 04 00 D1 D0 01 00 F4 03 04 00 14 52 A8 66 B6 04 01 00 00 86 4A D3 28 1E 36 08 13 [08:29:53]CommunicateWithHost err = 0 [08:29:53]CheckOFDResponse [08:29:53]1017 (14) - 77093643461234 [08:29:53]1041 (16) - 0000000000874939 [08:29:53]1040 (4) - 118993 [08:29:53]1012 (4) - 30.07.2024 02:38 [08:29:53]1206 (1) - 0 [08:29:53]OFD Sender: Remove packet 118993 [08:29:53]ProducePacketName [08:29:53]name=ofd_packets/00118993 [08:29:53]NVStorageDeleteData [08:29:53]Write to MH i2c: 01 00 00 51 9A EB [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 07 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: 01 07 00 51 9A 00 00 00 00 00 D0 0C CE [08:29:53]RasterBufferAndPrint [08:29:53]line [08:29:53]line [08:29:53]line [08:29:53]line [08:29:53]line [08:29:53]written 0, free lines is 3287 [08:29:53]MH_Cut [08:29:53]Write to MH i2c: D1 01 00 58 9A 01 C4 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: D1 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: D1 01 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: D1 01 00 58 9A 00 C3 [08:29:53]Write to MH i2c: 01 00 00 59 9A F3 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:54]OFD Sender: No OFD packet to send [08:29:54]*** Cut start [08:29:54]*** Partial cut [08:29:54]*** CUTSNS_PIN = 1 [08:29:54]*** CUTSNS_PIN = 0 [08:29:54]*** Brake cut motor [08:29:55]Read from MH i2c: 01 [08:29:55]MH_I2C_Read... [08:29:55]*** Stop cut motor [08:29:55]*** Cut end [08:29:55]Read from MH i2c: 01 07 00 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: 01 07 00 59 9A 00 00 00 00 00 FF 0F 08 [08:29:55]process_action close_receipt done [08:29:55]requested_data is exist [08:29:55]produce_requested_data [08:29:55]requested_item fm.sn is exist - process it [08:29:55]wFMCommunicate request_size=4 [08:29:55]MH_SAM_APDU [08:29:55]CAPDU: 80 11 00 00 [08:29:55]Write to MH i2c: E2 08 00 5A 9A 80 11 00 00 00 00 00 00 6E [08:29:55]Write i2c OK [08:29:55]MH_I2C_Read... [08:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:55]Read from MH i2c: E2 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 17 00 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 17 00 5A 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [08:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:29:55]wFMCommunicate OK [08:29:55]requested_item fd.num is exist - process it [08:29:55]SAM_PROTO_GetFieldsCounters [08:29:55]wFMCommunicate request_size=4 [08:29:55]MH_SAM_APDU [08:29:55]CAPDU: 80 13 00 00 [08:29:55]Write to MH i2c: E2 08 00 5B 9A 80 13 00 00 00 00 00 00 71 [08:29:55]Write i2c OK [08:29:55]MH_I2C_Read... [08:29:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:55]Read from MH i2c: E2 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 62 00 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 62 00 5B 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [08:29:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:55]wFMCommunicate OK [08:29:55]SAM_PROTO_GetFieldsCounters done [08:29:55]requested_item shift.num is exist - process it [08:29:55]requested_item shift.opened is exist - process it [08:29:55]req_shift_opened [08:29:55]FM_GetShiftState [08:29:55]SAM_PROTO_GetShiftState [08:29:55]wFMCommunicate request_size=4 [08:29:55]MH_SAM_APDU [08:29:55]CAPDU: 80 13 01 00 [08:29:55]Write to MH i2c: E2 08 00 5C 9A 80 13 01 00 00 00 00 00 73 [08:29:55]Write i2c OK [08:29:55]MH_I2C_Read... [08:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:55]Read from MH i2c: E2 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 0E 00 [08:29:55]MH_I2C_Read... [08:29:55]Read from MH i2c: E2 0E 00 5C 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3E [08:29:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:29:55]wFMCommunicate OK [08:29:55]SAM_PROTO_GetShiftState done [08:29:55]FM_GetShiftState done [08:29:55]req_shift_opened done [08:29:55]requested_item shift.open_date is exist - process it [08:29:55]req_shift_open_date [08:29:55]req_shift_open_date done [08:29:55]produce_requested_data done [08:29:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118993,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:29:55]process_action_free close_receipt [08:29:55]json_value_free [08:29:55]json_value_free done [08:29:55]process_json_proto returns [08:29:55]Send response to host [08:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118993,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:29:55]free response buf [08:29:55]execute_script done [08:29:55]execute_script returns [08:29:55]free content buf [08:29:55]Sock 7.Close socket [08:29:55]Sock 7.Thread stoped [08:29:59]OFD Sender: No OFD packet to send [08:29:59]accept exits with 9 [08:29:59]New connection [08:29:59]New thread 3067383140 created [08:29:59]Thread 3067239780 joined [08:29:59]Waiting for new connection... [08:29:59] Sock 9.Parse request [08:29:59]Sock 9.Check first char [08:29:59]Sock 9.First char is OK [08:29:59]request: POST /json_proto HTTP/1.0 [08:29:59]Method: POST [08:29:59]URL: /json_proto [08:29:59]Method is POST - this is cgi request [08:29:59]url: /json_proto [08:29:59]query_string will be loaded in cgi processing [08:29:59]execute_cgi json_proto POST (null) [08:29:59]execute_cgi path=json_proto method=POST [08:29:59]POST find Content-Length [08:29:59]Host: 172.17.45.7:8080 [08:29:59]Content-Length: 677 [08:29:59]Content-Type: application/json [08:29:59] [08:29:59]POST finish read [08:29:59]Found Content-Length = 677 [08:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:29:59]execute_script... [08:29: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)949911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:29:59]POST & json_proto [08:29:59]process_json_proto [08:29:59]json parsed OK: [08:29:59]protocol is kg_v1.0 [08:29:59]action value=close_receipt [08:29:59]process_action close_receipt [08:29:59]cmd_close_receipt [08:29:59]MH_GetDate [08:29:59]Write to MH i2c: F0 00 00 5D 9A E6 [08:29:59]Write i2c OK [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: F0 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: F0 09 00 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: F0 09 00 5D 9A 00 91 A4 A8 66 90 0F 3E 66 75 [08:29:59]GetLastDocTimeStamp 1722328201 [08:29:59]current date 1722328209 [08:29:59]FM_GetShiftState [08:29:59]SAM_PROTO_GetShiftState [08:29:59]wFMCommunicate request_size=4 [08:29:59]MH_SAM_APDU [08:29:59]CAPDU: 80 13 01 00 [08:29:59]Write to MH i2c: E2 08 00 5E 9A 80 13 01 00 00 00 00 00 75 [08:29:59]Write i2c OK [08:29:59]MH_I2C_Read... [08:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:59]Read from MH i2c: E2 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: E2 0E 00 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: E2 0E 00 5E 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 40 [08:29:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:29:59]wFMCommunicate OK [08:29:59]SAM_PROTO_GetShiftState done [08:29:59]FM_GetShiftState done [08:29:59]opened in 1722298242 [08:29:59]opened+sec_in_day 1722384642 [08:29:59]quantity*price = 40002 [08:29:59]sum+1 = 40003 [08:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 46 30.07.2024 08:30 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118994 ФПД: 149406331976264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118994&fm=149406331976264&tin=02508201610067®Number=0000000000092660&sum=40000 [08:30:01]StoreToDocumentArchive [08:30:01]shift 435 fd 118994 [08:30:01]save to /storage/0435/doc_00118994 [08:30:01]save last doc name /storage/0435/doc_00118994 to /storage/kkm_last_doc_name [08:30:01]save OK [08:30:01]Clear old archive folders... [08:30:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:01]tlvbuf is 01EC0040 [08:30:01]SAM_PROTO_ClearQueue [08:30:01]wFMCommunicate request_size=4 [08:30:01]MH_SAM_APDU [08:30:01]CAPDU: 80 09 00 00 [08:30:01]Write to MH i2c: E2 08 00 6B 9A 80 09 00 00 00 00 00 00 77 [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:01]Read from MH i2c: E2 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 6B 9A 00 90 00 79 [08:30:01]RAPDU: 90 00 [08:30:01]wFMCommunicate OK [08:30:01]SAM_PROTO_ClearQueue done [08:30:01]KKMCreateOFDPacket [08:30:01]OFDProtocolAddRootSTLVToBuf [08:30:01]FM_MakeSignedData [08:30:01]FM_MakeSignedData [08:30:01]SAM_PROTO_SignData [08:30:01]wFMCommunicate request_size=4 [08:30:01]MH_SAM_APDU [08:30:01]CAPDU: 80 0D 01 02 [08:30:01]Write to MH i2c: E2 08 00 6C 9A 80 0D 01 02 00 00 00 00 7F [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:01]Read from MH i2c: E2 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 6C 9A 00 90 00 7A [08:30:01]RAPDU: 90 00 [08:30:01]wFMCommunicate OK [08:30:01]wFMCommunicate request_size=255 [08:30:01]MH_SAM_APDU [08:30: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2E 00 00 00 F4 03 04 00 91 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 D0 01 00 35 04 06 00 87 [08:30:01]Write to MH i2c: E2 02 01 6D 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2E 00 00 00 F4 03 04 00 91 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 D0 01 00 35 04 06 00 87 00 00 37 [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:01]Read from MH i2c: E2 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 6D 9A 00 90 00 7B [08:30:01]RAPDU: 90 00 [08:30:01]wFMCommunicate OK [08:30:01]wFMCommunicate request_size=10 [08:30:01]MH_SAM_APDU [08:30:01]CAPDU: 80 0D 02 02 05 E2 5F 58 3A 48 [08:30:01]Write to MH i2c: E2 0D 00 6E 9A 80 0D 02 02 05 00 E2 5F 58 3A 48 00 00 A7 [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:01]Read from MH i2c: E2 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 03 00 6E 9A 00 90 00 7C [08:30:01]RAPDU: 90 00 [08:30:01]wFMCommunicate OK [08:30:01]wFMCommunicate request_size=4 [08:30:01]MH_SAM_APDU [08:30:01]CAPDU: 80 0D 03 02 [08:30:01]Write to MH i2c: E2 08 00 6F 9A 80 0D 03 02 00 00 00 00 84 [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:01]Read from MH i2c: E2 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 0B 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 0B 00 6F 9A 00 21 0E B2 80 AF E5 B8 34 90 00 66 [08:30:01]RAPDU: 21 0E B2 80 AF E5 B8 34 90 00 [08:30:01]wFMCommunicate OK [08:30:01]SAM_PROTO_SignData done [08:30:01]FM_MakeSignedData done [08:30:01]CreateOFDProtocolMessage [08:30:01]wFMCommunicate request_size=4 [08:30:01]MH_SAM_APDU [08:30:01]CAPDU: 80 11 00 00 [08:30:01]Write to MH i2c: E2 08 00 70 9A 80 11 00 00 00 00 00 00 84 [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:01]Read from MH i2c: E2 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 17 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: E2 17 00 70 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [08:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:30:01]wFMCommunicate OK [08:30:01]CreateOFDProtocolMessage done [08:30:01]OFDSenderStorePacket 118994 [08:30:01]StoreOFDPacket docnum=118994 [08:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A EE 07 01 12 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2E 00 00 00 F4 03 04 00 91 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 D0 01 00 35 04 06 00 87 E2 5F 58 3A 48 21 0E B2 80 AF E5 B8 34 [08:30:01]CheckFolder [08:30:01]dirname=/storage/ofd_packets [08:30:01]CheckFolder done [08:30:01]ProducePacketName [08:30:01]name=ofd_packets/00118994 [08:30:01]NVStorageSaveData ofd_packets/00118994 [08:30:01]File name is /storage/ofd_packets/00118994 [08:30:01]Write 301 bytes [08:30:01]NVStorageSaveData done [08:30:01]OFDSenderStorePacket done [08:30:01]KKMCreateOFDPacket done [08:30:01]NVStorageSaveData kkm_last_timestamp [08:30:01]File name is /storage/kkm_last_timestamp [08:30:01]Write 4 bytes [08:30:01]NVStorageSaveData done [08:30:01]ExternCall_PrintAddStr [08:30:01]wPrintStart [08:30:01]Write to MH i2c: 01 00 00 71 9A 0B [08:30:01]Write i2c OK [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: 01 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: 01 07 00 [08:30:01]MH_I2C_Read... [08:30:01]Read from MH i2c: 01 07 00 71 9A 00 00 00 00 00 FF 0F 20 [08:30:01]RasterBufferAndPrint [08:30:01]line Счет N : (1)949911 [08:30:01]line ИНН: 02508201610067 [08:30:01]line Контрольно-Кассовый Чек [08:30:01]line ПРОДАЖА [08:30:01]line ТРК (МРК, ГНК) : 61 [08:30:01]line Товар: 2710124130 [08:30:01]line Аи-92-К-4 [08:30:01]line 5.900 * 67.80 [08:30:01]line = 400.02 [08:30:01]line НДС 12% НСП 1% [08:30:01]line > о реализуемом товаре [08:30:01]line ОКРУГЛЕНИЕ: -0.02 [08:30:01]line ИТОГО: 400.00 [08:30:01]line Внесено: 400.00 [08:30:01]line СДАЧА: 0.00 [08:30:01]line НСП 1% : 3.54 [08:30:01]line НДС 12% : 42.48 [08:30:01]line Наличными: 400.00 [08:30:01]line Безнал.: 0.00 [08:30:01]line Место: АЗС № 134 "Партнер Нефть" [08:30:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:30:01]line СНО: Общий режим [08:30:01]line Чек 46 30.07.2024 08:30 [08:30:01]line Смена: 435 ФФД: 1.0 [08:30:01]line ЗНМ: 0300000044 [08:30:01]line РНМ: 0000000000092660 [08:30:01]line Версия ККМ: 001 [08:30:01]line ФМ: 0000000000874939 [08:30:01]line ФД: 118994 [08:30:01]line ФПД: 149406331976264 [08:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118994&fm=149406331976264&tin=02508201610067®Number=0000000000092660&sum=40000 [08:30:01]written 0, free lines is 4095 [08:30:01]OFD Sender: Processing packet 118994 [packets to send 86, broken 85] [08:30:01]ProducePacketName [08:30:01]name=ofd_packets/00118994 [08:30:01]OFD Sender: To server: pG, [08:30:01]CommunicateWithHost lk.salyk.kg:30040 [08:30:01]ConnectInit lk.salyk.kg [08:30:01]Connected sock=10 [08:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A EE 07 01 12 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 2E 00 00 00 F4 03 04 00 91 A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 D0 01 00 35 04 06 00 87 E2 5F 58 3A 48 21 0E B2 80 AF E5 B8 34 [08:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 50 DA 47 00 32 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 34 39 33 39 10 04 04 00 D2 D0 01 00 F4 03 04 00 1D 52 A8 66 B6 04 01 00 00 63 CC 02 BE 7B 98 A5 A9 [08:30:01]CommunicateWithHost err = 0 [08:30:01]CheckOFDResponse [08:30:01]1017 (14) - 77093643461234 [08:30:01]1041 (16) - 0000000000874939 [08:30:01]1040 (4) - 118994 [08:30:01]1012 (4) - 30.07.2024 02:38 [08:30:01]1206 (1) - 0 [08:30:01]OFD Sender: Remove packet 118994 [08:30:01]ProducePacketName [08:30:01]name=ofd_packets/00118994 [08:30:01]NVStorageDeleteData [08:30:02]Write to MH i2c: 01 00 00 9B 9A 35 [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: 01 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: 01 07 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: 01 07 00 9B 9A 00 00 00 00 00 D3 0C 1B [08:30:02]RasterBufferAndPrint [08:30:02]line [08:30:02]line [08:30:02]line [08:30:02]line [08:30:02]line [08:30:02]written 0, free lines is 3296 [08:30:02]MH_Cut [08:30:02]Write to MH i2c: D1 01 00 A2 9A 01 0E [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: D1 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: D1 01 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: D1 01 00 A2 9A 00 0D [08:30:02]Write to MH i2c: 01 00 00 A3 9A 3D [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]OFD Sender: No OFD packet to send [08:30:02]*** Cut start [08:30:02]*** Partial cut [08:30:02]*** CUTSNS_PIN = 1 [08:30:02]*** CUTSNS_PIN = 0 [08:30:03]*** Brake cut motor [08:30:03]Read from MH i2c: 01 [08:30:03]MH_I2C_Read... [08:30:03]*** Stop cut motor [08:30:03]*** Cut end [08:30:03]Read from MH i2c: 01 07 00 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: 01 07 00 A3 9A 00 00 00 00 00 FF 0F 52 [08:30:03]process_action close_receipt done [08:30:03]requested_data is exist [08:30:03]produce_requested_data [08:30:03]requested_item fm.sn is exist - process it [08:30:03]wFMCommunicate request_size=4 [08:30:03]MH_SAM_APDU [08:30:03]CAPDU: 80 11 00 00 [08:30:03]Write to MH i2c: E2 08 00 A4 9A 80 11 00 00 00 00 00 00 B8 [08:30:03]Write i2c OK [08:30:03]MH_I2C_Read... [08:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:03]Read from MH i2c: E2 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 17 00 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 17 00 A4 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [08:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:30:03]wFMCommunicate OK [08:30:03]requested_item fd.num is exist - process it [08:30:03]SAM_PROTO_GetFieldsCounters [08:30:03]wFMCommunicate request_size=4 [08:30:03]MH_SAM_APDU [08:30:03]CAPDU: 80 13 00 00 [08:30:03]Write to MH i2c: E2 08 00 A5 9A 80 13 00 00 00 00 00 00 BB [08:30:03]Write i2c OK [08:30:03]MH_I2C_Read... [08:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:03]Read from MH i2c: E2 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 62 00 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 62 00 A5 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [08:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:03]wFMCommunicate OK [08:30:03]SAM_PROTO_GetFieldsCounters done [08:30:03]requested_item shift.num is exist - process it [08:30:03]requested_item shift.opened is exist - process it [08:30:03]req_shift_opened [08:30:03]FM_GetShiftState [08:30:03]SAM_PROTO_GetShiftState [08:30:03]wFMCommunicate request_size=4 [08:30:03]MH_SAM_APDU [08:30:03]CAPDU: 80 13 01 00 [08:30:03]Write to MH i2c: E2 08 00 A6 9A 80 13 01 00 00 00 00 00 BD [08:30:03]Write i2c OK [08:30:03]MH_I2C_Read... [08:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:03]Read from MH i2c: E2 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 0E 00 [08:30:03]MH_I2C_Read... [08:30:03]Read from MH i2c: E2 0E 00 A6 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 88 [08:30:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:30:03]wFMCommunicate OK [08:30:03]SAM_PROTO_GetShiftState done [08:30:03]FM_GetShiftState done [08:30:03]req_shift_opened done [08:30:03]requested_item shift.open_date is exist - process it [08:30:03]req_shift_open_date [08:30:03]req_shift_open_date done [08:30:03]produce_requested_data done [08:30:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118994,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:30:03]process_action_free close_receipt [08:30:03]json_value_free [08:30:03]json_value_free done [08:30:03]process_json_proto returns [08:30:03]Send response to host [08:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118994,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:30:03]free response buf [08:30:03]execute_script done [08:30:03]execute_script returns [08:30:03]free content buf [08:30:03]Sock 9.Close socket [08:30:03]Sock 9.Thread stoped [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:45]accept exits with 7 [08:30:45]New connection [08:30:45]New thread 3067239780 created [08:30:45]Thread 3067383140 joined [08:30:45]Waiting for new connection... [08:30:45] Sock 7.Parse request [08:30:45]Sock 7.Check first char [08:30:45]Sock 7.First char is OK [08:30:45]request: POST /json_proto HTTP/1.0 [08:30:45]Method: POST [08:30:45]URL: /json_proto [08:30:45]Method is POST - this is cgi request [08:30:45]url: /json_proto [08:30:45]query_string will be loaded in cgi processing [08:30:45]execute_cgi json_proto POST (null) [08:30:45]execute_cgi path=json_proto method=POST [08:30:45]POST find Content-Length [08:30:45]Host: 172.17.45.7:8080 [08:30:45]Content-Length: 674 [08:30:45]Content-Type: application/json [08:30:45] [08:30:45]POST finish read [08:30:45]Found Content-Length = 674 [08:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:45]execute_script... [08:30: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)949912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:45]POST & json_proto [08:30:45]process_json_proto [08:30:45]json parsed OK: [08:30:45]protocol is kg_v1.0 [08:30:45]action value=close_receipt [08:30:45]process_action close_receipt [08:30:45]cmd_close_receipt [08:30:45]MH_GetDate [08:30:45]Write to MH i2c: F0 00 00 A7 9A 30 [08:30:45]Write i2c OK [08:30:45]MH_I2C_Read... [08:30:45]Read from MH i2c: F0 [08:30:45]MH_I2C_Read... [08:30:45]Read from MH i2c: F0 09 00 [08:30:45]MH_I2C_Read... [08:30:45]Read from MH i2c: F0 09 00 A7 9A 00 BF A4 A8 66 90 0F 3E 66 ED [08:30:45]GetLastDocTimeStamp 1722328209 [08:30:45]current date 1722328255 [08:30:45]FM_GetShiftState [08:30:45]SAM_PROTO_GetShiftState [08:30:45]wFMCommunicate request_size=4 [08:30:45]MH_SAM_APDU [08:30:45]CAPDU: 80 13 01 00 [08:30:45]Write to MH i2c: E2 08 00 A8 9A 80 13 01 00 00 00 00 00 BF [08:30:45]Write i2c OK [08:30:45]MH_I2C_Read... [08:30:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:45]Read from MH i2c: E2 [08:30:45]MH_I2C_Read... [08:30:45]Read from MH i2c: E2 0E 00 [08:30:45]MH_I2C_Read... [08:30:45]Read from MH i2c: E2 0E 00 A8 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8A [08:30:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:30:45]wFMCommunicate OK [08:30:45]SAM_PROTO_GetShiftState done [08:30:45]FM_GetShiftState done [08:30:45]opened in 1722298242 [08:30:45]opened+sec_in_day 1722384642 [08:30:45]quantity*price = 70027 [08:30:45]sum+1 = 70029 [08:30:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 47 30.07.2024 08:30 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118995 ФПД: 268414945164753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083055&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118995&fm=268414945164753&tin=02508201610067®Number=0000000000092660&sum=70000 [08:30:46]StoreToDocumentArchive [08:30:46]shift 435 fd 118995 [08:30:46]save to /storage/0435/doc_00118995 [08:30:46]save last doc name /storage/0435/doc_00118995 to /storage/kkm_last_doc_name [08:30:46]save OK [08:30:46]Clear old archive folders... [08:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:30:46]tlvbuf is 01F699C0 [08:30:46]SAM_PROTO_ClearQueue [08:30:46]wFMCommunicate request_size=4 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 09 00 00 [08:30:46]Write to MH i2c: E2 08 00 B5 9A 80 09 00 00 00 00 00 00 C1 [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:46]Read from MH i2c: E2 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 B5 9A 00 90 00 C3 [08:30:46]RAPDU: 90 00 [08:30:46]wFMCommunicate OK [08:30:46]SAM_PROTO_ClearQueue done [08:30:46]KKMCreateOFDPacket [08:30:46]OFDProtocolAddRootSTLVToBuf [08:30:46]FM_MakeSignedData [08:30:46]FM_MakeSignedData [08:30:46]SAM_PROTO_SignData [08:30:46]wFMCommunicate request_size=4 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 0D 01 02 [08:30:46]Write to MH i2c: E2 08 00 B6 9A 80 0D 01 02 00 00 00 00 C9 [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:46]Read from MH i2c: E2 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 B6 9A 00 90 00 C4 [08:30:46]RAPDU: 90 00 [08:30:46]wFMCommunicate OK [08:30:46]wFMCommunicate request_size=255 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BF A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D0 01 00 35 04 06 00 F4 1F 39 75 [08:30:46]Write to MH i2c: E2 02 01 B7 9A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BF A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D0 01 00 35 04 06 00 F4 1F 39 75 00 00 0E [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:46]Read from MH i2c: E2 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 B7 9A 00 90 00 C5 [08:30:46]RAPDU: 90 00 [08:30:46]wFMCommunicate OK [08:30:46]wFMCommunicate request_size=7 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 0D 02 02 02 7D D1 [08:30:46]Write to MH i2c: E2 0A 00 B8 9A 80 0D 02 02 02 00 7D D1 00 00 1E [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:46]Read from MH i2c: E2 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 03 00 B8 9A 00 90 00 C6 [08:30:46]RAPDU: 90 00 [08:30:46]wFMCommunicate OK [08:30:46]wFMCommunicate request_size=4 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 0D 03 02 [08:30:46]Write to MH i2c: E2 08 00 B9 9A 80 0D 03 02 00 00 00 00 CE [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:46]Read from MH i2c: E2 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 0B 00 [08:30:46]MH_I2C_Read... [08:30:46]Read from MH i2c: E2 0B 00 B9 9A 00 D2 38 48 7A C5 E8 11 9C 90 00 F5 [08:30:46]RAPDU: D2 38 48 7A C5 E8 11 9C 90 00 [08:30:46]wFMCommunicate OK [08:30:46]SAM_PROTO_SignData done [08:30:46]FM_MakeSignedData done [08:30:46]CreateOFDProtocolMessage [08:30:46]wFMCommunicate request_size=4 [08:30:46]MH_SAM_APDU [08:30:46]CAPDU: 80 11 00 00 [08:30:46]Write to MH i2c: E2 08 00 BA 9A 80 11 00 00 00 00 00 00 CE [08:30:46]Write i2c OK [08:30:46]MH_I2C_Read... [08:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:47]Read from MH i2c: E2 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 17 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: E2 17 00 BA 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 29 [08:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:30:47]wFMCommunicate OK [08:30:47]CreateOFDProtocolMessage done [08:30:47]OFDSenderStorePacket 118995 [08:30:47]StoreOFDPacket docnum=118995 [08:30:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 28 D9 04 01 A9 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BF A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D0 01 00 35 04 06 00 F4 1F 39 75 7D D1 D2 38 48 7A C5 E8 11 9C [08:30:47]CheckFolder [08:30:47]dirname=/storage/ofd_packets [08:30:47]CheckFolder done [08:30:47]ProducePacketName [08:30:47]name=ofd_packets/00118995 [08:30:47]NVStorageSaveData ofd_packets/00118995 [08:30:47]File name is /storage/ofd_packets/00118995 [08:30:47]Write 298 bytes [08:30:47]NVStorageSaveData done [08:30:47]OFDSenderStorePacket done [08:30:47]KKMCreateOFDPacket done [08:30:47]NVStorageSaveData kkm_last_timestamp [08:30:47]File name is /storage/kkm_last_timestamp [08:30:47]Write 4 bytes [08:30:47]NVStorageSaveData done [08:30:47]ExternCall_PrintAddStr [08:30:47]wPrintStart [08:30:47]Write to MH i2c: 01 00 00 BB 9A 55 [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: 01 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: 01 07 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: 01 07 00 BB 9A 00 00 00 00 00 FF 0F 6A [08:30:47]RasterBufferAndPrint [08:30:47]line Счет N : (1)949912 [08:30:47]line ИНН: 02508201610067 [08:30:47]line Контрольно-Кассовый Чек [08:30:47]line ПРОДАЖА [08:30:47]line ТРК (МРК, ГНК) : 44 [08:30:47]line Товар: 2710194800 [08:30:47]line ДТ-К-5 [08:30:47]line 9.190 * 76.20 [08:30:47]line = 700.28 [08:30:47]line НДС 12% НСП 1% [08:30:47]line > о реализуемом товаре [08:30:47]line ОКРУГЛЕНИЕ: -0.28 [08:30:47]line ИТОГО: 700.00 [08:30:47]line Внесено: 700.00 [08:30:47]line СДАЧА: 0.00 [08:30:47]line НСП 1% : 6.20 [08:30:47]line НДС 12% : 74.37 [08:30:47]line Наличными: 700.00 [08:30:47]line Безнал.: 0.00 [08:30:47]line Место: АЗС № 134 "Партнер Нефть" [08:30:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:30:47]line СНО: Общий режим [08:30:47]line Чек 47 30.07.2024 08:30 [08:30:47]line Смена: 435 ФФД: 1.0 [08:30:47]line ЗНМ: 0300000044 [08:30:47]line РНМ: 0000000000092660 [08:30:47]line Версия ККМ: 001 [08:30:47]line ФМ: 0000000000874939 [08:30:47]line ФД: 118995 [08:30:47]line ФПД: 268414945164753 [08:30:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083055&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118995&fm=268414945164753&tin=02508201610067®Number=0000000000092660&sum=70000 [08:30:47]OFD Sender: Processing packet 118995 [packets to send 86, broken 85] [08:30:47]ProducePacketName [08:30:47]name=ofd_packets/00118995 [08:30:47]OFD Sender: To server: pG, [08:30:47]CommunicateWithHost lk.salyk.kg:30040 [08:30:47]ConnectInit lk.salyk.kg [08:30:47]written 0, free lines is 4095 [08:30:47]Connected sock=10 [08:30:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 28 D9 04 01 A9 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BF A4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D0 01 00 35 04 06 00 F4 1F 39 75 7D D1 D2 38 48 7A C5 E8 11 9C [08:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 86 5F 47 00 CA 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 34 39 33 39 10 04 04 00 D3 D0 01 00 F4 03 04 00 4A 52 A8 66 B6 04 01 00 00 08 79 84 33 26 AE 7A 6C [08:30:47]CommunicateWithHost err = 0 [08:30:47]CheckOFDResponse [08:30:47]1017 (14) - 77093643461234 [08:30:47]1041 (16) - 0000000000874939 [08:30:47]1040 (4) - 118995 [08:30:47]1012 (4) - 30.07.2024 02:39 [08:30:47]1206 (1) - 0 [08:30:47]OFD Sender: Remove packet 118995 [08:30:47]ProducePacketName [08:30:47]name=ofd_packets/00118995 [08:30:47]NVStorageDeleteData [08:30:47]Write to MH i2c: 01 00 00 E5 9A 7F [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: 01 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: 01 07 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: 01 07 00 E5 9A 00 00 00 00 00 CF 0C 61 [08:30:47]RasterBufferAndPrint [08:30:47]line [08:30:47]line [08:30:47]line [08:30:47]line [08:30:47]line [08:30:47]written 0, free lines is 3286 [08:30:47]MH_Cut [08:30:47]Write to MH i2c: D1 01 00 EC 9A 01 58 [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: D1 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: D1 01 00 [08:30:47]MH_I2C_Read... [08:30:47]Read from MH i2c: D1 01 00 EC 9A 00 57 [08:30:47]Write to MH i2c: 01 00 00 ED 9A 87 [08:30:47]Write i2c OK [08:30:47]MH_I2C_Read... [08:30:48]OFD Sender: No OFD packet to send [08:30:48]*** Cut start [08:30:48]*** Partial cut [08:30:48]*** CUTSNS_PIN = 1 [08:30:48]*** CUTSNS_PIN = 0 [08:30:48]*** Brake cut motor [08:30:49]Read from MH i2c: 01 [08:30:49]MH_I2C_Read... [08:30:49]*** Stop cut motor [08:30:49]*** Cut end [08:30:49]Read from MH i2c: 01 07 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: 01 07 00 ED 9A 00 00 00 00 00 FF 0F 9C [08:30:49]process_action close_receipt done [08:30:49]requested_data is exist [08:30:49]produce_requested_data [08:30:49]requested_item fm.sn is exist - process it [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 11 00 00 [08:30:49]Write to MH i2c: E2 08 00 EE 9A 80 11 00 00 00 00 00 00 02 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 17 00 EE 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [08:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:30:49]wFMCommunicate OK [08:30:49]requested_item fd.num is exist - process it [08:30:49]SAM_PROTO_GetFieldsCounters [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 13 00 00 [08:30:49]Write to MH i2c: E2 08 00 EF 9A 80 13 00 00 00 00 00 00 05 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 62 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 62 00 EF 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:30:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:49]wFMCommunicate OK [08:30:49]SAM_PROTO_GetFieldsCounters done [08:30:49]requested_item shift.num is exist - process it [08:30:49]requested_item shift.opened is exist - process it [08:30:49]req_shift_opened [08:30:49]FM_GetShiftState [08:30:49]SAM_PROTO_GetShiftState [08:30:49]wFMCommunicate request_size=4 [08:30:49]MH_SAM_APDU [08:30:49]CAPDU: 80 13 01 00 [08:30:49]Write to MH i2c: E2 08 00 F0 9A 80 13 01 00 00 00 00 00 07 [08:30:49]Write i2c OK [08:30:49]MH_I2C_Read... [08:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:49]Read from MH i2c: E2 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0E 00 [08:30:49]MH_I2C_Read... [08:30:49]Read from MH i2c: E2 0E 00 F0 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D2 [08:30:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:30:49]wFMCommunicate OK [08:30:49]SAM_PROTO_GetShiftState done [08:30:49]FM_GetShiftState done [08:30:49]req_shift_opened done [08:30:49]requested_item shift.open_date is exist - process it [08:30:49]req_shift_open_date [08:30:49]req_shift_open_date done [08:30:49]produce_requested_data done [08:30:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118995,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:30:49]process_action_free close_receipt [08:30:49]json_value_free [08:30:49]json_value_free done [08:30:49]process_json_proto returns [08:30:49]Send response to host [08:30:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118995,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:30:49]free response buf [08:30:49]execute_script done [08:30:49]execute_script returns [08:30:49]free content buf [08:30:49]Sock 7.Close socket [08:30:49]Sock 7.Thread stoped [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:34:58]accept exits with 9 [08:34:58]New connection [08:34:58]New thread 3067383140 created [08:34:58]Thread 3067239780 joined [08:34:58]Waiting for new connection... [08:34:58] Sock 9.Parse request [08:34:58]Sock 9.Check first char [08:34:58]Sock 9.First char is OK [08:34:58]request: POST /json_proto HTTP/1.0 [08:34:58]Method: POST [08:34:58]URL: /json_proto [08:34:58]Method is POST - this is cgi request [08:34:58]url: /json_proto [08:34:58]query_string will be loaded in cgi processing [08:34:58]execute_cgi json_proto POST (null) [08:34:58]execute_cgi path=json_proto method=POST [08:34:58]POST find Content-Length [08:34:58]Host: 172.17.45.7:8080 [08:34:58]Content-Length: 677 [08:34:58]Content-Type: application/json [08:34:58] [08:34:58]POST finish read [08:34:58]Found Content-Length = 677 [08:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:34:58]execute_script... [08:34:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [08:34:58]POST & json_proto [08:34:58]process_json_proto [08:34:58]json parsed OK: [08:34:58]protocol is kg_v1.0 [08:34:58]action value=close_receipt [08:34:58]process_action close_receipt [08:34:58]cmd_close_receipt [08:34:58]MH_GetDate [08:34:58]Write to MH i2c: F0 00 00 F1 9A 7A [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: F0 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: F0 09 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: F0 09 00 F1 9A 00 BC A5 A8 66 90 0F 3E 66 35 [08:34:58]GetLastDocTimeStamp 1722328255 [08:34:58]current date 1722328508 [08:34:58]FM_GetShiftState [08:34:58]SAM_PROTO_GetShiftState [08:34:58]wFMCommunicate request_size=4 [08:34:58]MH_SAM_APDU [08:34:58]CAPDU: 80 13 01 00 [08:34:58]Write to MH i2c: E2 08 00 F2 9A 80 13 01 00 00 00 00 00 09 [08:34:58]Write i2c OK [08:34:58]MH_I2C_Read... [08:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:58]Read from MH i2c: E2 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 0E 00 [08:34:58]MH_I2C_Read... [08:34:58]Read from MH i2c: E2 0E 00 F2 9A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D4 [08:34:58]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:34:58]wFMCommunicate OK [08:34:58]SAM_PROTO_GetShiftState done [08:34:58]FM_GetShiftState done [08:34:58]opened in 1722298242 [08:34:58]opened+sec_in_day 1722384642 [08:34:58]quantity*price = 30035 [08:34:58]sum+1 = 30036 [08:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 48 30.07.2024 08:35 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118996 ФПД: 194974935282564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118996&fm=194974935282564&tin=02508201610067®Number=0000000000092660&sum=30000 [08:34:59]StoreToDocumentArchive [08:34:59]shift 435 fd 118996 [08:34:59]save to /storage/0435/doc_00118996 [08:34:59]save last doc name /storage/0435/doc_00118996 to /storage/kkm_last_doc_name [08:34:59]save OK [08:34:59]Clear old archive folders... [08:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:59]tlvbuf is 0203E0F0 [08:34:59]SAM_PROTO_ClearQueue [08:34:59]wFMCommunicate request_size=4 [08:34:59]MH_SAM_APDU [08:34:59]CAPDU: 80 09 00 00 [08:34:59]Write to MH i2c: E2 08 00 FF 9A 80 09 00 00 00 00 00 00 0B [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 03 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 03 00 FF 9A 00 90 00 0D [08:34:59]RAPDU: 90 00 [08:34:59]wFMCommunicate OK [08:34:59]SAM_PROTO_ClearQueue done [08:34:59]KKMCreateOFDPacket [08:34:59]OFDProtocolAddRootSTLVToBuf [08:34:59]FM_MakeSignedData [08:34:59]FM_MakeSignedData [08:34:59]SAM_PROTO_SignData [08:34:59]wFMCommunicate request_size=4 [08:34:59]MH_SAM_APDU [08:34:59]CAPDU: 80 0D 01 02 [08:34:59]Write to MH i2c: E2 08 00 00 9B 80 0D 01 02 00 00 00 00 14 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:59]Read from MH i2c: E2 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 03 00 [08:34:59]MH_I2C_Read... [08:34:59]Read from MH i2c: E2 03 00 00 9B 00 90 00 0F [08:34:59]RAPDU: 90 00 [08:34:59]wFMCommunicate OK [08:34:59]wFMCommunicate request_size=255 [08:34:59]MH_SAM_APDU [08:34: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 30 00 00 00 F4 03 04 00 BC A5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D0 01 00 35 04 06 00 B1 [08:34:59]Write to MH i2c: E2 02 01 01 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 30 00 00 00 F4 03 04 00 BC A5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D0 01 00 35 04 06 00 B1 00 00 60 [08:34:59]Write i2c OK [08:34:59]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 01 9B 00 90 00 10 [08:35:00]RAPDU: 90 00 [08:35:00]wFMCommunicate OK [08:35:00]wFMCommunicate request_size=10 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 0D 02 02 05 54 23 C1 F3 84 [08:35:00]Write to MH i2c: E2 0D 00 02 9B 80 0D 02 02 05 00 54 23 C1 F3 84 00 00 D0 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 03 00 02 9B 00 90 00 11 [08:35:00]RAPDU: 90 00 [08:35:00]wFMCommunicate OK [08:35:00]wFMCommunicate request_size=4 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 0D 03 02 [08:35:00]Write to MH i2c: E2 08 00 03 9B 80 0D 03 02 00 00 00 00 19 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 0B 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 0B 00 03 9B 00 F5 3E 0C 0F BE BA 57 9C 90 00 D3 [08:35:00]RAPDU: F5 3E 0C 0F BE BA 57 9C 90 00 [08:35:00]wFMCommunicate OK [08:35:00]SAM_PROTO_SignData done [08:35:00]FM_MakeSignedData done [08:35:00]CreateOFDProtocolMessage [08:35:00]wFMCommunicate request_size=4 [08:35:00]MH_SAM_APDU [08:35:00]CAPDU: 80 11 00 00 [08:35:00]Write to MH i2c: E2 08 00 04 9B 80 11 00 00 00 00 00 00 19 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:00]Read from MH i2c: E2 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 17 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: E2 17 00 04 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 74 [08:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:35:00]wFMCommunicate OK [08:35:00]CreateOFDProtocolMessage done [08:35:00]OFDSenderStorePacket 118996 [08:35:00]StoreOFDPacket docnum=118996 [08:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F8 28 07 01 BD 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 30 00 00 00 F4 03 04 00 BC A5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D0 01 00 35 04 06 00 B1 54 23 C1 F3 84 F5 3E 0C 0F BE BA 57 9C [08:35:00]CheckFolder [08:35:00]dirname=/storage/ofd_packets [08:35:00]CheckFolder done [08:35:00]ProducePacketName [08:35:00]name=ofd_packets/00118996 [08:35:00]NVStorageSaveData ofd_packets/00118996 [08:35:00]File name is /storage/ofd_packets/00118996 [08:35:00]Write 301 bytes [08:35:00]NVStorageSaveData done [08:35:00]OFDSenderStorePacket done [08:35:00]KKMCreateOFDPacket done [08:35:00]NVStorageSaveData kkm_last_timestamp [08:35:00]File name is /storage/kkm_last_timestamp [08:35:00]Write 4 bytes [08:35:00]NVStorageSaveData done [08:35:00]ExternCall_PrintAddStr [08:35:00]wPrintStart [08:35:00]Write to MH i2c: 01 00 00 05 9B A0 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 07 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 07 00 05 9B 00 00 00 00 00 FF 0F B5 [08:35:00]RasterBufferAndPrint [08:35:00]line Счет N : (1)949913 [08:35:00]line ИНН: 02508201610067 [08:35:00]line Контрольно-Кассовый Чек [08:35:00]line ПРОДАЖА [08:35:00]line ТРК (МРК, ГНК) : 41 [08:35:00]line Товар: 2710124130 [08:35:00]line Аи-92-К-4 [08:35:00]line 4.430 * 67.80 [08:35:00]line = 300.35 [08:35:00]line НДС 12% НСП 1% [08:35:00]line > о реализуемом товаре [08:35:00]line ОКРУГЛЕНИЕ: -0.35 [08:35:00]line ИТОГО: 300.00 [08:35:00]line Внесено: 300.00 [08:35:00]line СДАЧА: 0.00 [08:35:00]line НСП 1% : 2.66 [08:35:00]line НДС 12% : 31.90 [08:35:00]line Наличными: 300.00 [08:35:00]line Безнал.: 0.00 [08:35:00]line Место: АЗС № 134 "Партнер Нефть" [08:35:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:35:00]line СНО: Общий режим [08:35:00]line Чек 48 30.07.2024 08:35 [08:35:00]line Смена: 435 ФФД: 1.0 [08:35:00]line ЗНМ: 0300000044 [08:35:00]line РНМ: 0000000000092660 [08:35:00]line Версия ККМ: 001 [08:35:00]line ФМ: 0000000000874939 [08:35:00]line ФД: 118996 [08:35:00]line ФПД: 194974935282564 [08:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118996&fm=194974935282564&tin=02508201610067®Number=0000000000092660&sum=30000 [08:35:00]written 0, free lines is 4095 [08:35:00]OFD Sender: Processing packet 118996 [packets to send 86, broken 85] [08:35:00]ProducePacketName [08:35:00]name=ofd_packets/00118996 [08:35:00]OFD Sender: To server: pG, [08:35:00]CommunicateWithHost lk.salyk.kg:30040 [08:35:00]ConnectInit lk.salyk.kg [08:35:00]Connected sock=10 [08:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F8 28 07 01 BD 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 30 00 00 00 F4 03 04 00 BC A5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D0 01 00 35 04 06 00 B1 54 23 C1 F3 84 F5 3E 0C 0F BE BA 57 9C [08:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 8E 47 00 CC 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D0 01 00 F4 03 04 00 47 53 A8 66 B6 04 01 00 00 66 EA 87 1B 8A 90 B0 FF [08:35:00]CommunicateWithHost err = 0 [08:35:00]CheckOFDResponse [08:35:00]1017 (14) - 77093643461234 [08:35:00]1041 (16) - 0000000000874939 [08:35:00]1040 (4) - 118996 [08:35:00]1012 (4) - 30.07.2024 02:43 [08:35:00]1206 (1) - 0 [08:35:00]OFD Sender: Remove packet 118996 [08:35:00]ProducePacketName [08:35:00]name=ofd_packets/00118996 [08:35:00]NVStorageDeleteData [08:35:00]Write to MH i2c: 01 00 00 2F 9B CA [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 07 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: 01 07 00 2F 9B 00 00 00 00 00 DC 0C B9 [08:35:00]RasterBufferAndPrint [08:35:00]line [08:35:00]line [08:35:00]line [08:35:00]line [08:35:00]line [08:35:00]written 0, free lines is 3302 [08:35:00]MH_Cut [08:35:00]Write to MH i2c: D1 01 00 36 9B 01 A3 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: D1 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: D1 01 00 [08:35:00]MH_I2C_Read... [08:35:00]Read from MH i2c: D1 01 00 36 9B 00 A2 [08:35:00]Write to MH i2c: 01 00 00 37 9B D2 [08:35:00]Write i2c OK [08:35:00]MH_I2C_Read... [08:35:01]OFD Sender: No OFD packet to send [08:35:01]*** Cut start [08:35:01]*** Partial cut [08:35:01]*** CUTSNS_PIN = 1 [08:35:01]*** CUTSNS_PIN = 0 [08:35:01]*** Brake cut motor [08:35:02]Read from MH i2c: 01 [08:35:02]MH_I2C_Read... [08:35:02]*** Stop cut motor [08:35:02]*** Cut end [08:35:02]Read from MH i2c: 01 07 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: 01 07 00 37 9B 00 00 00 00 00 FF 0F E7 [08:35:02]process_action close_receipt done [08:35:02]requested_data is exist [08:35:02]produce_requested_data [08:35:02]requested_item fm.sn is exist - process it [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 11 00 00 [08:35:02]Write to MH i2c: E2 08 00 38 9B 80 11 00 00 00 00 00 00 4D [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 17 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 17 00 38 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [08:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:35:02]wFMCommunicate OK [08:35:02]requested_item fd.num is exist - process it [08:35:02]SAM_PROTO_GetFieldsCounters [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 13 00 00 [08:35:02]Write to MH i2c: E2 08 00 39 9B 80 13 00 00 00 00 00 00 50 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 62 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 62 00 39 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:02]wFMCommunicate OK [08:35:02]SAM_PROTO_GetFieldsCounters done [08:35:02]requested_item shift.num is exist - process it [08:35:02]requested_item shift.opened is exist - process it [08:35:02]req_shift_opened [08:35:02]FM_GetShiftState [08:35:02]SAM_PROTO_GetShiftState [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 13 01 00 [08:35:02]Write to MH i2c: E2 08 00 3A 9B 80 13 01 00 00 00 00 00 52 [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 0E 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 0E 00 3A 9B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 1D [08:35:02]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:35:02]wFMCommunicate OK [08:35:02]SAM_PROTO_GetShiftState done [08:35:02]FM_GetShiftState done [08:35:02]req_shift_opened done [08:35:02]requested_item shift.open_date is exist - process it [08:35:02]req_shift_open_date [08:35:02]req_shift_open_date done [08:35:02]produce_requested_data done [08:35:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118996,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:35:02]process_action_free close_receipt [08:35:02]json_value_free [08:35:02]json_value_free done [08:35:02]process_json_proto returns [08:35:02]Send response to host [08:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118996,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:35:02]free response buf [08:35:02]execute_script done [08:35:02]execute_script returns [08:35:02]free content buf [08:35:02]Sock 9.Close socket [08:35:02]Sock 9.Thread stoped [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:36:58]accept exits with 7 [08:36:58]New connection [08:36:58]New thread 3067239780 created [08:36:58]Thread 3067383140 joined [08:36:58]Waiting for new connection... [08:36:58] Sock 7.Parse request [08:36:58]Sock 7.Check first char [08:36:58]Sock 7.First char is OK [08:36:58]request: POST /json_proto HTTP/1.0 [08:36:58]Method: POST [08:36:58]URL: /json_proto [08:36:58]Method is POST - this is cgi request [08:36:58]url: /json_proto [08:36:58]query_string will be loaded in cgi processing [08:36:58]execute_cgi json_proto POST (null) [08:36:58]execute_cgi path=json_proto method=POST [08:36:58]POST find Content-Length [08:36:58]Host: 172.17.45.7:8080 [08:36:58]Content-Length: 819 [08:36:58]Content-Type: application/json [08:36:58] [08:36:58]POST finish read [08:36:58]Found Content-Length = 819 [08:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:58]execute_script... [08:36:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:58]POST & json_proto [08:36:58]process_json_proto [08:36:58]json parsed OK: [08:36:58]protocol is kg_v1.0 [08:36:58]action value=close_receipt [08:36:58]process_action close_receipt [08:36:58]cmd_close_receipt [08:36:58]MH_GetDate [08:36:58]Write to MH i2c: F0 00 00 3B 9B C5 [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: F0 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: F0 09 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: F0 09 00 3B 9B 00 34 A6 A8 66 90 0F 3E 66 F9 [08:36:58]GetLastDocTimeStamp 1722328508 [08:36:58]current date 1722328628 [08:36:58]FM_GetShiftState [08:36:58]SAM_PROTO_GetShiftState [08:36:58]wFMCommunicate request_size=4 [08:36:58]MH_SAM_APDU [08:36:58]CAPDU: 80 13 01 00 [08:36:58]Write to MH i2c: E2 08 00 3C 9B 80 13 01 00 00 00 00 00 54 [08:36:58]Write i2c OK [08:36:58]MH_I2C_Read... [08:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:58]Read from MH i2c: E2 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 0E 00 [08:36:58]MH_I2C_Read... [08:36:58]Read from MH i2c: E2 0E 00 3C 9B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 1F [08:36:58]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:36:58]wFMCommunicate OK [08:36:58]SAM_PROTO_GetShiftState done [08:36:58]FM_GetShiftState done [08:36:58]opened in 1722298242 [08:36:58]opened+sec_in_day 1722384642 [08:36:58]quantity*price = 150037 [08:36:58]sum+1 = 150039 [08:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 49 30.07.2024 08:37 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118997 ФПД: 90902406912001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083708&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118997&fm=90902406912001&tin=02508201610067®Number=0000000000092660&sum=150000 [08:36:59]StoreToDocumentArchive [08:36:59]shift 435 fd 118997 [08:36:59]save to /storage/0435/doc_00118997 [08:36:59]save last doc name /storage/0435/doc_00118997 to /storage/kkm_last_doc_name [08:36:59]save OK [08:36:59]Clear old archive folders... [08:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:36:59]tlvbuf is 01EBDE40 [08:36:59]SAM_PROTO_ClearQueue [08:36:59]wFMCommunicate request_size=4 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 09 00 00 [08:36:59]Write to MH i2c: E2 08 00 49 9B 80 09 00 00 00 00 00 00 56 [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:59]Read from MH i2c: E2 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 49 9B 00 90 00 58 [08:36:59]RAPDU: 90 00 [08:36:59]wFMCommunicate OK [08:36:59]SAM_PROTO_ClearQueue done [08:36:59]KKMCreateOFDPacket [08:36:59]OFDProtocolAddRootSTLVToBuf [08:36:59]FM_MakeSignedData [08:36:59]FM_MakeSignedData [08:36:59]SAM_PROTO_SignData [08:36:59]wFMCommunicate request_size=4 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 0D 01 02 [08:36:59]Write to MH i2c: E2 08 00 4A 9B 80 0D 01 02 00 00 00 00 5E [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:59]Read from MH i2c: E2 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 [08:36:59]MH_I2C_Read... [08:36:59]Read from MH i2c: E2 03 00 4A 9B 00 90 00 59 [08:36:59]RAPDU: 90 00 [08:36:59]wFMCommunicate OK [08:36:59]wFMCommunicate request_size=255 [08:36:59]MH_SAM_APDU [08:36:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D0 01 00 35 04 06 00 52 AC DD AC [08:36:59]Write to MH i2c: E2 02 01 4B 9B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D0 01 00 35 04 06 00 52 AC DD AC 00 00 5F [08:36:59]Write i2c OK [08:36:59]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 03 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 03 00 4B 9B 00 90 00 5A [08:37:00]RAPDU: 90 00 [08:37:00]wFMCommunicate OK [08:37:00]wFMCommunicate request_size=7 [08:37:00]MH_SAM_APDU [08:37:00]CAPDU: 80 0D 02 02 02 58 01 [08:37:00]Write to MH i2c: E2 0A 00 4C 9B 80 0D 02 02 02 00 58 01 00 00 BE [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 03 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 03 00 4C 9B 00 90 00 5B [08:37:00]RAPDU: 90 00 [08:37:00]wFMCommunicate OK [08:37:00]wFMCommunicate request_size=4 [08:37:00]MH_SAM_APDU [08:37:00]CAPDU: 80 0D 03 02 [08:37:00]Write to MH i2c: E2 08 00 4D 9B 80 0D 03 02 00 00 00 00 63 [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 0B 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 0B 00 4D 9B 00 A2 E2 C8 9B 11 85 78 1F 90 00 78 [08:37:00]RAPDU: A2 E2 C8 9B 11 85 78 1F 90 00 [08:37:00]wFMCommunicate OK [08:37:00]SAM_PROTO_SignData done [08:37:00]FM_MakeSignedData done [08:37:00]CreateOFDProtocolMessage [08:37:00]wFMCommunicate request_size=4 [08:37:00]MH_SAM_APDU [08:37:00]CAPDU: 80 11 00 00 [08:37:00]Write to MH i2c: E2 08 00 4E 9B 80 11 00 00 00 00 00 00 63 [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:00]Read from MH i2c: E2 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 17 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: E2 17 00 4E 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BE [08:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:37:00]wFMCommunicate OK [08:37:00]CreateOFDProtocolMessage done [08:37:00]OFDSenderStorePacket 118997 [08:37:00]StoreOFDPacket docnum=118997 [08:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B5 88 04 01 3E 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D0 01 00 35 04 06 00 52 AC DD AC 58 01 A2 E2 C8 9B 11 85 78 1F [08:37:00]CheckFolder [08:37:00]dirname=/storage/ofd_packets [08:37:00]CheckFolder done [08:37:00]ProducePacketName [08:37:00]name=ofd_packets/00118997 [08:37:00]NVStorageSaveData ofd_packets/00118997 [08:37:00]File name is /storage/ofd_packets/00118997 [08:37:00]Write 298 bytes [08:37:00]NVStorageSaveData done [08:37:00]OFDSenderStorePacket done [08:37:00]KKMCreateOFDPacket done [08:37:00]NVStorageSaveData kkm_last_timestamp [08:37:00]File name is /storage/kkm_last_timestamp [08:37:00]Write 4 bytes [08:37:00]NVStorageSaveData done [08:37:00]ExternCall_PrintAddStr [08:37:00]wPrintStart [08:37:00]Write to MH i2c: 01 00 00 4F 9B EA [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 4F 9B 00 00 00 00 00 FF 0F FF [08:37:00]RasterBufferAndPrint [08:37:00]line Счет N : (1)949914 [08:37:00]line ИНН: 02508201610067 [08:37:00]line Контрольно-Кассовый Чек [08:37:00]line ПРОДАЖА [08:37:00]line ТРК (МРК, ГНК) : 21 [08:37:00]line Товар: 2710194800 [08:37:00]line ДТ-К-5 [08:37:00]line 19.690 * 76.20 [08:37:00]line = 1500.38 [08:37:00]line НДС 12% НСП 1% [08:37:00]line > о реализуемом товаре [08:37:00]line ОКРУГЛЕНИЕ: -0.38 [08:37:00]line ИТОГО: 1500.00 [08:37:00]line НСП 1% : 13.28 [08:37:00]line НДС 12% : 159.33 [08:37:00]line Наличными: 0.00 [08:37:00]line Безнал.: 1500.00 [08:37:00]line Место: АЗС № 134 "Партнер Нефть" [08:37:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:37:00]line СНО: Общий режим [08:37:00]line Чек 49 30.07.2024 08:37 [08:37:00]line Смена: 435 ФФД: 1.0 [08:37:00]line ЗНМ: 0300000044 [08:37:00]line РНМ: 0000000000092660 [08:37:00]line Версия ККМ: 001 [08:37:00]line Платежная система: O! деньги [08:37:00]line ФМ: 0000000000874939 [08:37:00]line ФД: 118997 [08:37:00]line ФПД: 90902406912001 [08:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083708&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118997&fm=90902406912001&tin=02508201610067®Number=0000000000092660&sum=150000 [08:37:00]OFD Sender: Processing packet 118997 [packets to send 86, broken 85] [08:37:00]ProducePacketName [08:37:00]name=ofd_packets/00118997 [08:37:00]OFD Sender: To server: pG, [08:37:00]CommunicateWithHost lk.salyk.kg:30040 [08:37:00]ConnectInit lk.salyk.kg [08:37:00]written 0, free lines is 4095 [08:37:00]Connected sock=10 [08:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B5 88 04 01 3E 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D0 01 00 35 04 06 00 52 AC DD AC 58 01 A2 E2 C8 9B 11 85 78 1F [08:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 2E 47 00 2C AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D0 01 00 F4 03 04 00 C0 53 A8 66 B6 04 01 00 00 63 B3 74 9A 07 B9 52 65 [08:37:00]CommunicateWithHost err = 0 [08:37:00]CheckOFDResponse [08:37:00]1017 (14) - 77093643461234 [08:37:00]1041 (16) - 0000000000874939 [08:37:00]1040 (4) - 118997 [08:37:00]1012 (4) - 30.07.2024 02:45 [08:37:00]1206 (1) - 0 [08:37:00]OFD Sender: Remove packet 118997 [08:37:00]ProducePacketName [08:37:00]name=ofd_packets/00118997 [08:37:00]NVStorageDeleteData [08:37:00]Write to MH i2c: 01 00 00 79 9B 14 [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: 01 07 00 79 9B 00 00 00 00 00 DC 0C 03 [08:37:00]RasterBufferAndPrint [08:37:00]line [08:37:00]line [08:37:00]line [08:37:00]line [08:37:00]line [08:37:00]written 0, free lines is 3299 [08:37:00]MH_Cut [08:37:00]Write to MH i2c: D1 01 00 80 9B 01 ED [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: D1 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: D1 01 00 [08:37:00]MH_I2C_Read... [08:37:00]Read from MH i2c: D1 01 00 80 9B 00 EC [08:37:00]Write to MH i2c: 01 00 00 81 9B 1C [08:37:00]Write i2c OK [08:37:00]MH_I2C_Read... [08:37:01]OFD Sender: No OFD packet to send [08:37:01]*** Cut start [08:37:01]*** Partial cut [08:37:01]*** CUTSNS_PIN = 1 [08:37:01]*** CUTSNS_PIN = 0 [08:37:01]*** Brake cut motor [08:37:02]Read from MH i2c: 01 [08:37:02]MH_I2C_Read... [08:37:02]*** Stop cut motor [08:37:02]*** Cut end [08:37:02]Read from MH i2c: 01 07 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: 01 07 00 81 9B 00 00 00 00 00 FF 0F 31 [08:37:02]process_action close_receipt done [08:37:02]requested_data is exist [08:37:02]produce_requested_data [08:37:02]requested_item fm.sn is exist - process it [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 11 00 00 [08:37:02]Write to MH i2c: E2 08 00 82 9B 80 11 00 00 00 00 00 00 97 [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 17 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 17 00 82 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [08:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:37:02]wFMCommunicate OK [08:37:02]requested_item fd.num is exist - process it [08:37:02]SAM_PROTO_GetFieldsCounters [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 13 00 00 [08:37:02]Write to MH i2c: E2 08 00 83 9B 80 13 00 00 00 00 00 00 9A [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 62 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 62 00 83 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [08:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:02]wFMCommunicate OK [08:37:02]SAM_PROTO_GetFieldsCounters done [08:37:02]requested_item shift.num is exist - process it [08:37:02]requested_item shift.opened is exist - process it [08:37:02]req_shift_opened [08:37:02]FM_GetShiftState [08:37:02]SAM_PROTO_GetShiftState [08:37:02]wFMCommunicate request_size=4 [08:37:02]MH_SAM_APDU [08:37:02]CAPDU: 80 13 01 00 [08:37:02]Write to MH i2c: E2 08 00 84 9B 80 13 01 00 00 00 00 00 9C [08:37:02]Write i2c OK [08:37:02]MH_I2C_Read... [08:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:02]Read from MH i2c: E2 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 0E 00 [08:37:02]MH_I2C_Read... [08:37:02]Read from MH i2c: E2 0E 00 84 9B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 67 [08:37:02]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:37:02]wFMCommunicate OK [08:37:02]SAM_PROTO_GetShiftState done [08:37:02]FM_GetShiftState done [08:37:02]req_shift_opened done [08:37:02]requested_item shift.open_date is exist - process it [08:37:02]req_shift_open_date [08:37:02]req_shift_open_date done [08:37:02]produce_requested_data done [08:37:02]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118997,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:37:02]process_action_free close_receipt [08:37:02]json_value_free [08:37:02]json_value_free done [08:37:02]process_json_proto returns [08:37:02]Send response to host [08:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118997,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:37:02]free response buf [08:37:02]execute_script done [08:37:02]execute_script returns [08:37:02]free content buf [08:37:02]Sock 7.Close socket [08:37:02]Sock 7.Thread stoped [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:07]accept exits with 9 [08:39:07]New connection [08:39:07]New thread 3067383140 created [08:39:07]Thread 3067239780 joined [08:39:07]Waiting for new connection... [08:39:07] Sock 9.Parse request [08:39:07]Sock 9.Check first char [08:39:07]Sock 9.First char is OK [08:39:07]request: POST /json_proto HTTP/1.0 [08:39:07]Method: POST [08:39:07]URL: /json_proto [08:39:07]Method is POST - this is cgi request [08:39:07]url: /json_proto [08:39:07]query_string will be loaded in cgi processing [08:39:07]execute_cgi json_proto POST (null) [08:39:07]execute_cgi path=json_proto method=POST [08:39:07]POST find Content-Length [08:39:07]Host: 172.17.45.7:8080 [08:39:07]Content-Length: 642 [08:39:07]Content-Type: application/json [08:39:07] [08:39:07]POST finish read [08:39:07]Found Content-Length = 642 [08:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 30.000, "sum" : 2226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2226.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:07]execute_script... [08:39: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)949916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 30.000, "sum" : 2226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2226.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:39:07]POST & json_proto [08:39:07]process_json_proto [08:39:07]json parsed OK: [08:39:07]protocol is kg_v1.0 [08:39:07]action value=close_receipt [08:39:07]process_action close_receipt [08:39:07]cmd_close_receipt [08:39:07]MH_GetDate [08:39:07]Write to MH i2c: F0 00 00 85 9B 0F [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: F0 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: F0 09 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: F0 09 00 85 9B 00 B5 A6 A8 66 90 0F 3E 66 C4 [08:39:07]GetLastDocTimeStamp 1722328628 [08:39:07]current date 1722328757 [08:39:07]FM_GetShiftState [08:39:07]SAM_PROTO_GetShiftState [08:39:07]wFMCommunicate request_size=4 [08:39:07]MH_SAM_APDU [08:39:07]CAPDU: 80 13 01 00 [08:39:07]Write to MH i2c: E2 08 00 86 9B 80 13 01 00 00 00 00 00 9E [08:39:07]Write i2c OK [08:39:07]MH_I2C_Read... [08:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:07]Read from MH i2c: E2 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: E2 0E 00 [08:39:07]MH_I2C_Read... [08:39:07]Read from MH i2c: E2 0E 00 86 9B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 69 [08:39:07]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:39:07]wFMCommunicate OK [08:39:07]SAM_PROTO_GetShiftState done [08:39:07]FM_GetShiftState done [08:39:07]opened in 1722298242 [08:39:07]opened+sec_in_day 1722384642 [08:39:07]quantity*price = 222600 [08:39:07]sum+1 = 222601 [08:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2226.00 НСП 1% : 19.70 НДС 12% : 236.39 Наличными: 2226.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 50 30.07.2024 08:39 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 118998 ФПД: 185041748579364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118998&fm=185041748579364&tin=02508201610067®Number=0000000000092660&sum=222600 [08:39:09]StoreToDocumentArchive [08:39:09]shift 435 fd 118998 [08:39:09]save to /storage/0435/doc_00118998 [08:39:09]save last doc name /storage/0435/doc_00118998 to /storage/kkm_last_doc_name [08:39:09]save OK [08:39:09]Clear old archive folders... [08:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:39:09]tlvbuf is B6E11780 [08:39:09]SAM_PROTO_ClearQueue [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 09 00 00 [08:39:09]Write to MH i2c: E2 08 00 93 9B 80 09 00 00 00 00 00 00 A0 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 93 9B 00 90 00 A2 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]SAM_PROTO_ClearQueue done [08:39:09]KKMCreateOFDPacket [08:39:09]OFDProtocolAddRootSTLVToBuf [08:39:09]FM_MakeSignedData [08:39:09]FM_MakeSignedData [08:39:09]SAM_PROTO_SignData [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 01 02 [08:39:09]Write to MH i2c: E2 08 00 94 9B 80 0D 01 02 00 00 00 00 A8 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 94 9B 00 90 00 A3 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]wFMCommunicate request_size=255 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 88 65 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 65 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 5C 00 00 00 00 07 04 06 00 88 65 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B5 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D0 01 00 35 04 06 00 A8 [08:39:09]Write to MH i2c: E2 02 01 95 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 88 65 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 65 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 5C 00 00 00 00 07 04 06 00 88 65 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B5 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D0 01 00 35 04 06 00 A8 00 00 51 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 95 9B 00 90 00 A4 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]wFMCommunicate request_size=10 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 02 02 05 4B 63 B1 54 24 [08:39:09]Write to MH i2c: E2 0D 00 96 9B 80 0D 02 02 05 00 4B 63 B1 54 24 00 00 8C [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 03 00 96 9B 00 90 00 A5 [08:39:09]RAPDU: 90 00 [08:39:09]wFMCommunicate OK [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 0D 03 02 [08:39:09]Write to MH i2c: E2 08 00 97 9B 80 0D 03 02 00 00 00 00 AD [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 0B 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 0B 00 97 9B 00 D1 3D 65 4D 6B 84 06 CA 90 00 2D [08:39:09]RAPDU: D1 3D 65 4D 6B 84 06 CA 90 00 [08:39:09]wFMCommunicate OK [08:39:09]SAM_PROTO_SignData done [08:39:09]FM_MakeSignedData done [08:39:09]CreateOFDProtocolMessage [08:39:09]wFMCommunicate request_size=4 [08:39:09]MH_SAM_APDU [08:39:09]CAPDU: 80 11 00 00 [08:39:09]Write to MH i2c: E2 08 00 98 9B 80 11 00 00 00 00 00 00 AD [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:09]Read from MH i2c: E2 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 17 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: E2 17 00 98 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [08:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:39:09]wFMCommunicate OK [08:39:09]CreateOFDProtocolMessage done [08:39:09]OFDSenderStorePacket 118998 [08:39:09]StoreOFDPacket docnum=118998 [08:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 4F 07 01 95 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 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 88 65 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 65 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 5C 00 00 00 00 07 04 06 00 88 65 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B5 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D0 01 00 35 04 06 00 A8 4B 63 B1 54 24 D1 3D 65 4D 6B 84 06 CA [08:39:09]CheckFolder [08:39:09]dirname=/storage/ofd_packets [08:39:09]CheckFolder done [08:39:09]ProducePacketName [08:39:09]name=ofd_packets/00118998 [08:39:09]NVStorageSaveData ofd_packets/00118998 [08:39:09]File name is /storage/ofd_packets/00118998 [08:39:09]Write 301 bytes [08:39:09]NVStorageSaveData done [08:39:09]OFDSenderStorePacket done [08:39:09]KKMCreateOFDPacket done [08:39:09]NVStorageSaveData kkm_last_timestamp [08:39:09]File name is /storage/kkm_last_timestamp [08:39:09]Write 4 bytes [08:39:09]NVStorageSaveData done [08:39:09]ExternCall_PrintAddStr [08:39:09]wPrintStart [08:39:09]Write to MH i2c: 01 00 00 99 9B 34 [08:39:09]Write i2c OK [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: 01 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: 01 07 00 [08:39:09]MH_I2C_Read... [08:39:09]Read from MH i2c: 01 07 00 99 9B 00 00 00 00 00 FF 0F 49 [08:39:09]RasterBufferAndPrint [08:39:09]line Счет N : (1)949916 [08:39:09]line ИНН: 02508201610067 [08:39:09]line Контрольно-Кассовый Чек [08:39:09]line ПРОДАЖА [08:39:09]line ТРК (МРК, ГНК) : 63 [08:39:09]line Товар: 2710124500 [08:39:09]line Аи-95-К-3 [08:39:09]line 30.000 * 74.20 [08:39:09]line = 2226.00 [08:39:09]line НДС 12% НСП 1% [08:39:09]line > о реализуемом товаре [08:39:09]line ИТОГО: 2226.00 [08:39:09]line НСП 1% : 19.70 [08:39:09]line НДС 12% : 236.39 [08:39:09]line Наличными: 2226.00 [08:39:09]line Безнал.: 0.00 [08:39:09]line Место: АЗС № 134 "Партнер Нефть" [08:39:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:39:09]line СНО: Общий режим [08:39:09]line Чек 50 30.07.2024 08:39 [08:39:09]line Смена: 435 ФФД: 1.0 [08:39:09]line ЗНМ: 0300000044 [08:39:09]line РНМ: 0000000000092660 [08:39:09]line Версия ККМ: 001 [08:39:09]line ФМ: 0000000000874939 [08:39:09]line ФД: 118998 [08:39:09]line ФПД: 185041748579364 [08:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T083917&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118998&fm=185041748579364&tin=02508201610067®Number=0000000000092660&sum=222600 [08:39:09]written 0, free lines is 4095 [08:39:09]OFD Sender: Processing packet 118998 [packets to send 86, broken 85] [08:39:09]ProducePacketName [08:39:09]name=ofd_packets/00118998 [08:39:09]OFD Sender: To server: pG, [08:39:09]CommunicateWithHost lk.salyk.kg:30040 [08:39:09]ConnectInit lk.salyk.kg [08:39:10]Connected sock=10 [08:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 4F 07 01 95 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 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 88 65 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 65 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 5C 00 00 00 00 07 04 06 00 88 65 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 B5 A6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D0 01 00 35 04 06 00 A8 4B 63 B1 54 24 D1 3D 65 4D 6B 84 06 CA [08:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 92 47 00 85 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D0 01 00 F4 03 04 00 41 54 A8 66 B6 04 01 00 00 42 A0 DF B7 62 77 85 51 [08:39:10]CommunicateWithHost err = 0 [08:39:10]CheckOFDResponse [08:39:10]1017 (14) - 77093643461234 [08:39:10]1041 (16) - 0000000000874939 [08:39:10]1040 (4) - 118998 [08:39:10]1012 (4) - 30.07.2024 02:47 [08:39:10]1206 (1) - 0 [08:39:10]OFD Sender: Remove packet 118998 [08:39:10]ProducePacketName [08:39:10]name=ofd_packets/00118998 [08:39:10]NVStorageDeleteData [08:39:10]Write to MH i2c: 01 00 00 C0 9B 5B [08:39:10]Write i2c OK [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: 01 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: 01 07 00 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: 01 07 00 C0 9B 00 00 00 00 00 07 0D 76 [08:39:10]RasterBufferAndPrint [08:39:10]line [08:39:10]line [08:39:10]line [08:39:10]line [08:39:10]line [08:39:10]written 0, free lines is 3343 [08:39:10]MH_Cut [08:39:10]Write to MH i2c: D1 01 00 C7 9B 01 34 [08:39:10]Write i2c OK [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: D1 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: D1 01 00 [08:39:10]MH_I2C_Read... [08:39:10]Read from MH i2c: D1 01 00 C7 9B 00 33 [08:39:10]Write to MH i2c: 01 00 00 C8 9B 63 [08:39:10]Write i2c OK [08:39:10]MH_I2C_Read... [08:39:10]OFD Sender: No OFD packet to send [08:39:11]*** Cut start [08:39:11]*** Partial cut [08:39:11]*** CUTSNS_PIN = 1 [08:39:11]*** CUTSNS_PIN = 0 [08:39:11]*** Brake cut motor [08:39:11]Read from MH i2c: 01 [08:39:11]MH_I2C_Read... [08:39:11]*** Stop cut motor [08:39:11]*** Cut end [08:39:11]Read from MH i2c: 01 07 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: 01 07 00 C8 9B 00 00 00 00 00 FF 0F 78 [08:39:11]process_action close_receipt done [08:39:11]requested_data is exist [08:39:11]produce_requested_data [08:39:11]requested_item fm.sn is exist - process it [08:39:11]wFMCommunicate request_size=4 [08:39:11]MH_SAM_APDU [08:39:11]CAPDU: 80 11 00 00 [08:39:11]Write to MH i2c: E2 08 00 C9 9B 80 11 00 00 00 00 00 00 DE [08:39:11]Write i2c OK [08:39:11]MH_I2C_Read... [08:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:11]Read from MH i2c: E2 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 17 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 17 00 C9 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [08:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:39:11]wFMCommunicate OK [08:39:11]requested_item fd.num is exist - process it [08:39:11]SAM_PROTO_GetFieldsCounters [08:39:11]wFMCommunicate request_size=4 [08:39:11]MH_SAM_APDU [08:39:11]CAPDU: 80 13 00 00 [08:39:11]Write to MH i2c: E2 08 00 CA 9B 80 13 00 00 00 00 00 00 E1 [08:39:11]Write i2c OK [08:39:11]MH_I2C_Read... [08:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:11]Read from MH i2c: E2 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 62 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 62 00 CA 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [08:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:11]wFMCommunicate OK [08:39:11]SAM_PROTO_GetFieldsCounters done [08:39:11]requested_item shift.num is exist - process it [08:39:11]requested_item shift.opened is exist - process it [08:39:11]req_shift_opened [08:39:11]FM_GetShiftState [08:39:11]SAM_PROTO_GetShiftState [08:39:11]wFMCommunicate request_size=4 [08:39:11]MH_SAM_APDU [08:39:11]CAPDU: 80 13 01 00 [08:39:11]Write to MH i2c: E2 08 00 CB 9B 80 13 01 00 00 00 00 00 E3 [08:39:11]Write i2c OK [08:39:11]MH_I2C_Read... [08:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:11]Read from MH i2c: E2 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 0E 00 [08:39:11]MH_I2C_Read... [08:39:11]Read from MH i2c: E2 0E 00 CB 9B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AE [08:39:11]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:39:11]wFMCommunicate OK [08:39:11]SAM_PROTO_GetShiftState done [08:39:11]FM_GetShiftState done [08:39:11]req_shift_opened done [08:39:11]requested_item shift.open_date is exist - process it [08:39:11]req_shift_open_date [08:39:11]req_shift_open_date done [08:39:11]produce_requested_data done [08:39:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118998,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:39:11]process_action_free close_receipt [08:39:11]json_value_free [08:39:11]json_value_free done [08:39:11]process_json_proto returns [08:39:11]Send response to host [08:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118998,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:39:11]free response buf [08:39:11]execute_script done [08:39:11]execute_script returns [08:39:11]free content buf [08:39:11]Sock 9.Close socket [08:39:11]Sock 9.Thread stoped [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]accept exits with 7 [08:41:20]New connection [08:41:20]New thread 3067239780 created [08:41:20]Thread 3067383140 joined [08:41:20]Waiting for new connection... [08:41:20] Sock 7.Parse request [08:41:20]Sock 7.Check first char [08:41:20]Sock 7.First char is OK [08:41:20]request: POST /json_proto HTTP/1.0 [08:41:20]Method: POST [08:41:20]URL: /json_proto [08:41:20]Method is POST - this is cgi request [08:41:20]url: /json_proto [08:41:20]query_string will be loaded in cgi processing [08:41:20]execute_cgi json_proto POST (null) [08:41:20]execute_cgi path=json_proto method=POST [08:41:20]POST find Content-Length [08:41:20]Host: 172.17.45.7:8080 [08:41:20]Content-Length: 819 [08:41:20]Content-Type: application/json [08:41:20] [08:41:20]POST finish read [08:41:20]Found Content-Length = 819 [08:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:20]execute_script... [08:41: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)949915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:41:20]POST & json_proto [08:41:20]process_json_proto [08:41:20]json parsed OK: [08:41:20]protocol is kg_v1.0 [08:41:20]action value=close_receipt [08:41:20]process_action close_receipt [08:41:20]cmd_close_receipt [08:41:20]MH_GetDate [08:41:20]Write to MH i2c: F0 00 00 CC 9B 56 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: F0 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: F0 09 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: F0 09 00 CC 9B 00 39 A7 A8 66 90 0F 3E 66 90 [08:41:20]GetLastDocTimeStamp 1722328757 [08:41:20]current date 1722328889 [08:41:20]FM_GetShiftState [08:41:20]SAM_PROTO_GetShiftState [08:41:20]wFMCommunicate request_size=4 [08:41:20]MH_SAM_APDU [08:41:20]CAPDU: 80 13 01 00 [08:41:20]Write to MH i2c: E2 08 00 CD 9B 80 13 01 00 00 00 00 00 E5 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:20]Read from MH i2c: E2 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 0E 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: E2 0E 00 CD 9B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B0 [08:41:20]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:41:20]wFMCommunicate OK [08:41:20]SAM_PROTO_GetShiftState done [08:41:20]FM_GetShiftState done [08:41:20]opened in 1722298242 [08:41:20]opened+sec_in_day 1722384642 [08:41:20]quantity*price = 200025 [08:41:20]sum+1 = 200026 [08:41:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 51 30.07.2024 08:41 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 118999 ФПД: 113597905186813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118999&fm=113597905186813&tin=02508201610067®Number=0000000000092660&sum=200000 [08:41:21]StoreToDocumentArchive [08:41:21]shift 435 fd 118999 [08:41:21]save to /storage/0435/doc_00118999 [08:41:21]save last doc name /storage/0435/doc_00118999 to /storage/kkm_last_doc_name [08:41:21]save OK [08:41:21]Clear old archive folders... [08:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:41:21]tlvbuf is 01EA9490 [08:41:21]SAM_PROTO_ClearQueue [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 09 00 00 [08:41:21]Write to MH i2c: E2 08 00 DA 9B 80 09 00 00 00 00 00 00 E7 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 DA 9B 00 90 00 E9 [08:41:21]RAPDU: 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_ClearQueue done [08:41:21]KKMCreateOFDPacket [08:41:21]OFDProtocolAddRootSTLVToBuf [08:41:21]FM_MakeSignedData [08:41:21]FM_MakeSignedData [08:41:21]SAM_PROTO_SignData [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 0D 01 02 [08:41:21]Write to MH i2c: E2 08 00 DB 9B 80 0D 01 02 00 00 00 00 EF [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 DB 9B 00 90 00 EA [08:41:21]RAPDU: 90 00 [08:41:21]wFMCommunicate OK [08:41:21]wFMCommunicate request_size=255 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D0 01 00 35 04 06 00 67 51 12 C9 [08:41:21]Write to MH i2c: E2 02 01 DC 9B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D0 01 00 35 04 06 00 67 51 12 C9 00 00 7D [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 DC 9B 00 90 00 EB [08:41:21]RAPDU: 90 00 [08:41:21]wFMCommunicate OK [08:41:21]wFMCommunicate request_size=7 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 0D 02 02 02 2F FD [08:41:21]Write to MH i2c: E2 0A 00 DD 9B 80 0D 02 02 02 00 2F FD 00 00 22 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 03 00 DD 9B 00 90 00 EC [08:41:21]RAPDU: 90 00 [08:41:21]wFMCommunicate OK [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 0D 03 02 [08:41:21]Write to MH i2c: E2 08 00 DE 9B 80 0D 03 02 00 00 00 00 F4 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0B 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0B 00 DE 9B 00 C5 96 FC 22 82 3C 46 A5 90 00 17 [08:41:21]RAPDU: C5 96 FC 22 82 3C 46 A5 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_SignData done [08:41:21]FM_MakeSignedData done [08:41:21]CreateOFDProtocolMessage [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 11 00 00 [08:41:21]Write to MH i2c: E2 08 00 DF 9B 80 11 00 00 00 00 00 00 F4 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 17 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 17 00 DF 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [08:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:41:21]wFMCommunicate OK [08:41:21]CreateOFDProtocolMessage done [08:41:21]OFDSenderStorePacket 118999 [08:41:21]StoreOFDPacket docnum=118999 [08:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8D 08 04 01 42 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D0 01 00 35 04 06 00 67 51 12 C9 2F FD C5 96 FC 22 82 3C 46 A5 [08:41:21]CheckFolder [08:41:21]dirname=/storage/ofd_packets [08:41:21]CheckFolder done [08:41:21]ProducePacketName [08:41:21]name=ofd_packets/00118999 [08:41:21]NVStorageSaveData ofd_packets/00118999 [08:41:21]File name is /storage/ofd_packets/00118999 [08:41:21]Write 298 bytes [08:41:21]NVStorageSaveData done [08:41:21]OFDSenderStorePacket done [08:41:21]KKMCreateOFDPacket done [08:41:21]NVStorageSaveData kkm_last_timestamp [08:41:21]File name is /storage/kkm_last_timestamp [08:41:21]Write 4 bytes [08:41:21]NVStorageSaveData done [08:41:21]ExternCall_PrintAddStr [08:41:21]wPrintStart [08:41:21]Write to MH i2c: 01 00 00 E0 9B 7B [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 07 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 07 00 E0 9B 00 00 00 00 00 FF 0F 90 [08:41:21]RasterBufferAndPrint [08:41:21]line Счет N : (1)949915 [08:41:21]line ИНН: 02508201610067 [08:41:21]line Контрольно-Кассовый Чек [08:41:21]line ПРОДАЖА [08:41:21]line ТРК (МРК, ГНК) : 44 [08:41:21]line Товар: 2710194800 [08:41:21]line ДТ-К-5 [08:41:21]line 26.250 * 76.20 [08:41:21]line = 2000.25 [08:41:21]line НДС 12% НСП 1% [08:41:21]line > о реализуемом товаре [08:41:21]line ОКРУГЛЕНИЕ: -0.25 [08:41:21]line ИТОГО: 2000.00 [08:41:21]line НСП 1% : 17.70 [08:41:21]line НДС 12% : 212.42 [08:41:21]line Наличными: 0.00 [08:41:21]line Безнал.: 2000.00 [08:41:21]line Место: АЗС № 134 "Партнер Нефть" [08:41:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:41:21]line СНО: Общий режим [08:41:21]line Чек 51 30.07.2024 08:41 [08:41:21]line Смена: 435 ФФД: 1.0 [08:41:21]line ЗНМ: 0300000044 [08:41:21]line РНМ: 0000000000092660 [08:41:21]line Версия ККМ: 001 [08:41:21]line Платежная система: O! деньги [08:41:21]line ФМ: 0000000000874939 [08:41:21]line ФД: 118999 [08:41:21]line ФПД: 113597905186813 [08:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084129&type=1&operation_type=1&fn_number=0000000000874939&fd_number=118999&fm=113597905186813&tin=02508201610067®Number=0000000000092660&sum=200000 [08:41:22]OFD Sender: Processing packet 118999 [packets to send 86, broken 85] [08:41:22]ProducePacketName [08:41:22]name=ofd_packets/00118999 [08:41:22]OFD Sender: To server: pG, [08:41:22]CommunicateWithHost lk.salyk.kg:30040 [08:41:22]ConnectInit lk.salyk.kg [08:41:22]written 0, free lines is 4095 [08:41:22]Connected sock=10 [08:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 8D 08 04 01 42 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 39 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D0 01 00 35 04 06 00 67 51 12 C9 2F FD C5 96 FC 22 82 3C 46 A5 [08:41:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2B 1A 47 00 17 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 34 39 33 39 10 04 04 00 D7 D0 01 00 F4 03 04 00 C5 54 A8 66 B6 04 01 00 00 4E 62 CA B9 02 1D 6E E0 [08:41:22]CommunicateWithHost err = 0 [08:41:22]CheckOFDResponse [08:41:22]1017 (14) - 77093643461234 [08:41:22]1041 (16) - 0000000000874939 [08:41:22]1040 (4) - 118999 [08:41:22]1012 (4) - 30.07.2024 02:49 [08:41:22]1206 (1) - 0 [08:41:22]OFD Sender: Remove packet 118999 [08:41:22]ProducePacketName [08:41:22]name=ofd_packets/00118999 [08:41:22]NVStorageDeleteData [08:41:22]Write to MH i2c: 01 00 00 0A 9C A6 [08:41:22]Write i2c OK [08:41:22]MH_I2C_Read... [08:41:22]Read from MH i2c: 01 [08:41:22]MH_I2C_Read... [08:41:22]Read from MH i2c: 01 07 00 [08:41:22]MH_I2C_Read... [08:41:22]Read from MH i2c: 01 07 00 0A 9C 00 00 00 00 00 D2 0C 8B [08:41:22]RasterBufferAndPrint [08:41:22]line [08:41:22]line [08:41:22]line [08:41:22]line [08:41:22]line [08:41:22]written 0, free lines is 3288 [08:41:22]MH_Cut [08:41:22]Write to MH i2c: D1 01 00 11 9C 01 7F [08:41:22]Write i2c OK [08:41:22]MH_I2C_Read... [08:41:22]Read from MH i2c: D1 [08:41:22]MH_I2C_Read... [08:41:22]Read from MH i2c: D1 01 00 [08:41:22]MH_I2C_Read... [08:41:22]Read from MH i2c: D1 01 00 11 9C 00 7E [08:41:22]Write to MH i2c: 01 00 00 12 9C AE [08:41:22]Write i2c OK [08:41:22]MH_I2C_Read... [08:41:22]OFD Sender: No OFD packet to send [08:41:23]*** Cut start [08:41:23]*** Partial cut [08:41:23]*** CUTSNS_PIN = 1 [08:41:23]*** CUTSNS_PIN = 0 [08:41:23]*** Brake cut motor [08:41:23]Read from MH i2c: 01 [08:41:23]MH_I2C_Read... [08:41:23]*** Stop cut motor [08:41:23]*** Cut end [08:41:23]Read from MH i2c: 01 07 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: 01 07 00 12 9C 00 00 00 00 00 FF 0F C3 [08:41:23]process_action close_receipt done [08:41:23]requested_data is exist [08:41:23]produce_requested_data [08:41:23]requested_item fm.sn is exist - process it [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 11 00 00 [08:41:23]Write to MH i2c: E2 08 00 13 9C 80 11 00 00 00 00 00 00 29 [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:23]Read from MH i2c: E2 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 17 00 [08:41:23]MH_I2C_Read... [08:41:23]Read from MH i2c: E2 17 00 13 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 84 [08:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:41:23]wFMCommunicate OK [08:41:23]requested_item fd.num is exist - process it [08:41:23]SAM_PROTO_GetFieldsCounters [08:41:23]wFMCommunicate request_size=4 [08:41:23]MH_SAM_APDU [08:41:23]CAPDU: 80 13 00 00 [08:41:23]Write to MH i2c: E2 08 00 14 9C 80 13 00 00 00 00 00 00 2C [08:41:23]Write i2c OK [08:41:23]MH_I2C_Read... [08:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:24]Read from MH i2c: E2 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: E2 62 00 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: E2 62 00 14 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [08:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:24]wFMCommunicate OK [08:41:24]SAM_PROTO_GetFieldsCounters done [08:41:24]requested_item shift.num is exist - process it [08:41:24]requested_item shift.opened is exist - process it [08:41:24]req_shift_opened [08:41:24]FM_GetShiftState [08:41:24]SAM_PROTO_GetShiftState [08:41:24]wFMCommunicate request_size=4 [08:41:24]MH_SAM_APDU [08:41:24]CAPDU: 80 13 01 00 [08:41:24]Write to MH i2c: E2 08 00 15 9C 80 13 01 00 00 00 00 00 2E [08:41:24]Write i2c OK [08:41:24]MH_I2C_Read... [08:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:24]Read from MH i2c: E2 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: E2 0E 00 [08:41:24]MH_I2C_Read... [08:41:24]Read from MH i2c: E2 0E 00 15 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F9 [08:41:24]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:41:24]wFMCommunicate OK [08:41:24]SAM_PROTO_GetShiftState done [08:41:24]FM_GetShiftState done [08:41:24]req_shift_opened done [08:41:24]requested_item shift.open_date is exist - process it [08:41:24]req_shift_open_date [08:41:24]req_shift_open_date done [08:41:24]produce_requested_data done [08:41:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":118999,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:41:24]process_action_free close_receipt [08:41:24]json_value_free [08:41:24]json_value_free done [08:41:24]process_json_proto returns [08:41:24]Send response to host [08:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":118999,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:41:24]free response buf [08:41:24]execute_script done [08:41:24]execute_script returns [08:41:24]free content buf [08:41:24]Sock 7.Close socket [08:41:24]Sock 7.Thread stoped [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:35]accept exits with 9 [08:41:35]New connection [08:41:35]New thread 3067383140 created [08:41:35]Thread 3067239780 joined [08:41:35]Waiting for new connection... [08:41:35] Sock 9.Parse request [08:41:35]Sock 9.Check first char [08:41:35]Sock 9.First char is OK [08:41:35]request: POST /json_proto HTTP/1.0 [08:41:35]Method: POST [08:41:35]URL: /json_proto [08:41:35]Method is POST - this is cgi request [08:41:35]url: /json_proto [08:41:35]query_string will be loaded in cgi processing [08:41:35]execute_cgi json_proto POST (null) [08:41:35]execute_cgi path=json_proto method=POST [08:41:35]POST find Content-Length [08:41:35]Host: 172.17.45.7:8080 [08:41:35]Content-Length: 682 [08:41:35]Content-Type: application/json [08:41:35] [08:41:35]POST finish read [08:41:35]Found Content-Length = 682 [08:41:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:41:35]execute_script... [08:41: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)949918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:41:35]POST & json_proto [08:41:35]process_json_proto [08:41:35]json parsed OK: [08:41:35]protocol is kg_v1.0 [08:41:35]action value=close_receipt [08:41:35]process_action close_receipt [08:41:35]cmd_close_receipt [08:41:35]MH_GetDate [08:41:35]Write to MH i2c: F0 00 00 16 9C A1 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: F0 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: F0 09 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: F0 09 00 16 9C 00 49 A7 A8 66 90 0F 3E 66 EB [08:41:35]GetLastDocTimeStamp 1722328889 [08:41:35]current date 1722328905 [08:41:35]FM_GetShiftState [08:41:35]SAM_PROTO_GetShiftState [08:41:35]wFMCommunicate request_size=4 [08:41:35]MH_SAM_APDU [08:41:35]CAPDU: 80 13 01 00 [08:41:35]Write to MH i2c: E2 08 00 17 9C 80 13 01 00 00 00 00 00 30 [08:41:35]Write i2c OK [08:41:35]MH_I2C_Read... [08:41:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:35]Read from MH i2c: E2 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0E 00 [08:41:35]MH_I2C_Read... [08:41:35]Read from MH i2c: E2 0E 00 17 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 FB [08:41:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:41:35]wFMCommunicate OK [08:41:35]SAM_PROTO_GetShiftState done [08:41:35]FM_GetShiftState done [08:41:35]opened in 1722298242 [08:41:35]opened+sec_in_day 1722384642 [08:41:35]quantity*price = 100005 [08:41:35]sum+1 = 100006 [08:41:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 52 30.07.2024 08:41 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119000 ФПД: 48627179174764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084145&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119000&fm=48627179174764&tin=02508201610067®Number=0000000000092660&sum=100000 [08:41:36]StoreToDocumentArchive [08:41:36]shift 435 fd 119000 [08:41:36]save to /storage/0435/doc_00119000 [08:41:36]save last doc name /storage/0435/doc_00119000 to /storage/kkm_last_doc_name [08:41:36]save OK [08:41:36]Clear old archive folders... [08:41:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:36]tlvbuf is 021C0620 [08:41:36]SAM_PROTO_ClearQueue [08:41:36]wFMCommunicate request_size=4 [08:41:36]MH_SAM_APDU [08:41:36]CAPDU: 80 09 00 00 [08:41:36]Write to MH i2c: E2 08 00 24 9C 80 09 00 00 00 00 00 00 32 [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:36]Read from MH i2c: E2 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: E2 03 00 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: E2 03 00 24 9C 00 90 00 34 [08:41:36]RAPDU: 90 00 [08:41:36]wFMCommunicate OK [08:41:36]SAM_PROTO_ClearQueue done [08:41:36]KKMCreateOFDPacket [08:41:36]OFDProtocolAddRootSTLVToBuf [08:41:36]FM_MakeSignedData [08:41:36]FM_MakeSignedData [08:41:36]SAM_PROTO_SignData [08:41:36]wFMCommunicate request_size=4 [08:41:36]MH_SAM_APDU [08:41:36]CAPDU: 80 0D 01 02 [08:41:36]Write to MH i2c: E2 08 00 25 9C 80 0D 01 02 00 00 00 00 3A [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:36]Read from MH i2c: E2 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: E2 03 00 [08:41:36]MH_I2C_Read... [08:41:36]Read from MH i2c: E2 03 00 25 9C 00 90 00 35 [08:41:36]RAPDU: 90 00 [08:41:36]wFMCommunicate OK [08:41:36]wFMCommunicate request_size=255 [08:41:36]MH_SAM_APDU [08:41: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 49 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D0 01 00 35 04 06 00 2C [08:41:36]Write to MH i2c: E2 02 01 26 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 49 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D0 01 00 35 04 06 00 2C 00 00 08 [08:41:36]Write i2c OK [08:41:36]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 03 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 03 00 26 9C 00 90 00 36 [08:41:37]RAPDU: 90 00 [08:41:37]wFMCommunicate OK [08:41:37]wFMCommunicate request_size=10 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 0D 02 02 05 39 E5 BD BB 6C [08:41:37]Write to MH i2c: E2 0D 00 27 9C 80 0D 02 02 05 00 39 E5 BD BB 6C 00 00 49 [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 03 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 03 00 27 9C 00 90 00 37 [08:41:37]RAPDU: 90 00 [08:41:37]wFMCommunicate OK [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 0D 03 02 [08:41:37]Write to MH i2c: E2 08 00 28 9C 80 0D 03 02 00 00 00 00 3F [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 0B 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 0B 00 28 9C 00 22 52 9A 81 F9 8C 11 E0 90 00 45 [08:41:37]RAPDU: 22 52 9A 81 F9 8C 11 E0 90 00 [08:41:37]wFMCommunicate OK [08:41:37]SAM_PROTO_SignData done [08:41:37]FM_MakeSignedData done [08:41:37]CreateOFDProtocolMessage [08:41:37]wFMCommunicate request_size=4 [08:41:37]MH_SAM_APDU [08:41:37]CAPDU: 80 11 00 00 [08:41:37]Write to MH i2c: E2 08 00 29 9C 80 11 00 00 00 00 00 00 3F [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:37]Read from MH i2c: E2 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 17 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: E2 17 00 29 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [08:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:41:37]wFMCommunicate OK [08:41:37]CreateOFDProtocolMessage done [08:41:37]OFDSenderStorePacket 119000 [08:41:37]StoreOFDPacket docnum=119000 [08:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5F 02 07 01 47 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 49 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D0 01 00 35 04 06 00 2C 39 E5 BD BB 6C 22 52 9A 81 F9 8C 11 E0 [08:41:37]CheckFolder [08:41:37]dirname=/storage/ofd_packets [08:41:37]CheckFolder done [08:41:37]ProducePacketName [08:41:37]name=ofd_packets/00119000 [08:41:37]NVStorageSaveData ofd_packets/00119000 [08:41:37]File name is /storage/ofd_packets/00119000 [08:41:37]Write 301 bytes [08:41:37]NVStorageSaveData done [08:41:37]OFDSenderStorePacket done [08:41:37]KKMCreateOFDPacket done [08:41:37]NVStorageSaveData kkm_last_timestamp [08:41:37]File name is /storage/kkm_last_timestamp [08:41:37]Write 4 bytes [08:41:37]NVStorageSaveData done [08:41:37]ExternCall_PrintAddStr [08:41:37]wPrintStart [08:41:37]Write to MH i2c: 01 00 00 2A 9C C6 [08:41:37]Write i2c OK [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: 01 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: 01 07 00 [08:41:37]MH_I2C_Read... [08:41:37]Read from MH i2c: 01 07 00 2A 9C 00 00 00 00 00 FF 0F DB [08:41:37]RasterBufferAndPrint [08:41:37]line Счет N : (1)949918 [08:41:37]line ИНН: 02508201610067 [08:41:37]line Контрольно-Кассовый Чек [08:41:37]line ПРОДАЖА [08:41:37]line ТРК (МРК, ГНК) : 51 [08:41:37]line Товар: 2710124130 [08:41:37]line Аи-92-К-4 [08:41:37]line 14.750 * 67.80 [08:41:37]line = 1000.05 [08:41:37]line НДС 12% НСП 1% [08:41:37]line > о реализуемом товаре [08:41:37]line ОКРУГЛЕНИЕ: -0.05 [08:41:37]line ИТОГО: 1000.00 [08:41:37]line Внесено: 1000.00 [08:41:37]line СДАЧА: 0.00 [08:41:37]line НСП 1% : 8.85 [08:41:37]line НДС 12% : 106.20 [08:41:37]line Наличными: 1000.00 [08:41:37]line Безнал.: 0.00 [08:41:37]line Место: АЗС № 134 "Партнер Нефть" [08:41:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:41:37]line СНО: Общий режим [08:41:37]line Чек 52 30.07.2024 08:41 [08:41:37]line Смена: 435 ФФД: 1.0 [08:41:37]line ЗНМ: 0300000044 [08:41:37]line РНМ: 0000000000092660 [08:41:37]line Версия ККМ: 001 [08:41:37]line ФМ: 0000000000874939 [08:41:37]line ФД: 119000 [08:41:37]line ФПД: 48627179174764 [08:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084145&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119000&fm=48627179174764&tin=02508201610067®Number=0000000000092660&sum=100000 [08:41:37]written 0, free lines is 4095 [08:41:37]OFD Sender: Processing packet 119000 [packets to send 86, broken 85] [08:41:37]ProducePacketName [08:41:37]name=ofd_packets/00119000 [08:41:37]OFD Sender: To server: pG, [08:41:37]CommunicateWithHost lk.salyk.kg:30040 [08:41:37]ConnectInit lk.salyk.kg [08:41:37]Connected sock=10 [08:41:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5F 02 07 01 47 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 49 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D0 01 00 35 04 06 00 2C 39 E5 BD BB 6C 22 52 9A 81 F9 8C 11 E0 [08:41:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E2 F8 47 00 08 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D0 01 00 F4 03 04 00 D5 54 A8 66 B6 04 01 00 00 17 DC 19 57 97 6E 16 6A [08:41:37]CommunicateWithHost err = 0 [08:41:37]CheckOFDResponse [08:41:37]1017 (14) - 77093643461234 [08:41:37]1041 (16) - 0000000000874939 [08:41:37]1040 (4) - 119000 [08:41:37]1012 (4) - 30.07.2024 02:49 [08:41:37]1206 (1) - 0 [08:41:37]OFD Sender: Remove packet 119000 [08:41:37]ProducePacketName [08:41:37]name=ofd_packets/00119000 [08:41:37]NVStorageDeleteData [08:41:38]Write to MH i2c: 01 00 00 54 9C F0 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: 01 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: 01 07 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: 01 07 00 54 9C 00 00 00 00 00 CF 0C D2 [08:41:38]RasterBufferAndPrint [08:41:38]line [08:41:38]line [08:41:38]line [08:41:38]line [08:41:38]line [08:41:38]written 0, free lines is 3286 [08:41:38]MH_Cut [08:41:38]Write to MH i2c: D1 01 00 5B 9C 01 C9 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: D1 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: D1 01 00 [08:41:38]MH_I2C_Read... [08:41:38]Read from MH i2c: D1 01 00 5B 9C 00 C8 [08:41:38]Write to MH i2c: 01 00 00 5C 9C F8 [08:41:38]Write i2c OK [08:41:38]MH_I2C_Read... [08:41:38]OFD Sender: No OFD packet to send [08:41:38]*** Cut start [08:41:38]*** Partial cut [08:41:38]*** CUTSNS_PIN = 1 [08:41:38]*** CUTSNS_PIN = 0 [08:41:39]*** Brake cut motor [08:41:39]Read from MH i2c: 01 [08:41:39]MH_I2C_Read... [08:41:39]*** Stop cut motor [08:41:39]*** Cut end [08:41:39]Read from MH i2c: 01 07 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: 01 07 00 5C 9C 00 00 00 00 00 FF 0F 0D [08:41:39]process_action close_receipt done [08:41:39]requested_data is exist [08:41:39]produce_requested_data [08:41:39]requested_item fm.sn is exist - process it [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 11 00 00 [08:41:39]Write to MH i2c: E2 08 00 5D 9C 80 11 00 00 00 00 00 00 73 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 17 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 17 00 5D 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CE [08:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:41:39]wFMCommunicate OK [08:41:39]requested_item fd.num is exist - process it [08:41:39]SAM_PROTO_GetFieldsCounters [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 13 00 00 [08:41:39]Write to MH i2c: E2 08 00 5E 9C 80 13 00 00 00 00 00 00 76 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 62 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 62 00 5E 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [08:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:39]wFMCommunicate OK [08:41:39]SAM_PROTO_GetFieldsCounters done [08:41:39]requested_item shift.num is exist - process it [08:41:39]requested_item shift.opened is exist - process it [08:41:39]req_shift_opened [08:41:39]FM_GetShiftState [08:41:39]SAM_PROTO_GetShiftState [08:41:39]wFMCommunicate request_size=4 [08:41:39]MH_SAM_APDU [08:41:39]CAPDU: 80 13 01 00 [08:41:39]Write to MH i2c: E2 08 00 5F 9C 80 13 01 00 00 00 00 00 78 [08:41:39]Write i2c OK [08:41:39]MH_I2C_Read... [08:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:39]Read from MH i2c: E2 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 0E 00 [08:41:39]MH_I2C_Read... [08:41:39]Read from MH i2c: E2 0E 00 5F 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 43 [08:41:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:41:39]wFMCommunicate OK [08:41:39]SAM_PROTO_GetShiftState done [08:41:39]FM_GetShiftState done [08:41:39]req_shift_opened done [08:41:39]requested_item shift.open_date is exist - process it [08:41:39]req_shift_open_date [08:41:39]req_shift_open_date done [08:41:39]produce_requested_data done [08:41:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119000,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:41:39]process_action_free close_receipt [08:41:39]json_value_free [08:41:39]json_value_free done [08:41:39]process_json_proto returns [08:41:39]Send response to host [08:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119000,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:41:39]free response buf [08:41:39]execute_script done [08:41:39]execute_script returns [08:41:39]free content buf [08:41:39]Sock 9.Close socket [08:41:39]Sock 9.Thread stoped [08:41:43]OFD Sender: No OFD packet to send [08:41:48]OFD Sender: No OFD packet to send [08:41:53]OFD Sender: No OFD packet to send [08:41:58]OFD Sender: No OFD packet to send [08:42:03]OFD Sender: No OFD packet to send [08:42:08]OFD Sender: No OFD packet to send [08:42:13]OFD Sender: No OFD packet to send [08:42:18]OFD Sender: No OFD packet to send [08:42:23]OFD Sender: No OFD packet to send [08:42:28]OFD Sender: No OFD packet to send [08:42:30]accept exits with 7 [08:42:30]New connection [08:42:30]New thread 3067239780 created [08:42:30]Thread 3067383140 joined [08:42:30]Waiting for new connection... [08:42:30] Sock 7.Parse request [08:42:30]Sock 7.Check first char [08:42:30]Sock 7.First char is OK [08:42:30]request: POST /json_proto HTTP/1.0 [08:42:30]Method: POST [08:42:30]URL: /json_proto [08:42:30]Method is POST - this is cgi request [08:42:30]url: /json_proto [08:42:30]query_string will be loaded in cgi processing [08:42:30]execute_cgi json_proto POST (null) [08:42:30]execute_cgi path=json_proto method=POST [08:42:30]POST find Content-Length [08:42:30]Host: 172.17.45.7:8080 [08:42:30]Content-Length: 677 [08:42:30]Content-Type: application/json [08:42:30] [08:42:30]POST finish read [08:42:30]Found Content-Length = 677 [08:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:30]execute_script... [08:42: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)949917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:42:30]POST & json_proto [08:42:30]process_json_proto [08:42:30]json parsed OK: [08:42:30]protocol is kg_v1.0 [08:42:30]action value=close_receipt [08:42:30]process_action close_receipt [08:42:30]cmd_close_receipt [08:42:30]MH_GetDate [08:42:30]Write to MH i2c: F0 00 00 60 9C EB [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: F0 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: F0 09 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: F0 09 00 60 9C 00 7F A7 A8 66 90 0F 3E 66 6B [08:42:30]GetLastDocTimeStamp 1722328905 [08:42:30]current date 1722328959 [08:42:30]FM_GetShiftState [08:42:30]SAM_PROTO_GetShiftState [08:42:30]wFMCommunicate request_size=4 [08:42:30]MH_SAM_APDU [08:42:30]CAPDU: 80 13 01 00 [08:42:30]Write to MH i2c: E2 08 00 61 9C 80 13 01 00 00 00 00 00 7A [08:42:30]Write i2c OK [08:42:30]MH_I2C_Read... [08:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:30]Read from MH i2c: E2 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 0E 00 [08:42:30]MH_I2C_Read... [08:42:30]Read from MH i2c: E2 0E 00 61 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 45 [08:42:30]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:42:30]wFMCommunicate OK [08:42:30]SAM_PROTO_GetShiftState done [08:42:30]FM_GetShiftState done [08:42:30]opened in 1722298242 [08:42:30]opened+sec_in_day 1722384642 [08:42:30]quantity*price = 50036 [08:42:30]sum+1 = 50037 [08:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 53 30.07.2024 08:42 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119001 ФПД: 83321772791677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084240&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119001&fm=83321772791677&tin=02508201610067®Number=0000000000092660&sum=50000 [08:42:31]StoreToDocumentArchive [08:42:31]shift 435 fd 119001 [08:42:31]save to /storage/0435/doc_00119001 [08:42:31]save last doc name /storage/0435/doc_00119001 to /storage/kkm_last_doc_name [08:42:31]save OK [08:42:31]Clear old archive folders... [08:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:31]tlvbuf is 021C03F0 [08:42:31]SAM_PROTO_ClearQueue [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 09 00 00 [08:42:31]Write to MH i2c: E2 08 00 6E 9C 80 09 00 00 00 00 00 00 7C [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 6E 9C 00 90 00 7E [08:42:31]RAPDU: 90 00 [08:42:31]wFMCommunicate OK [08:42:31]SAM_PROTO_ClearQueue done [08:42:31]KKMCreateOFDPacket [08:42:31]OFDProtocolAddRootSTLVToBuf [08:42:31]FM_MakeSignedData [08:42:31]FM_MakeSignedData [08:42:31]SAM_PROTO_SignData [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 0D 01 02 [08:42:31]Write to MH i2c: E2 08 00 6F 9C 80 0D 01 02 00 00 00 00 84 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 6F 9C 00 90 00 7F [08:42:31]RAPDU: 90 00 [08:42:31]wFMCommunicate OK [08:42:31]wFMCommunicate request_size=255 [08:42:31]MH_SAM_APDU [08:42: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 80 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D0 01 00 35 04 06 00 4B [08:42:31]Write to MH i2c: E2 02 01 70 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 80 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D0 01 00 35 04 06 00 4B 00 00 1B [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 70 9C 00 90 00 80 [08:42:31]RAPDU: 90 00 [08:42:31]wFMCommunicate OK [08:42:31]wFMCommunicate request_size=10 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 0D 02 02 05 C7 DC AB 57 7D [08:42:31]Write to MH i2c: E2 0D 00 71 9C 80 0D 02 02 05 00 C7 DC AB 57 7D 00 00 B3 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 03 00 71 9C 00 90 00 81 [08:42:31]RAPDU: 90 00 [08:42:31]wFMCommunicate OK [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 0D 03 02 [08:42:31]Write to MH i2c: E2 08 00 72 9C 80 0D 03 02 00 00 00 00 89 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 0B 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 0B 00 72 9C 00 29 D8 11 FC E0 39 16 3A 90 00 01 [08:42:31]RAPDU: 29 D8 11 FC E0 39 16 3A 90 00 [08:42:31]wFMCommunicate OK [08:42:31]SAM_PROTO_SignData done [08:42:31]FM_MakeSignedData done [08:42:31]CreateOFDProtocolMessage [08:42:31]wFMCommunicate request_size=4 [08:42:31]MH_SAM_APDU [08:42:31]CAPDU: 80 11 00 00 [08:42:31]Write to MH i2c: E2 08 00 73 9C 80 11 00 00 00 00 00 00 89 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:31]Read from MH i2c: E2 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 17 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: E2 17 00 73 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [08:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:42:31]wFMCommunicate OK [08:42:31]CreateOFDProtocolMessage done [08:42:31]OFDSenderStorePacket 119001 [08:42:31]StoreOFDPacket docnum=119001 [08:42:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 08 07 01 56 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 80 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D0 01 00 35 04 06 00 4B C7 DC AB 57 7D 29 D8 11 FC E0 39 16 3A [08:42:31]CheckFolder [08:42:31]dirname=/storage/ofd_packets [08:42:31]CheckFolder done [08:42:31]ProducePacketName [08:42:31]name=ofd_packets/00119001 [08:42:31]NVStorageSaveData ofd_packets/00119001 [08:42:31]File name is /storage/ofd_packets/00119001 [08:42:31]Write 301 bytes [08:42:31]NVStorageSaveData done [08:42:31]OFDSenderStorePacket done [08:42:31]KKMCreateOFDPacket done [08:42:31]NVStorageSaveData kkm_last_timestamp [08:42:31]File name is /storage/kkm_last_timestamp [08:42:31]Write 4 bytes [08:42:31]NVStorageSaveData done [08:42:31]ExternCall_PrintAddStr [08:42:31]wPrintStart [08:42:31]Write to MH i2c: 01 00 00 74 9C 10 [08:42:31]Write i2c OK [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: 01 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: 01 07 00 [08:42:31]MH_I2C_Read... [08:42:31]Read from MH i2c: 01 07 00 74 9C 00 00 00 00 00 FF 0F 25 [08:42:31]RasterBufferAndPrint [08:42:31]line Счет N : (1)949917 [08:42:31]line ИНН: 02508201610067 [08:42:31]line Контрольно-Кассовый Чек [08:42:31]line ПРОДАЖА [08:42:31]line ТРК (МРК, ГНК) : 31 [08:42:31]line Товар: 2710124130 [08:42:31]line Аи-92-К-4 [08:42:31]line 7.380 * 67.80 [08:42:31]line = 500.36 [08:42:31]line НДС 12% НСП 1% [08:42:31]line > о реализуемом товаре [08:42:31]line ОКРУГЛЕНИЕ: -0.36 [08:42:31]line ИТОГО: 500.00 [08:42:31]line Внесено: 500.00 [08:42:31]line СДАЧА: 0.00 [08:42:31]line НСП 1% : 4.43 [08:42:31]line НДС 12% : 53.14 [08:42:31]line Наличными: 500.00 [08:42:31]line Безнал.: 0.00 [08:42:31]line Место: АЗС № 134 "Партнер Нефть" [08:42:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:42:31]line СНО: Общий режим [08:42:31]line Чек 53 30.07.2024 08:42 [08:42:31]line Смена: 435 ФФД: 1.0 [08:42:31]line ЗНМ: 0300000044 [08:42:31]line РНМ: 0000000000092660 [08:42:31]line Версия ККМ: 001 [08:42:31]line ФМ: 0000000000874939 [08:42:31]line ФД: 119001 [08:42:31]line ФПД: 83321772791677 [08:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084240&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119001&fm=83321772791677&tin=02508201610067®Number=0000000000092660&sum=50000 [08:42:31]written 0, free lines is 4095 [08:42:31]OFD Sender: Processing packet 119001 [packets to send 86, broken 85] [08:42:31]ProducePacketName [08:42:31]name=ofd_packets/00119001 [08:42:32]OFD Sender: To server: pG, [08:42:32]CommunicateWithHost lk.salyk.kg:30040 [08:42:32]ConnectInit lk.salyk.kg [08:42:32]Connected sock=10 [08:42:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 08 07 01 56 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 80 A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D0 01 00 35 04 06 00 4B C7 DC AB 57 7D 29 D8 11 FC E0 39 16 3A [08:42:32]Write to MH i2c: 01 00 00 9E 9C 3A [08:42:32]Write i2c OK [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: 01 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: 01 07 00 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: 01 07 00 9E 9C 00 00 00 00 00 CE 0C 1B [08:42:32]RasterBufferAndPrint [08:42:32]line [08:42:32]line [08:42:32]line [08:42:32]line [08:42:32]line [08:42:32]written 0, free lines is 3282 [08:42:32]MH_Cut [08:42:32]Write to MH i2c: D1 01 00 A5 9C 01 13 [08:42:32]Write i2c OK [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: D1 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: D1 01 00 [08:42:32]MH_I2C_Read... [08:42:32]Read from MH i2c: D1 01 00 A5 9C 00 12 [08:42:32]Write to MH i2c: 01 00 00 A6 9C 42 [08:42:32]Write i2c OK [08:42:32]MH_I2C_Read... [08:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C5 DF 47 00 1C 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D0 01 00 F4 03 04 00 0B 55 A8 66 B6 04 01 00 00 94 10 E4 B3 5C 02 41 3C [08:42:32]CommunicateWithHost err = 0 [08:42:32]CheckOFDResponse [08:42:32]1017 (14) - 77093643461234 [08:42:32]1041 (16) - 0000000000874939 [08:42:32]1040 (4) - 119001 [08:42:32]1012 (4) - 30.07.2024 02:50 [08:42:32]1206 (1) - 0 [08:42:32]OFD Sender: Remove packet 119001 [08:42:32]ProducePacketName [08:42:32]name=ofd_packets/00119001 [08:42:32]NVStorageDeleteData [08:42:33]OFD Sender: No OFD packet to send [08:42:33]*** Cut start [08:42:33]*** Partial cut [08:42:33]*** CUTSNS_PIN = 1 [08:42:33]*** CUTSNS_PIN = 0 [08:42:33]*** Brake cut motor [08:42:33]Read from MH i2c: 01 [08:42:33]MH_I2C_Read... [08:42:33]*** Stop cut motor [08:42:33]*** Cut end [08:42:33]Read from MH i2c: 01 07 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: 01 07 00 A6 9C 00 00 00 00 00 FF 0F 57 [08:42:33]process_action close_receipt done [08:42:33]requested_data is exist [08:42:33]produce_requested_data [08:42:33]requested_item fm.sn is exist - process it [08:42:33]wFMCommunicate request_size=4 [08:42:33]MH_SAM_APDU [08:42:33]CAPDU: 80 11 00 00 [08:42:33]Write to MH i2c: E2 08 00 A7 9C 80 11 00 00 00 00 00 00 BD [08:42:33]Write i2c OK [08:42:33]MH_I2C_Read... [08:42:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:33]Read from MH i2c: E2 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 17 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 17 00 A7 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 18 [08:42:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:42:33]wFMCommunicate OK [08:42:33]requested_item fd.num is exist - process it [08:42:33]SAM_PROTO_GetFieldsCounters [08:42:33]wFMCommunicate request_size=4 [08:42:33]MH_SAM_APDU [08:42:33]CAPDU: 80 13 00 00 [08:42:33]Write to MH i2c: E2 08 00 A8 9C 80 13 00 00 00 00 00 00 C0 [08:42:33]Write i2c OK [08:42:33]MH_I2C_Read... [08:42:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:33]Read from MH i2c: E2 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 62 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 62 00 A8 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [08:42:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:33]wFMCommunicate OK [08:42:33]SAM_PROTO_GetFieldsCounters done [08:42:33]requested_item shift.num is exist - process it [08:42:33]requested_item shift.opened is exist - process it [08:42:33]req_shift_opened [08:42:33]FM_GetShiftState [08:42:33]SAM_PROTO_GetShiftState [08:42:33]wFMCommunicate request_size=4 [08:42:33]MH_SAM_APDU [08:42:33]CAPDU: 80 13 01 00 [08:42:33]Write to MH i2c: E2 08 00 A9 9C 80 13 01 00 00 00 00 00 C2 [08:42:33]Write i2c OK [08:42:33]MH_I2C_Read... [08:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:33]Read from MH i2c: E2 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 0E 00 [08:42:33]MH_I2C_Read... [08:42:33]Read from MH i2c: E2 0E 00 A9 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8D [08:42:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:42:33]wFMCommunicate OK [08:42:33]SAM_PROTO_GetShiftState done [08:42:33]FM_GetShiftState done [08:42:33]req_shift_opened done [08:42:33]requested_item shift.open_date is exist - process it [08:42:33]req_shift_open_date [08:42:33]req_shift_open_date done [08:42:33]produce_requested_data done [08:42:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119001,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:42:33]process_action_free close_receipt [08:42:33]json_value_free [08:42:33]json_value_free done [08:42:33]process_json_proto returns [08:42:33]Send response to host [08:42:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119001,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:42:33]free response buf [08:42:33]execute_script done [08:42:33]execute_script returns [08:42:33]free content buf [08:42:33]Sock 7.Close socket [08:42:33]Sock 7.Thread stoped [08:42:38]OFD Sender: No OFD packet to send [08:42:43]OFD Sender: No OFD packet to send [08:42:48]OFD Sender: No OFD packet to send [08:42:53]OFD Sender: No OFD packet to send [08:42:58]OFD Sender: No OFD packet to send [08:43:03]OFD Sender: No OFD packet to send [08:43:08]OFD Sender: No OFD packet to send [08:43:13]OFD Sender: No OFD packet to send [08:43:18]OFD Sender: No OFD packet to send [08:43:23]OFD Sender: No OFD packet to send [08:43:28]OFD Sender: No OFD packet to send [08:43:33]OFD Sender: No OFD packet to send [08:43:38]OFD Sender: No OFD packet to send [08:43:43]OFD Sender: No OFD packet to send [08:43:48]OFD Sender: No OFD packet to send [08:43:53]OFD Sender: No OFD packet to send [08:43:58]OFD Sender: No OFD packet to send [08:44:03]OFD Sender: No OFD packet to send [08:44:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:18]accept exits with 9 [08:44:18]New connection [08:44:18]New thread 3067383140 created [08:44:18]Thread 3067239780 joined [08:44:18]Waiting for new connection... [08:44:18] Sock 9.Parse request [08:44:18]Sock 9.Check first char [08:44:18]Sock 9.First char is OK [08:44:18]request: POST /json_proto HTTP/1.0 [08:44:18]Method: POST [08:44:18]URL: /json_proto [08:44:18]Method is POST - this is cgi request [08:44:18]url: /json_proto [08:44:18]query_string will be loaded in cgi processing [08:44:18]execute_cgi json_proto POST (null) [08:44:18]execute_cgi path=json_proto method=POST [08:44:18]POST find Content-Length [08:44:18]Host: 172.17.45.7:8080 [08:44:18]Content-Length: 674 [08:44:18]Content-Type: application/json [08:44:18] [08:44:18]POST finish read [08:44:18]Found Content-Length = 674 [08:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:18]execute_script... [08:44: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)949920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:18]POST & json_proto [08:44:18]process_json_proto [08:44:18]json parsed OK: [08:44:18]protocol is kg_v1.0 [08:44:18]action value=close_receipt [08:44:18]process_action close_receipt [08:44:18]cmd_close_receipt [08:44:18]MH_GetDate [08:44:18]Write to MH i2c: F0 00 00 AA 9C 35 [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: F0 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: F0 09 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: F0 09 00 AA 9C 00 EC A7 A8 66 90 0F 3E 66 22 [08:44:18]GetLastDocTimeStamp 1722328960 [08:44:18]current date 1722329068 [08:44:18]FM_GetShiftState [08:44:18]SAM_PROTO_GetShiftState [08:44:18]wFMCommunicate request_size=4 [08:44:18]MH_SAM_APDU [08:44:18]CAPDU: 80 13 01 00 [08:44:18]Write to MH i2c: E2 08 00 AB 9C 80 13 01 00 00 00 00 00 C4 [08:44:18]Write i2c OK [08:44:18]MH_I2C_Read... [08:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:18]Read from MH i2c: E2 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 0E 00 [08:44:18]MH_I2C_Read... [08:44:18]Read from MH i2c: E2 0E 00 AB 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8F [08:44:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:44:18]wFMCommunicate OK [08:44:18]SAM_PROTO_GetShiftState done [08:44:18]FM_GetShiftState done [08:44:18]opened in 1722298242 [08:44:18]opened+sec_in_day 1722384642 [08:44:18]quantity*price = 38023 [08:44:18]sum+1 = 38025 [08:44:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.38 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 54 30.07.2024 08:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119002 ФПД: 248516899200025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119002&fm=248516899200025&tin=02508201610067®Number=0000000000092660&sum=38000 [08:44:20]StoreToDocumentArchive [08:44:20]shift 435 fd 119002 [08:44:20]save to /storage/0435/doc_00119002 [08:44:20]save last doc name /storage/0435/doc_00119002 to /storage/kkm_last_doc_name [08:44:20]save OK [08:44:20]Clear old archive folders... [08:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:20]tlvbuf is 01F743C0 [08:44:20]SAM_PROTO_ClearQueue [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 09 00 00 [08:44:20]Write to MH i2c: E2 08 00 B8 9C 80 09 00 00 00 00 00 00 C6 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 B8 9C 00 90 00 C8 [08:44:20]RAPDU: 90 00 [08:44:20]wFMCommunicate OK [08:44:20]SAM_PROTO_ClearQueue done [08:44:20]KKMCreateOFDPacket [08:44:20]OFDProtocolAddRootSTLVToBuf [08:44:20]FM_MakeSignedData [08:44:20]FM_MakeSignedData [08:44:20]SAM_PROTO_SignData [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 0D 01 02 [08:44:20]Write to MH i2c: E2 08 00 B9 9C 80 0D 01 02 00 00 00 00 CE [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 B9 9C 00 90 00 C9 [08:44:20]RAPDU: 90 00 [08:44:20]wFMCommunicate OK [08:44:20]wFMCommunicate request_size=255 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EC A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D0 01 00 35 04 06 00 E2 06 59 7F [08:44:20]Write to MH i2c: E2 02 01 BA 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EC A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D0 01 00 35 04 06 00 E2 06 59 7F 00 00 E8 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 BA 9C 00 90 00 CA [08:44:20]RAPDU: 90 00 [08:44:20]wFMCommunicate OK [08:44:20]wFMCommunicate request_size=7 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 0D 02 02 02 5C 19 [08:44:20]Write to MH i2c: E2 0A 00 BB 9C 80 0D 02 02 02 00 5C 19 00 00 4A [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 03 00 BB 9C 00 90 00 CB [08:44:20]RAPDU: 90 00 [08:44:20]wFMCommunicate OK [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 0D 03 02 [08:44:20]Write to MH i2c: E2 08 00 BC 9C 80 0D 03 02 00 00 00 00 D3 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 0B 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 0B 00 BC 9C 00 10 9E 0C 44 DE 92 69 B4 90 00 5F [08:44:20]RAPDU: 10 9E 0C 44 DE 92 69 B4 90 00 [08:44:20]wFMCommunicate OK [08:44:20]SAM_PROTO_SignData done [08:44:20]FM_MakeSignedData done [08:44:20]CreateOFDProtocolMessage [08:44:20]wFMCommunicate request_size=4 [08:44:20]MH_SAM_APDU [08:44:20]CAPDU: 80 11 00 00 [08:44:20]Write to MH i2c: E2 08 00 BD 9C 80 11 00 00 00 00 00 00 D3 [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:20]Read from MH i2c: E2 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 17 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: E2 17 00 BD 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [08:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:20]wFMCommunicate OK [08:44:20]CreateOFDProtocolMessage done [08:44:20]OFDSenderStorePacket 119002 [08:44:20]StoreOFDPacket docnum=119002 [08:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 03 C2 04 01 D5 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EC A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D0 01 00 35 04 06 00 E2 06 59 7F 5C 19 10 9E 0C 44 DE 92 69 B4 [08:44:20]CheckFolder [08:44:20]dirname=/storage/ofd_packets [08:44:20]CheckFolder done [08:44:20]ProducePacketName [08:44:20]name=ofd_packets/00119002 [08:44:20]NVStorageSaveData ofd_packets/00119002 [08:44:20]File name is /storage/ofd_packets/00119002 [08:44:20]Write 298 bytes [08:44:20]NVStorageSaveData done [08:44:20]OFDSenderStorePacket done [08:44:20]KKMCreateOFDPacket done [08:44:20]NVStorageSaveData kkm_last_timestamp [08:44:20]File name is /storage/kkm_last_timestamp [08:44:20]Write 4 bytes [08:44:20]NVStorageSaveData done [08:44:20]ExternCall_PrintAddStr [08:44:20]wPrintStart [08:44:20]Write to MH i2c: 01 00 00 BE 9C 5A [08:44:20]Write i2c OK [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: 01 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: 01 07 00 [08:44:20]MH_I2C_Read... [08:44:20]Read from MH i2c: 01 07 00 BE 9C 00 00 00 00 00 FF 0F 6F [08:44:20]RasterBufferAndPrint [08:44:20]line Счет N : (1)949920 [08:44:20]line ИНН: 02508201610067 [08:44:20]line Контрольно-Кассовый Чек [08:44:20]line ПРОДАЖА [08:44:20]line ТРК (МРК, ГНК) : 54 [08:44:20]line Товар: 2710194800 [08:44:20]line ДТ-К-5 [08:44:20]line 4.990 * 76.20 [08:44:20]line = 380.24 [08:44:20]line НДС 12% НСП 1% [08:44:20]line > о реализуемом товаре [08:44:20]line ОКРУГЛЕНИЕ: -0.24 [08:44:20]line ИТОГО: 380.00 [08:44:20]line Внесено: 380.00 [08:44:20]line СДАЧА: 0.00 [08:44:20]line НСП 1% : 3.36 [08:44:20]line НДС 12% : 40.38 [08:44:20]line Наличными: 380.00 [08:44:20]line Безнал.: 0.00 [08:44:20]line Место: АЗС № 134 "Партнер Нефть" [08:44:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:44:20]line СНО: Общий режим [08:44:20]line Чек 54 30.07.2024 08:44 [08:44:20]line Смена: 435 ФФД: 1.0 [08:44:20]line ЗНМ: 0300000044 [08:44:20]line РНМ: 0000000000092660 [08:44:20]line Версия ККМ: 001 [08:44:20]line ФМ: 0000000000874939 [08:44:20]line ФД: 119002 [08:44:20]line ФПД: 248516899200025 [08:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084428&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119002&fm=248516899200025&tin=02508201610067®Number=0000000000092660&sum=38000 [08:44:20]OFD Sender: Processing packet 119002 [packets to send 86, broken 85] [08:44:20]ProducePacketName [08:44:20]name=ofd_packets/00119002 [08:44:20]OFD Sender: To server: pG, [08:44:20]CommunicateWithHost lk.salyk.kg:30040 [08:44:20]ConnectInit lk.salyk.kg [08:44:20]written 0, free lines is 4095 [08:44:21]Connected sock=10 [08:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 03 C2 04 01 D5 20 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 EC A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D0 01 00 35 04 06 00 E2 06 59 7F 5C 19 10 9E 0C 44 DE 92 69 B4 [08:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 27 70 47 00 8E 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 34 39 33 39 10 04 04 00 DA D0 01 00 F4 03 04 00 78 55 A8 66 B6 04 01 00 00 11 47 1A 6E 33 8B 27 AA [08:44:21]CommunicateWithHost err = 0 [08:44:21]CheckOFDResponse [08:44:21]1017 (14) - 77093643461234 [08:44:21]1041 (16) - 0000000000874939 [08:44:21]1040 (4) - 119002 [08:44:21]1012 (4) - 30.07.2024 02:52 [08:44:21]1206 (1) - 0 [08:44:21]OFD Sender: Remove packet 119002 [08:44:21]ProducePacketName [08:44:21]name=ofd_packets/00119002 [08:44:21]NVStorageDeleteData [08:44:21]Write to MH i2c: 01 00 00 E8 9C 84 [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: 01 07 00 E8 9C 00 00 00 00 00 CA 0C 61 [08:44:21]RasterBufferAndPrint [08:44:21]line [08:44:21]line [08:44:21]line [08:44:21]line [08:44:21]line [08:44:21]written 0, free lines is 3281 [08:44:21]MH_Cut [08:44:21]Write to MH i2c: D1 01 00 EF 9C 01 5D [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: D1 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: D1 01 00 [08:44:21]MH_I2C_Read... [08:44:21]Read from MH i2c: D1 01 00 EF 9C 00 5C [08:44:21]Write to MH i2c: 01 00 00 F0 9C 8C [08:44:21]Write i2c OK [08:44:21]MH_I2C_Read... [08:44:21]OFD Sender: No OFD packet to send [08:44:22]*** Cut start [08:44:22]*** Partial cut [08:44:22]*** CUTSNS_PIN = 1 [08:44:22]*** CUTSNS_PIN = 0 [08:44:22]*** Brake cut motor [08:44:22]Read from MH i2c: 01 [08:44:22]MH_I2C_Read... [08:44:22]*** Stop cut motor [08:44:22]*** Cut end [08:44:22]Read from MH i2c: 01 07 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: 01 07 00 F0 9C 00 00 00 00 00 FF 0F A1 [08:44:22]process_action close_receipt done [08:44:22]requested_data is exist [08:44:22]produce_requested_data [08:44:22]requested_item fm.sn is exist - process it [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 11 00 00 [08:44:22]Write to MH i2c: E2 08 00 F1 9C 80 11 00 00 00 00 00 00 07 [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 17 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 17 00 F1 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [08:44:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:22]wFMCommunicate OK [08:44:22]requested_item fd.num is exist - process it [08:44:22]SAM_PROTO_GetFieldsCounters [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 13 00 00 [08:44:22]Write to MH i2c: E2 08 00 F2 9C 80 13 00 00 00 00 00 00 0A [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 62 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 62 00 F2 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [08:44:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:22]wFMCommunicate OK [08:44:22]SAM_PROTO_GetFieldsCounters done [08:44:22]requested_item shift.num is exist - process it [08:44:22]requested_item shift.opened is exist - process it [08:44:22]req_shift_opened [08:44:22]FM_GetShiftState [08:44:22]SAM_PROTO_GetShiftState [08:44:22]wFMCommunicate request_size=4 [08:44:22]MH_SAM_APDU [08:44:22]CAPDU: 80 13 01 00 [08:44:22]Write to MH i2c: E2 08 00 F3 9C 80 13 01 00 00 00 00 00 0C [08:44:22]Write i2c OK [08:44:22]MH_I2C_Read... [08:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:22]Read from MH i2c: E2 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 0E 00 [08:44:22]MH_I2C_Read... [08:44:22]Read from MH i2c: E2 0E 00 F3 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D7 [08:44:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:44:22]wFMCommunicate OK [08:44:22]SAM_PROTO_GetShiftState done [08:44:22]FM_GetShiftState done [08:44:22]req_shift_opened done [08:44:22]requested_item shift.open_date is exist - process it [08:44:22]req_shift_open_date [08:44:22]req_shift_open_date done [08:44:22]produce_requested_data done [08:44:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119002,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:44:22]process_action_free close_receipt [08:44:22]json_value_free [08:44:22]json_value_free done [08:44:22]process_json_proto returns [08:44:22]Send response to host [08:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119002,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:44:22]free response buf [08:44:22]execute_script done [08:44:22]execute_script returns [08:44:22]free content buf [08:44:22]Sock 9.Close socket [08:44:22]Sock 9.Thread stoped [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:36]accept exits with 7 [08:44:36]New connection [08:44:36]New thread 3067239780 created [08:44:36]Thread 3067383140 joined [08:44:36]Waiting for new connection... [08:44:36] Sock 7.Parse request [08:44:36]Sock 7.Check first char [08:44:36]Sock 7.First char is OK [08:44:36]request: POST /json_proto HTTP/1.0 [08:44:36]Method: POST [08:44:36]URL: /json_proto [08:44:36]Method is POST - this is cgi request [08:44:36]url: /json_proto [08:44:36]query_string will be loaded in cgi processing [08:44:36]execute_cgi json_proto POST (null) [08:44:36]execute_cgi path=json_proto method=POST [08:44:36]POST find Content-Length [08:44:36]Host: 172.17.45.7:8080 [08:44:36]Content-Length: 677 [08:44:36]Content-Type: application/json [08:44:36] [08:44:36]POST finish read [08:44:36]Found Content-Length = 677 [08:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:36]execute_script... [08: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)949921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:36]POST & json_proto [08:44:36]process_json_proto [08:44:36]json parsed OK: [08:44:36]protocol is kg_v1.0 [08:44:36]action value=close_receipt [08:44:36]process_action close_receipt [08:44:36]cmd_close_receipt [08:44:36]MH_GetDate [08:44:36]Write to MH i2c: F0 00 00 F4 9C 7F [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: F0 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: F0 09 00 [08:44:36]MH_I2C_Read... [08:44:36]Read from MH i2c: F0 09 00 F4 9C 00 FE A7 A8 66 90 0F 3E 66 7E [08:44:36]GetLastDocTimeStamp 1722329068 [08:44:36]current date 1722329086 [08:44:36]FM_GetShiftState [08:44:36]SAM_PROTO_GetShiftState [08:44:36]wFMCommunicate request_size=4 [08:44:36]MH_SAM_APDU [08:44:36]CAPDU: 80 13 01 00 [08:44:36]Write to MH i2c: E2 08 00 F5 9C 80 13 01 00 00 00 00 00 0E [08:44:36]Write i2c OK [08:44:36]MH_I2C_Read... [08:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:37]Read from MH i2c: E2 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: E2 0E 00 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: E2 0E 00 F5 9C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D9 [08:44:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:44:37]wFMCommunicate OK [08:44:37]SAM_PROTO_GetShiftState done [08:44:37]FM_GetShiftState done [08:44:37]opened in 1722298242 [08:44:37]opened+sec_in_day 1722384642 [08:44:37]quantity*price = 50036 [08:44:37]sum+1 = 50037 [08:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 55 30.07.2024 08:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119003 ФПД: 49298742358270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084446&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119003&fm=49298742358270&tin=02508201610067®Number=0000000000092660&sum=50000 [08:44:38]StoreToDocumentArchive [08:44:38]shift 435 fd 119003 [08:44:38]save to /storage/0435/doc_00119003 [08:44:38]save last doc name /storage/0435/doc_00119003 to /storage/kkm_last_doc_name [08:44:38]save OK [08:44:38]Clear old archive folders... [08:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:38]tlvbuf is 01E56C90 [08:44:38]SAM_PROTO_ClearQueue [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 09 00 00 [08:44:38]Write to MH i2c: E2 08 00 02 9D 80 09 00 00 00 00 00 00 11 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 02 9D 00 90 00 13 [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]SAM_PROTO_ClearQueue done [08:44:38]KKMCreateOFDPacket [08:44:38]OFDProtocolAddRootSTLVToBuf [08:44:38]FM_MakeSignedData [08:44:38]FM_MakeSignedData [08:44:38]SAM_PROTO_SignData [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 01 02 [08:44:38]Write to MH i2c: E2 08 00 03 9D 80 0D 01 02 00 00 00 00 19 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 03 9D 00 90 00 14 [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]wFMCommunicate request_size=255 [08:44:38]MH_SAM_APDU [08: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FE A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D0 01 00 35 04 06 00 2C [08:44:38]Write to MH i2c: E2 02 01 04 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FE A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D0 01 00 35 04 06 00 2C 00 00 13 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 04 9D 00 90 00 15 [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]wFMCommunicate request_size=10 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 02 02 05 D6 42 06 B0 FE [08:44:38]Write to MH i2c: E2 0D 00 05 9D 80 0D 02 02 05 00 D6 42 06 B0 FE 00 00 F2 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 05 9D 00 90 00 16 [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 03 02 [08:44:38]Write to MH i2c: E2 08 00 06 9D 80 0D 03 02 00 00 00 00 1E [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 0B 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 0B 00 06 9D 00 A0 1D 7D E5 E9 99 04 1C 90 00 E0 [08:44:38]RAPDU: A0 1D 7D E5 E9 99 04 1C 90 00 [08:44:38]wFMCommunicate OK [08:44:38]SAM_PROTO_SignData done [08:44:38]FM_MakeSignedData done [08:44:38]CreateOFDProtocolMessage [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 11 00 00 [08:44:38]Write to MH i2c: E2 08 00 07 9D 80 11 00 00 00 00 00 00 1E [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 17 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 17 00 07 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [08:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:38]wFMCommunicate OK [08:44:38]CreateOFDProtocolMessage done [08:44:38]OFDSenderStorePacket 119003 [08:44:38]StoreOFDPacket docnum=119003 [08:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3E A6 07 01 8B 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FE A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D0 01 00 35 04 06 00 2C D6 42 06 B0 FE A0 1D 7D E5 E9 99 04 1C [08:44:38]CheckFolder [08:44:38]dirname=/storage/ofd_packets [08:44:38]CheckFolder done [08:44:38]ProducePacketName [08:44:38]name=ofd_packets/00119003 [08:44:38]NVStorageSaveData ofd_packets/00119003 [08:44:38]File name is /storage/ofd_packets/00119003 [08:44:38]Write 301 bytes [08:44:38]NVStorageSaveData done [08:44:38]OFDSenderStorePacket done [08:44:38]KKMCreateOFDPacket done [08:44:38]NVStorageSaveData kkm_last_timestamp [08:44:38]File name is /storage/kkm_last_timestamp [08:44:38]Write 4 bytes [08:44:38]NVStorageSaveData done [08:44:38]ExternCall_PrintAddStr [08:44:38]wPrintStart [08:44:38]Write to MH i2c: 01 00 00 08 9D A5 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 07 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 07 00 08 9D 00 00 00 00 00 FF 0F BA [08:44:38]RasterBufferAndPrint [08:44:38]line Счет N : (1)949921 [08:44:38]line ИНН: 02508201610067 [08:44:38]line Контрольно-Кассовый Чек [08:44:38]line ПРОДАЖА [08:44:38]line ТРК (МРК, ГНК) : 31 [08:44:38]line Товар: 2710124130 [08:44:38]line Аи-92-К-4 [08:44:38]line 7.380 * 67.80 [08:44:38]line = 500.36 [08:44:38]line НДС 12% НСП 1% [08:44:38]line > о реализуемом товаре [08:44:38]line ОКРУГЛЕНИЕ: -0.36 [08:44:38]line ИТОГО: 500.00 [08:44:38]line Внесено: 500.00 [08:44:38]line СДАЧА: 0.00 [08:44:38]line НСП 1% : 4.43 [08:44:38]line НДС 12% : 53.14 [08:44:38]line Наличными: 500.00 [08:44:38]line Безнал.: 0.00 [08:44:38]line Место: АЗС № 134 "Партнер Нефть" [08:44:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:44:38]line СНО: Общий режим [08:44:38]line Чек 55 30.07.2024 08:44 [08:44:38]line Смена: 435 ФФД: 1.0 [08:44:38]line ЗНМ: 0300000044 [08:44:38]line РНМ: 0000000000092660 [08:44:38]line Версия ККМ: 001 [08:44:38]line ФМ: 0000000000874939 [08:44:38]line ФД: 119003 [08:44:38]line ФПД: 49298742358270 [08:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084446&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119003&fm=49298742358270&tin=02508201610067®Number=0000000000092660&sum=50000 [08:44:38]written 0, free lines is 4095 [08:44:38]OFD Sender: Processing packet 119003 [packets to send 86, broken 85] [08:44:38]ProducePacketName [08:44:38]name=ofd_packets/00119003 [08:44:39]OFD Sender: To server: pG, [08:44:39]CommunicateWithHost lk.salyk.kg:30040 [08:44:39]ConnectInit lk.salyk.kg [08:44:39]Write to MH i2c: 01 00 00 32 9D CF [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 07 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 07 00 32 9D 00 00 00 00 00 CF 0C B1 [08:44:39]RasterBufferAndPrint [08:44:39]line [08:44:39]line [08:44:39]line [08:44:39]line [08:44:39]line [08:44:39]written 0, free lines is 3286 [08:44:39]MH_Cut [08:44:39]Write to MH i2c: D1 01 00 39 9D 01 A8 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: D1 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: D1 01 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: D1 01 00 39 9D 00 A7 [08:44:39]Write to MH i2c: 01 00 00 3A 9D D7 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Connected sock=10 [08: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 34 39 33 39 0F 01 00 00 3E A6 07 01 8B 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 FE A7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D0 01 00 35 04 06 00 2C D6 42 06 B0 FE A0 1D 7D E5 E9 99 04 1C [08:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D6 A9 47 00 78 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D0 01 00 F4 03 04 00 8A 55 A8 66 B6 04 01 00 00 31 96 B0 E9 0B 96 B3 BC [08:44:39]CommunicateWithHost err = 0 [08:44:39]CheckOFDResponse [08:44:39]1017 (14) - 77093643461234 [08:44:39]1041 (16) - 0000000000874939 [08:44:39]1040 (4) - 119003 [08:44:39]1012 (4) - 30.07.2024 02:52 [08:44:39]1206 (1) - 0 [08:44:39]OFD Sender: Remove packet 119003 [08:44:39]ProducePacketName [08:44:39]name=ofd_packets/00119003 [08:44:39]NVStorageDeleteData [08:44:39]*** Cut start [08:44:39]*** Partial cut [08:44:39]*** CUTSNS_PIN = 1 [08:44:39]*** CUTSNS_PIN = 0 [08:44:40]*** Brake cut motor [08:44:40]OFD Sender: No OFD packet to send [08:44:40]Read from MH i2c: 01 [08:44:40]MH_I2C_Read... [08:44:40]*** Stop cut motor [08:44:40]*** Cut end [08:44:40]Read from MH i2c: 01 07 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: 01 07 00 3A 9D 00 00 00 00 00 FF 0F EC [08:44:40]process_action close_receipt done [08:44:40]requested_data is exist [08:44:40]produce_requested_data [08:44:40]requested_item fm.sn is exist - process it [08:44:40]wFMCommunicate request_size=4 [08:44:40]MH_SAM_APDU [08:44:40]CAPDU: 80 11 00 00 [08:44:40]Write to MH i2c: E2 08 00 3B 9D 80 11 00 00 00 00 00 00 52 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:40]Read from MH i2c: E2 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 17 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 17 00 3B 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [08:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:40]wFMCommunicate OK [08:44:40]requested_item fd.num is exist - process it [08:44:40]SAM_PROTO_GetFieldsCounters [08:44:40]wFMCommunicate request_size=4 [08:44:40]MH_SAM_APDU [08:44:40]CAPDU: 80 13 00 00 [08:44:40]Write to MH i2c: E2 08 00 3C 9D 80 13 00 00 00 00 00 00 55 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:40]Read from MH i2c: E2 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 62 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 62 00 3C 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [08: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:40]wFMCommunicate OK [08:44:40]SAM_PROTO_GetFieldsCounters done [08:44:40]requested_item shift.num is exist - process it [08:44:40]requested_item shift.opened is exist - process it [08:44:40]req_shift_opened [08:44:40]FM_GetShiftState [08:44:40]SAM_PROTO_GetShiftState [08:44:40]wFMCommunicate request_size=4 [08:44:40]MH_SAM_APDU [08:44:40]CAPDU: 80 13 01 00 [08:44:40]Write to MH i2c: E2 08 00 3D 9D 80 13 01 00 00 00 00 00 57 [08:44:40]Write i2c OK [08:44:40]MH_I2C_Read... [08:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:40]Read from MH i2c: E2 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 0E 00 [08:44:40]MH_I2C_Read... [08:44:40]Read from MH i2c: E2 0E 00 3D 9D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 22 [08:44:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:44:40]wFMCommunicate OK [08:44:40]SAM_PROTO_GetShiftState done [08:44:40]FM_GetShiftState done [08:44:40]req_shift_opened done [08:44:40]requested_item shift.open_date is exist - process it [08:44:40]req_shift_open_date [08:44:40]req_shift_open_date done [08:44:40]produce_requested_data done [08:44:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119003,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:44:40]process_action_free close_receipt [08:44:40]json_value_free [08:44:40]json_value_free done [08:44:40]process_json_proto returns [08:44:40]Send response to host [08:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119003,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:44:40]free response buf [08:44:40]execute_script done [08:44:40]execute_script returns [08:44:40]free content buf [08:44:40]Sock 7.Close socket [08:44:40]Sock 7.Thread stoped [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:44:57]accept exits with 9 [08:44:57]New connection [08:44:57]New thread 3067383140 created [08:44:57]Thread 3067239780 joined [08:44:57]Waiting for new connection... [08:44:57] Sock 9.Parse request [08:44:57]Sock 9.Check first char [08:44:57]Sock 9.First char is OK [08:44:57]request: POST /json_proto HTTP/1.0 [08:44:57]Method: POST [08:44:57]URL: /json_proto [08:44:57]Method is POST - this is cgi request [08:44:57]url: /json_proto [08:44:57]query_string will be loaded in cgi processing [08:44:57]execute_cgi json_proto POST (null) [08:44:57]execute_cgi path=json_proto method=POST [08:44:57]POST find Content-Length [08:44:57]Host: 172.17.45.7:8080 [08:44:57]Content-Length: 838 [08:44:57]Content-Type: application/json [08:44:57] [08:44:57]POST finish read [08:44:57]Found Content-Length = 838 [08:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 14.890, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:57]execute_script... [08:44: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)949919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.20, "quantity" : 14.890, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:57]POST & json_proto [08:44:57]process_json_proto [08:44:57]json parsed OK: [08:44:57]protocol is kg_v1.0 [08:44:57]action value=close_receipt [08:44:57]process_action close_receipt [08:44:57]cmd_close_receipt [08:44:57]MH_GetDate [08:44:57]Write to MH i2c: F0 00 00 3E 9D CA [08:44:57]Write i2c OK [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: F0 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: F0 09 00 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: F0 09 00 3E 9D 00 13 A8 A8 66 90 0F 3E 66 DF [08:44:57]GetLastDocTimeStamp 1722329086 [08:44:57]current date 1722329107 [08:44:57]FM_GetShiftState [08:44:57]SAM_PROTO_GetShiftState [08:44:57]wFMCommunicate request_size=4 [08:44:57]MH_SAM_APDU [08:44:57]CAPDU: 80 13 01 00 [08:44:57]Write to MH i2c: E2 08 00 3F 9D 80 13 01 00 00 00 00 00 59 [08:44:57]Write i2c OK [08:44:57]MH_I2C_Read... [08:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:57]Read from MH i2c: E2 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: E2 0E 00 [08:44:57]MH_I2C_Read... [08:44:57]Read from MH i2c: E2 0E 00 3F 9D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 24 [08:44:57]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:44:57]wFMCommunicate OK [08:44:57]SAM_PROTO_GetShiftState done [08:44:57]FM_GetShiftState done [08:44:57]opened in 1722298242 [08:44:57]opened+sec_in_day 1722384642 [08:44:57]quantity*price = 100060 [08:44:57]sum+1 = 100062 [08:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 56 30.07.2024 08:45 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119004 ФПД: 221073395267704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084507&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119004&fm=221073395267704&tin=02508201610067®Number=0000000000092660&sum=100000 [08:44:58]StoreToDocumentArchive [08:44:58]shift 435 fd 119004 [08:44:58]save to /storage/0435/doc_00119004 [08:44:58]save last doc name /storage/0435/doc_00119004 to /storage/kkm_last_doc_name [08:44:58]save OK [08:44:58]Clear old archive folders... [08:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:58]tlvbuf is 01E564A0 [08:44:58]SAM_PROTO_ClearQueue [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 09 00 00 [08:44:58]Write to MH i2c: E2 08 00 4C 9D 80 09 00 00 00 00 00 00 5B [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 4C 9D 00 90 00 5D [08:44:58]RAPDU: 90 00 [08:44:58]wFMCommunicate OK [08:44:58]SAM_PROTO_ClearQueue done [08:44:58]KKMCreateOFDPacket [08:44:58]OFDProtocolAddRootSTLVToBuf [08:44:58]FM_MakeSignedData [08:44:58]FM_MakeSignedData [08:44:58]SAM_PROTO_SignData [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 0D 01 02 [08:44:58]Write to MH i2c: E2 08 00 4D 9D 80 0D 01 02 00 00 00 00 63 [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 4D 9D 00 90 00 5E [08:44:58]RAPDU: 90 00 [08:44:58]wFMCommunicate OK [08:44:58]wFMCommunicate request_size=255 [08:44:58]MH_SAM_APDU [08:44: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 2A 3A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 13 A8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D0 01 00 35 04 06 00 C9 [08:44:58]Write to MH i2c: E2 02 01 4E 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2A 3A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 13 A8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D0 01 00 35 04 06 00 C9 00 00 30 [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 4E 9D 00 90 00 5F [08:44:58]RAPDU: 90 00 [08:44:58]wFMCommunicate OK [08:44:58]wFMCommunicate request_size=10 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 0D 02 02 05 10 A9 31 B8 78 [08:44:58]Write to MH i2c: E2 0D 00 4F 9D 80 0D 02 02 05 00 10 A9 31 B8 78 00 00 8A [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 03 00 4F 9D 00 90 00 60 [08:44:58]RAPDU: 90 00 [08:44:58]wFMCommunicate OK [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 0D 03 02 [08:44:58]Write to MH i2c: E2 08 00 50 9D 80 0D 03 02 00 00 00 00 68 [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:58]Read from MH i2c: E2 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 0B 00 [08:44:58]MH_I2C_Read... [08:44:58]Read from MH i2c: E2 0B 00 50 9D 00 0A 55 68 C8 71 85 0F B1 90 00 AE [08:44:58]RAPDU: 0A 55 68 C8 71 85 0F B1 90 00 [08:44:58]wFMCommunicate OK [08:44:58]SAM_PROTO_SignData done [08:44:58]FM_MakeSignedData done [08:44:58]CreateOFDProtocolMessage [08:44:58]wFMCommunicate request_size=4 [08:44:58]MH_SAM_APDU [08:44:58]CAPDU: 80 11 00 00 [08:44:58]Write to MH i2c: E2 08 00 51 9D 80 11 00 00 00 00 00 00 68 [08:44:58]Write i2c OK [08:44:58]MH_I2C_Read... [08:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:59]Read from MH i2c: E2 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: E2 17 00 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: E2 17 00 51 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [08:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:44:59]wFMCommunicate OK [08:44:59]CreateOFDProtocolMessage done [08:44:59]OFDSenderStorePacket 119004 [08:44:59]StoreOFDPacket docnum=119004 [08:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 57 07 01 CA 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2A 3A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 13 A8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D0 01 00 35 04 06 00 C9 10 A9 31 B8 78 0A 55 68 C8 71 85 0F B1 [08:44:59]CheckFolder [08:44:59]dirname=/storage/ofd_packets [08:44:59]CheckFolder done [08:44:59]ProducePacketName [08:44:59]name=ofd_packets/00119004 [08:44:59]NVStorageSaveData ofd_packets/00119004 [08:44:59]File name is /storage/ofd_packets/00119004 [08:44:59]Write 301 bytes [08:44:59]NVStorageSaveData done [08:44:59]OFDSenderStorePacket done [08:44:59]KKMCreateOFDPacket done [08:44:59]NVStorageSaveData kkm_last_timestamp [08:44:59]File name is /storage/kkm_last_timestamp [08:44:59]Write 4 bytes [08:44:59]NVStorageSaveData done [08:44:59]ExternCall_PrintAddStr [08:44:59]wPrintStart [08:44:59]Write to MH i2c: 01 00 00 52 9D EF [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: 01 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: 01 07 00 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: 01 07 00 52 9D 00 00 00 00 00 FF 0F 04 [08:44:59]RasterBufferAndPrint [08:44:59]line Счет N : (1)949919 [08:44:59]line ИНН: 02508201610067 [08:44:59]line Контрольно-Кассовый Чек [08:44:59]line ПРОДАЖА [08:44:59]line ТРК (МРК, ГНК) : 41 [08:44:59]line Товар: 2710124130 [08:44:59]line Аи-92-К-4 [08:44:59]line 14.890 * 67.20 [08:44:59]line = 1000.61 [08:44:59]line НДС 12% НСП 1% [08:44:59]line > о реализуемом товаре [08:44:59]line ОКРУГЛЕНИЕ: -0.61 [08:44:59]line ИТОГО: 1000.00 [08:44:59]line НСП 1% : 8.85 [08:44:59]line НДС 12% : 106.26 [08:44:59]line Наличными: 0.00 [08:44:59]line Безнал.: 1000.00 [08:44:59]line Место: АЗС № 134 "Партнер Нефть" [08:44:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:44:59]line СНО: Общий режим [08:44:59]line Чек 56 30.07.2024 08:45 [08:44:59]line Смена: 435 ФФД: 1.0 [08:44:59]line ЗНМ: 0300000044 [08:44:59]line РНМ: 0000000000092660 [08:44:59]line Версия ККМ: 001 [08:44:59]line Платежная система: Бакай Банк [08:44:59]line ФМ: 0000000000874939 [08:44:59]line ФД: 119004 [08:44:59]line ФПД: 221073395267704 [08:44:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T084507&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119004&fm=221073395267704&tin=02508201610067®Number=0000000000092660&sum=100000 [08:44:59]OFD Sender: Processing packet 119004 [packets to send 86, broken 85] [08:44:59]ProducePacketName [08:44:59]name=ofd_packets/00119004 [08:44:59]OFD Sender: To server: pG, [08:44:59]CommunicateWithHost lk.salyk.kg:30040 [08:44:59]ConnectInit lk.salyk.kg [08:44:59]written 0, free lines is 4095 [08:44:59]Connected sock=10 [08:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 57 07 01 CA 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 2A 3A 00 00 00 00 00 37 04 06 00 40 1A 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 13 A8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D0 01 00 35 04 06 00 C9 10 A9 31 B8 78 0A 55 68 C8 71 85 0F B1 [08:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EC 2D 47 00 F5 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D0 01 00 F4 03 04 00 9E 55 A8 66 B6 04 01 00 00 F9 4D 8E 73 89 6E 43 7A [08:44:59]CommunicateWithHost err = 0 [08:44:59]CheckOFDResponse [08:44:59]1017 (14) - 77093643461234 [08:44:59]1041 (16) - 0000000000874939 [08:44:59]1040 (4) - 119004 [08:44:59]1012 (4) - 30.07.2024 02:53 [08:44:59]1206 (1) - 0 [08:44:59]OFD Sender: Remove packet 119004 [08:44:59]ProducePacketName [08:44:59]name=ofd_packets/00119004 [08:44:59]NVStorageDeleteData [08:44:59]Write to MH i2c: 01 00 00 7C 9D 19 [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: 01 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: 01 07 00 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: 01 07 00 7C 9D 00 00 00 00 00 D8 0C 04 [08:44:59]RasterBufferAndPrint [08:44:59]line [08:44:59]line [08:44:59]line [08:44:59]line [08:44:59]line [08:44:59]written 0, free lines is 3295 [08:44:59]MH_Cut [08:44:59]Write to MH i2c: D1 01 00 83 9D 01 F2 [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: D1 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: D1 01 00 [08:44:59]MH_I2C_Read... [08:44:59]Read from MH i2c: D1 01 00 83 9D 00 F1 [08:44:59]Write to MH i2c: 01 00 00 84 9D 21 [08:44:59]Write i2c OK [08:44:59]MH_I2C_Read... [08:45:00]OFD Sender: No OFD packet to send [08:45:00]*** Cut start [08:45:00]*** Partial cut [08:45:00]*** CUTSNS_PIN = 1 [08:45:00]*** CUTSNS_PIN = 0 [08:45:00]*** Brake cut motor [08:45:01]Read from MH i2c: 01 [08:45:01]MH_I2C_Read... [08:45:01]*** Stop cut motor [08:45:01]*** Cut end [08:45:01]Read from MH i2c: 01 07 00 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: 01 07 00 84 9D 00 00 00 00 00 FF 0F 36 [08:45:01]process_action close_receipt done [08:45:01]requested_data is exist [08:45:01]produce_requested_data [08:45:01]requested_item fm.sn is exist - process it [08:45:01]wFMCommunicate request_size=4 [08:45:01]MH_SAM_APDU [08:45:01]CAPDU: 80 11 00 00 [08:45:01]Write to MH i2c: E2 08 00 85 9D 80 11 00 00 00 00 00 00 9C [08:45:01]Write i2c OK [08:45:01]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 17 00 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 17 00 85 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F7 [08:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:45:01]wFMCommunicate OK [08:45:01]requested_item fd.num is exist - process it [08:45:01]SAM_PROTO_GetFieldsCounters [08:45:01]wFMCommunicate request_size=4 [08:45:01]MH_SAM_APDU [08:45:01]CAPDU: 80 13 00 00 [08:45:01]Write to MH i2c: E2 08 00 86 9D 80 13 00 00 00 00 00 00 9F [08:45:01]Write i2c OK [08:45:01]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 62 00 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 62 00 86 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [08:45:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:01]wFMCommunicate OK [08:45:01]SAM_PROTO_GetFieldsCounters done [08:45:01]requested_item shift.num is exist - process it [08:45:01]requested_item shift.opened is exist - process it [08:45:01]req_shift_opened [08:45:01]FM_GetShiftState [08:45:01]SAM_PROTO_GetShiftState [08:45:01]wFMCommunicate request_size=4 [08:45:01]MH_SAM_APDU [08:45:01]CAPDU: 80 13 01 00 [08:45:01]Write to MH i2c: E2 08 00 87 9D 80 13 01 00 00 00 00 00 A1 [08:45:01]Write i2c OK [08:45:01]MH_I2C_Read... [08:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:01]Read from MH i2c: E2 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 0E 00 [08:45:01]MH_I2C_Read... [08:45:01]Read from MH i2c: E2 0E 00 87 9D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6C [08:45:01]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:45:01]wFMCommunicate OK [08:45:01]SAM_PROTO_GetShiftState done [08:45:01]FM_GetShiftState done [08:45:01]req_shift_opened done [08:45:01]requested_item shift.open_date is exist - process it [08:45:01]req_shift_open_date [08:45:01]req_shift_open_date done [08:45:01]produce_requested_data done [08:45:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119004,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:45:01]process_action_free close_receipt [08:45:01]json_value_free [08:45:01]json_value_free done [08:45:01]process_json_proto returns [08:45:01]Send response to host [08:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119004,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:45:01]free response buf [08:45:01]execute_script done [08:45:01]execute_script returns [08:45:01]free content buf [08:45:01]Sock 9.Close socket [08:45:01]Sock 9.Thread stoped [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:30]OFD Sender: No OFD packet to send [08:46:35]OFD Sender: No OFD packet to send [08:46:40]OFD Sender: No OFD packet to send [08:46:45]OFD Sender: No OFD packet to send [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:00]OFD Sender: No OFD packet to send [08:47:05]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: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: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:03]accept exits with 7 [08:49:03]New connection [08:49:03]New thread 3067239780 created [08:49:03]Thread 3067383140 joined [08:49:03]Waiting for new connection... [08:49:03] Sock 7.Parse request [08:49:03]Sock 7.Check first char [08:49:03]Sock 7.First char is OK [08:49:03]request: POST /json_proto HTTP/1.0 [08:49:03]Method: POST [08:49:03]URL: /json_proto [08:49:03]Method is POST - this is cgi request [08:49:03]url: /json_proto [08:49:03]query_string will be loaded in cgi processing [08:49:03]execute_cgi json_proto POST (null) [08:49:03]execute_cgi path=json_proto method=POST [08:49:03]POST find Content-Length [08:49:03]Host: 172.17.45.7:8080 [08:49:03]Content-Length: 1200 [08:49:03]Content-Type: application/json [08:49:03] [08:49:03]POST finish read [08:49:03]Found Content-Length = 1200 [08:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949922\u000A30.07.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 131.100 x 76.20\u000A\u0418\u0422\u041E\u0413: 9989.82\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97462\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:03]execute_script... [08:49:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949922\u000A30.07.2024 08:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 131.100 x 76.20\u000A\u0418\u0422\u041E\u0413: 9989.82\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97462\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:03]POST & json_proto [08:49:03]process_json_proto [08:49:03]json parsed OK: [08:49:03]protocol is kg_v1.0 [08:49:03]action value=print_text [08:49:03]process_action print_text [08:49:03]cmd_print_text [08:49:03]ExternCall_PrintAddStr [08:49:03]wPrintStart [08:49:03]Write to MH i2c: 01 00 00 88 9D 25 [08:49:03]Write i2c OK [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: 01 [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: 01 07 00 [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: 01 07 00 88 9D 00 00 00 00 00 FF 0F 3A [08:49:03]RasterBufferAndPrint [08:49:03]line *****ТОВАРНЫЙ ЧЕК***** [08:49:03]line АЗС-134 [08:49:03]line Партнер нефть [08:49:03]line 02508201610067 [08:49:03]line Кассир : Айдарали у Б. [08:49:03]line Счет N : (1)949922 [08:49:03]line 30.07.2024 08:46 [08:49:03]line ПРОДАЖА [08:49:03]line ТРК (МРК, ГНК): 11 [08:49:03]line Вид ГСМ : 2710194800 [08:49:03]line ДТ-К-5 [08:49:03]line 131.100 x 76.20 [08:49:03]line ИТОГ: 9989.82 [08:49:03]line Тип оплаты: Талоны: Топливная Карта [08:49:03]line 97462 [08:49:03]line ______________________ [08:49:03]line (подпись) [08:49:03]written 0, free lines is 4095 [08:49:03]Write to MH i2c: 01 00 00 9C 9D 39 [08:49:03]Write i2c OK [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: 01 [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: 01 07 00 [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: 01 07 00 9C 9D 00 00 00 00 00 12 0E 60 [08:49:03]RasterBufferAndPrint [08:49:03]line [08:49:03]line [08:49:03]line [08:49:03]line [08:49:03]line [08:49:03]written 0, free lines is 3604 [08:49:03]MH_Cut [08:49:03]Write to MH i2c: D1 01 00 A3 9D 01 12 [08:49:03]Write i2c OK [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: D1 [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: D1 01 00 [08:49:03]MH_I2C_Read... [08:49:03]Read from MH i2c: D1 01 00 A3 9D 00 11 [08:49:03]Write to MH i2c: 01 00 00 A4 9D 41 [08:49:03]Write i2c OK [08:49:03]MH_I2C_Read... [08:49:04]*** Cut start [08:49:04]*** Partial cut [08:49:04]*** CUTSNS_PIN = 1 [08:49:04]*** CUTSNS_PIN = 0 [08:49:04]*** Brake cut motor [08:49:04]Read from MH i2c: 01 [08:49:04]MH_I2C_Read... [08:49:04]*** Stop cut motor [08:49:04]*** Cut end [08:49:04]Read from MH i2c: 01 07 00 [08:49:04]MH_I2C_Read... [08:49:04]Read from MH i2c: 01 07 00 A4 9D 00 00 00 00 00 FF 0F 56 [08:49:04]process_action print_text done [08:49:04]requested_data is exist [08:49:04]produce_requested_data [08:49:04]requested_item fm.sn is exist - process it [08:49:04]wFMCommunicate request_size=4 [08:49:04]MH_SAM_APDU [08:49:04]CAPDU: 80 11 00 00 [08:49:04]Write to MH i2c: E2 08 00 A5 9D 80 11 00 00 00 00 00 00 BC [08:49:04]Write i2c OK [08:49:04]MH_I2C_Read... [08:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:05]Read from MH i2c: E2 [08:49:05]MH_I2C_Read... [08:49:05]Read from MH i2c: E2 17 00 [08:49:05]MH_I2C_Read... [08:49:05]Read from MH i2c: E2 17 00 A5 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [08:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:49:05]wFMCommunicate OK [08:49:05]requested_item fd.num is exist - process it [08:49:05]SAM_PROTO_GetFieldsCounters [08:49:05]wFMCommunicate request_size=4 [08:49:05]MH_SAM_APDU [08:49:05]CAPDU: 80 13 00 00 [08:49:05]Write to MH i2c: E2 08 00 A6 9D 80 13 00 00 00 00 00 00 BF [08:49:05]Write i2c OK [08:49:05]MH_I2C_Read... [08:49:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:05]Read from MH i2c: E2 [08:49:05]MH_I2C_Read... [08:49:05]Read from MH i2c: E2 62 00 [08:49:05]MH_I2C_Read... [08:49:05]Read from MH i2c: E2 62 00 A6 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [08:49:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:05]wFMCommunicate OK [08:49:05]SAM_PROTO_GetFieldsCounters done [08:49:05]requested_item shift.num is exist - process it [08:49:05]requested_item shift.opened is exist - process it [08:49:05]req_shift_opened [08:49:05]FM_GetShiftState [08:49:05]SAM_PROTO_GetShiftState [08:49:05]wFMCommunicate request_size=4 [08:49:05]MH_SAM_APDU [08:49:05]CAPDU: 80 13 01 00 [08:49:05]Write to MH i2c: E2 08 00 A7 9D 80 13 01 00 00 00 00 00 C1 [08:49:05]Write i2c OK [08:49:05]MH_I2C_Read... [08:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:05]Read from MH i2c: E2 [08:49:05]MH_I2C_Read... [08:49:05]Read from MH i2c: E2 0E 00 [08:49:05]MH_I2C_Read... [08:49:05]Read from MH i2c: E2 0E 00 A7 9D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8C [08:49:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:49:05]wFMCommunicate OK [08:49:05]SAM_PROTO_GetShiftState done [08:49:05]FM_GetShiftState done [08:49:05]req_shift_opened done [08:49:05]requested_item shift.open_date is exist - process it [08:49:05]req_shift_open_date [08:49:05]req_shift_open_date done [08:49:05]produce_requested_data done [08:49:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119004,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:49:05]process_action_free print_text [08:49:05]json_value_free [08:49:05]json_value_free done [08:49:05]process_json_proto returns [08:49:05]Send response to host [08:49:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119004,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:49:05]free response buf [08:49:05]execute_script done [08:49:05]execute_script returns [08:49:05]free content buf [08:49:05]Sock 7.Close socket [08:49:05]Sock 7.Thread stoped [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [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: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:28]accept exits with 9 [08:50:28]New connection [08:50:28]New thread 3067383140 created [08:50:28]Thread 3067239780 joined [08:50:28]Waiting for new connection... [08:50:28] Sock 9.Parse request [08:50:28]Sock 9.Check first char [08:50:28]Sock 9.First char is OK [08:50:28]request: POST /json_proto HTTP/1.0 [08:50:28]Method: POST [08:50:28]URL: /json_proto [08:50:28]Method is POST - this is cgi request [08:50:28]url: /json_proto [08:50:28]query_string will be loaded in cgi processing [08:50:28]execute_cgi json_proto POST (null) [08:50:28]execute_cgi path=json_proto method=POST [08:50:28]POST find Content-Length [08:50:28]Host: 172.17.45.7:8080 [08:50:28]Content-Length: 677 [08:50:28]Content-Type: application/json [08:50:28] [08:50:28]POST finish read [08:50:28]Found Content-Length = 677 [08:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:28]execute_script... [08:50: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)949924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:28]POST & json_proto [08:50:28]process_json_proto [08:50:28]json parsed OK: [08:50:28]protocol is kg_v1.0 [08:50:28]action value=close_receipt [08:50:28]process_action close_receipt [08:50:28]cmd_close_receipt [08:50:28]MH_GetDate [08:50:28]Write to MH i2c: F0 00 00 A8 9D 34 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: F0 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: F0 09 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: F0 09 00 A8 9D 00 5E A9 A8 66 90 0F 3E 66 95 [08:50:28]GetLastDocTimeStamp 1722329107 [08:50:28]current date 1722329438 [08:50:28]FM_GetShiftState [08:50:28]SAM_PROTO_GetShiftState [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 13 01 00 [08:50:28]Write to MH i2c: E2 08 00 A9 9D 80 13 01 00 00 00 00 00 C3 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:28]Read from MH i2c: E2 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0E 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: E2 0E 00 A9 9D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8E [08:50:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:50:28]wFMCommunicate OK [08:50:28]SAM_PROTO_GetShiftState done [08:50:28]FM_GetShiftState done [08:50:28]opened in 1722298242 [08:50:28]opened+sec_in_day 1722384642 [08:50:28]quantity*price = 50036 [08:50:28]sum+1 = 50037 [08:50:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 57 30.07.2024 08:50 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119005 ФПД: 257815110864638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085038&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119005&fm=257815110864638&tin=02508201610067®Number=0000000000092660&sum=50000 [08:50:29]StoreToDocumentArchive [08:50:29]shift 435 fd 119005 [08:50:29]save to /storage/0435/doc_00119005 [08:50:29]save last doc name /storage/0435/doc_00119005 to /storage/kkm_last_doc_name [08:50:29]save OK [08:50:29]Clear old archive folders... [08:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:29]tlvbuf is 021C8EE0 [08:50:29]SAM_PROTO_ClearQueue [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 09 00 00 [08:50:29]Write to MH i2c: E2 08 00 B6 9D 80 09 00 00 00 00 00 00 C5 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 B6 9D 00 90 00 C7 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]SAM_PROTO_ClearQueue done [08:50:29]KKMCreateOFDPacket [08:50:29]OFDProtocolAddRootSTLVToBuf [08:50:29]FM_MakeSignedData [08:50:29]FM_MakeSignedData [08:50:29]SAM_PROTO_SignData [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 01 02 [08:50:29]Write to MH i2c: E2 08 00 B7 9D 80 0D 01 02 00 00 00 00 CD [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 B7 9D 00 90 00 C8 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=255 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5E A9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D0 01 00 35 04 06 00 EA [08:50:29]Write to MH i2c: E2 02 01 B8 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5E A9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D0 01 00 35 04 06 00 EA 00 00 EB [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 B8 9D 00 90 00 C9 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=10 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 02 02 05 7B 42 19 CE FE [08:50:29]Write to MH i2c: E2 0D 00 B9 9D 80 0D 02 02 05 00 7B 42 19 CE FE 00 00 7C [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 B9 9D 00 90 00 CA [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 03 02 [08:50:29]Write to MH i2c: E2 08 00 BA 9D 80 0D 03 02 00 00 00 00 D2 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 0B 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 0B 00 BA 9D 00 CF 94 E7 64 99 AF 86 32 90 00 81 [08:50:29]RAPDU: CF 94 E7 64 99 AF 86 32 90 00 [08:50:29]wFMCommunicate OK [08:50:29]SAM_PROTO_SignData done [08:50:29]FM_MakeSignedData done [08:50:29]CreateOFDProtocolMessage [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 11 00 00 [08:50:29]Write to MH i2c: E2 08 00 BB 9D 80 11 00 00 00 00 00 00 D2 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 17 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 17 00 BB 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [08:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:50:29]wFMCommunicate OK [08:50:29]CreateOFDProtocolMessage done [08:50:29]OFDSenderStorePacket 119005 [08:50:29]StoreOFDPacket docnum=119005 [08:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BB 6B 07 01 61 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5E A9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D0 01 00 35 04 06 00 EA 7B 42 19 CE FE CF 94 E7 64 99 AF 86 32 [08:50:29]CheckFolder [08:50:29]dirname=/storage/ofd_packets [08:50:29]CheckFolder done [08:50:29]ProducePacketName [08:50:29]name=ofd_packets/00119005 [08:50:29]NVStorageSaveData ofd_packets/00119005 [08:50:29]File name is /storage/ofd_packets/00119005 [08:50:29]Write 301 bytes [08:50:29]NVStorageSaveData done [08:50:29]OFDSenderStorePacket done [08:50:29]KKMCreateOFDPacket done [08:50:29]NVStorageSaveData kkm_last_timestamp [08:50:29]File name is /storage/kkm_last_timestamp [08:50:29]Write 4 bytes [08:50:29]NVStorageSaveData done [08:50:29]ExternCall_PrintAddStr [08:50:29]wPrintStart [08:50:29]Write to MH i2c: 01 00 00 BC 9D 59 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 BC 9D 00 00 00 00 00 FF 0F 6E [08:50:29]RasterBufferAndPrint [08:50:29]line Счет N : (1)949924 [08:50:29]line ИНН: 02508201610067 [08:50:29]line Контрольно-Кассовый Чек [08:50:29]line ПРОДАЖА [08:50:29]line ТРК (МРК, ГНК) : 41 [08:50:29]line Товар: 2710124130 [08:50:29]line Аи-92-К-4 [08:50:29]line 7.380 * 67.80 [08:50:29]line = 500.36 [08:50:29]line НДС 12% НСП 1% [08:50:29]line > о реализуемом товаре [08:50:29]line ОКРУГЛЕНИЕ: -0.36 [08:50:29]line ИТОГО: 500.00 [08:50:29]line Внесено: 500.00 [08:50:29]line СДАЧА: 0.00 [08:50:29]line НСП 1% : 4.43 [08:50:29]line НДС 12% : 53.14 [08:50:29]line Наличными: 500.00 [08:50:29]line Безнал.: 0.00 [08:50:29]line Место: АЗС № 134 "Партнер Нефть" [08:50:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:50:29]line СНО: Общий режим [08:50:29]line Чек 57 30.07.2024 08:50 [08:50:29]line Смена: 435 ФФД: 1.0 [08:50:29]line ЗНМ: 0300000044 [08:50:29]line РНМ: 0000000000092660 [08:50:29]line Версия ККМ: 001 [08:50:29]line ФМ: 0000000000874939 [08:50:29]line ФД: 119005 [08:50:29]line ФПД: 257815110864638 [08:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085038&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119005&fm=257815110864638&tin=02508201610067®Number=0000000000092660&sum=50000 [08:50:30]OFD Sender: Processing packet 119005 [packets to send 86, broken 85] [08:50:30]ProducePacketName [08:50:30]name=ofd_packets/00119005 [08:50:30]OFD Sender: To server: pG, [08:50:30]CommunicateWithHost lk.salyk.kg:30040 [08:50:30]ConnectInit lk.salyk.kg [08:50:30]written 0, free lines is 4095 [08:50:30]Connected sock=10 [08:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BB 6B 07 01 61 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 5E A9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D0 01 00 35 04 06 00 EA 7B 42 19 CE FE CF 94 E7 64 99 AF 86 32 [08:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2B 51 47 00 61 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D0 01 00 F4 03 04 00 E9 56 A8 66 B6 04 01 00 00 89 B1 2E B4 3A 9E 1C F3 [08:50:30]CommunicateWithHost err = 0 [08:50:30]CheckOFDResponse [08:50:30]1017 (14) - 77093643461234 [08:50:30]1041 (16) - 0000000000874939 [08:50:30]1040 (4) - 119005 [08:50:30]1012 (4) - 30.07.2024 02:58 [08:50:30]1206 (1) - 0 [08:50:30]OFD Sender: Remove packet 119005 [08:50:30]ProducePacketName [08:50:30]name=ofd_packets/00119005 [08:50:30]NVStorageDeleteData [08:50:30]Write to MH i2c: 01 00 00 E6 9D 83 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 E6 9D 00 00 00 00 00 E3 0C 79 [08:50:30]RasterBufferAndPrint [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]written 0, free lines is 3305 [08:50:30]MH_Cut [08:50:30]Write to MH i2c: D1 01 00 ED 9D 01 5C [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: D1 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: D1 01 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: D1 01 00 ED 9D 00 5B [08:50:30]Write to MH i2c: 01 00 00 EE 9D 8B [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:31]OFD Sender: No OFD packet to send [08:50:31]*** Cut start [08:50:31]*** Partial cut [08:50:31]*** CUTSNS_PIN = 1 [08:50:31]*** CUTSNS_PIN = 0 [08:50:31]*** Brake cut motor [08:50:32]Read from MH i2c: 01 [08:50:32]MH_I2C_Read... [08:50:32]*** Stop cut motor [08:50:32]*** Cut end [08:50:32]Read from MH i2c: 01 07 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: 01 07 00 EE 9D 00 00 00 00 00 FF 0F A0 [08:50:32]process_action close_receipt done [08:50:32]requested_data is exist [08:50:32]produce_requested_data [08:50:32]requested_item fm.sn is exist - process it [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 11 00 00 [08:50:32]Write to MH i2c: E2 08 00 EF 9D 80 11 00 00 00 00 00 00 06 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 17 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 17 00 EF 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [08:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:50:32]wFMCommunicate OK [08:50:32]requested_item fd.num is exist - process it [08:50:32]SAM_PROTO_GetFieldsCounters [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 13 00 00 [08:50:32]Write to MH i2c: E2 08 00 F0 9D 80 13 00 00 00 00 00 00 09 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 62 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 62 00 F0 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [08:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:32]wFMCommunicate OK [08:50:32]SAM_PROTO_GetFieldsCounters done [08:50:32]requested_item shift.num is exist - process it [08:50:32]requested_item shift.opened is exist - process it [08:50:32]req_shift_opened [08:50:32]FM_GetShiftState [08:50:32]SAM_PROTO_GetShiftState [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 13 01 00 [08:50:32]Write to MH i2c: E2 08 00 F1 9D 80 13 01 00 00 00 00 00 0B [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 0E 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 0E 00 F1 9D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D6 [08:50:32]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:50:32]wFMCommunicate OK [08:50:32]SAM_PROTO_GetShiftState done [08:50:32]FM_GetShiftState done [08:50:32]req_shift_opened done [08:50:32]requested_item shift.open_date is exist - process it [08:50:32]req_shift_open_date [08:50:32]req_shift_open_date done [08:50:32]produce_requested_data done [08:50:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119005,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:50:32]process_action_free close_receipt [08:50:32]json_value_free [08:50:32]json_value_free done [08:50:32]process_json_proto returns [08:50:32]Send response to host [08:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119005,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:50:32]free response buf [08:50:32]execute_script done [08:50:32]execute_script returns [08:50:32]free content buf [08:50:32]Sock 9.Close socket [08:50:32]Sock 9.Thread stoped [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:51:58]accept exits with 7 [08:51:58]New connection [08:51:58]New thread 3067239780 created [08:51:58]Thread 3067383140 joined [08:51:58]Waiting for new connection... [08:51:58] Sock 7.Parse request [08:51:58]Sock 7.Check first char [08:51:58]Sock 7.First char is OK [08:51:58]request: POST /json_proto HTTP/1.0 [08:51:58]Method: POST [08:51:58]URL: /json_proto [08:51:58]Method is POST - this is cgi request [08:51:58]url: /json_proto [08:51:58]query_string will be loaded in cgi processing [08:51:58]execute_cgi json_proto POST (null) [08:51:58]execute_cgi path=json_proto method=POST [08:51:58]POST find Content-Length [08:51:58]Host: 172.17.45.7:8080 [08:51:58]Content-Length: 1199 [08:51:58]Content-Type: application/json [08:51:58] [08:51:58]POST finish read [08:51:58]Found Content-Length = 1199 [08:51:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949923\u000A30.07.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 78.750 x 76.20\u000A\u0418\u0422\u041E\u0413: 6000.75\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97462\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:58]execute_script... [08:51:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949923\u000A30.07.2024 08:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 78.750 x 76.20\u000A\u0418\u0422\u041E\u0413: 6000.75\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A97462\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:58]POST & json_proto [08:51:58]process_json_proto [08:51:58]json parsed OK: [08:51:58]protocol is kg_v1.0 [08:51:58]action value=print_text [08:51:58]process_action print_text [08:51:58]cmd_print_text [08:51:58]ExternCall_PrintAddStr [08:51:58]wPrintStart [08:51:58]Write to MH i2c: 01 00 00 F2 9D 8F [08:51:58]Write i2c OK [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 [08:51:58]MH_I2C_Read... [08:51:58]Read from MH i2c: 01 07 00 F2 9D 00 00 00 00 00 FF 0F A4 [08:51:58]RasterBufferAndPrint [08:51:58]line *****ТОВАРНЫЙ ЧЕК***** [08:51:58]line АЗС-134 [08:51:58]line Партнер нефть [08:51:58]line 02508201610067 [08:51:58]line Кассир : Айдарали у Б. [08:51:58]line Счет N : (1)949923 [08:51:58]line 30.07.2024 08:49 [08:51:58]line ПРОДАЖА [08:51:58]line ТРК (МРК, ГНК): 11 [08:51:58]line Вид ГСМ : 2710194800 [08:51:58]line ДТ-К-5 [08:51:58]line 78.750 x 76.20 [08:51:58]line ИТОГ: 6000.75 [08:51:58]line Тип оплаты: Талоны: Топливная Карта [08:51:58]line 97462 [08:51:58]line ______________________ [08:51:58]line (подпись) [08:51:58]written 0, free lines is 4095 [08:51:59]Write to MH i2c: 01 00 00 06 9E A4 [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: 01 07 00 06 9E 00 00 00 00 00 12 0E CB [08:51:59]RasterBufferAndPrint [08:51:59]line [08:51:59]line [08:51:59]line [08:51:59]line [08:51:59]line [08:51:59]written 0, free lines is 3604 [08:51:59]MH_Cut [08:51:59]Write to MH i2c: D1 01 00 0D 9E 01 7D [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D1 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D1 01 00 [08:51:59]MH_I2C_Read... [08:51:59]Read from MH i2c: D1 01 00 0D 9E 00 7C [08:51:59]Write to MH i2c: 01 00 00 0E 9E AC [08:51:59]Write i2c OK [08:51:59]MH_I2C_Read... [08:51:59]*** Cut start [08:51:59]*** Partial cut [08:51:59]*** CUTSNS_PIN = 1 [08:51:59]*** CUTSNS_PIN = 0 [08:51:59]*** Brake cut motor [08:52:00]Read from MH i2c: 01 [08:52:00]MH_I2C_Read... [08:52:00]*** Stop cut motor [08:52:00]*** Cut end [08:52:00]Read from MH i2c: 01 07 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: 01 07 00 0E 9E 00 00 00 00 00 FF 0F C1 [08:52:00]process_action print_text done [08:52:00]requested_data is exist [08:52:00]produce_requested_data [08:52:00]requested_item fm.sn is exist - process it [08:52:00]wFMCommunicate request_size=4 [08:52:00]MH_SAM_APDU [08:52:00]CAPDU: 80 11 00 00 [08:52:00]Write to MH i2c: E2 08 00 0F 9E 80 11 00 00 00 00 00 00 27 [08:52:00]Write i2c OK [08:52:00]MH_I2C_Read... [08:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:00]Read from MH i2c: E2 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 17 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 17 00 0F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [08:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:52:00]wFMCommunicate OK [08:52:00]requested_item fd.num is exist - process it [08:52:00]SAM_PROTO_GetFieldsCounters [08:52:00]wFMCommunicate request_size=4 [08:52:00]MH_SAM_APDU [08:52:00]CAPDU: 80 13 00 00 [08:52:00]Write to MH i2c: E2 08 00 10 9E 80 13 00 00 00 00 00 00 2A [08:52:00]Write i2c OK [08:52:00]MH_I2C_Read... [08:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:00]Read from MH i2c: E2 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 62 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 62 00 10 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [08: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:00]wFMCommunicate OK [08:52:00]SAM_PROTO_GetFieldsCounters done [08:52:00]requested_item shift.num is exist - process it [08:52:00]requested_item shift.opened is exist - process it [08:52:00]req_shift_opened [08:52:00]FM_GetShiftState [08:52:00]SAM_PROTO_GetShiftState [08:52:00]wFMCommunicate request_size=4 [08:52:00]MH_SAM_APDU [08:52:00]CAPDU: 80 13 01 00 [08:52:00]Write to MH i2c: E2 08 00 11 9E 80 13 01 00 00 00 00 00 2C [08:52:00]Write i2c OK [08:52:00]MH_I2C_Read... [08:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:00]Read from MH i2c: E2 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 0E 00 [08:52:00]MH_I2C_Read... [08:52:00]Read from MH i2c: E2 0E 00 11 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F7 [08:52:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:52:00]wFMCommunicate OK [08:52:00]SAM_PROTO_GetShiftState done [08:52:00]FM_GetShiftState done [08:52:00]req_shift_opened done [08:52:00]requested_item shift.open_date is exist - process it [08:52:00]req_shift_open_date [08:52:00]req_shift_open_date done [08:52:00]produce_requested_data done [08:52:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119005,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:52:00]process_action_free print_text [08:52:00]json_value_free [08:52:00]json_value_free done [08:52:00]process_json_proto returns [08:52:00]Send response to host [08:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119005,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:52:00]free response buf [08:52:00]execute_script done [08:52:00]execute_script returns [08:52:00]free content buf [08:52:00]Sock 7.Close socket [08:52:00]Sock 7.Thread stoped [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]accept exits with 10 [08:54:36]New connection [08:54:36]New thread 3067383140 created [08:54:36]Thread 3067239780 joined [08:54:36]Waiting for new connection... [08:54:36] Sock 10.Parse request [08:54:36]Sock 10.Check first char [08:54:36]Sock 10.First char is OK [08:54:36]request: POST /json_proto HTTP/1.0 [08:54:36]Method: POST [08:54:36]URL: /json_proto [08:54:36]Method is POST - this is cgi request [08:54:36]url: /json_proto [08:54:36]query_string will be loaded in cgi processing [08:54:36]execute_cgi json_proto POST (null) [08:54:36]execute_cgi path=json_proto method=POST [08:54:36]POST find Content-Length [08:54:36]Host: 172.17.45.7:8080 [08:54:36]Content-Length: 682 [08:54:36]Content-Type: application/json [08:54:36] [08:54:36]POST finish read [08:54:36]Found Content-Length = 682 [08:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:54:36]execute_script... [08:54: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)949925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:54:36]POST & json_proto [08:54:36]process_json_proto [08:54:36]json parsed OK: [08:54:36]protocol is kg_v1.0 [08:54:36]action value=close_receipt [08:54:36]process_action close_receipt [08:54:36]cmd_close_receipt [08:54:36]MH_GetDate [08:54:36]Write to MH i2c: F0 00 00 12 9E 9F [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: F0 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: F0 09 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: F0 09 00 12 9E 00 55 AA A8 66 90 0F 3E 66 F8 [08:54:36]GetLastDocTimeStamp 1722329438 [08:54:36]current date 1722329685 [08:54:36]FM_GetShiftState [08:54:36]SAM_PROTO_GetShiftState [08:54:36]wFMCommunicate request_size=4 [08:54:36]MH_SAM_APDU [08:54:36]CAPDU: 80 13 01 00 [08:54:36]Write to MH i2c: E2 08 00 13 9E 80 13 01 00 00 00 00 00 2E [08:54:36]Write i2c OK [08:54:36]MH_I2C_Read... [08:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:36]Read from MH i2c: E2 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 0E 00 [08:54:36]MH_I2C_Read... [08:54:36]Read from MH i2c: E2 0E 00 13 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F9 [08:54:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:54:36]wFMCommunicate OK [08:54:36]SAM_PROTO_GetShiftState done [08:54:36]FM_GetShiftState done [08:54:36]opened in 1722298242 [08:54:36]opened+sec_in_day 1722384642 [08:54:36]quantity*price = 100005 [08:54:36]sum+1 = 100006 [08:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 58 30.07.2024 08:54 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119006 ФПД: 50127266715613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085445&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119006&fm=50127266715613&tin=02508201610067®Number=0000000000092660&sum=100000 [08:54:37]StoreToDocumentArchive [08:54:37]shift 435 fd 119006 [08:54:37]save to /storage/0435/doc_00119006 [08:54:37]save last doc name /storage/0435/doc_00119006 to /storage/kkm_last_doc_name [08:54:37]save OK [08:54:37]Clear old archive folders... [08:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:37]tlvbuf is 020D8400 [08:54:37]SAM_PROTO_ClearQueue [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 09 00 00 [08:54:37]Write to MH i2c: E2 08 00 20 9E 80 09 00 00 00 00 00 00 30 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 20 9E 00 90 00 32 [08:54:37]RAPDU: 90 00 [08:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_ClearQueue done [08:54:37]KKMCreateOFDPacket [08:54:37]OFDProtocolAddRootSTLVToBuf [08:54:37]FM_MakeSignedData [08:54:37]FM_MakeSignedData [08:54:37]SAM_PROTO_SignData [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 0D 01 02 [08:54:37]Write to MH i2c: E2 08 00 21 9E 80 0D 01 02 00 00 00 00 38 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:37]Read from MH i2c: E2 03 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 21 9E 00 90 00 33 [08:54:37]RAPDU: 90 00 [08:54:37]wFMCommunicate OK [08:54:37]wFMCommunicate request_size=255 [08:54:37]MH_SAM_APDU [08:54: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 55 AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D0 01 00 35 04 06 00 2D [08:54:37]Write to MH i2c: E2 02 01 22 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 55 AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D0 01 00 35 04 06 00 2D 00 00 22 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 22 9E 00 90 00 34 [08:54:37]RAPDU: 90 00 [08:54:37]wFMCommunicate OK [08:54:37]wFMCommunicate request_size=10 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 0D 02 02 05 97 29 ED 17 DD [08:54:37]Write to MH i2c: E2 0D 00 23 9E 80 0D 02 02 05 00 97 29 ED 17 DD 00 00 E6 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 03 00 23 9E 00 90 00 35 [08:54:37]RAPDU: 90 00 [08:54:37]wFMCommunicate OK [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 0D 03 02 [08:54:37]Write to MH i2c: E2 08 00 24 9E 80 0D 03 02 00 00 00 00 3D [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0B 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 0B 00 24 9E 00 C3 BB 56 10 C5 2A 79 E0 90 00 6A [08:54:37]RAPDU: C3 BB 56 10 C5 2A 79 E0 90 00 [08:54:37]wFMCommunicate OK [08:54:37]SAM_PROTO_SignData done [08:54:37]FM_MakeSignedData done [08:54:37]CreateOFDProtocolMessage [08:54:37]wFMCommunicate request_size=4 [08:54:37]MH_SAM_APDU [08:54:37]CAPDU: 80 11 00 00 [08:54:37]Write to MH i2c: E2 08 00 25 9E 80 11 00 00 00 00 00 00 3D [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:37]Read from MH i2c: E2 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: E2 17 00 25 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [08:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:54:37]wFMCommunicate OK [08:54:37]CreateOFDProtocolMessage done [08:54:37]OFDSenderStorePacket 119006 [08:54:37]StoreOFDPacket docnum=119006 [08:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B4 B0 07 01 E7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 55 AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D0 01 00 35 04 06 00 2D 97 29 ED 17 DD C3 BB 56 10 C5 2A 79 E0 [08:54:37]CheckFolder [08:54:37]dirname=/storage/ofd_packets [08:54:37]CheckFolder done [08:54:37]ProducePacketName [08:54:37]name=ofd_packets/00119006 [08:54:37]NVStorageSaveData ofd_packets/00119006 [08:54:37]File name is /storage/ofd_packets/00119006 [08:54:37]Write 301 bytes [08:54:37]NVStorageSaveData done [08:54:37]OFDSenderStorePacket done [08:54:37]KKMCreateOFDPacket done [08:54:37]NVStorageSaveData kkm_last_timestamp [08:54:37]File name is /storage/kkm_last_timestamp [08:54:37]Write 4 bytes [08:54:37]NVStorageSaveData done [08:54:37]ExternCall_PrintAddStr [08:54:37]wPrintStart [08:54:37]Write to MH i2c: 01 00 00 26 9E C4 [08:54:37]Write i2c OK [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 [08:54:37]MH_I2C_Read... [08:54:37]Read from MH i2c: 01 07 00 26 9E 00 00 00 00 00 FF 0F D9 [08:54:37]RasterBufferAndPrint [08:54:37]line Счет N : (1)949925 [08:54:37]line ИНН: 02508201610067 [08:54:37]line Контрольно-Кассовый Чек [08:54:37]line ПРОДАЖА [08:54:37]line ТРК (МРК, ГНК) : 41 [08:54:37]line Товар: 2710124130 [08:54:37]line Аи-92-К-4 [08:54:37]line 14.750 * 67.80 [08:54:37]line = 1000.05 [08:54:37]line НДС 12% НСП 1% [08:54:37]line > о реализуемом товаре [08:54:37]line ОКРУГЛЕНИЕ: -0.05 [08:54:37]line ИТОГО: 1000.00 [08:54:37]line Внесено: 1000.00 [08:54:37]line СДАЧА: 0.00 [08:54:37]line НСП 1% : 8.85 [08:54:37]line НДС 12% : 106.20 [08:54:37]line Наличными: 1000.00 [08:54:37]line Безнал.: 0.00 [08:54:37]line Место: АЗС № 134 "Партнер Нефть" [08:54:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:54:37]line СНО: Общий режим [08:54:37]line Чек 58 30.07.2024 08:54 [08:54:37]line Смена: 435 ФФД: 1.0 [08:54:37]line ЗНМ: 0300000044 [08:54:37]line РНМ: 0000000000092660 [08:54:37]line Версия ККМ: 001 [08:54:37]line ФМ: 0000000000874939 [08:54:37]line ФД: 119006 [08:54:37]line ФПД: 50127266715613 [08:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085445&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119006&fm=50127266715613&tin=02508201610067®Number=0000000000092660&sum=100000 [08:54:38]OFD Sender: Processing packet 119006 [packets to send 86, broken 85] [08:54:38]ProducePacketName [08:54:38]name=ofd_packets/00119006 [08:54:38]OFD Sender: To server: pG, [08:54:38]CommunicateWithHost lk.salyk.kg:30040 [08:54:38]ConnectInit lk.salyk.kg [08:54:38]written 0, free lines is 4095 [08:54:38]Connected sock=9 [08:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B4 B0 07 01 E7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 55 AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D0 01 00 35 04 06 00 2D 97 29 ED 17 DD C3 BB 56 10 C5 2A 79 E0 [08:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D2 3B 47 00 77 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D0 01 00 F4 03 04 00 E1 57 A8 66 B6 04 01 00 00 46 E1 E2 6C F8 BE 34 3C [08:54:38]CommunicateWithHost err = 0 [08:54:38]CheckOFDResponse [08:54:38]1017 (14) - 77093643461234 [08:54:38]1041 (16) - 0000000000874939 [08:54:38]1040 (4) - 119006 [08:54:38]1012 (4) - 30.07.2024 03:02 [08:54:38]1206 (1) - 0 [08:54:38]OFD Sender: Remove packet 119006 [08:54:38]ProducePacketName [08:54:38]name=ofd_packets/00119006 [08:54:38]NVStorageDeleteData [08:54:38]Write to MH i2c: 01 00 00 50 9E EE [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 07 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: 01 07 00 50 9E 00 00 00 00 00 E5 0C E6 [08:54:38]RasterBufferAndPrint [08:54:38]line [08:54:38]line [08:54:38]line [08:54:38]line [08:54:38]line [08:54:38]written 0, free lines is 3307 [08:54:38]MH_Cut [08:54:38]Write to MH i2c: D1 01 00 57 9E 01 C7 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: D1 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: D1 01 00 [08:54:38]MH_I2C_Read... [08:54:38]Read from MH i2c: D1 01 00 57 9E 00 C6 [08:54:38]Write to MH i2c: 01 00 00 58 9E F6 [08:54:38]Write i2c OK [08:54:38]MH_I2C_Read... [08:54:38]OFD Sender: No OFD packet to send [08:54:39]*** Cut start [08:54:39]*** Partial cut [08:54:39]*** CUTSNS_PIN = 1 [08:54:39]*** CUTSNS_PIN = 0 [08:54:39]*** Brake cut motor [08:54:39]Read from MH i2c: 01 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: 01 07 00 [08:54:39]MH_I2C_Read... [08:54:39]*** Stop cut motor [08:54:39]*** Cut end [08:54:39]Read from MH i2c: 01 07 00 58 9E 00 00 00 00 00 FF 0F 0B [08:54:39]process_action close_receipt done [08:54:39]requested_data is exist [08:54:39]produce_requested_data [08:54:39]requested_item fm.sn is exist - process it [08:54:39]wFMCommunicate request_size=4 [08:54:39]MH_SAM_APDU [08:54:39]CAPDU: 80 11 00 00 [08:54:39]Write to MH i2c: E2 08 00 59 9E 80 11 00 00 00 00 00 00 71 [08:54:39]Write i2c OK [08:54:39]MH_I2C_Read... [08:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:39]Read from MH i2c: E2 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: E2 17 00 [08:54:39]MH_I2C_Read... [08:54:39]Read from MH i2c: E2 17 00 59 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [08:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:54:39]wFMCommunicate OK [08:54:39]requested_item fd.num is exist - process it [08:54:39]SAM_PROTO_GetFieldsCounters [08:54:39]wFMCommunicate request_size=4 [08:54:39]MH_SAM_APDU [08:54:39]CAPDU: 80 13 00 00 [08:54:39]Write to MH i2c: E2 08 00 5A 9E 80 13 00 00 00 00 00 00 74 [08:54:39]Write i2c OK [08:54:39]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 62 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 62 00 5A 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [08:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_GetFieldsCounters done [08:54:40]requested_item shift.num is exist - process it [08:54:40]requested_item shift.opened is exist - process it [08:54:40]req_shift_opened [08:54:40]FM_GetShiftState [08:54:40]SAM_PROTO_GetShiftState [08:54:40]wFMCommunicate request_size=4 [08:54:40]MH_SAM_APDU [08:54:40]CAPDU: 80 13 01 00 [08:54:40]Write to MH i2c: E2 08 00 5B 9E 80 13 01 00 00 00 00 00 76 [08:54:40]Write i2c OK [08:54:40]MH_I2C_Read... [08:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:40]Read from MH i2c: E2 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0E 00 [08:54:40]MH_I2C_Read... [08:54:40]Read from MH i2c: E2 0E 00 5B 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 41 [08:54:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:54:40]wFMCommunicate OK [08:54:40]SAM_PROTO_GetShiftState done [08:54:40]FM_GetShiftState done [08:54:40]req_shift_opened done [08:54:40]requested_item shift.open_date is exist - process it [08:54:40]req_shift_open_date [08:54:40]req_shift_open_date done [08:54:40]produce_requested_data done [08:54:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119006,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:54:40]process_action_free close_receipt [08:54:40]json_value_free [08:54:40]json_value_free done [08:54:40]process_json_proto returns [08:54:40]Send response to host [08:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119006,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:54:40]free response buf [08:54:40]execute_script done [08:54:40]execute_script returns [08:54:40]free content buf [08:54:40]Sock 10.Close socket [08:54:40]Sock 10.Thread stoped [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:44]accept exits with 7 [08:55:44]New connection [08:55:44]New thread 3067239780 created [08:55:44]Thread 3067383140 joined [08:55:44]Waiting for new connection... [08:55:44] Sock 7.Parse request [08:55:44]Sock 7.Check first char [08:55:44]Sock 7.First char is OK [08:55:44]request: POST /json_proto HTTP/1.0 [08:55:44]Method: POST [08:55:44]URL: /json_proto [08:55:44]Method is POST - this is cgi request [08:55:44]url: /json_proto [08:55:44]query_string will be loaded in cgi processing [08:55:44]execute_cgi json_proto POST (null) [08:55:44]execute_cgi path=json_proto method=POST [08:55:44]POST find Content-Length [08:55:44]Host: 172.17.45.7:8080 [08:55:44]Content-Length: 677 [08:55:44]Content-Type: application/json [08:55:44] [08:55:44]POST finish read [08:55:44]Found Content-Length = 677 [08:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:44]execute_script... [08: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)949926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:44]POST & json_proto [08:55:44]process_json_proto [08:55:44]json parsed OK: [08:55:44]protocol is kg_v1.0 [08:55:44]action value=close_receipt [08:55:44]process_action close_receipt [08:55:44]cmd_close_receipt [08:55:44]MH_GetDate [08:55:44]Write to MH i2c: F0 00 00 5C 9E E9 [08:55:44]Write i2c OK [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: F0 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: F0 09 00 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: F0 09 00 5C 9E 00 9A AA A8 66 90 0F 3E 66 87 [08:55:44]GetLastDocTimeStamp 1722329685 [08:55:44]current date 1722329754 [08:55:44]FM_GetShiftState [08:55:44]SAM_PROTO_GetShiftState [08:55:44]wFMCommunicate request_size=4 [08:55:44]MH_SAM_APDU [08:55:44]CAPDU: 80 13 01 00 [08:55:44]Write to MH i2c: E2 08 00 5D 9E 80 13 01 00 00 00 00 00 78 [08:55:44]Write i2c OK [08:55:44]MH_I2C_Read... [08:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:44]Read from MH i2c: E2 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: E2 0E 00 [08:55:44]MH_I2C_Read... [08:55:44]Read from MH i2c: E2 0E 00 5D 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 43 [08:55:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:55:44]wFMCommunicate OK [08:55:44]SAM_PROTO_GetShiftState done [08:55:44]FM_GetShiftState done [08:55:44]opened in 1722298242 [08:55:44]opened+sec_in_day 1722384642 [08:55:44]quantity*price = 50036 [08:55:44]sum+1 = 50037 [08:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 59 30.07.2024 08:55 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119007 ФПД: 262416382879668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085554&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119007&fm=262416382879668&tin=02508201610067®Number=0000000000092660&sum=50000 [08:55:45]StoreToDocumentArchive [08:55:45]shift 435 fd 119007 [08:55:45]save to /storage/0435/doc_00119007 [08:55:45]save last doc name /storage/0435/doc_00119007 to /storage/kkm_last_doc_name [08:55:45]save OK [08:55:45]Clear old archive folders... [08:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:45]tlvbuf is 01FB5E60 [08:55:45]SAM_PROTO_ClearQueue [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 09 00 00 [08:55:45]Write to MH i2c: E2 08 00 6A 9E 80 09 00 00 00 00 00 00 7A [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 6A 9E 00 90 00 7C [08:55:45]RAPDU: 90 00 [08:55:45]wFMCommunicate OK [08:55:45]SAM_PROTO_ClearQueue done [08:55:45]KKMCreateOFDPacket [08:55:45]OFDProtocolAddRootSTLVToBuf [08:55:45]FM_MakeSignedData [08:55:45]FM_MakeSignedData [08:55:45]SAM_PROTO_SignData [08:55:45]wFMCommunicate request_size=4 [08:55:45]MH_SAM_APDU [08:55:45]CAPDU: 80 0D 01 02 [08:55:45]Write to MH i2c: E2 08 00 6B 9E 80 0D 01 02 00 00 00 00 82 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:45]Read from MH i2c: E2 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 [08:55:45]MH_I2C_Read... [08:55:45]Read from MH i2c: E2 03 00 6B 9E 00 90 00 7D [08:55:45]RAPDU: 90 00 [08:55:45]wFMCommunicate OK [08:55:45]wFMCommunicate request_size=255 [08:55:45]MH_SAM_APDU [08: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 9A AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D0 01 00 35 04 06 00 EE [08:55:45]Write to MH i2c: E2 02 01 6C 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 9A AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D0 01 00 35 04 06 00 EE 00 00 E5 [08:55:45]Write i2c OK [08:55:45]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 03 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 03 00 6C 9E 00 90 00 7E [08:55:46]RAPDU: 90 00 [08:55:46]wFMCommunicate OK [08:55:46]wFMCommunicate request_size=10 [08:55:46]MH_SAM_APDU [08:55:46]CAPDU: 80 0D 02 02 05 AA 93 48 E7 B4 [08:55:46]Write to MH i2c: E2 0D 00 6D 9E 80 0D 02 02 05 00 AA 93 48 E7 B4 00 00 AF [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 03 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 03 00 6D 9E 00 90 00 7F [08:55:46]RAPDU: 90 00 [08:55:46]wFMCommunicate OK [08:55:46]wFMCommunicate request_size=4 [08:55:46]MH_SAM_APDU [08:55:46]CAPDU: 80 0D 03 02 [08:55:46]Write to MH i2c: E2 08 00 6E 9E 80 0D 03 02 00 00 00 00 87 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 0B 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 0B 00 6E 9E 00 1B 20 41 8F EC 04 DA BD 90 00 1A [08:55:46]RAPDU: 1B 20 41 8F EC 04 DA BD 90 00 [08:55:46]wFMCommunicate OK [08:55:46]SAM_PROTO_SignData done [08:55:46]FM_MakeSignedData done [08:55:46]CreateOFDProtocolMessage [08:55:46]wFMCommunicate request_size=4 [08:55:46]MH_SAM_APDU [08:55:46]CAPDU: 80 11 00 00 [08:55:46]Write to MH i2c: E2 08 00 6F 9E 80 11 00 00 00 00 00 00 87 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:46]Read from MH i2c: E2 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 17 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: E2 17 00 6F 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [08:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:55:46]wFMCommunicate OK [08:55:46]CreateOFDProtocolMessage done [08:55:46]OFDSenderStorePacket 119007 [08:55:46]StoreOFDPacket docnum=119007 [08:55:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 0B 07 01 28 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 9A AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D0 01 00 35 04 06 00 EE AA 93 48 E7 B4 1B 20 41 8F EC 04 DA BD [08:55:46]CheckFolder [08:55:46]dirname=/storage/ofd_packets [08:55:46]CheckFolder done [08:55:46]ProducePacketName [08:55:46]name=ofd_packets/00119007 [08:55:46]NVStorageSaveData ofd_packets/00119007 [08:55:46]File name is /storage/ofd_packets/00119007 [08:55:46]Write 301 bytes [08:55:46]NVStorageSaveData done [08:55:46]OFDSenderStorePacket done [08:55:46]KKMCreateOFDPacket done [08:55:46]NVStorageSaveData kkm_last_timestamp [08:55:46]File name is /storage/kkm_last_timestamp [08:55:46]Write 4 bytes [08:55:46]NVStorageSaveData done [08:55:46]ExternCall_PrintAddStr [08:55:46]wPrintStart [08:55:46]Write to MH i2c: 01 00 00 70 9E 0E [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 07 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 07 00 70 9E 00 00 00 00 00 FF 0F 23 [08:55:46]RasterBufferAndPrint [08:55:46]line Счет N : (1)949926 [08:55:46]line ИНН: 02508201610067 [08:55:46]line Контрольно-Кассовый Чек [08:55:46]line ПРОДАЖА [08:55:46]line ТРК (МРК, ГНК) : 51 [08:55:46]line Товар: 2710124130 [08:55:46]line Аи-92-К-4 [08:55:46]line 7.380 * 67.80 [08:55:46]line = 500.36 [08:55:46]line НДС 12% НСП 1% [08:55:46]line > о реализуемом товаре [08:55:46]line ОКРУГЛЕНИЕ: -0.36 [08:55:46]line ИТОГО: 500.00 [08:55:46]line Внесено: 500.00 [08:55:46]line СДАЧА: 0.00 [08:55:46]line НСП 1% : 4.43 [08:55:46]line НДС 12% : 53.14 [08:55:46]line Наличными: 500.00 [08:55:46]line Безнал.: 0.00 [08:55:46]line Место: АЗС № 134 "Партнер Нефть" [08:55:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:55:46]line СНО: Общий режим [08:55:46]line Чек 59 30.07.2024 08:55 [08:55:46]line Смена: 435 ФФД: 1.0 [08:55:46]line ЗНМ: 0300000044 [08:55:46]line РНМ: 0000000000092660 [08:55:46]line Версия ККМ: 001 [08:55:46]line ФМ: 0000000000874939 [08:55:46]line ФД: 119007 [08:55:46]line ФПД: 262416382879668 [08:55:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085554&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119007&fm=262416382879668&tin=02508201610067®Number=0000000000092660&sum=50000 [08:55:46]written 0, free lines is 4095 [08:55:46]OFD Sender: Processing packet 119007 [packets to send 86, broken 85] [08:55:46]ProducePacketName [08:55:46]name=ofd_packets/00119007 [08:55:46]OFD Sender: To server: pG, [08:55:46]CommunicateWithHost lk.salyk.kg:30040 [08:55:46]ConnectInit lk.salyk.kg [08:55:46]Connected sock=10 [08:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 0B 07 01 28 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 9A AA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D0 01 00 35 04 06 00 EE AA 93 48 E7 B4 1B 20 41 8F EC 04 DA BD [08:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3D 87 47 00 81 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D0 01 00 F4 03 04 00 25 58 A8 66 B6 04 01 00 00 A3 B3 8E AB 97 5A 2E 57 [08:55:46]CommunicateWithHost err = 0 [08:55:46]CheckOFDResponse [08:55:46]1017 (14) - 77093643461234 [08:55:46]1041 (16) - 0000000000874939 [08:55:46]1040 (4) - 119007 [08:55:46]1012 (4) - 30.07.2024 03:04 [08:55:46]1206 (1) - 0 [08:55:46]OFD Sender: Remove packet 119007 [08:55:46]ProducePacketName [08:55:46]name=ofd_packets/00119007 [08:55:46]NVStorageDeleteData [08:55:46]Write to MH i2c: 01 00 00 9A 9E 38 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 07 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: 01 07 00 9A 9E 00 00 00 00 00 DD 0C 28 [08:55:46]RasterBufferAndPrint [08:55:46]line [08:55:46]line [08:55:46]line [08:55:46]line [08:55:46]line [08:55:46]written 0, free lines is 3299 [08:55:46]MH_Cut [08:55:46]Write to MH i2c: D1 01 00 A1 9E 01 11 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: D1 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: D1 01 00 [08:55:46]MH_I2C_Read... [08:55:46]Read from MH i2c: D1 01 00 A1 9E 00 10 [08:55:46]Write to MH i2c: 01 00 00 A2 9E 40 [08:55:46]Write i2c OK [08:55:46]MH_I2C_Read... [08:55:47]OFD Sender: No OFD packet to send [08:55:47]*** Cut start [08:55:47]*** Partial cut [08:55:47]*** CUTSNS_PIN = 1 [08:55:47]*** CUTSNS_PIN = 0 [08:55:47]*** Brake cut motor [08:55:47]Read from MH i2c: 01 [08:55:47]MH_I2C_Read... [08:55:47]*** Stop cut motor [08:55:47]*** Cut end [08:55:47]Read from MH i2c: 01 07 00 [08:55:47]MH_I2C_Read... [08:55:47]Read from MH i2c: 01 07 00 A2 9E 00 00 00 00 00 FF 0F 55 [08:55:47]process_action close_receipt done [08:55:47]requested_data is exist [08:55:47]produce_requested_data [08:55:47]requested_item fm.sn is exist - process it [08:55:47]wFMCommunicate request_size=4 [08:55:47]MH_SAM_APDU [08:55:47]CAPDU: 80 11 00 00 [08:55:47]Write to MH i2c: E2 08 00 A3 9E 80 11 00 00 00 00 00 00 BB [08:55:47]Write i2c OK [08:55:47]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 17 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 17 00 A3 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [08:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:55:48]wFMCommunicate OK [08:55:48]requested_item fd.num is exist - process it [08:55:48]SAM_PROTO_GetFieldsCounters [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 13 00 00 [08:55:48]Write to MH i2c: E2 08 00 A4 9E 80 13 00 00 00 00 00 00 BE [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 62 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 62 00 A4 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [08:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:48]wFMCommunicate OK [08:55:48]SAM_PROTO_GetFieldsCounters done [08:55:48]requested_item shift.num is exist - process it [08:55:48]requested_item shift.opened is exist - process it [08:55:48]req_shift_opened [08:55:48]FM_GetShiftState [08:55:48]SAM_PROTO_GetShiftState [08:55:48]wFMCommunicate request_size=4 [08:55:48]MH_SAM_APDU [08:55:48]CAPDU: 80 13 01 00 [08:55:48]Write to MH i2c: E2 08 00 A5 9E 80 13 01 00 00 00 00 00 C0 [08:55:48]Write i2c OK [08:55:48]MH_I2C_Read... [08:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:48]Read from MH i2c: E2 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 0E 00 [08:55:48]MH_I2C_Read... [08:55:48]Read from MH i2c: E2 0E 00 A5 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8B [08:55:48]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:55:48]wFMCommunicate OK [08:55:48]SAM_PROTO_GetShiftState done [08:55:48]FM_GetShiftState done [08:55:48]req_shift_opened done [08:55:48]requested_item shift.open_date is exist - process it [08:55:48]req_shift_open_date [08:55:48]req_shift_open_date done [08:55:48]produce_requested_data done [08:55:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119007,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:55:48]process_action_free close_receipt [08:55:48]json_value_free [08:55:48]json_value_free done [08:55:48]process_json_proto returns [08:55:48]Send response to host [08:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119007,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:55:48]free response buf [08:55:48]execute_script done [08:55:48]execute_script returns [08:55:48]free content buf [08:55:48]Sock 7.Close socket [08:55:48]Sock 7.Thread stoped [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:36]accept exits with 9 [08:58:36]New connection [08:58:36]New thread 3067383140 created [08:58:36]Thread 3067239780 joined [08:58:36]Waiting for new connection... [08:58:36] Sock 9.Parse request [08:58:36]Sock 9.Check first char [08:58:36]Sock 9.First char is OK [08:58:36]request: POST /json_proto HTTP/1.0 [08:58:36]Method: POST [08:58:36]URL: /json_proto [08:58:36]Method is POST - this is cgi request [08:58:36]url: /json_proto [08:58:36]query_string will be loaded in cgi processing [08:58:36]execute_cgi json_proto POST (null) [08:58:36]execute_cgi path=json_proto method=POST [08:58:36]POST find Content-Length [08:58:36]Host: 172.17.45.7:8080 [08:58:36]Content-Length: 682 [08:58:36]Content-Type: application/json [08:58:36] [08:58:36]POST finish read [08:58:36]Found Content-Length = 682 [08:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [08:58:36]execute_script... [08: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)949927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [08:58:36]POST & json_proto [08:58:36]process_json_proto [08:58:36]json parsed OK: [08:58:36]protocol is kg_v1.0 [08:58:36]action value=close_receipt [08:58:36]process_action close_receipt [08:58:36]cmd_close_receipt [08:58:36]MH_GetDate [08:58:36]Write to MH i2c: F0 00 00 A6 9E 33 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: F0 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: F0 09 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: F0 09 00 A6 9E 00 46 AB A8 66 90 0F 3E 66 7E [08:58:36]GetLastDocTimeStamp 1722329754 [08:58:36]current date 1722329926 [08:58:36]FM_GetShiftState [08:58:36]SAM_PROTO_GetShiftState [08:58:36]wFMCommunicate request_size=4 [08:58:36]MH_SAM_APDU [08:58:36]CAPDU: 80 13 01 00 [08:58:36]Write to MH i2c: E2 08 00 A7 9E 80 13 01 00 00 00 00 00 C2 [08:58:36]Write i2c OK [08:58:36]MH_I2C_Read... [08:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:36]Read from MH i2c: E2 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 0E 00 [08:58:36]MH_I2C_Read... [08:58:36]Read from MH i2c: E2 0E 00 A7 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8D [08:58:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:58:36]wFMCommunicate OK [08:58:36]SAM_PROTO_GetShiftState done [08:58:36]FM_GetShiftState done [08:58:36]opened in 1722298242 [08:58:36]opened+sec_in_day 1722384642 [08:58:36]quantity*price = 100021 [08:58:36]sum+1 = 100023 [08:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 60 30.07.2024 08:58 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119008 ФПД: 90309216690571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085846&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119008&fm=90309216690571&tin=02508201610067®Number=0000000000092660&sum=100000 [08:58:37]StoreToDocumentArchive [08:58:37]shift 435 fd 119008 [08:58:37]save to /storage/0435/doc_00119008 [08:58:37]save last doc name /storage/0435/doc_00119008 to /storage/kkm_last_doc_name [08:58:37]save OK [08:58:37]Clear old archive folders... [08:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:37]tlvbuf is 01FCF350 [08:58:37]SAM_PROTO_ClearQueue [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 09 00 00 [08:58:37]Write to MH i2c: E2 08 00 B4 9E 80 09 00 00 00 00 00 00 C4 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 B4 9E 00 90 00 C6 [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_ClearQueue done [08:58:37]KKMCreateOFDPacket [08:58:37]OFDProtocolAddRootSTLVToBuf [08:58:37]FM_MakeSignedData [08:58:37]FM_MakeSignedData [08:58:37]SAM_PROTO_SignData [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 01 02 [08:58:37]Write to MH i2c: E2 08 00 B5 9E 80 0D 01 02 00 00 00 00 CC [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 B5 9E 00 90 00 C7 [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=255 [08:58:37]MH_SAM_APDU [08: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 46 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D0 01 00 35 04 06 00 52 [08:58:37]Write to MH i2c: E2 02 01 B6 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 46 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D0 01 00 35 04 06 00 52 00 00 6E [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 B6 9E 00 90 00 C8 [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=10 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 02 02 05 22 C0 C7 E1 8B [08:58:37]Write to MH i2c: E2 0D 00 B7 9E 80 0D 02 02 05 00 22 C0 C7 E1 8B 00 00 EE [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 03 00 B7 9E 00 90 00 C9 [08:58:37]RAPDU: 90 00 [08:58:37]wFMCommunicate OK [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 0D 03 02 [08:58:37]Write to MH i2c: E2 08 00 B8 9E 80 0D 03 02 00 00 00 00 D1 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0B 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0B 00 B8 9E 00 4A 83 5A F6 AC 7A F5 A5 90 00 AF [08:58:37]RAPDU: 4A 83 5A F6 AC 7A F5 A5 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_SignData done [08:58:37]FM_MakeSignedData done [08:58:37]CreateOFDProtocolMessage [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 11 00 00 [08:58:37]Write to MH i2c: E2 08 00 B9 9E 80 11 00 00 00 00 00 00 D1 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 B9 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [08:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:58:37]wFMCommunicate OK [08:58:37]CreateOFDProtocolMessage done [08:58:37]OFDSenderStorePacket 119008 [08:58:37]StoreOFDPacket docnum=119008 [08:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 40 FA 07 01 46 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 46 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D0 01 00 35 04 06 00 52 22 C0 C7 E1 8B 4A 83 5A F6 AC 7A F5 A5 [08:58:37]CheckFolder [08:58:37]dirname=/storage/ofd_packets [08:58:37]CheckFolder done [08:58:37]ProducePacketName [08:58:37]name=ofd_packets/00119008 [08:58:37]NVStorageSaveData ofd_packets/00119008 [08:58:37]File name is /storage/ofd_packets/00119008 [08:58:37]Write 301 bytes [08:58:37]NVStorageSaveData done [08:58:37]OFDSenderStorePacket done [08:58:37]KKMCreateOFDPacket done [08:58:37]NVStorageSaveData kkm_last_timestamp [08:58:37]File name is /storage/kkm_last_timestamp [08:58:37]Write 4 bytes [08:58:37]NVStorageSaveData done [08:58:37]ExternCall_PrintAddStr [08:58:37]wPrintStart [08:58:37]Write to MH i2c: 01 00 00 BA 9E 58 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 BA 9E 00 00 00 00 00 FF 0F 6D [08:58:37]RasterBufferAndPrint [08:58:37]line Счет N : (1)949927 [08:58:37]line ИНН: 02508201610067 [08:58:37]line Контрольно-Кассовый Чек [08:58:37]line ПРОДАЖА [08:58:37]line ТРК (МРК, ГНК) : 53 [08:58:37]line Товар: 2710124500 [08:58:37]line Аи-95-К-3 [08:58:37]line 13.480 * 74.20 [08:58:37]line = 1000.22 [08:58:37]line НДС 12% НСП 1% [08:58:37]line > о реализуемом товаре [08:58:37]line ОКРУГЛЕНИЕ: -0.22 [08:58:37]line ИТОГО: 1000.00 [08:58:37]line Внесено: 1000.00 [08:58:37]line СДАЧА: 0.00 [08:58:37]line НСП 1% : 8.85 [08:58:37]line НДС 12% : 106.22 [08:58:37]line Наличными: 1000.00 [08:58:37]line Безнал.: 0.00 [08:58:37]line Место: АЗС № 134 "Партнер Нефть" [08:58:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:58:37]line СНО: Общий режим [08:58:37]line Чек 60 30.07.2024 08:58 [08:58:37]line Смена: 435 ФФД: 1.0 [08:58:37]line ЗНМ: 0300000044 [08:58:37]line РНМ: 0000000000092660 [08:58:37]line Версия ККМ: 001 [08:58:37]line ФМ: 0000000000874939 [08:58:37]line ФД: 119008 [08:58:37]line ФПД: 90309216690571 [08:58:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T085846&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119008&fm=90309216690571&tin=02508201610067®Number=0000000000092660&sum=100000 [08:58:38]written 0, free lines is 4095 [08:58:38]OFD Sender: Processing packet 119008 [packets to send 86, broken 85] [08:58:38]ProducePacketName [08:58:38]name=ofd_packets/00119008 [08:58:38]OFD Sender: To server: pG, [08:58:38]CommunicateWithHost lk.salyk.kg:30040 [08:58:38]ConnectInit lk.salyk.kg [08:58:38]Connected sock=10 [08:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 40 FA 07 01 46 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 3C 00 00 00 F4 03 04 00 46 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D0 01 00 35 04 06 00 52 22 C0 C7 E1 8B 4A 83 5A F6 AC 7A F5 A5 [08:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3F 9E 47 00 23 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D0 01 00 F4 03 04 00 D1 58 A8 66 B6 04 01 00 00 A6 4E C6 F9 7A CC 10 9D [08:58:38]CommunicateWithHost err = 0 [08:58:38]CheckOFDResponse [08:58:38]1017 (14) - 77093643461234 [08:58:38]1041 (16) - 0000000000874939 [08:58:38]1040 (4) - 119008 [08:58:38]1012 (4) - 30.07.2024 03:06 [08:58:38]1206 (1) - 0 [08:58:38]OFD Sender: Remove packet 119008 [08:58:38]ProducePacketName [08:58:38]name=ofd_packets/00119008 [08:58:38]NVStorageDeleteData [08:58:38]Write to MH i2c: 01 00 00 E4 9E 82 [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: 01 07 00 E4 9E 00 00 00 00 00 EF 0C 84 [08:58:38]RasterBufferAndPrint [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]line [08:58:38]written 0, free lines is 3317 [08:58:38]MH_Cut [08:58:38]Write to MH i2c: D1 01 00 EB 9E 01 5B [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 01 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: D1 01 00 EB 9E 00 5A [08:58:38]Write to MH i2c: 01 00 00 EC 9E 8A [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:39]OFD Sender: No OFD packet to send [08:58:39]*** Cut start [08:58:39]*** Partial cut [08:58:39]*** CUTSNS_PIN = 1 [08:58:39]*** CUTSNS_PIN = 0 [08:58:39]*** Brake cut motor [08:58:40]Read from MH i2c: 01 [08:58:40]MH_I2C_Read... [08:58:40]*** Stop cut motor [08:58:40]*** Cut end [08:58:40]Read from MH i2c: 01 07 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 EC 9E 00 00 00 00 00 FF 0F 9F [08:58:40]process_action close_receipt done [08:58:40]requested_data is exist [08:58:40]produce_requested_data [08:58:40]requested_item fm.sn is exist - process it [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 11 00 00 [08:58:40]Write to MH i2c: E2 08 00 ED 9E 80 11 00 00 00 00 00 00 05 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 ED 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [08:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [08:58:40]wFMCommunicate OK [08:58:40]requested_item fd.num is exist - process it [08:58:40]SAM_PROTO_GetFieldsCounters [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 13 00 00 [08:58:40]Write to MH i2c: E2 08 00 EE 9E 80 13 00 00 00 00 00 00 08 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 62 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 62 00 EE 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [08:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_GetFieldsCounters done [08:58:40]requested_item shift.num is exist - process it [08:58:40]requested_item shift.opened is exist - process it [08:58:40]req_shift_opened [08:58:40]FM_GetShiftState [08:58:40]SAM_PROTO_GetShiftState [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 13 01 00 [08:58:40]Write to MH i2c: E2 08 00 EF 9E 80 13 01 00 00 00 00 00 0A [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0E 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0E 00 EF 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D5 [08:58:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_GetShiftState done [08:58:40]FM_GetShiftState done [08:58:40]req_shift_opened done [08:58:40]requested_item shift.open_date is exist - process it [08:58:40]req_shift_open_date [08:58:40]req_shift_open_date done [08:58:40]produce_requested_data done [08:58:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119008,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [08:58:40]process_action_free close_receipt [08:58:40]json_value_free [08:58:40]json_value_free done [08:58:40]process_json_proto returns [08:58:40]Send response to host [08:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119008,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [08:58:40]free response buf [08:58:40]execute_script done [08:58:40]execute_script returns [08:58:40]free content buf [08:58:40]Sock 9.Close socket [08:58:40]Sock 9.Thread stoped [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:01]accept exits with 7 [09:01:01]New connection [09:01:01]New thread 3067239780 created [09:01:01]Thread 3067383140 joined [09:01:01]Waiting for new connection... [09:01:01] Sock 7.Parse request [09:01:01]Sock 7.Check first char [09:01:01]Sock 7.First char is OK [09:01:01]request: POST /json_proto HTTP/1.0 [09:01:01]Method: POST [09:01:01]URL: /json_proto [09:01:01]Method is POST - this is cgi request [09:01:01]url: /json_proto [09:01:01]query_string will be loaded in cgi processing [09:01:01]execute_cgi json_proto POST (null) [09:01:01]execute_cgi path=json_proto method=POST [09:01:01]POST find Content-Length [09:01:01]Host: 172.17.45.7:8080 [09:01:01]Content-Length: 677 [09:01:01]Content-Type: application/json [09:01:01] [09:01:01]POST finish read [09:01:01]Found Content-Length = 677 [09:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:01]execute_script... [09:01: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)949928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:01]POST & json_proto [09:01:01]process_json_proto [09:01:01]json parsed OK: [09:01:01]protocol is kg_v1.0 [09:01:01]action value=close_receipt [09:01:01]process_action close_receipt [09:01:01]cmd_close_receipt [09:01:01]MH_GetDate [09:01:01]Write to MH i2c: F0 00 00 F0 9E 7D [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: F0 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: F0 09 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: F0 09 00 F0 9E 00 D7 AB A8 66 90 0F 3E 66 59 [09:01:01]GetLastDocTimeStamp 1722329926 [09:01:01]current date 1722330071 [09:01:01]FM_GetShiftState [09:01:01]SAM_PROTO_GetShiftState [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 13 01 00 [09:01:01]Write to MH i2c: E2 08 00 F1 9E 80 13 01 00 00 00 00 00 0C [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 0E 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 0E 00 F1 9E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D7 [09:01:01]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:01:01]wFMCommunicate OK [09:01:01]SAM_PROTO_GetShiftState done [09:01:01]FM_GetShiftState done [09:01:01]opened in 1722298242 [09:01:01]opened+sec_in_day 1722384642 [09:01:01]quantity*price = 50036 [09:01:01]sum+1 = 50037 [09:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 61 30.07.2024 09:01 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119009 ФПД: 2833566097826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T090111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119009&fm=2833566097826&tin=02508201610067®Number=0000000000092660&sum=50000 [09:01:02]StoreToDocumentArchive [09:01:02]shift 435 fd 119009 [09:01:02]save to /storage/0435/doc_00119009 [09:01:02]save last doc name /storage/0435/doc_00119009 to /storage/kkm_last_doc_name [09:01:02]save OK [09:01:02]Clear old archive folders... [09:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:02]tlvbuf is 02052A50 [09:01:02]SAM_PROTO_ClearQueue [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 09 00 00 [09:01:02]Write to MH i2c: E2 08 00 FE 9E 80 09 00 00 00 00 00 00 0E [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 03 00 FE 9E 00 90 00 10 [09:01:02]RAPDU: 90 00 [09:01:02]wFMCommunicate OK [09:01:02]SAM_PROTO_ClearQueue done [09:01:02]KKMCreateOFDPacket [09:01:02]OFDProtocolAddRootSTLVToBuf [09:01:02]FM_MakeSignedData [09:01:02]FM_MakeSignedData [09:01:02]SAM_PROTO_SignData [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 0D 01 02 [09:01:02]Write to MH i2c: E2 08 00 FF 9E 80 0D 01 02 00 00 00 00 16 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 FF 9E 00 90 00 11 [09:01:03]RAPDU: 90 00 [09:01:03]wFMCommunicate OK [09:01:03]wFMCommunicate request_size=255 [09:01:03]MH_SAM_APDU [09:01: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D7 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D0 01 00 35 04 06 00 02 [09:01:03]Write to MH i2c: E2 02 01 00 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D7 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D0 01 00 35 04 06 00 02 00 00 D0 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 00 9F 00 90 00 13 [09:01:03]RAPDU: 90 00 [09:01:03]wFMCommunicate OK [09:01:03]wFMCommunicate request_size=10 [09:01:03]MH_SAM_APDU [09:01:03]CAPDU: 80 0D 02 02 05 93 BD B3 61 A2 [09:01:03]Write to MH i2c: E2 0D 00 01 9F 80 0D 02 02 05 00 93 BD B3 61 A2 00 00 2A [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 01 9F 00 90 00 14 [09:01:03]RAPDU: 90 00 [09:01:03]wFMCommunicate OK [09:01:03]wFMCommunicate request_size=4 [09:01:03]MH_SAM_APDU [09:01:03]CAPDU: 80 0D 03 02 [09:01:03]Write to MH i2c: E2 08 00 02 9F 80 0D 03 02 00 00 00 00 1C [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 0B 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 0B 00 02 9F 00 0E 02 F3 1A 20 38 0A F8 90 00 94 [09:01:03]RAPDU: 0E 02 F3 1A 20 38 0A F8 90 00 [09:01:03]wFMCommunicate OK [09:01:03]SAM_PROTO_SignData done [09:01:03]FM_MakeSignedData done [09:01:03]CreateOFDProtocolMessage [09:01:03]wFMCommunicate request_size=4 [09:01:03]MH_SAM_APDU [09:01:03]CAPDU: 80 11 00 00 [09:01:03]Write to MH i2c: E2 08 00 03 9F 80 11 00 00 00 00 00 00 1C [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 17 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 17 00 03 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [09:01:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:01:03]wFMCommunicate OK [09:01:03]CreateOFDProtocolMessage done [09:01:03]OFDSenderStorePacket 119009 [09:01:03]StoreOFDPacket docnum=119009 [09:01:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 43 18 07 01 BD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D7 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D0 01 00 35 04 06 00 02 93 BD B3 61 A2 0E 02 F3 1A 20 38 0A F8 [09:01:03]CheckFolder [09:01:03]dirname=/storage/ofd_packets [09:01:03]CheckFolder done [09:01:03]ProducePacketName [09:01:03]name=ofd_packets/00119009 [09:01:03]NVStorageSaveData ofd_packets/00119009 [09:01:03]File name is /storage/ofd_packets/00119009 [09:01:03]Write 301 bytes [09:01:03]NVStorageSaveData done [09:01:03]OFDSenderStorePacket done [09:01:03]KKMCreateOFDPacket done [09:01:03]NVStorageSaveData kkm_last_timestamp [09:01:03]File name is /storage/kkm_last_timestamp [09:01:03]Write 4 bytes [09:01:03]NVStorageSaveData done [09:01:03]ExternCall_PrintAddStr [09:01:03]wPrintStart [09:01:03]Write to MH i2c: 01 00 00 04 9F A3 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 07 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: 01 07 00 04 9F 00 00 00 00 00 FF 0F B8 [09:01:03]RasterBufferAndPrint [09:01:03]line Счет N : (1)949928 [09:01:03]line ИНН: 02508201610067 [09:01:03]line Контрольно-Кассовый Чек [09:01:03]line ПРОДАЖА [09:01:03]line ТРК (МРК, ГНК) : 41 [09:01:03]line Товар: 2710124130 [09:01:03]line Аи-92-К-4 [09:01:03]line 7.380 * 67.80 [09:01:03]line = 500.36 [09:01:03]line НДС 12% НСП 1% [09:01:03]line > о реализуемом товаре [09:01:03]line ОКРУГЛЕНИЕ: -0.36 [09:01:03]line ИТОГО: 500.00 [09:01:03]line Внесено: 500.00 [09:01:03]line СДАЧА: 0.00 [09:01:03]line НСП 1% : 4.43 [09:01:03]line НДС 12% : 53.14 [09:01:03]line Наличными: 500.00 [09:01:03]line Безнал.: 0.00 [09:01:03]line Место: АЗС № 134 "Партнер Нефть" [09:01:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:01:03]line СНО: Общий режим [09:01:03]line Чек 61 30.07.2024 09:01 [09:01:03]line Смена: 435 ФФД: 1.0 [09:01:03]line ЗНМ: 0300000044 [09:01:03]line РНМ: 0000000000092660 [09:01:03]line Версия ККМ: 001 [09:01:03]line ФМ: 0000000000874939 [09:01:03]line ФД: 119009 [09:01:03]line ФПД: 2833566097826 [09:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T090111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119009&fm=2833566097826&tin=02508201610067®Number=0000000000092660&sum=50000 [09:01:03]OFD Sender: Processing packet 119009 [packets to send 86, broken 85] [09:01:03]ProducePacketName [09:01:03]name=ofd_packets/00119009 [09:01:03]OFD Sender: To server: pG, [09:01:03]CommunicateWithHost lk.salyk.kg:30040 [09:01:03]ConnectInit lk.salyk.kg [09:01:03]written 0, free lines is 4095 [09:01:03]Connected sock=10 [09:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 43 18 07 01 BD 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 D7 AB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D0 01 00 35 04 06 00 02 93 BD B3 61 A2 0E 02 F3 1A 20 38 0A F8 [09:01:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 92 47 00 5F 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D0 01 00 F4 03 04 00 63 59 A8 66 B6 04 01 00 00 F4 96 4A 8A 8A 3A 15 83 [09:01:04]CommunicateWithHost err = 0 [09:01:04]CheckOFDResponse [09:01:04]1017 (14) - 77093643461234 [09:01:04]1041 (16) - 0000000000874939 [09:01:04]1040 (4) - 119009 [09:01:04]1012 (4) - 30.07.2024 03:09 [09:01:04]1206 (1) - 0 [09:01:04]OFD Sender: Remove packet 119009 [09:01:04]ProducePacketName [09:01:04]name=ofd_packets/00119009 [09:01:04]NVStorageDeleteData [09:01:04]Write to MH i2c: 01 00 00 2E 9F CD [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 07 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 07 00 2E 9F 00 00 00 00 00 E0 0C C0 [09:01:04]RasterBufferAndPrint [09:01:04]line [09:01:04]line [09:01:04]line [09:01:04]line [09:01:04]line [09:01:04]written 0, free lines is 3301 [09:01:04]MH_Cut [09:01:04]Write to MH i2c: D1 01 00 35 9F 01 A6 [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: D1 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: D1 01 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: D1 01 00 35 9F 00 A5 [09:01:04]Write to MH i2c: 01 00 00 36 9F D5 [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]OFD Sender: No OFD packet to send [09:01:04]*** Cut start [09:01:04]*** Partial cut [09:01:04]*** CUTSNS_PIN = 1 [09:01:05]*** CUTSNS_PIN = 0 [09:01:05]*** Brake cut motor [09:01:05]Read from MH i2c: 01 [09:01:05]MH_I2C_Read... [09:01:05]*** Stop cut motor [09:01:05]*** Cut end [09:01:05]Read from MH i2c: 01 07 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: 01 07 00 36 9F 00 00 00 00 00 FF 0F EA [09:01:05]process_action close_receipt done [09:01:05]requested_data is exist [09:01:05]produce_requested_data [09:01:05]requested_item fm.sn is exist - process it [09:01:05]wFMCommunicate request_size=4 [09:01:05]MH_SAM_APDU [09:01:05]CAPDU: 80 11 00 00 [09:01:05]Write to MH i2c: E2 08 00 37 9F 80 11 00 00 00 00 00 00 50 [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:05]Read from MH i2c: E2 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 17 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 17 00 37 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [09:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:01:05]wFMCommunicate OK [09:01:05]requested_item fd.num is exist - process it [09:01:05]SAM_PROTO_GetFieldsCounters [09:01:05]wFMCommunicate request_size=4 [09:01:05]MH_SAM_APDU [09:01:05]CAPDU: 80 13 00 00 [09:01:05]Write to MH i2c: E2 08 00 38 9F 80 13 00 00 00 00 00 00 53 [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:05]Read from MH i2c: E2 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 62 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 62 00 38 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [09:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:05]wFMCommunicate OK [09:01:05]SAM_PROTO_GetFieldsCounters done [09:01:05]requested_item shift.num is exist - process it [09:01:05]requested_item shift.opened is exist - process it [09:01:05]req_shift_opened [09:01:05]FM_GetShiftState [09:01:05]SAM_PROTO_GetShiftState [09:01:05]wFMCommunicate request_size=4 [09:01:05]MH_SAM_APDU [09:01:05]CAPDU: 80 13 01 00 [09:01:05]Write to MH i2c: E2 08 00 39 9F 80 13 01 00 00 00 00 00 55 [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:05]Read from MH i2c: E2 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 0E 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 0E 00 39 9F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 20 [09:01:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:01:05]wFMCommunicate OK [09:01:05]SAM_PROTO_GetShiftState done [09:01:05]FM_GetShiftState done [09:01:05]req_shift_opened done [09:01:05]requested_item shift.open_date is exist - process it [09:01:05]req_shift_open_date [09:01:05]req_shift_open_date done [09:01:05]produce_requested_data done [09:01:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119009,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:01:05]process_action_free close_receipt [09:01:05]json_value_free [09:01:05]json_value_free done [09:01:05]process_json_proto returns [09:01:05]Send response to host [09:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119009,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:01:05]free response buf [09:01:05]execute_script done [09:01:05]execute_script returns [09:01:05]free content buf [09:01:05]Sock 7.Close socket [09:01:05]Sock 7.Thread stoped [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]accept exits with 9 [09:02:29]New connection [09:02:29]New thread 3067383140 created [09:02:29]Thread 3067239780 joined [09:02:29]Waiting for new connection... [09:02:29] Sock 9.Parse request [09:02:29]Sock 9.Check first char [09:02:29]Sock 9.First char is OK [09:02:29]request: POST /json_proto HTTP/1.0 [09:02:29]Method: POST [09:02:29]URL: /json_proto [09:02:29]Method is POST - this is cgi request [09:02:29]url: /json_proto [09:02:29]query_string will be loaded in cgi processing [09:02:29]execute_cgi json_proto POST (null) [09:02:29]execute_cgi path=json_proto method=POST [09:02:29]POST find Content-Length [09:02:29]Host: 172.17.45.7:8080 [09:02:29]Content-Length: 682 [09:02:29]Content-Type: application/json [09:02:29] [09:02:29]POST finish read [09:02:29]Found Content-Length = 682 [09:02:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [09:02:29]execute_script... [09:02: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)949929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [09:02:29]POST & json_proto [09:02:29]process_json_proto [09:02:29]json parsed OK: [09:02:29]protocol is kg_v1.0 [09:02:29]action value=close_receipt [09:02:29]process_action close_receipt [09:02:29]cmd_close_receipt [09:02:29]MH_GetDate [09:02:29]Write to MH i2c: F0 00 00 3A 9F C8 [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: F0 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: F0 09 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: F0 09 00 3A 9F 00 2F AC A8 66 90 0F 3E 66 FD [09:02:29]GetLastDocTimeStamp 1722330071 [09:02:29]current date 1722330159 [09:02:29]FM_GetShiftState [09:02:29]SAM_PROTO_GetShiftState [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 13 01 00 [09:02:29]Write to MH i2c: E2 08 00 3B 9F 80 13 01 00 00 00 00 00 57 [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 0E 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 0E 00 3B 9F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 22 [09:02:29]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:02:29]wFMCommunicate OK [09:02:29]SAM_PROTO_GetShiftState done [09:02:29]FM_GetShiftState done [09:02:29]opened in 1722298242 [09:02:29]opened+sec_in_day 1722384642 [09:02:29]quantity*price = 120006 [09:02:29]sum+1 = 120007 [09:02:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 62 30.07.2024 09:02 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119010 ФПД: 202667441681110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T090239&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119010&fm=202667441681110&tin=02508201610067®Number=0000000000092660&sum=120000 [09:02:30]StoreToDocumentArchive [09:02:30]shift 435 fd 119010 [09:02:30]save to /storage/0435/doc_00119010 [09:02:30]save last doc name /storage/0435/doc_00119010 to /storage/kkm_last_doc_name [09:02:30]save OK [09:02:30]Clear old archive folders... [09:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:30]tlvbuf is 01FD3180 [09:02:30]SAM_PROTO_ClearQueue [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 09 00 00 [09:02:30]Write to MH i2c: E2 08 00 48 9F 80 09 00 00 00 00 00 00 59 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 48 9F 00 90 00 5B [09:02:30]RAPDU: 90 00 [09:02:30]wFMCommunicate OK [09:02:30]SAM_PROTO_ClearQueue done [09:02:30]KKMCreateOFDPacket [09:02:30]OFDProtocolAddRootSTLVToBuf [09:02:30]FM_MakeSignedData [09:02:30]FM_MakeSignedData [09:02:30]SAM_PROTO_SignData [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 0D 01 02 [09:02:30]Write to MH i2c: E2 08 00 49 9F 80 0D 01 02 00 00 00 00 61 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 49 9F 00 90 00 5C [09:02:30]RAPDU: 90 00 [09:02:30]wFMCommunicate OK [09:02:30]wFMCommunicate request_size=255 [09:02:30]MH_SAM_APDU [09:02: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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 3E 00 00 00 F4 03 04 00 2F AC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D0 01 00 35 04 06 00 B8 [09:02:30]Write to MH i2c: E2 02 01 4A 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 3E 00 00 00 F4 03 04 00 2F AC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D0 01 00 35 04 06 00 B8 00 00 9D [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 4A 9F 00 90 00 5D [09:02:30]RAPDU: 90 00 [09:02:30]wFMCommunicate OK [09:02:30]wFMCommunicate request_size=10 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 0D 02 02 05 53 30 DE 72 D6 [09:02:30]Write to MH i2c: E2 0D 00 4B 9F 80 0D 02 02 05 00 53 30 DE 72 D6 00 00 17 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 03 00 4B 9F 00 90 00 5E [09:02:30]RAPDU: 90 00 [09:02:30]wFMCommunicate OK [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 0D 03 02 [09:02:30]Write to MH i2c: E2 08 00 4C 9F 80 0D 03 02 00 00 00 00 66 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 0B 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 0B 00 4C 9F 00 E2 C2 F4 41 A4 18 42 BA 90 00 F8 [09:02:30]RAPDU: E2 C2 F4 41 A4 18 42 BA 90 00 [09:02:30]wFMCommunicate OK [09:02:30]SAM_PROTO_SignData done [09:02:30]FM_MakeSignedData done [09:02:30]CreateOFDProtocolMessage [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 11 00 00 [09:02:30]Write to MH i2c: E2 08 00 4D 9F 80 11 00 00 00 00 00 00 66 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:31]Read from MH i2c: E2 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: E2 17 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: E2 17 00 4D 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [09:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:02:31]wFMCommunicate OK [09:02:31]CreateOFDProtocolMessage done [09:02:31]OFDSenderStorePacket 119010 [09:02:31]StoreOFDPacket docnum=119010 [09:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 76 60 07 01 18 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 3E 00 00 00 F4 03 04 00 2F AC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D0 01 00 35 04 06 00 B8 53 30 DE 72 D6 E2 C2 F4 41 A4 18 42 BA [09:02:31]CheckFolder [09:02:31]dirname=/storage/ofd_packets [09:02:31]CheckFolder done [09:02:31]ProducePacketName [09:02:31]name=ofd_packets/00119010 [09:02:31]NVStorageSaveData ofd_packets/00119010 [09:02:31]File name is /storage/ofd_packets/00119010 [09:02:31]Write 301 bytes [09:02:31]NVStorageSaveData done [09:02:31]OFDSenderStorePacket done [09:02:31]KKMCreateOFDPacket done [09:02:31]NVStorageSaveData kkm_last_timestamp [09:02:31]File name is /storage/kkm_last_timestamp [09:02:31]Write 4 bytes [09:02:31]NVStorageSaveData done [09:02:31]ExternCall_PrintAddStr [09:02:31]wPrintStart [09:02:31]Write to MH i2c: 01 00 00 4E 9F ED [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 07 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 07 00 4E 9F 00 00 00 00 00 FF 0F 02 [09:02:31]RasterBufferAndPrint [09:02:31]line Счет N : (1)949929 [09:02:31]line ИНН: 02508201610067 [09:02:31]line Контрольно-Кассовый Чек [09:02:31]line ПРОДАЖА [09:02:31]line ТРК (МРК, ГНК) : 51 [09:02:31]line Товар: 2710124130 [09:02:31]line Аи-92-К-4 [09:02:31]line 17.700 * 67.80 [09:02:31]line = 1200.06 [09:02:31]line НДС 12% НСП 1% [09:02:31]line > о реализуемом товаре [09:02:31]line ОКРУГЛЕНИЕ: -0.06 [09:02:31]line ИТОГО: 1200.00 [09:02:31]line Внесено: 1200.00 [09:02:31]line СДАЧА: 0.00 [09:02:31]line НСП 1% : 10.62 [09:02:31]line НДС 12% : 127.44 [09:02:31]line Наличными: 1200.00 [09:02:31]line Безнал.: 0.00 [09:02:31]line Место: АЗС № 134 "Партнер Нефть" [09:02:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:02:31]line СНО: Общий режим [09:02:31]line Чек 62 30.07.2024 09:02 [09:02:31]line Смена: 435 ФФД: 1.0 [09:02:31]line ЗНМ: 0300000044 [09:02:31]line РНМ: 0000000000092660 [09:02:31]line Версия ККМ: 001 [09:02:31]line ФМ: 0000000000874939 [09:02:31]line ФД: 119010 [09:02:31]line ФПД: 202667441681110 [09:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T090239&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119010&fm=202667441681110&tin=02508201610067®Number=0000000000092660&sum=120000 [09:02:31]written 0, free lines is 4095 [09:02:31]OFD Sender: Processing packet 119010 [packets to send 86, broken 85] [09:02:31]ProducePacketName [09:02:31]name=ofd_packets/00119010 [09:02:31]OFD Sender: To server: pG, [09:02:31]CommunicateWithHost lk.salyk.kg:30040 [09:02:31]ConnectInit lk.salyk.kg [09:02:31]Connected sock=10 [09:02:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 76 60 07 01 18 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 3E 00 00 00 F4 03 04 00 2F AC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D0 01 00 35 04 06 00 B8 53 30 DE 72 D6 E2 C2 F4 41 A4 18 42 BA [09:02:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7A AA 47 00 9D E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D0 01 00 F4 03 04 00 BA 59 A8 66 B6 04 01 00 00 87 25 F6 D5 CB BD 1B 6A [09:02:31]CommunicateWithHost err = 0 [09:02:31]CheckOFDResponse [09:02:31]1017 (14) - 77093643461234 [09:02:31]1041 (16) - 0000000000874939 [09:02:31]1040 (4) - 119010 [09:02:31]1012 (4) - 30.07.2024 03:10 [09:02:31]1206 (1) - 0 [09:02:31]OFD Sender: Remove packet 119010 [09:02:31]ProducePacketName [09:02:31]name=ofd_packets/00119010 [09:02:31]NVStorageDeleteData [09:02:31]Write to MH i2c: 01 00 00 78 9F 17 [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 07 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: 01 07 00 78 9F 00 00 00 00 00 DC 0C 06 [09:02:31]RasterBufferAndPrint [09:02:31]line [09:02:31]line [09:02:31]line [09:02:31]line [09:02:31]line [09:02:31]written 0, free lines is 3298 [09:02:31]MH_Cut [09:02:31]Write to MH i2c: D1 01 00 7F 9F 01 F0 [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: D1 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: D1 01 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: D1 01 00 7F 9F 00 EF [09:02:31]Write to MH i2c: 01 00 00 80 9F 1F [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:32]OFD Sender: No OFD packet to send [09:02:32]*** Cut start [09:02:32]*** Partial cut [09:02:32]*** CUTSNS_PIN = 1 [09:02:32]*** CUTSNS_PIN = 0 [09:02:32]*** Brake cut motor [09:02:33]Read from MH i2c: 01 [09:02:33]MH_I2C_Read... [09:02:33]*** Stop cut motor [09:02:33]*** Cut end [09:02:33]Read from MH i2c: 01 07 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 80 9F 00 00 00 00 00 FF 0F 34 [09:02:33]process_action close_receipt done [09:02:33]requested_data is exist [09:02:33]produce_requested_data [09:02:33]requested_item fm.sn is exist - process it [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 11 00 00 [09:02:33]Write to MH i2c: E2 08 00 81 9F 80 11 00 00 00 00 00 00 9A [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 17 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 17 00 81 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [09:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:02:33]wFMCommunicate OK [09:02:33]requested_item fd.num is exist - process it [09:02:33]SAM_PROTO_GetFieldsCounters [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 13 00 00 [09:02:33]Write to MH i2c: E2 08 00 82 9F 80 13 00 00 00 00 00 00 9D [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 62 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 62 00 82 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:02:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:33]wFMCommunicate OK [09:02:33]SAM_PROTO_GetFieldsCounters done [09:02:33]requested_item shift.num is exist - process it [09:02:33]requested_item shift.opened is exist - process it [09:02:33]req_shift_opened [09:02:33]FM_GetShiftState [09:02:33]SAM_PROTO_GetShiftState [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 13 01 00 [09:02:33]Write to MH i2c: E2 08 00 83 9F 80 13 01 00 00 00 00 00 9F [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 0E 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 0E 00 83 9F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6A [09:02:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:02:33]wFMCommunicate OK [09:02:33]SAM_PROTO_GetShiftState done [09:02:33]FM_GetShiftState done [09:02:33]req_shift_opened done [09:02:33]requested_item shift.open_date is exist - process it [09:02:33]req_shift_open_date [09:02:33]req_shift_open_date done [09:02:33]produce_requested_data done [09:02:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119010,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:02:33]process_action_free close_receipt [09:02:33]json_value_free [09:02:33]json_value_free done [09:02:33]process_json_proto returns [09:02:33]Send response to host [09:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119010,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:02:33]free response buf [09:02:33]execute_script done [09:02:33]execute_script returns [09:02:33]free content buf [09:02:33]Sock 9.Close socket [09:02:33]Sock 9.Thread stoped [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:51]accept exits with 7 [09:10:51]New connection [09:10:51]New thread 3067239780 created [09:10:51]Thread 3067383140 joined [09:10:51]Waiting for new connection... [09:10:51] Sock 7.Parse request [09:10:51]Sock 7.Check first char [09:10:51]Sock 7.First char is OK [09:10:51]request: POST /json_proto HTTP/1.0 [09:10:51]Method: POST [09:10:51]URL: /json_proto [09:10:51]Method is POST - this is cgi request [09:10:51]url: /json_proto [09:10:51]query_string will be loaded in cgi processing [09:10:51]execute_cgi json_proto POST (null) [09:10:51]execute_cgi path=json_proto method=POST [09:10:51]POST find Content-Length [09:10:51]Host: 172.17.45.7:8080 [09:10:51]Content-Length: 677 [09:10:51]Content-Type: application/json [09:10:51] [09:10:51]POST finish read [09:10:51]Found Content-Length = 677 [09:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:10:51]execute_script... [09:10: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)949930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:10:51]POST & json_proto [09:10:51]process_json_proto [09:10:51]json parsed OK: [09:10:51]protocol is kg_v1.0 [09:10:51]action value=close_receipt [09:10:51]process_action close_receipt [09:10:51]cmd_close_receipt [09:10:51]MH_GetDate [09:10:51]Write to MH i2c: F0 00 00 84 9F 12 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: F0 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: F0 09 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: F0 09 00 84 9F 00 25 AE A8 66 90 0F 3E 66 3F [09:10:51]GetLastDocTimeStamp 1722330159 [09:10:51]current date 1722330661 [09:10:51]FM_GetShiftState [09:10:51]SAM_PROTO_GetShiftState [09:10:51]wFMCommunicate request_size=4 [09:10:51]MH_SAM_APDU [09:10:51]CAPDU: 80 13 01 00 [09:10:51]Write to MH i2c: E2 08 00 85 9F 80 13 01 00 00 00 00 00 A1 [09:10:51]Write i2c OK [09:10:51]MH_I2C_Read... [09:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:51]Read from MH i2c: E2 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 0E 00 [09:10:51]MH_I2C_Read... [09:10:51]Read from MH i2c: E2 0E 00 85 9F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6C [09:10:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:10:51]wFMCommunicate OK [09:10:51]SAM_PROTO_GetShiftState done [09:10:51]FM_GetShiftState done [09:10:51]opened in 1722298242 [09:10:51]opened+sec_in_day 1722384642 [09:10:51]quantity*price = 40002 [09:10:51]sum+1 = 40003 [09:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 63 30.07.2024 09:11 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119011 ФПД: 174587463130124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091101&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119011&fm=174587463130124&tin=02508201610067®Number=0000000000092660&sum=40000 [09:10:52]StoreToDocumentArchive [09:10:52]shift 435 fd 119011 [09:10:52]save to /storage/0435/doc_00119011 [09:10:52]save last doc name /storage/0435/doc_00119011 to /storage/kkm_last_doc_name [09:10:52]save OK [09:10:52]Clear old archive folders... [09:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:52]tlvbuf is 021C0450 [09:10:52]SAM_PROTO_ClearQueue [09:10:52]wFMCommunicate request_size=4 [09:10:52]MH_SAM_APDU [09:10:52]CAPDU: 80 09 00 00 [09:10:52]Write to MH i2c: E2 08 00 92 9F 80 09 00 00 00 00 00 00 A3 [09:10:52]Write i2c OK [09:10:52]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 92 9F 00 90 00 A5 [09:10:53]RAPDU: 90 00 [09:10:53]wFMCommunicate OK [09:10:53]SAM_PROTO_ClearQueue done [09:10:53]KKMCreateOFDPacket [09:10:53]OFDProtocolAddRootSTLVToBuf [09:10:53]FM_MakeSignedData [09:10:53]FM_MakeSignedData [09:10:53]SAM_PROTO_SignData [09:10:53]wFMCommunicate request_size=4 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 0D 01 02 [09:10:53]Write to MH i2c: E2 08 00 93 9F 80 0D 01 02 00 00 00 00 AB [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 93 9F 00 90 00 A6 [09:10:53]RAPDU: 90 00 [09:10:53]wFMCommunicate OK [09:10:53]wFMCommunicate request_size=255 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3F 00 00 00 F4 03 04 00 25 AE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D0 01 00 35 04 06 00 9E [09:10:53]Write to MH i2c: E2 02 01 94 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3F 00 00 00 F4 03 04 00 25 AE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D0 01 00 35 04 06 00 9E 00 00 3A [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 94 9F 00 90 00 A7 [09:10:53]RAPDU: 90 00 [09:10:53]wFMCommunicate OK [09:10:53]wFMCommunicate request_size=10 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 0D 02 02 05 C9 4F B8 DC 0C [09:10:53]Write to MH i2c: E2 0D 00 95 9F 80 0D 02 02 05 00 C9 4F B8 DC 0C 00 00 70 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 03 00 95 9F 00 90 00 A8 [09:10:53]RAPDU: 90 00 [09:10:53]wFMCommunicate OK [09:10:53]wFMCommunicate request_size=4 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 0D 03 02 [09:10:53]Write to MH i2c: E2 08 00 96 9F 80 0D 03 02 00 00 00 00 B0 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 0B 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 0B 00 96 9F 00 15 C8 A9 16 7D 15 C3 E0 90 00 82 [09:10:53]RAPDU: 15 C8 A9 16 7D 15 C3 E0 90 00 [09:10:53]wFMCommunicate OK [09:10:53]SAM_PROTO_SignData done [09:10:53]FM_MakeSignedData done [09:10:53]CreateOFDProtocolMessage [09:10:53]wFMCommunicate request_size=4 [09:10:53]MH_SAM_APDU [09:10:53]CAPDU: 80 11 00 00 [09:10:53]Write to MH i2c: E2 08 00 97 9F 80 11 00 00 00 00 00 00 B0 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:53]Read from MH i2c: E2 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 17 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: E2 17 00 97 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [09:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:10:53]wFMCommunicate OK [09:10:53]CreateOFDProtocolMessage done [09:10:53]OFDSenderStorePacket 119011 [09:10:53]StoreOFDPacket docnum=119011 [09:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 90 07 01 E2 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3F 00 00 00 F4 03 04 00 25 AE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D0 01 00 35 04 06 00 9E C9 4F B8 DC 0C 15 C8 A9 16 7D 15 C3 E0 [09:10:53]CheckFolder [09:10:53]dirname=/storage/ofd_packets [09:10:53]CheckFolder done [09:10:53]ProducePacketName [09:10:53]name=ofd_packets/00119011 [09:10:53]NVStorageSaveData ofd_packets/00119011 [09:10:53]File name is /storage/ofd_packets/00119011 [09:10:53]Write 301 bytes [09:10:53]NVStorageSaveData done [09:10:53]OFDSenderStorePacket done [09:10:53]KKMCreateOFDPacket done [09:10:53]NVStorageSaveData kkm_last_timestamp [09:10:53]File name is /storage/kkm_last_timestamp [09:10:53]Write 4 bytes [09:10:53]NVStorageSaveData done [09:10:53]ExternCall_PrintAddStr [09:10:53]wPrintStart [09:10:53]Write to MH i2c: 01 00 00 98 9F 37 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 98 9F 00 00 00 00 00 FF 0F 4C [09:10:53]RasterBufferAndPrint [09:10:53]line Счет N : (1)949930 [09:10:53]line ИНН: 02508201610067 [09:10:53]line Контрольно-Кассовый Чек [09:10:53]line ПРОДАЖА [09:10:53]line ТРК (МРК, ГНК) : 41 [09:10:53]line Товар: 2710124130 [09:10:53]line Аи-92-К-4 [09:10:53]line 5.900 * 67.80 [09:10:53]line = 400.02 [09:10:53]line НДС 12% НСП 1% [09:10:53]line > о реализуемом товаре [09:10:53]line ОКРУГЛЕНИЕ: -0.02 [09:10:53]line ИТОГО: 400.00 [09:10:53]line Внесено: 400.00 [09:10:53]line СДАЧА: 0.00 [09:10:53]line НСП 1% : 3.54 [09:10:53]line НДС 12% : 42.48 [09:10:53]line Наличными: 400.00 [09:10:53]line Безнал.: 0.00 [09:10:53]line Место: АЗС № 134 "Партнер Нефть" [09:10:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:10:53]line СНО: Общий режим [09:10:53]line Чек 63 30.07.2024 09:11 [09:10:53]line Смена: 435 ФФД: 1.0 [09:10:53]line ЗНМ: 0300000044 [09:10:53]line РНМ: 0000000000092660 [09:10:53]line Версия ККМ: 001 [09:10:53]line ФМ: 0000000000874939 [09:10:53]line ФД: 119011 [09:10:53]line ФПД: 174587463130124 [09:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091101&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119011&fm=174587463130124&tin=02508201610067®Number=0000000000092660&sum=40000 [09:10:53]written 0, free lines is 4095 [09:10:53]OFD Sender: Processing packet 119011 [packets to send 86, broken 85] [09:10:53]ProducePacketName [09:10:53]name=ofd_packets/00119011 [09:10:53]OFD Sender: To server: pG, [09:10:53]CommunicateWithHost lk.salyk.kg:30040 [09:10:53]ConnectInit lk.salyk.kg [09:10:53]Connected sock=11 [09:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E6 90 07 01 E2 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3F 00 00 00 F4 03 04 00 25 AE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D0 01 00 35 04 06 00 9E C9 4F B8 DC 0C 15 C8 A9 16 7D 15 C3 E0 [09:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0A D9 47 00 DF 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D0 01 00 F4 03 04 00 B1 5B A8 66 B6 04 01 00 00 7D 9A 8D A1 A2 C2 F0 21 [09:10:53]CommunicateWithHost err = 0 [09:10:53]CheckOFDResponse [09:10:53]1017 (14) - 77093643461234 [09:10:53]1041 (16) - 0000000000874939 [09:10:53]1040 (4) - 119011 [09:10:53]1012 (4) - 30.07.2024 03:19 [09:10:53]1206 (1) - 0 [09:10:53]OFD Sender: Remove packet 119011 [09:10:53]ProducePacketName [09:10:53]name=ofd_packets/00119011 [09:10:53]NVStorageDeleteData [09:10:53]Write to MH i2c: 01 00 00 C2 9F 61 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: 01 07 00 C2 9F 00 00 00 00 00 F1 0C 65 [09:10:53]RasterBufferAndPrint [09:10:53]line [09:10:53]line [09:10:53]line [09:10:53]line [09:10:53]line [09:10:53]written 0, free lines is 3317 [09:10:53]MH_Cut [09:10:53]Write to MH i2c: D1 01 00 C9 9F 01 3A [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: D1 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: D1 01 00 [09:10:53]MH_I2C_Read... [09:10:53]Read from MH i2c: D1 01 00 C9 9F 00 39 [09:10:53]Write to MH i2c: 01 00 00 CA 9F 69 [09:10:53]Write i2c OK [09:10:53]MH_I2C_Read... [09:10:54]OFD Sender: No OFD packet to send [09:10:54]*** Cut start [09:10:54]*** Partial cut [09:10:54]*** CUTSNS_PIN = 1 [09:10:54]*** CUTSNS_PIN = 0 [09:10:54]*** Brake cut motor [09:10:55]Read from MH i2c: 01 [09:10:55]MH_I2C_Read... [09:10:55]*** Stop cut motor [09:10:55]*** Cut end [09:10:55]Read from MH i2c: 01 07 00 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: 01 07 00 CA 9F 00 00 00 00 00 FF 0F 7E [09:10:55]process_action close_receipt done [09:10:55]requested_data is exist [09:10:55]produce_requested_data [09:10:55]requested_item fm.sn is exist - process it [09:10:55]wFMCommunicate request_size=4 [09:10:55]MH_SAM_APDU [09:10:55]CAPDU: 80 11 00 00 [09:10:55]Write to MH i2c: E2 08 00 CB 9F 80 11 00 00 00 00 00 00 E4 [09:10:55]Write i2c OK [09:10:55]MH_I2C_Read... [09:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:55]Read from MH i2c: E2 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 17 00 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 17 00 CB 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [09:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:10:55]wFMCommunicate OK [09:10:55]requested_item fd.num is exist - process it [09:10:55]SAM_PROTO_GetFieldsCounters [09:10:55]wFMCommunicate request_size=4 [09:10:55]MH_SAM_APDU [09:10:55]CAPDU: 80 13 00 00 [09:10:55]Write to MH i2c: E2 08 00 CC 9F 80 13 00 00 00 00 00 00 E7 [09:10:55]Write i2c OK [09:10:55]MH_I2C_Read... [09:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:55]Read from MH i2c: E2 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 62 00 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 62 00 CC 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [09:10:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:55]wFMCommunicate OK [09:10:55]SAM_PROTO_GetFieldsCounters done [09:10:55]requested_item shift.num is exist - process it [09:10:55]requested_item shift.opened is exist - process it [09:10:55]req_shift_opened [09:10:55]FM_GetShiftState [09:10:55]SAM_PROTO_GetShiftState [09:10:55]wFMCommunicate request_size=4 [09:10:55]MH_SAM_APDU [09:10:55]CAPDU: 80 13 01 00 [09:10:55]Write to MH i2c: E2 08 00 CD 9F 80 13 01 00 00 00 00 00 E9 [09:10:55]Write i2c OK [09:10:55]MH_I2C_Read... [09:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:55]Read from MH i2c: E2 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 0E 00 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 0E 00 CD 9F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B4 [09:10:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:10:55]wFMCommunicate OK [09:10:55]SAM_PROTO_GetShiftState done [09:10:55]FM_GetShiftState done [09:10:55]req_shift_opened done [09:10:55]requested_item shift.open_date is exist - process it [09:10:55]req_shift_open_date [09:10:55]req_shift_open_date done [09:10:55]produce_requested_data done [09:10:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119011,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:10:55]process_action_free close_receipt [09:10:55]json_value_free [09:10:55]json_value_free done [09:10:55]process_json_proto returns [09:10:55]Send response to host [09:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119011,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:10:55]free response buf [09:10:55]execute_script done [09:10:55]execute_script returns [09:10:55]free content buf [09:10:55]Sock 7.Close socket [09:10:55]Sock 7.Thread stoped [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:38]accept exits with 9 [09:17:38]New connection [09:17:38]New thread 3067383140 created [09:17:38]Thread 3067239780 joined [09:17:38]Waiting for new connection... [09:17:38] Sock 9.Parse request [09:17:38]Sock 9.Check first char [09:17:38]Sock 9.First char is OK [09:17:38]request: POST /json_proto HTTP/1.0 [09:17:38]Method: POST [09:17:38]URL: /json_proto [09:17:38]Method is POST - this is cgi request [09:17:38]url: /json_proto [09:17:38]query_string will be loaded in cgi processing [09:17:38]execute_cgi json_proto POST (null) [09:17:38]execute_cgi path=json_proto method=POST [09:17:38]POST find Content-Length [09:17:38]Host: 172.17.45.7:8080 [09:17:38]Content-Length: 819 [09:17:38]Content-Type: application/json [09:17:38] [09:17:38]POST finish read [09:17:38]Found Content-Length = 819 [09:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:38]execute_script... [09:17: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)949931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:38]POST & json_proto [09:17:38]process_json_proto [09:17:38]json parsed OK: [09:17:38]protocol is kg_v1.0 [09:17:38]action value=close_receipt [09:17:38]process_action close_receipt [09:17:38]cmd_close_receipt [09:17:38]MH_GetDate [09:17:38]Write to MH i2c: F0 00 00 CE 9F 5C [09:17:38]Write i2c OK [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: F0 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: F0 09 00 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: F0 09 00 CE 9F 00 BC AF A8 66 90 0F 3E 66 21 [09:17:38]GetLastDocTimeStamp 1722330661 [09:17:38]current date 1722331068 [09:17:38]FM_GetShiftState [09:17:38]SAM_PROTO_GetShiftState [09:17:38]wFMCommunicate request_size=4 [09:17:38]MH_SAM_APDU [09:17:38]CAPDU: 80 13 01 00 [09:17:38]Write to MH i2c: E2 08 00 CF 9F 80 13 01 00 00 00 00 00 EB [09:17:38]Write i2c OK [09:17:38]MH_I2C_Read... [09:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:38]Read from MH i2c: E2 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: E2 0E 00 [09:17:38]MH_I2C_Read... [09:17:38]Read from MH i2c: E2 0E 00 CF 9F 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B6 [09:17:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:17:38]wFMCommunicate OK [09:17:38]SAM_PROTO_GetShiftState done [09:17:38]FM_GetShiftState done [09:17:38]opened in 1722298242 [09:17:38]opened+sec_in_day 1722384642 [09:17:38]quantity*price = 200025 [09:17:38]sum+1 = 200026 [09:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 64 30.07.2024 09:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119012 ФПД: 26692225347623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091748&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119012&fm=26692225347623&tin=02508201610067®Number=0000000000092660&sum=200000 [09:17:39]StoreToDocumentArchive [09:17:39]shift 435 fd 119012 [09:17:39]save to /storage/0435/doc_00119012 [09:17:39]save last doc name /storage/0435/doc_00119012 to /storage/kkm_last_doc_name [09:17:39]save OK [09:17:39]Clear old archive folders... [09:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:17:39]tlvbuf is 01E9A530 [09:17:39]SAM_PROTO_ClearQueue [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 09 00 00 [09:17:39]Write to MH i2c: E2 08 00 DC 9F 80 09 00 00 00 00 00 00 ED [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:39]Read from MH i2c: E2 03 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 DC 9F 00 90 00 EF [09:17:39]RAPDU: 90 00 [09:17:39]wFMCommunicate OK [09:17:39]SAM_PROTO_ClearQueue done [09:17:39]KKMCreateOFDPacket [09:17:39]OFDProtocolAddRootSTLVToBuf [09:17:39]FM_MakeSignedData [09:17:39]FM_MakeSignedData [09:17:39]SAM_PROTO_SignData [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 0D 01 02 [09:17:39]Write to MH i2c: E2 08 00 DD 9F 80 0D 01 02 00 00 00 00 F5 [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 DD 9F 00 90 00 F0 [09:17:39]RAPDU: 90 00 [09:17:39]wFMCommunicate OK [09:17:39]wFMCommunicate request_size=255 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BC AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D0 01 00 35 04 06 00 18 46 C4 9C [09:17:39]Write to MH i2c: E2 02 01 DE 9F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BC AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D0 01 00 35 04 06 00 18 46 C4 9C 00 00 53 [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 DE 9F 00 90 00 F1 [09:17:39]RAPDU: 90 00 [09:17:39]wFMCommunicate OK [09:17:39]wFMCommunicate request_size=7 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 0D 02 02 02 30 27 [09:17:39]Write to MH i2c: E2 0A 00 DF 9F 80 0D 02 02 02 00 30 27 00 00 53 [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 03 00 DF 9F 00 90 00 F2 [09:17:39]RAPDU: 90 00 [09:17:39]wFMCommunicate OK [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 0D 03 02 [09:17:39]Write to MH i2c: E2 08 00 E0 9F 80 0D 03 02 00 00 00 00 FA [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0B 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0B 00 E0 9F 00 27 CF 18 E7 39 BA 64 42 90 00 89 [09:17:39]RAPDU: 27 CF 18 E7 39 BA 64 42 90 00 [09:17:39]wFMCommunicate OK [09:17:39]SAM_PROTO_SignData done [09:17:39]FM_MakeSignedData done [09:17:39]CreateOFDProtocolMessage [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 11 00 00 [09:17:39]Write to MH i2c: E2 08 00 E1 9F 80 11 00 00 00 00 00 00 FA [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]OFD Sender: No OFD packet to send [09:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 17 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 17 00 E1 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [09:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:17:39]wFMCommunicate OK [09:17:39]CreateOFDProtocolMessage done [09:17:39]OFDSenderStorePacket 119012 [09:17:39]StoreOFDPacket docnum=119012 [09:17:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 60 7C 04 01 6C 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BC AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D0 01 00 35 04 06 00 18 46 C4 9C 30 27 27 CF 18 E7 39 BA 64 42 [09:17:39]CheckFolder [09:17:39]dirname=/storage/ofd_packets [09:17:39]CheckFolder done [09:17:39]ProducePacketName [09:17:39]name=ofd_packets/00119012 [09:17:39]NVStorageSaveData ofd_packets/00119012 [09:17:39]File name is /storage/ofd_packets/00119012 [09:17:39]Write 298 bytes [09:17:39]NVStorageSaveData done [09:17:39]OFDSenderStorePacket done [09:17:39]KKMCreateOFDPacket done [09:17:39]NVStorageSaveData kkm_last_timestamp [09:17:39]File name is /storage/kkm_last_timestamp [09:17:39]Write 4 bytes [09:17:39]NVStorageSaveData done [09:17:39]ExternCall_PrintAddStr [09:17:39]wPrintStart [09:17:39]Write to MH i2c: 01 00 00 E2 9F 81 [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: 01 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: 01 07 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: 01 07 00 E2 9F 00 00 00 00 00 FF 0F 96 [09:17:39]RasterBufferAndPrint [09:17:39]line Счет N : (1)949931 [09:17:39]line ИНН: 02508201610067 [09:17:39]line Контрольно-Кассовый Чек [09:17:39]line ПРОДАЖА [09:17:39]line ТРК (МРК, ГНК) : 11 [09:17:39]line Товар: 2710194800 [09:17:39]line ДТ-К-5 [09:17:39]line 26.250 * 76.20 [09:17:39]line = 2000.25 [09:17:39]line НДС 12% НСП 1% [09:17:39]line > о реализуемом товаре [09:17:39]line ОКРУГЛЕНИЕ: -0.25 [09:17:39]line ИТОГО: 2000.00 [09:17:39]line НСП 1% : 17.70 [09:17:39]line НДС 12% : 212.42 [09:17:39]line Наличными: 0.00 [09:17:39]line Безнал.: 2000.00 [09:17:39]line Место: АЗС № 134 "Партнер Нефть" [09:17:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:17:39]line СНО: Общий режим [09:17:39]line Чек 64 30.07.2024 09:17 [09:17:39]line Смена: 435 ФФД: 1.0 [09:17:39]line ЗНМ: 0300000044 [09:17:39]line РНМ: 0000000000092660 [09:17:39]line Версия ККМ: 001 [09:17:39]line Платежная система: O! деньги [09:17:39]line ФМ: 0000000000874939 [09:17:39]line ФД: 119012 [09:17:39]line ФПД: 26692225347623 [09:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091748&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119012&fm=26692225347623&tin=02508201610067®Number=0000000000092660&sum=200000 [09:17:40]OFD Sender: Processing packet 119012 [packets to send 86, broken 85] [09:17:40]ProducePacketName [09:17:40]name=ofd_packets/00119012 [09:17:40]OFD Sender: To server: pG, [09:17:40]CommunicateWithHost lk.salyk.kg:30040 [09:17:40]ConnectInit lk.salyk.kg [09:17:40]written 0, free lines is 4095 [09:17:40]Connected sock=10 [09:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 60 7C 04 01 6C 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BC AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D0 01 00 35 04 06 00 18 46 C4 9C 30 27 27 CF 18 E7 39 BA 64 42 [09:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AB BE 47 00 5F 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 34 39 33 39 10 04 04 00 E4 D0 01 00 F4 03 04 00 47 5D A8 66 B6 04 01 00 00 D0 64 AB EE F7 5D EA 94 [09:17:40]CommunicateWithHost err = 0 [09:17:40]CheckOFDResponse [09:17:40]1017 (14) - 77093643461234 [09:17:40]1041 (16) - 0000000000874939 [09:17:40]1040 (4) - 119012 [09:17:40]1012 (4) - 30.07.2024 03:25 [09:17:40]1206 (1) - 0 [09:17:40]OFD Sender: Remove packet 119012 [09:17:40]ProducePacketName [09:17:40]name=ofd_packets/00119012 [09:17:40]NVStorageDeleteData [09:17:40]Write to MH i2c: 01 00 00 0C A0 AC [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: 01 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: 01 07 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: 01 07 00 0C A0 00 00 00 00 00 EE 0C AD [09:17:40]RasterBufferAndPrint [09:17:40]line [09:17:40]line [09:17:40]line [09:17:40]line [09:17:40]line [09:17:40]written 0, free lines is 3316 [09:17:40]MH_Cut [09:17:40]Write to MH i2c: D1 01 00 13 A0 01 85 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: D1 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: D1 01 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: D1 01 00 13 A0 00 84 [09:17:40]Write to MH i2c: 01 00 00 14 A0 B4 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]OFD Sender: No OFD packet to send [09:17:41]*** Cut start [09:17:41]*** Partial cut [09:17:41]*** CUTSNS_PIN = 1 [09:17:41]*** CUTSNS_PIN = 0 [09:17:41]*** Brake cut motor [09:17:41]Read from MH i2c: 01 [09:17:41]MH_I2C_Read... [09:17:41]*** Stop cut motor [09:17:41]*** Cut end [09:17:41]Read from MH i2c: 01 07 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 14 A0 00 00 00 00 00 FF 0F C9 [09:17:41]process_action close_receipt done [09:17:41]requested_data is exist [09:17:41]produce_requested_data [09:17:41]requested_item fm.sn is exist - process it [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 11 00 00 [09:17:41]Write to MH i2c: E2 08 00 15 A0 80 11 00 00 00 00 00 00 2F [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 17 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 17 00 15 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [09:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:17:41]wFMCommunicate OK [09:17:41]requested_item fd.num is exist - process it [09:17:41]SAM_PROTO_GetFieldsCounters [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 13 00 00 [09:17:41]Write to MH i2c: E2 08 00 16 A0 80 13 00 00 00 00 00 00 32 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:42]Read from MH i2c: E2 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 62 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 62 00 16 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [09:17:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:42]wFMCommunicate OK [09:17:42]SAM_PROTO_GetFieldsCounters done [09:17:42]requested_item shift.num is exist - process it [09:17:42]requested_item shift.opened is exist - process it [09:17:42]req_shift_opened [09:17:42]FM_GetShiftState [09:17:42]SAM_PROTO_GetShiftState [09:17:42]wFMCommunicate request_size=4 [09:17:42]MH_SAM_APDU [09:17:42]CAPDU: 80 13 01 00 [09:17:42]Write to MH i2c: E2 08 00 17 A0 80 13 01 00 00 00 00 00 34 [09:17:42]Write i2c OK [09:17:42]MH_I2C_Read... [09:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:42]Read from MH i2c: E2 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 0E 00 [09:17:42]MH_I2C_Read... [09:17:42]Read from MH i2c: E2 0E 00 17 A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 FF [09:17:42]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:17:42]wFMCommunicate OK [09:17:42]SAM_PROTO_GetShiftState done [09:17:42]FM_GetShiftState done [09:17:42]req_shift_opened done [09:17:42]requested_item shift.open_date is exist - process it [09:17:42]req_shift_open_date [09:17:42]req_shift_open_date done [09:17:42]produce_requested_data done [09:17:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119012,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:17:42]process_action_free close_receipt [09:17:42]json_value_free [09:17:42]json_value_free done [09:17:42]process_json_proto returns [09:17:42]Send response to host [09:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119012,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:17:42]free response buf [09:17:42]execute_script done [09:17:42]execute_script returns [09:17:42]free content buf [09:17:42]Sock 9.Close socket [09:17:42]Sock 9.Thread stoped [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:17]accept exits with 7 [09:18:17]New connection [09:18:17]New thread 3067239780 created [09:18:17]Thread 3067383140 joined [09:18:17]Waiting for new connection... [09:18:17] Sock 7.Parse request [09:18:17]Sock 7.Check first char [09:18:17]Sock 7.First char is OK [09:18:17]request: POST /json_proto HTTP/1.0 [09:18:17]Method: POST [09:18:17]URL: /json_proto [09:18:17]Method is POST - this is cgi request [09:18:17]url: /json_proto [09:18:17]query_string will be loaded in cgi processing [09:18:17]execute_cgi json_proto POST (null) [09:18:17]execute_cgi path=json_proto method=POST [09:18:17]POST find Content-Length [09:18:17]Host: 172.17.45.7:8080 [09:18:17]Content-Length: 674 [09:18:17]Content-Type: application/json [09:18:17] [09:18:17]POST finish read [09:18:17]Found Content-Length = 674 [09:18:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:17]execute_script... [09:18: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)949932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:17]POST & json_proto [09:18:17]process_json_proto [09:18:17]json parsed OK: [09:18:17]protocol is kg_v1.0 [09:18:17]action value=close_receipt [09:18:17]process_action close_receipt [09:18:17]cmd_close_receipt [09:18:17]MH_GetDate [09:18:17]Write to MH i2c: F0 00 00 18 A0 A7 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: F0 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: F0 09 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: F0 09 00 18 A0 00 E3 AF A8 66 90 0F 3E 66 93 [09:18:17]GetLastDocTimeStamp 1722331068 [09:18:17]current date 1722331107 [09:18:17]FM_GetShiftState [09:18:17]SAM_PROTO_GetShiftState [09:18:17]wFMCommunicate request_size=4 [09:18:17]MH_SAM_APDU [09:18:17]CAPDU: 80 13 01 00 [09:18:17]Write to MH i2c: E2 08 00 19 A0 80 13 01 00 00 00 00 00 36 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:17]Read from MH i2c: E2 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 0E 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: E2 0E 00 19 A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 01 [09:18:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:18:17]wFMCommunicate OK [09:18:17]SAM_PROTO_GetShiftState done [09:18:17]FM_GetShiftState done [09:18:17]opened in 1722298242 [09:18:17]opened+sec_in_day 1722384642 [09:18:17]quantity*price = 70027 [09:18:17]sum+1 = 70029 [09:18:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 65 30.07.2024 09:18 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119013 ФПД: 84901803817161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091827&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119013&fm=84901803817161&tin=02508201610067®Number=0000000000092660&sum=70000 [09:18:18]StoreToDocumentArchive [09:18:18]shift 435 fd 119013 [09:18:18]save to /storage/0435/doc_00119013 [09:18:18]save last doc name /storage/0435/doc_00119013 to /storage/kkm_last_doc_name [09:18:18]save OK [09:18:18]Clear old archive folders... [09:18:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:18]tlvbuf is 02054ED0 [09:18:18]SAM_PROTO_ClearQueue [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 09 00 00 [09:18:18]Write to MH i2c: E2 08 00 26 A0 80 09 00 00 00 00 00 00 38 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 03 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 03 00 26 A0 00 90 00 3A [09:18:18]RAPDU: 90 00 [09:18:18]wFMCommunicate OK [09:18:18]SAM_PROTO_ClearQueue done [09:18:18]KKMCreateOFDPacket [09:18:18]OFDProtocolAddRootSTLVToBuf [09:18:18]FM_MakeSignedData [09:18:18]FM_MakeSignedData [09:18:18]SAM_PROTO_SignData [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 0D 01 02 [09:18:18]Write to MH i2c: E2 08 00 27 A0 80 0D 01 02 00 00 00 00 40 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 03 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 03 00 27 A0 00 90 00 3B [09:18:18]RAPDU: 90 00 [09:18:18]wFMCommunicate OK [09:18:18]wFMCommunicate request_size=255 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E3 AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D0 01 00 35 04 06 00 4D 37 BD DB [09:18:18]Write to MH i2c: E2 02 01 28 A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E3 AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D0 01 00 35 04 06 00 4D 37 BD DB 00 00 33 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 28 A0 00 90 00 3C [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]wFMCommunicate request_size=7 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 02 02 02 78 C9 [09:18:19]Write to MH i2c: E2 0A 00 29 A0 80 0D 02 02 02 00 78 C9 00 00 88 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 03 00 29 A0 00 90 00 3D [09:18:19]RAPDU: 90 00 [09:18:19]wFMCommunicate OK [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 0D 03 02 [09:18:19]Write to MH i2c: E2 08 00 2A A0 80 0D 03 02 00 00 00 00 45 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 0B 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 0B 00 2A A0 00 EE 01 CF A0 B7 4E 8C C5 90 00 FA [09:18:19]RAPDU: EE 01 CF A0 B7 4E 8C C5 90 00 [09:18:19]wFMCommunicate OK [09:18:19]SAM_PROTO_SignData done [09:18:19]FM_MakeSignedData done [09:18:19]CreateOFDProtocolMessage [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 11 00 00 [09:18:19]Write to MH i2c: E2 08 00 2B A0 80 11 00 00 00 00 00 00 45 [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 17 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 17 00 2B A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [09:18:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:19]wFMCommunicate OK [09:18:19]CreateOFDProtocolMessage done [09:18:19]OFDSenderStorePacket 119013 [09:18:19]StoreOFDPacket docnum=119013 [09:18:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 3C 04 01 27 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E3 AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D0 01 00 35 04 06 00 4D 37 BD DB 78 C9 EE 01 CF A0 B7 4E 8C C5 [09:18:19]CheckFolder [09:18:19]dirname=/storage/ofd_packets [09:18:19]CheckFolder done [09:18:19]ProducePacketName [09:18:19]name=ofd_packets/00119013 [09:18:19]NVStorageSaveData ofd_packets/00119013 [09:18:19]File name is /storage/ofd_packets/00119013 [09:18:19]Write 298 bytes [09:18:19]NVStorageSaveData done [09:18:19]OFDSenderStorePacket done [09:18:19]KKMCreateOFDPacket done [09:18:19]NVStorageSaveData kkm_last_timestamp [09:18:19]File name is /storage/kkm_last_timestamp [09:18:19]Write 4 bytes [09:18:19]NVStorageSaveData done [09:18:19]ExternCall_PrintAddStr [09:18:19]wPrintStart [09:18:19]Write to MH i2c: 01 00 00 2C A0 CC [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: 01 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: 01 07 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: 01 07 00 2C A0 00 00 00 00 00 FF 0F E1 [09:18:19]RasterBufferAndPrint [09:18:19]line Счет N : (1)949932 [09:18:19]line ИНН: 02508201610067 [09:18:19]line Контрольно-Кассовый Чек [09:18:19]line ПРОДАЖА [09:18:19]line ТРК (МРК, ГНК) : 34 [09:18:19]line Товар: 2710194800 [09:18:19]line ДТ-К-5 [09:18:19]line 9.190 * 76.20 [09:18:19]line = 700.28 [09:18:19]line НДС 12% НСП 1% [09:18:19]line > о реализуемом товаре [09:18:19]line ОКРУГЛЕНИЕ: -0.28 [09:18:19]line ИТОГО: 700.00 [09:18:19]line Внесено: 700.00 [09:18:19]line СДАЧА: 0.00 [09:18:19]line НСП 1% : 6.20 [09:18:19]line НДС 12% : 74.37 [09:18:19]line Наличными: 700.00 [09:18:19]line Безнал.: 0.00 [09:18:19]line Место: АЗС № 134 "Партнер Нефть" [09:18:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:18:19]line СНО: Общий режим [09:18:19]line Чек 65 30.07.2024 09:18 [09:18:19]line Смена: 435 ФФД: 1.0 [09:18:19]line ЗНМ: 0300000044 [09:18:19]line РНМ: 0000000000092660 [09:18:19]line Версия ККМ: 001 [09:18:19]line ФМ: 0000000000874939 [09:18:19]line ФД: 119013 [09:18:19]line ФПД: 84901803817161 [09:18:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091827&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119013&fm=84901803817161&tin=02508201610067®Number=0000000000092660&sum=70000 [09:18:19]OFD Sender: Processing packet 119013 [packets to send 86, broken 85] [09:18:19]ProducePacketName [09:18:19]name=ofd_packets/00119013 [09:18:19]OFD Sender: To server: pG, [09:18:19]CommunicateWithHost lk.salyk.kg:30040 [09:18:19]ConnectInit lk.salyk.kg [09:18:19]written 0, free lines is 4095 [09:18:19]Connected sock=10 [09:18:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 3C 04 01 27 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E3 AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D0 01 00 35 04 06 00 4D 37 BD DB 78 C9 EE 01 CF A0 B7 4E 8C C5 [09:18:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 77 47 00 FC 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 34 39 33 39 10 04 04 00 E5 D0 01 00 F4 03 04 00 6F 5D A8 66 B6 04 01 00 00 7F 6C B0 F3 28 08 39 F0 [09:18:19]CommunicateWithHost err = 0 [09:18:19]CheckOFDResponse [09:18:19]1017 (14) - 77093643461234 [09:18:19]1041 (16) - 0000000000874939 [09:18:19]1040 (4) - 119013 [09:18:19]1012 (4) - 30.07.2024 03:26 [09:18:19]1206 (1) - 0 [09:18:19]OFD Sender: Remove packet 119013 [09:18:19]ProducePacketName [09:18:19]name=ofd_packets/00119013 [09:18:19]NVStorageDeleteData [09:18:20]Write to MH i2c: 01 00 00 56 A0 F6 [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: 01 07 00 56 A0 00 00 00 00 00 EC 0C F5 [09:18:20]RasterBufferAndPrint [09:18:20]line [09:18:20]line [09:18:20]line [09:18:20]line [09:18:20]line [09:18:20]written 0, free lines is 3316 [09:18:20]MH_Cut [09:18:20]Write to MH i2c: D1 01 00 5D A0 01 CF [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: D1 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: D1 01 00 [09:18:20]MH_I2C_Read... [09:18:20]Read from MH i2c: D1 01 00 5D A0 00 CE [09:18:20]Write to MH i2c: 01 00 00 5E A0 FE [09:18:20]Write i2c OK [09:18:20]MH_I2C_Read... [09:18:20]OFD Sender: No OFD packet to send [09:18:20]*** Cut start [09:18:20]*** Partial cut [09:18:20]*** CUTSNS_PIN = 1 [09:18:20]*** CUTSNS_PIN = 0 [09:18:21]*** Brake cut motor [09:18:21]Read from MH i2c: 01 [09:18:21]MH_I2C_Read... [09:18:21]*** Stop cut motor [09:18:21]*** Cut end [09:18:21]Read from MH i2c: 01 07 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: 01 07 00 5E A0 00 00 00 00 00 FF 0F 13 [09:18:21]process_action close_receipt done [09:18:21]requested_data is exist [09:18:21]produce_requested_data [09:18:21]requested_item fm.sn is exist - process it [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 11 00 00 [09:18:21]Write to MH i2c: E2 08 00 5F A0 80 11 00 00 00 00 00 00 79 [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 17 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 17 00 5F A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [09:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:21]wFMCommunicate OK [09:18:21]requested_item fd.num is exist - process it [09:18:21]SAM_PROTO_GetFieldsCounters [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 13 00 00 [09:18:21]Write to MH i2c: E2 08 00 60 A0 80 13 00 00 00 00 00 00 7C [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 62 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 62 00 60 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [09:18:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:21]wFMCommunicate OK [09:18:21]SAM_PROTO_GetFieldsCounters done [09:18:21]requested_item shift.num is exist - process it [09:18:21]requested_item shift.opened is exist - process it [09:18:21]req_shift_opened [09:18:21]FM_GetShiftState [09:18:21]SAM_PROTO_GetShiftState [09:18:21]wFMCommunicate request_size=4 [09:18:21]MH_SAM_APDU [09:18:21]CAPDU: 80 13 01 00 [09:18:21]Write to MH i2c: E2 08 00 61 A0 80 13 01 00 00 00 00 00 7E [09:18:21]Write i2c OK [09:18:21]MH_I2C_Read... [09:18:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:21]Read from MH i2c: E2 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 0E 00 [09:18:21]MH_I2C_Read... [09:18:21]Read from MH i2c: E2 0E 00 61 A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 49 [09:18:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:18:21]wFMCommunicate OK [09:18:21]SAM_PROTO_GetShiftState done [09:18:21]FM_GetShiftState done [09:18:21]req_shift_opened done [09:18:21]requested_item shift.open_date is exist - process it [09:18:21]req_shift_open_date [09:18:21]req_shift_open_date done [09:18:21]produce_requested_data done [09:18:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119013,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:18:21]process_action_free close_receipt [09:18:21]json_value_free [09:18:21]json_value_free done [09:18:21]process_json_proto returns [09:18:21]Send response to host [09:18:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119013,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:18:21]free response buf [09:18:21]execute_script done [09:18:21]execute_script returns [09:18:21]free content buf [09:18:21]Sock 7.Close socket [09:18:21]Sock 7.Thread stoped [09:18:24]accept exits with 9 [09:18:24]New connection [09:18:24]New thread 3067383140 created [09:18:24]Thread 3067239780 joined [09:18:24]Waiting for new connection... [09:18:24] Sock 9.Parse request [09:18:24]Sock 9.Check first char [09:18:24]Sock 9.First char is OK [09:18:24]request: POST /json_proto HTTP/1.0 [09:18:24]Method: POST [09:18:24]URL: /json_proto [09:18:24]Method is POST - this is cgi request [09:18:24]url: /json_proto [09:18:24]query_string will be loaded in cgi processing [09:18:24]execute_cgi json_proto POST (null) [09:18:24]execute_cgi path=json_proto method=POST [09:18:24]POST find Content-Length [09:18:24]Host: 172.17.45.7:8080 [09:18:24]Content-Length: 677 [09:18:24]Content-Type: application/json [09:18:24] [09:18:24]POST finish read [09:18:24]Found Content-Length = 677 [09:18:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:24]execute_script... [09:18: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)949933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:24]POST & json_proto [09:18:24]process_json_proto [09:18:24]json parsed OK: [09:18:24]protocol is kg_v1.0 [09:18:24]action value=close_receipt [09:18:24]process_action close_receipt [09:18:24]cmd_close_receipt [09:18:24]MH_GetDate [09:18:24]Write to MH i2c: F0 00 00 62 A0 F1 [09:18:24]Write i2c OK [09:18:24]MH_I2C_Read... [09:18:24]Read from MH i2c: F0 [09:18:24]MH_I2C_Read... [09:18:24]Read from MH i2c: F0 09 00 [09:18:24]MH_I2C_Read... [09:18:24]Read from MH i2c: F0 09 00 62 A0 00 EA AF A8 66 90 0F 3E 66 E4 [09:18:24]GetLastDocTimeStamp 1722331107 [09:18:24]current date 1722331114 [09:18:24]FM_GetShiftState [09:18:24]SAM_PROTO_GetShiftState [09:18:24]wFMCommunicate request_size=4 [09:18:24]MH_SAM_APDU [09:18:24]CAPDU: 80 13 01 00 [09:18:24]Write to MH i2c: E2 08 00 63 A0 80 13 01 00 00 00 00 00 80 [09:18:24]Write i2c OK [09:18:24]MH_I2C_Read... [09:18:24]Read from MH i2c: E2 [09:18:24]MH_I2C_Read... [09:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:24]Read from MH i2c: E2 0E 00 [09:18:24]MH_I2C_Read... [09:18:24]Read from MH i2c: E2 0E 00 63 A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4B [09:18:24]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:18:24]wFMCommunicate OK [09:18:24]SAM_PROTO_GetShiftState done [09:18:24]FM_GetShiftState done [09:18:24]opened in 1722298242 [09:18:24]opened+sec_in_day 1722384642 [09:18:24]quantity*price = 50036 [09:18:24]sum+1 = 50037 [09:18:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 66 30.07.2024 09:18 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119014 ФПД: 117521613520642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119014&fm=117521613520642&tin=02508201610067®Number=0000000000092660&sum=50000 [09:18:25]StoreToDocumentArchive [09:18:25]shift 435 fd 119014 [09:18:25]save to /storage/0435/doc_00119014 [09:18:25]save last doc name /storage/0435/doc_00119014 to /storage/kkm_last_doc_name [09:18:25]save OK [09:18:25]Clear old archive folders... [09:18:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:25]tlvbuf is 01FEDF40 [09:18:25]SAM_PROTO_ClearQueue [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 09 00 00 [09:18:25]Write to MH i2c: E2 08 00 70 A0 80 09 00 00 00 00 00 00 82 [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 03 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 03 00 70 A0 00 90 00 84 [09:18:25]RAPDU: 90 00 [09:18:25]wFMCommunicate OK [09:18:25]SAM_PROTO_ClearQueue done [09:18:25]KKMCreateOFDPacket [09:18:25]OFDProtocolAddRootSTLVToBuf [09:18:25]FM_MakeSignedData [09:18:25]FM_MakeSignedData [09:18:25]SAM_PROTO_SignData [09:18:25]wFMCommunicate request_size=4 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 0D 01 02 [09:18:25]Write to MH i2c: E2 08 00 71 A0 80 0D 01 02 00 00 00 00 8A [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 03 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 03 00 71 A0 00 90 00 85 [09:18:25]RAPDU: 90 00 [09:18:25]wFMCommunicate OK [09:18:25]wFMCommunicate request_size=255 [09:18:25]MH_SAM_APDU [09:18: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D0 01 00 35 04 06 00 6A [09:18:25]Write to MH i2c: E2 02 01 72 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D0 01 00 35 04 06 00 6A 00 00 CC [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:25]Read from MH i2c: E2 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 03 00 [09:18:25]MH_I2C_Read... [09:18:25]Read from MH i2c: E2 03 00 72 A0 00 90 00 86 [09:18:25]RAPDU: 90 00 [09:18:25]wFMCommunicate OK [09:18:25]wFMCommunicate request_size=10 [09:18:25]MH_SAM_APDU [09:18:25]CAPDU: 80 0D 02 02 05 E2 A2 06 FF 02 [09:18:25]Write to MH i2c: E2 0D 00 73 A0 80 0D 02 02 05 00 E2 A2 06 FF 02 00 00 22 [09:18:25]Write i2c OK [09:18:25]MH_I2C_Read... [09:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:26]Read from MH i2c: E2 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 03 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 03 00 73 A0 00 90 00 87 [09:18:26]RAPDU: 90 00 [09:18:26]wFMCommunicate OK [09:18:26]wFMCommunicate request_size=4 [09:18:26]MH_SAM_APDU [09:18:26]CAPDU: 80 0D 03 02 [09:18:26]Write to MH i2c: E2 08 00 74 A0 80 0D 03 02 00 00 00 00 8F [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:26]Read from MH i2c: E2 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 0B 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 0B 00 74 A0 00 84 10 EB E4 90 8F 37 3A 90 00 83 [09:18:26]RAPDU: 84 10 EB E4 90 8F 37 3A 90 00 [09:18:26]wFMCommunicate OK [09:18:26]SAM_PROTO_SignData done [09:18:26]FM_MakeSignedData done [09:18:26]CreateOFDProtocolMessage [09:18:26]wFMCommunicate request_size=4 [09:18:26]MH_SAM_APDU [09:18:26]CAPDU: 80 11 00 00 [09:18:26]Write to MH i2c: E2 08 00 75 A0 80 11 00 00 00 00 00 00 8F [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:26]Read from MH i2c: E2 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 17 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: E2 17 00 75 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [09:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:26]wFMCommunicate OK [09:18:26]CreateOFDProtocolMessage done [09:18:26]OFDSenderStorePacket 119014 [09:18:26]StoreOFDPacket docnum=119014 [09:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 90 76 07 01 24 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D0 01 00 35 04 06 00 6A E2 A2 06 FF 02 84 10 EB E4 90 8F 37 3A [09:18:26]CheckFolder [09:18:26]dirname=/storage/ofd_packets [09:18:26]CheckFolder done [09:18:26]ProducePacketName [09:18:26]name=ofd_packets/00119014 [09:18:26]NVStorageSaveData ofd_packets/00119014 [09:18:26]File name is /storage/ofd_packets/00119014 [09:18:26]Write 301 bytes [09:18:26]NVStorageSaveData done [09:18:26]OFDSenderStorePacket done [09:18:26]KKMCreateOFDPacket done [09:18:26]NVStorageSaveData kkm_last_timestamp [09:18:26]File name is /storage/kkm_last_timestamp [09:18:26]Write 4 bytes [09:18:26]NVStorageSaveData done [09:18:26]ExternCall_PrintAddStr [09:18:26]wPrintStart [09:18:26]Write to MH i2c: 01 00 00 76 A0 16 [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: 01 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: 01 07 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: 01 07 00 76 A0 00 00 00 00 00 FF 0F 2B [09:18:26]RasterBufferAndPrint [09:18:26]line Счет N : (1)949933 [09:18:26]line ИНН: 02508201610067 [09:18:26]line Контрольно-Кассовый Чек [09:18:26]line ПРОДАЖА [09:18:26]line ТРК (МРК, ГНК) : 51 [09:18:26]line Товар: 2710124130 [09:18:26]line Аи-92-К-4 [09:18:26]line 7.380 * 67.80 [09:18:26]line = 500.36 [09:18:26]line НДС 12% НСП 1% [09:18:26]line > о реализуемом товаре [09:18:26]line ОКРУГЛЕНИЕ: -0.36 [09:18:26]line ИТОГО: 500.00 [09:18:26]line Внесено: 500.00 [09:18:26]line СДАЧА: 0.00 [09:18:26]line НСП 1% : 4.43 [09:18:26]line НДС 12% : 53.14 [09:18:26]line Наличными: 500.00 [09:18:26]line Безнал.: 0.00 [09:18:26]line Место: АЗС № 134 "Партнер Нефть" [09:18:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:18:26]line СНО: Общий режим [09:18:26]line Чек 66 30.07.2024 09:18 [09:18:26]line Смена: 435 ФФД: 1.0 [09:18:26]line ЗНМ: 0300000044 [09:18:26]line РНМ: 0000000000092660 [09:18:26]line Версия ККМ: 001 [09:18:26]line ФМ: 0000000000874939 [09:18:26]line ФД: 119014 [09:18:26]line ФПД: 117521613520642 [09:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091834&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119014&fm=117521613520642&tin=02508201610067®Number=0000000000092660&sum=50000 [09:18:26]OFD Sender: Processing packet 119014 [packets to send 86, broken 85] [09:18:26]ProducePacketName [09:18:26]name=ofd_packets/00119014 [09:18:26]OFD Sender: To server: pG, [09:18:26]CommunicateWithHost lk.salyk.kg:30040 [09:18:26]ConnectInit lk.salyk.kg [09:18:26]written 0, free lines is 4095 [09:18:26]Connected sock=10 [09:18:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 90 76 07 01 24 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 EA AF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D0 01 00 35 04 06 00 6A E2 A2 06 FF 02 84 10 EB E4 90 8F 37 3A [09:18:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BC 12 47 00 D3 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 34 39 33 39 10 04 04 00 E6 D0 01 00 F4 03 04 00 75 5D A8 66 B6 04 01 00 00 27 9D 41 E5 85 F6 BC 12 [09:18:26]CommunicateWithHost err = 0 [09:18:26]CheckOFDResponse [09:18:26]1017 (14) - 77093643461234 [09:18:26]1041 (16) - 0000000000874939 [09:18:26]1040 (4) - 119014 [09:18:26]1012 (4) - 30.07.2024 03:26 [09:18:26]1206 (1) - 0 [09:18:26]OFD Sender: Remove packet 119014 [09:18:26]ProducePacketName [09:18:26]name=ofd_packets/00119014 [09:18:26]NVStorageDeleteData [09:18:26]Write to MH i2c: 01 00 00 A0 A0 40 [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: 01 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: 01 07 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: 01 07 00 A0 A0 00 00 00 00 00 FE 0C 51 [09:18:26]RasterBufferAndPrint [09:18:26]line [09:18:26]line [09:18:26]line [09:18:26]line [09:18:26]line [09:18:26]written 0, free lines is 3338 [09:18:26]MH_Cut [09:18:26]Write to MH i2c: D1 01 00 A7 A0 01 19 [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: D1 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: D1 01 00 [09:18:26]MH_I2C_Read... [09:18:26]Read from MH i2c: D1 01 00 A7 A0 00 18 [09:18:26]Write to MH i2c: 01 00 00 A8 A0 48 [09:18:26]Write i2c OK [09:18:26]MH_I2C_Read... [09:18:26]OFD Sender: No OFD packet to send [09:18:27]*** Cut start [09:18:27]*** Partial cut [09:18:27]*** CUTSNS_PIN = 1 [09:18:27]*** CUTSNS_PIN = 0 [09:18:27]*** Brake cut motor [09:18:27]Read from MH i2c: 01 [09:18:27]MH_I2C_Read... [09:18:27]*** Stop cut motor [09:18:27]*** Cut end [09:18:27]Read from MH i2c: 01 07 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: 01 07 00 A8 A0 00 00 00 00 00 FF 0F 5D [09:18:27]process_action close_receipt done [09:18:27]requested_data is exist [09:18:27]produce_requested_data [09:18:27]requested_item fm.sn is exist - process it [09:18:27]wFMCommunicate request_size=4 [09:18:27]MH_SAM_APDU [09:18:27]CAPDU: 80 11 00 00 [09:18:27]Write to MH i2c: E2 08 00 A9 A0 80 11 00 00 00 00 00 00 C3 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:27]Read from MH i2c: E2 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 17 00 [09:18:27]MH_I2C_Read... [09:18:27]Read from MH i2c: E2 17 00 A9 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1E [09:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:18:27]wFMCommunicate OK [09:18:27]requested_item fd.num is exist - process it [09:18:27]SAM_PROTO_GetFieldsCounters [09:18:27]wFMCommunicate request_size=4 [09:18:27]MH_SAM_APDU [09:18:27]CAPDU: 80 13 00 00 [09:18:27]Write to MH i2c: E2 08 00 AA A0 80 13 00 00 00 00 00 00 C6 [09:18:27]Write i2c OK [09:18:27]MH_I2C_Read... [09:18:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:28]Read from MH i2c: E2 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 62 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 62 00 AA A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [09:18:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:28]wFMCommunicate OK [09:18:28]SAM_PROTO_GetFieldsCounters done [09:18:28]requested_item shift.num is exist - process it [09:18:28]requested_item shift.opened is exist - process it [09:18:28]req_shift_opened [09:18:28]FM_GetShiftState [09:18:28]SAM_PROTO_GetShiftState [09:18:28]wFMCommunicate request_size=4 [09:18:28]MH_SAM_APDU [09:18:28]CAPDU: 80 13 01 00 [09:18:28]Write to MH i2c: E2 08 00 AB A0 80 13 01 00 00 00 00 00 C8 [09:18:28]Write i2c OK [09:18:28]MH_I2C_Read... [09:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:28]Read from MH i2c: E2 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 0E 00 [09:18:28]MH_I2C_Read... [09:18:28]Read from MH i2c: E2 0E 00 AB A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 93 [09:18:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:18:28]wFMCommunicate OK [09:18:28]SAM_PROTO_GetShiftState done [09:18:28]FM_GetShiftState done [09:18:28]req_shift_opened done [09:18:28]requested_item shift.open_date is exist - process it [09:18:28]req_shift_open_date [09:18:28]req_shift_open_date done [09:18:28]produce_requested_data done [09:18:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119014,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:18:28]process_action_free close_receipt [09:18:28]json_value_free [09:18:28]json_value_free done [09:18:28]process_json_proto returns [09:18:28]Send response to host [09:18:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119014,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:18:28]free response buf [09:18:28]execute_script done [09:18:28]execute_script returns [09:18:28]free content buf [09:18:28]Sock 9.Close socket [09:18:28]Sock 9.Thread stoped [09:18:31]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:45]accept exits with 7 [09:19:45]New connection [09:19:45]New thread 3067239780 created [09:19:45]Thread 3067383140 joined [09:19:45]Waiting for new connection... [09:19:45] Sock 7.Parse request [09:19:45]Sock 7.Check first char [09:19:45]Sock 7.First char is OK [09:19:45]request: POST /json_proto HTTP/1.0 [09:19:45]Method: POST [09:19:45]URL: /json_proto [09:19:45]Method is POST - this is cgi request [09:19:45]url: /json_proto [09:19:45]query_string will be loaded in cgi processing [09:19:45]execute_cgi json_proto POST (null) [09:19:45]execute_cgi path=json_proto method=POST [09:19:45]POST find Content-Length [09:19:45]Host: 172.17.45.7:8080 [09:19:45]Content-Length: 678 [09:19:45]Content-Type: application/json [09:19:45] [09:19:45]POST finish read [09:19:45]Found Content-Length = 678 [09:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [09:19:45]execute_script... [09:19: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)949934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [09:19:45]POST & json_proto [09:19:45]process_json_proto [09:19:45]json parsed OK: [09:19:45]protocol is kg_v1.0 [09:19:45]action value=close_receipt [09:19:45]process_action close_receipt [09:19:45]cmd_close_receipt [09:19:45]MH_GetDate [09:19:45]Write to MH i2c: F0 00 00 AC A0 3B [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: F0 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: F0 09 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: F0 09 00 AC A0 00 3B B0 A8 66 90 0F 3E 66 80 [09:19:45]GetLastDocTimeStamp 1722331114 [09:19:45]current date 1722331195 [09:19:45]FM_GetShiftState [09:19:45]SAM_PROTO_GetShiftState [09:19:45]wFMCommunicate request_size=4 [09:19:45]MH_SAM_APDU [09:19:45]CAPDU: 80 13 01 00 [09:19:45]Write to MH i2c: E2 08 00 AD A0 80 13 01 00 00 00 00 00 CA [09:19:45]Write i2c OK [09:19:45]MH_I2C_Read... [09:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:45]Read from MH i2c: E2 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 0E 00 [09:19:45]MH_I2C_Read... [09:19:45]Read from MH i2c: E2 0E 00 AD A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 95 [09:19:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:19:45]wFMCommunicate OK [09:19:45]SAM_PROTO_GetShiftState done [09:19:45]FM_GetShiftState done [09:19:45]opened in 1722298242 [09:19:45]opened+sec_in_day 1722384642 [09:19:45]quantity*price = 70037 [09:19:45]sum+1 = 70038 [09:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 67 30.07.2024 09:19 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119015 ФПД: 256201313804414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091955&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119015&fm=256201313804414&tin=02508201610067®Number=0000000000092660&sum=70000 [09:19:46]StoreToDocumentArchive [09:19:46]shift 435 fd 119015 [09:19:46]save to /storage/0435/doc_00119015 [09:19:46]save last doc name /storage/0435/doc_00119015 to /storage/kkm_last_doc_name [09:19:46]save OK [09:19:46]Clear old archive folders... [09:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:46]tlvbuf is 02138940 [09:19:46]SAM_PROTO_ClearQueue [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 09 00 00 [09:19:46]Write to MH i2c: E2 08 00 BA A0 80 09 00 00 00 00 00 00 CC [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 03 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 03 00 BA A0 00 90 00 CE [09:19:46]RAPDU: 90 00 [09:19:46]wFMCommunicate OK [09:19:46]SAM_PROTO_ClearQueue done [09:19:46]KKMCreateOFDPacket [09:19:46]OFDProtocolAddRootSTLVToBuf [09:19:46]FM_MakeSignedData [09:19:46]FM_MakeSignedData [09:19:46]SAM_PROTO_SignData [09:19:46]wFMCommunicate request_size=4 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 0D 01 02 [09:19:46]Write to MH i2c: E2 08 00 BB A0 80 0D 01 02 00 00 00 00 D4 [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:46]Read from MH i2c: E2 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 03 00 [09:19:46]MH_I2C_Read... [09:19:46]Read from MH i2c: E2 03 00 BB A0 00 90 00 CF [09:19:46]RAPDU: 90 00 [09:19:46]wFMCommunicate OK [09:19:46]wFMCommunicate request_size=255 [09:19:46]MH_SAM_APDU [09:19:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 43 00 00 00 F4 03 04 00 3B B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D0 01 00 35 04 06 00 E9 [09:19:46]Write to MH i2c: E2 02 01 BC A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 43 00 00 00 F4 03 04 00 3B B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D0 01 00 35 04 06 00 E9 00 00 D0 [09:19:46]Write i2c OK [09:19:46]MH_I2C_Read... [09:19:47]OFD Sender: No OFD packet to send [09:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 BC A0 00 90 00 D0 [09:19:47]RAPDU: 90 00 [09:19:47]wFMCommunicate OK [09:19:47]wFMCommunicate request_size=10 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 0D 02 02 05 03 84 4C E0 7E [09:19:47]Write to MH i2c: E2 0D 00 BD A0 80 0D 02 02 05 00 03 84 4C E0 7E 00 00 12 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 03 00 BD A0 00 90 00 D1 [09:19:47]RAPDU: 90 00 [09:19:47]wFMCommunicate OK [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 0D 03 02 [09:19:47]Write to MH i2c: E2 08 00 BE A0 80 0D 03 02 00 00 00 00 D9 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 0B 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 0B 00 BE A0 00 C2 E7 52 21 58 88 78 63 90 00 B1 [09:19:47]RAPDU: C2 E7 52 21 58 88 78 63 90 00 [09:19:47]wFMCommunicate OK [09:19:47]SAM_PROTO_SignData done [09:19:47]FM_MakeSignedData done [09:19:47]CreateOFDProtocolMessage [09:19:47]wFMCommunicate request_size=4 [09:19:47]MH_SAM_APDU [09:19:47]CAPDU: 80 11 00 00 [09:19:47]Write to MH i2c: E2 08 00 BF A0 80 11 00 00 00 00 00 00 D9 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:47]Read from MH i2c: E2 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 17 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: E2 17 00 BF A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [09:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:19:47]wFMCommunicate OK [09:19:47]CreateOFDProtocolMessage done [09:19:47]OFDSenderStorePacket 119015 [09:19:47]StoreOFDPacket docnum=119015 [09:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA 0F 07 01 B1 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 43 00 00 00 F4 03 04 00 3B B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D0 01 00 35 04 06 00 E9 03 84 4C E0 7E C2 E7 52 21 58 88 78 63 [09:19:47]CheckFolder [09:19:47]dirname=/storage/ofd_packets [09:19:47]CheckFolder done [09:19:47]ProducePacketName [09:19:47]name=ofd_packets/00119015 [09:19:47]NVStorageSaveData ofd_packets/00119015 [09:19:47]File name is /storage/ofd_packets/00119015 [09:19:47]Write 301 bytes [09:19:47]NVStorageSaveData done [09:19:47]OFDSenderStorePacket done [09:19:47]KKMCreateOFDPacket done [09:19:47]NVStorageSaveData kkm_last_timestamp [09:19:47]File name is /storage/kkm_last_timestamp [09:19:47]Write 4 bytes [09:19:47]NVStorageSaveData done [09:19:47]ExternCall_PrintAddStr [09:19:47]wPrintStart [09:19:47]Write to MH i2c: 01 00 00 C0 A0 60 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 C0 A0 00 00 00 00 00 FF 0F 75 [09:19:47]RasterBufferAndPrint [09:19:47]line Счет N : (1)949934 [09:19:47]line ИНН: 02508201610067 [09:19:47]line Контрольно-Кассовый Чек [09:19:47]line ПРОДАЖА [09:19:47]line ТРК (МРК, ГНК) : 41 [09:19:47]line Товар: 2710124130 [09:19:47]line Аи-92-К-4 [09:19:47]line 10.330 * 67.80 [09:19:47]line = 700.37 [09:19:47]line НДС 12% НСП 1% [09:19:47]line > о реализуемом товаре [09:19:47]line ОКРУГЛЕНИЕ: -0.37 [09:19:47]line ИТОГО: 700.00 [09:19:47]line Внесено: 700.00 [09:19:47]line СДАЧА: 0.00 [09:19:47]line НСП 1% : 6.20 [09:19:47]line НДС 12% : 74.38 [09:19:47]line Наличными: 700.00 [09:19:47]line Безнал.: 0.00 [09:19:47]line Место: АЗС № 134 "Партнер Нефть" [09:19:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:19:47]line СНО: Общий режим [09:19:47]line Чек 67 30.07.2024 09:19 [09:19:47]line Смена: 435 ФФД: 1.0 [09:19:47]line ЗНМ: 0300000044 [09:19:47]line РНМ: 0000000000092660 [09:19:47]line Версия ККМ: 001 [09:19:47]line ФМ: 0000000000874939 [09:19:47]line ФД: 119015 [09:19:47]line ФПД: 256201313804414 [09:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T091955&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119015&fm=256201313804414&tin=02508201610067®Number=0000000000092660&sum=70000 [09:19:47]written 0, free lines is 4095 [09:19:47]OFD Sender: Processing packet 119015 [packets to send 86, broken 85] [09:19:47]ProducePacketName [09:19:47]name=ofd_packets/00119015 [09:19:47]OFD Sender: To server: pG, [09:19:47]CommunicateWithHost lk.salyk.kg:30040 [09:19:47]ConnectInit lk.salyk.kg [09:19:47]Connected sock=10 [09: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 34 39 33 39 0F 01 00 00 BA 0F 07 01 B1 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 43 00 00 00 F4 03 04 00 3B B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D0 01 00 35 04 06 00 E9 03 84 4C E0 7E C2 E7 52 21 58 88 78 63 [09:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 FD 47 00 86 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D0 01 00 F4 03 04 00 C6 5D A8 66 B6 04 01 00 00 65 00 3F BC 13 CA 0C 1E [09:19:47]CommunicateWithHost err = 0 [09:19:47]CheckOFDResponse [09:19:47]1017 (14) - 77093643461234 [09:19:47]1041 (16) - 0000000000874939 [09:19:47]1040 (4) - 119015 [09:19:47]1012 (4) - 30.07.2024 03:28 [09:19:47]1206 (1) - 0 [09:19:47]OFD Sender: Remove packet 119015 [09:19:47]ProducePacketName [09:19:47]name=ofd_packets/00119015 [09:19:47]NVStorageDeleteData [09:19:47]Write to MH i2c: 01 00 00 EA A0 8A [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: 01 07 00 EA A0 00 00 00 00 00 FB 0C 98 [09:19:47]RasterBufferAndPrint [09:19:47]line [09:19:47]line [09:19:47]line [09:19:47]line [09:19:47]line [09:19:47]written 0, free lines is 3329 [09:19:47]MH_Cut [09:19:47]Write to MH i2c: D1 01 00 F1 A0 01 63 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: D1 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: D1 01 00 [09:19:47]MH_I2C_Read... [09:19:47]Read from MH i2c: D1 01 00 F1 A0 00 62 [09:19:47]Write to MH i2c: 01 00 00 F2 A0 92 [09:19:47]Write i2c OK [09:19:47]MH_I2C_Read... [09:19:48]OFD Sender: No OFD packet to send [09:19:48]*** Cut start [09:19:48]*** Partial cut [09:19:48]*** CUTSNS_PIN = 1 [09:19:48]*** CUTSNS_PIN = 0 [09:19:48]*** Brake cut motor [09:19:49]Read from MH i2c: 01 [09:19:49]MH_I2C_Read... [09:19:49]*** Stop cut motor [09:19:49]*** Cut end [09:19:49]Read from MH i2c: 01 07 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: 01 07 00 F2 A0 00 00 00 00 00 FF 0F A7 [09:19:49]process_action close_receipt done [09:19:49]requested_data is exist [09:19:49]produce_requested_data [09:19:49]requested_item fm.sn is exist - process it [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 11 00 00 [09:19:49]Write to MH i2c: E2 08 00 F3 A0 80 11 00 00 00 00 00 00 0D [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 17 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 17 00 F3 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 68 [09:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:19:49]wFMCommunicate OK [09:19:49]requested_item fd.num is exist - process it [09:19:49]SAM_PROTO_GetFieldsCounters [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 13 00 00 [09:19:49]Write to MH i2c: E2 08 00 F4 A0 80 13 00 00 00 00 00 00 10 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 62 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 62 00 F4 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [09:19:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:49]wFMCommunicate OK [09:19:49]SAM_PROTO_GetFieldsCounters done [09:19:49]requested_item shift.num is exist - process it [09:19:49]requested_item shift.opened is exist - process it [09:19:49]req_shift_opened [09:19:49]FM_GetShiftState [09:19:49]SAM_PROTO_GetShiftState [09:19:49]wFMCommunicate request_size=4 [09:19:49]MH_SAM_APDU [09:19:49]CAPDU: 80 13 01 00 [09:19:49]Write to MH i2c: E2 08 00 F5 A0 80 13 01 00 00 00 00 00 12 [09:19:49]Write i2c OK [09:19:49]MH_I2C_Read... [09:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:49]Read from MH i2c: E2 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 0E 00 [09:19:49]MH_I2C_Read... [09:19:49]Read from MH i2c: E2 0E 00 F5 A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DD [09:19:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:19:49]wFMCommunicate OK [09:19:49]SAM_PROTO_GetShiftState done [09:19:49]FM_GetShiftState done [09:19:49]req_shift_opened done [09:19:49]requested_item shift.open_date is exist - process it [09:19:49]req_shift_open_date [09:19:49]req_shift_open_date done [09:19:49]produce_requested_data done [09:19:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119015,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:19:49]process_action_free close_receipt [09:19:49]json_value_free [09:19:49]json_value_free done [09:19:49]process_json_proto returns [09:19:49]Send response to host [09:19:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119015,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:19:49]free response buf [09:19:49]execute_script done [09:19:49]execute_script returns [09:19:49]free content buf [09:19:49]Sock 7.Close socket [09:19:49]Sock 7.Thread stoped [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:31]accept exits with 9 [09:21:31]New connection [09:21:31]New thread 3067383140 created [09:21:31]Thread 3067239780 joined [09:21:31]Waiting for new connection... [09:21:31] Sock 9.Parse request [09:21:31]Sock 9.Check first char [09:21:31]Sock 9.First char is OK [09:21:31]request: POST /json_proto HTTP/1.0 [09:21:31]Method: POST [09:21:31]URL: /json_proto [09:21:31]Method is POST - this is cgi request [09:21:31]url: /json_proto [09:21:31]query_string will be loaded in cgi processing [09:21:31]execute_cgi json_proto POST (null) [09:21:31]execute_cgi path=json_proto method=POST [09:21:31]POST find Content-Length [09:21:31]Host: 172.17.45.7:8080 [09:21:31]Content-Length: 677 [09:21:31]Content-Type: application/json [09:21:31] [09:21:31]POST finish read [09:21:31]Found Content-Length = 677 [09:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:21:31]execute_script... [09:21: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)949935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:21:31]POST & json_proto [09:21:31]process_json_proto [09:21:31]json parsed OK: [09:21:31]protocol is kg_v1.0 [09:21:31]action value=close_receipt [09:21:31]process_action close_receipt [09:21:31]cmd_close_receipt [09:21:31]MH_GetDate [09:21:31]Write to MH i2c: F0 00 00 F6 A0 85 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: F0 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: F0 09 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: F0 09 00 F6 A0 00 A5 B0 A8 66 90 0F 3E 66 34 [09:21:31]GetLastDocTimeStamp 1722331195 [09:21:31]current date 1722331301 [09:21:31]FM_GetShiftState [09:21:31]SAM_PROTO_GetShiftState [09:21:31]wFMCommunicate request_size=4 [09:21:31]MH_SAM_APDU [09:21:31]CAPDU: 80 13 01 00 [09:21:31]Write to MH i2c: E2 08 00 F7 A0 80 13 01 00 00 00 00 00 14 [09:21:31]Write i2c OK [09:21:31]MH_I2C_Read... [09:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:31]Read from MH i2c: E2 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 0E 00 [09:21:31]MH_I2C_Read... [09:21:31]Read from MH i2c: E2 0E 00 F7 A0 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DF [09:21:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:21:31]wFMCommunicate OK [09:21:31]SAM_PROTO_GetShiftState done [09:21:31]FM_GetShiftState done [09:21:31]opened in 1722298242 [09:21:31]opened+sec_in_day 1722384642 [09:21:31]quantity*price = 20001 [09:21:31]sum+1 = 20002 [09:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 68 30.07.2024 09:21 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119016 ФПД: 91527289545073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T092141&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119016&fm=91527289545073&tin=02508201610067®Number=0000000000092660&sum=20000 [09:21:32]StoreToDocumentArchive [09:21:32]shift 435 fd 119016 [09:21:32]save to /storage/0435/doc_00119016 [09:21:32]save last doc name /storage/0435/doc_00119016 to /storage/kkm_last_doc_name [09:21:32]save OK [09:21:32]Clear old archive folders... [09:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:32]tlvbuf is 01F33D50 [09:21:32]SAM_PROTO_ClearQueue [09:21:32]wFMCommunicate request_size=4 [09:21:32]MH_SAM_APDU [09:21:32]CAPDU: 80 09 00 00 [09:21:32]Write to MH i2c: E2 08 00 04 A1 80 09 00 00 00 00 00 00 17 [09:21:32]Write i2c OK [09:21:32]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 04 A1 00 90 00 19 [09:21:33]RAPDU: 90 00 [09:21:33]wFMCommunicate OK [09:21:33]SAM_PROTO_ClearQueue done [09:21:33]KKMCreateOFDPacket [09:21:33]OFDProtocolAddRootSTLVToBuf [09:21:33]FM_MakeSignedData [09:21:33]FM_MakeSignedData [09:21:33]SAM_PROTO_SignData [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 0D 01 02 [09:21:33]Write to MH i2c: E2 08 00 05 A1 80 0D 01 02 00 00 00 00 1F [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 05 A1 00 90 00 1A [09:21:33]RAPDU: 90 00 [09:21:33]wFMCommunicate OK [09:21:33]wFMCommunicate request_size=255 [09:21:33]MH_SAM_APDU [09:21: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 44 00 00 00 F4 03 04 00 A5 B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D0 01 00 35 04 06 00 53 [09:21:33]Write to MH i2c: E2 02 01 06 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 44 00 00 00 F4 03 04 00 A5 B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D0 01 00 35 04 06 00 53 00 00 0C [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]OFD Sender: No OFD packet to send [09:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 06 A1 00 90 00 1B [09:21:33]RAPDU: 90 00 [09:21:33]wFMCommunicate OK [09:21:33]wFMCommunicate request_size=10 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 0D 02 02 05 3E 5B 94 A1 71 [09:21:33]Write to MH i2c: E2 0D 00 07 A1 80 0D 02 02 05 00 3E 5B 94 A1 71 00 00 6B [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 03 00 07 A1 00 90 00 1C [09:21:33]RAPDU: 90 00 [09:21:33]wFMCommunicate OK [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 0D 03 02 [09:21:33]Write to MH i2c: E2 08 00 08 A1 80 0D 03 02 00 00 00 00 24 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 0B 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 0B 00 08 A1 00 21 C3 39 E2 BF C8 9C EF 90 00 36 [09:21:33]RAPDU: 21 C3 39 E2 BF C8 9C EF 90 00 [09:21:33]wFMCommunicate OK [09:21:33]SAM_PROTO_SignData done [09:21:33]FM_MakeSignedData done [09:21:33]CreateOFDProtocolMessage [09:21:33]wFMCommunicate request_size=4 [09:21:33]MH_SAM_APDU [09:21:33]CAPDU: 80 11 00 00 [09:21:33]Write to MH i2c: E2 08 00 09 A1 80 11 00 00 00 00 00 00 24 [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:33]Read from MH i2c: E2 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 17 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: E2 17 00 09 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [09:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:21:33]wFMCommunicate OK [09:21:33]CreateOFDProtocolMessage done [09:21:33]OFDSenderStorePacket 119016 [09:21:33]StoreOFDPacket docnum=119016 [09:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 39 07 01 55 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 44 00 00 00 F4 03 04 00 A5 B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D0 01 00 35 04 06 00 53 3E 5B 94 A1 71 21 C3 39 E2 BF C8 9C EF [09:21:33]CheckFolder [09:21:33]dirname=/storage/ofd_packets [09:21:33]CheckFolder done [09:21:33]ProducePacketName [09:21:33]name=ofd_packets/00119016 [09:21:33]NVStorageSaveData ofd_packets/00119016 [09:21:33]File name is /storage/ofd_packets/00119016 [09:21:33]Write 301 bytes [09:21:33]NVStorageSaveData done [09:21:33]OFDSenderStorePacket done [09:21:33]KKMCreateOFDPacket done [09:21:33]NVStorageSaveData kkm_last_timestamp [09:21:33]File name is /storage/kkm_last_timestamp [09:21:33]Write 4 bytes [09:21:33]NVStorageSaveData done [09:21:33]ExternCall_PrintAddStr [09:21:33]wPrintStart [09:21:33]Write to MH i2c: 01 00 00 0A A1 AB [09:21:33]Write i2c OK [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: 01 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: 01 07 00 [09:21:33]MH_I2C_Read... [09:21:33]Read from MH i2c: 01 07 00 0A A1 00 00 00 00 00 FF 0F C0 [09:21:33]RasterBufferAndPrint [09:21:33]line Счет N : (1)949935 [09:21:33]line ИНН: 02508201610067 [09:21:33]line Контрольно-Кассовый Чек [09:21:33]line ПРОДАЖА [09:21:33]line ТРК (МРК, ГНК) : 31 [09:21:33]line Товар: 2710124130 [09:21:33]line Аи-92-К-4 [09:21:33]line 2.950 * 67.80 [09:21:33]line = 200.01 [09:21:33]line НДС 12% НСП 1% [09:21:33]line > о реализуемом товаре [09:21:33]line ОКРУГЛЕНИЕ: -0.01 [09:21:33]line ИТОГО: 200.00 [09:21:33]line Внесено: 200.00 [09:21:33]line СДАЧА: 0.00 [09:21:33]line НСП 1% : 1.77 [09:21:33]line НДС 12% : 21.24 [09:21:33]line Наличными: 200.00 [09:21:33]line Безнал.: 0.00 [09:21:33]line Место: АЗС № 134 "Партнер Нефть" [09:21:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:21:33]line СНО: Общий режим [09:21:33]line Чек 68 30.07.2024 09:21 [09:21:33]line Смена: 435 ФФД: 1.0 [09:21:33]line ЗНМ: 0300000044 [09:21:33]line РНМ: 0000000000092660 [09:21:33]line Версия ККМ: 001 [09:21:33]line ФМ: 0000000000874939 [09:21:33]line ФД: 119016 [09:21:33]line ФПД: 91527289545073 [09:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T092141&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119016&fm=91527289545073&tin=02508201610067®Number=0000000000092660&sum=20000 [09:21:33]OFD Sender: Processing packet 119016 [packets to send 86, broken 85] [09:21:33]ProducePacketName [09:21:33]name=ofd_packets/00119016 [09:21:33]OFD Sender: To server: pG, [09:21:33]CommunicateWithHost lk.salyk.kg:30040 [09:21:33]ConnectInit lk.salyk.kg [09:21:33]written 0, free lines is 4095 [09:21:33]Connected sock=10 [09:21:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7C 39 07 01 55 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 44 00 00 00 F4 03 04 00 A5 B0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D0 01 00 35 04 06 00 53 3E 5B 94 A1 71 21 C3 39 E2 BF C8 9C EF [09:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 30 5E 47 00 85 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D0 01 00 F4 03 04 00 31 5E A8 66 B6 04 01 00 00 BB 06 10 B2 0D 71 F7 C9 [09:21:34]CommunicateWithHost err = 0 [09:21:34]CheckOFDResponse [09:21:34]1017 (14) - 77093643461234 [09:21:34]1041 (16) - 0000000000874939 [09:21:34]1040 (4) - 119016 [09:21:34]1012 (4) - 30.07.2024 03:29 [09:21:34]1206 (1) - 0 [09:21:34]OFD Sender: Remove packet 119016 [09:21:34]ProducePacketName [09:21:34]name=ofd_packets/00119016 [09:21:34]NVStorageDeleteData [09:21:34]Write to MH i2c: 01 00 00 34 A1 D5 [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: 01 07 00 34 A1 00 00 00 00 00 F4 0C DC [09:21:34]RasterBufferAndPrint [09:21:34]line [09:21:34]line [09:21:34]line [09:21:34]line [09:21:34]line [09:21:34]written 0, free lines is 3323 [09:21:34]MH_Cut [09:21:34]Write to MH i2c: D1 01 00 3B A1 01 AE [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: D1 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: D1 01 00 [09:21:34]MH_I2C_Read... [09:21:34]Read from MH i2c: D1 01 00 3B A1 00 AD [09:21:34]Write to MH i2c: 01 00 00 3C A1 DD [09:21:34]Write i2c OK [09:21:34]MH_I2C_Read... [09:21:34]OFD Sender: No OFD packet to send [09:21:34]*** Cut start [09:21:34]*** Partial cut [09:21:34]*** CUTSNS_PIN = 1 [09:21:35]*** CUTSNS_PIN = 0 [09:21:35]*** Brake cut motor [09:21:35]Read from MH i2c: 01 [09:21:35]MH_I2C_Read... [09:21:35]*** Stop cut motor [09:21:35]*** Cut end [09:21:35]Read from MH i2c: 01 07 00 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: 01 07 00 3C A1 00 00 00 00 00 FF 0F F2 [09:21:35]process_action close_receipt done [09:21:35]requested_data is exist [09:21:35]produce_requested_data [09:21:35]requested_item fm.sn is exist - process it [09:21:35]wFMCommunicate request_size=4 [09:21:35]MH_SAM_APDU [09:21:35]CAPDU: 80 11 00 00 [09:21:35]Write to MH i2c: E2 08 00 3D A1 80 11 00 00 00 00 00 00 58 [09:21:35]Write i2c OK [09:21:35]MH_I2C_Read... [09:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:35]Read from MH i2c: E2 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: E2 17 00 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: E2 17 00 3D A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [09:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:21:35]wFMCommunicate OK [09:21:35]requested_item fd.num is exist - process it [09:21:35]SAM_PROTO_GetFieldsCounters [09:21:35]wFMCommunicate request_size=4 [09:21:35]MH_SAM_APDU [09:21:35]CAPDU: 80 13 00 00 [09:21:35]Write to MH i2c: E2 08 00 3E A1 80 13 00 00 00 00 00 00 5B [09:21:35]Write i2c OK [09:21:35]MH_I2C_Read... [09:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:35]Read from MH i2c: E2 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: E2 62 00 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: E2 62 00 3E A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [09:21:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:35]wFMCommunicate OK [09:21:35]SAM_PROTO_GetFieldsCounters done [09:21:35]requested_item shift.num is exist - process it [09:21:35]requested_item shift.opened is exist - process it [09:21:35]req_shift_opened [09:21:35]FM_GetShiftState [09:21:35]SAM_PROTO_GetShiftState [09:21:35]wFMCommunicate request_size=4 [09:21:35]MH_SAM_APDU [09:21:35]CAPDU: 80 13 01 00 [09:21:35]Write to MH i2c: E2 08 00 3F A1 80 13 01 00 00 00 00 00 5D [09:21:35]Write i2c OK [09:21:35]MH_I2C_Read... [09:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:35]Read from MH i2c: E2 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: E2 0E 00 [09:21:35]MH_I2C_Read... [09:21:35]Read from MH i2c: E2 0E 00 3F A1 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 28 [09:21:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:21:35]wFMCommunicate OK [09:21:35]SAM_PROTO_GetShiftState done [09:21:35]FM_GetShiftState done [09:21:35]req_shift_opened done [09:21:35]requested_item shift.open_date is exist - process it [09:21:35]req_shift_open_date [09:21:35]req_shift_open_date done [09:21:35]produce_requested_data done [09:21:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119016,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:21:35]process_action_free close_receipt [09:21:35]json_value_free [09:21:35]json_value_free done [09:21:35]process_json_proto returns [09:21:35]Send response to host [09:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119016,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:21:35]free response buf [09:21:35]execute_script done [09:21:35]execute_script returns [09:21:35]free content buf [09:21:35]Sock 9.Close socket [09:21:35]Sock 9.Thread stoped [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:25]accept exits with 7 [09:25:25]New connection [09:25:25]New thread 3067239780 created [09:25:25]Thread 3067383140 joined [09:25:25]Waiting for new connection... [09:25:25] Sock 7.Parse request [09:25:25]Sock 7.Check first char [09:25:25]Sock 7.First char is OK [09:25:25]request: POST /json_proto HTTP/1.0 [09:25:25]Method: POST [09:25:25]URL: /json_proto [09:25:25]Method is POST - this is cgi request [09:25:25]url: /json_proto [09:25:25]query_string will be loaded in cgi processing [09:25:25]execute_cgi json_proto POST (null) [09:25:25]execute_cgi path=json_proto method=POST [09:25:25]POST find Content-Length [09:25:25]Host: 172.17.45.7:8080 [09:25:25]Content-Length: 677 [09:25:25]Content-Type: application/json [09:25:25] [09:25:25]POST finish read [09:25:25]Found Content-Length = 677 [09:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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:25:25]execute_script... [09:25: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)949936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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:25:25]POST & json_proto [09:25:25]process_json_proto [09:25:25]json parsed OK: [09:25:25]protocol is kg_v1.0 [09:25:25]action value=close_receipt [09:25:25]process_action close_receipt [09:25:25]cmd_close_receipt [09:25:25]MH_GetDate [09:25:25]Write to MH i2c: F0 00 00 40 A1 D0 [09:25:25]Write i2c OK [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: F0 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: F0 09 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: F0 09 00 40 A1 00 8F B1 A8 66 90 0F 3E 66 6A [09:25:25]GetLastDocTimeStamp 1722331301 [09:25:25]current date 1722331535 [09:25:25]FM_GetShiftState [09:25:25]SAM_PROTO_GetShiftState [09:25:25]wFMCommunicate request_size=4 [09:25:25]MH_SAM_APDU [09:25:25]CAPDU: 80 13 01 00 [09:25:25]Write to MH i2c: E2 08 00 41 A1 80 13 01 00 00 00 00 00 5F [09:25:25]Write i2c OK [09:25:25]MH_I2C_Read... [09:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:25]Read from MH i2c: E2 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 0E 00 [09:25:25]MH_I2C_Read... [09:25:25]Read from MH i2c: E2 0E 00 41 A1 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2A [09:25:25]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:25:25]wFMCommunicate OK [09:25:25]SAM_PROTO_GetShiftState done [09:25:25]FM_GetShiftState done [09:25:25]opened in 1722298242 [09:25:25]opened+sec_in_day 1722384642 [09:25:25]quantity*price = 60027 [09:25:25]sum+1 = 60029 [09:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 69 30.07.2024 09:25 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119017 ФПД: 208920332946632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T092535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119017&fm=208920332946632&tin=02508201610067®Number=0000000000092660&sum=60000 [09:25:26]StoreToDocumentArchive [09:25:26]shift 435 fd 119017 [09:25:26]save to /storage/0435/doc_00119017 [09:25:26]save last doc name /storage/0435/doc_00119017 to /storage/kkm_last_doc_name [09:25:26]save OK [09:25:26]Clear old archive folders... [09:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:26]tlvbuf is 01E89C70 [09:25:26]SAM_PROTO_ClearQueue [09:25:26]wFMCommunicate request_size=4 [09:25:26]MH_SAM_APDU [09:25:26]CAPDU: 80 09 00 00 [09:25:26]Write to MH i2c: E2 08 00 4E A1 80 09 00 00 00 00 00 00 61 [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:26]Read from MH i2c: E2 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: E2 03 00 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: E2 03 00 4E A1 00 90 00 63 [09:25:26]RAPDU: 90 00 [09:25:26]wFMCommunicate OK [09:25:26]SAM_PROTO_ClearQueue done [09:25:26]KKMCreateOFDPacket [09:25:26]OFDProtocolAddRootSTLVToBuf [09:25:26]FM_MakeSignedData [09:25:26]FM_MakeSignedData [09:25:26]SAM_PROTO_SignData [09:25:26]wFMCommunicate request_size=4 [09:25:26]MH_SAM_APDU [09:25:26]CAPDU: 80 0D 01 02 [09:25:26]Write to MH i2c: E2 08 00 4F A1 80 0D 01 02 00 00 00 00 69 [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:26]Read from MH i2c: E2 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: E2 03 00 [09:25:26]MH_I2C_Read... [09:25:26]Read from MH i2c: E2 03 00 4F A1 00 90 00 64 [09:25:26]RAPDU: 90 00 [09:25:26]wFMCommunicate OK [09:25:26]wFMCommunicate request_size=255 [09:25:26]MH_SAM_APDU [09:25: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D0 01 00 35 04 06 00 BE [09:25:26]Write to MH i2c: E2 02 01 50 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D0 01 00 35 04 06 00 BE 00 00 19 [09:25:26]Write i2c OK [09:25:26]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 03 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 03 00 50 A1 00 90 00 65 [09:25:27]RAPDU: 90 00 [09:25:27]wFMCommunicate OK [09:25:27]wFMCommunicate request_size=10 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 0D 02 02 05 03 0E 3B 4C C8 [09:25:27]Write to MH i2c: E2 0D 00 51 A1 80 0D 02 02 05 00 03 0E 3B 4C C8 00 00 D6 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 03 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 03 00 51 A1 00 90 00 66 [09:25:27]RAPDU: 90 00 [09:25:27]wFMCommunicate OK [09:25:27]wFMCommunicate request_size=4 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 0D 03 02 [09:25:27]Write to MH i2c: E2 08 00 52 A1 80 0D 03 02 00 00 00 00 6E [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 0B 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 0B 00 52 A1 00 75 28 BB 1A F6 C2 83 AC 90 00 C8 [09:25:27]RAPDU: 75 28 BB 1A F6 C2 83 AC 90 00 [09:25:27]wFMCommunicate OK [09:25:27]SAM_PROTO_SignData done [09:25:27]FM_MakeSignedData done [09:25:27]CreateOFDProtocolMessage [09:25:27]wFMCommunicate request_size=4 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 11 00 00 [09:25:27]Write to MH i2c: E2 08 00 53 A1 80 11 00 00 00 00 00 00 6E [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 17 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 17 00 53 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [09:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:25:27]wFMCommunicate OK [09:25:27]CreateOFDProtocolMessage done [09:25:27]OFDSenderStorePacket 119017 [09:25:27]StoreOFDPacket docnum=119017 [09:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EC 81 07 01 3A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D0 01 00 35 04 06 00 BE 03 0E 3B 4C C8 75 28 BB 1A F6 C2 83 AC [09:25:27]CheckFolder [09:25:27]dirname=/storage/ofd_packets [09:25:27]CheckFolder done [09:25:27]ProducePacketName [09:25:27]name=ofd_packets/00119017 [09:25:27]NVStorageSaveData ofd_packets/00119017 [09:25:27]File name is /storage/ofd_packets/00119017 [09:25:27]Write 301 bytes [09:25:27]NVStorageSaveData done [09:25:27]OFDSenderStorePacket done [09:25:27]KKMCreateOFDPacket done [09:25:27]NVStorageSaveData kkm_last_timestamp [09:25:27]File name is /storage/kkm_last_timestamp [09:25:27]Write 4 bytes [09:25:27]NVStorageSaveData done [09:25:27]ExternCall_PrintAddStr [09:25:27]wPrintStart [09:25:27]Write to MH i2c: 01 00 00 54 A1 F5 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 07 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 07 00 54 A1 00 00 00 00 00 FF 0F 0A [09:25:27]RasterBufferAndPrint [09:25:27]line Счет N : (1)949936 [09:25:27]line ИНН: 02508201610067 [09:25:27]line Контрольно-Кассовый Чек [09:25:27]line ПРОДАЖА [09:25:27]line ТРК (МРК, ГНК) : 53 [09:25:27]line Товар: 2710124500 [09:25:27]line Аи-95-К-3 [09:25:27]line 8.090 * 74.20 [09:25:27]line = 600.28 [09:25:27]line НДС 12% НСП 1% [09:25:27]line > о реализуемом товаре [09:25:27]line ОКРУГЛЕНИЕ: -0.28 [09:25:27]line ИТОГО: 600.00 [09:25:27]line Внесено: 600.00 [09:25:27]line СДАЧА: 0.00 [09:25:27]line НСП 1% : 5.31 [09:25:27]line НДС 12% : 63.75 [09:25:27]line Наличными: 600.00 [09:25:27]line Безнал.: 0.00 [09:25:27]line Место: АЗС № 134 "Партнер Нефть" [09:25:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:25:27]line СНО: Общий режим [09:25:27]line Чек 69 30.07.2024 09:25 [09:25:27]line Смена: 435 ФФД: 1.0 [09:25:27]line ЗНМ: 0300000044 [09:25:27]line РНМ: 0000000000092660 [09:25:27]line Версия ККМ: 001 [09:25:27]line ФМ: 0000000000874939 [09:25:27]line ФД: 119017 [09:25:27]line ФПД: 208920332946632 [09:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T092535&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119017&fm=208920332946632&tin=02508201610067®Number=0000000000092660&sum=60000 [09:25:27]written 0, free lines is 4095 [09:25:27]OFD Sender: Processing packet 119017 [packets to send 86, broken 85] [09:25:27]ProducePacketName [09:25:27]name=ofd_packets/00119017 [09:25:27]OFD Sender: To server: pG, [09:25:27]CommunicateWithHost lk.salyk.kg:30040 [09:25:27]ConnectInit lk.salyk.kg [09:25:27]Connected sock=10 [09:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EC 81 07 01 3A FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 8F B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D0 01 00 35 04 06 00 BE 03 0E 3B 4C C8 75 28 BB 1A F6 C2 83 AC [09:25:27]Write to MH i2c: 01 00 00 7E A1 1F [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 07 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: 01 07 00 7E A1 00 00 00 00 00 F2 0C 24 [09:25:27]RasterBufferAndPrint [09:25:27]line [09:25:27]line [09:25:27]line [09:25:27]line [09:25:27]line [09:25:27]written 0, free lines is 3320 [09:25:27]MH_Cut [09:25:27]Write to MH i2c: D1 01 00 85 A1 01 F8 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: D1 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: D1 01 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: D1 01 00 85 A1 00 F7 [09:25:27]Write to MH i2c: 01 00 00 86 A1 27 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 3A 47 00 1B 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 34 39 33 39 10 04 04 00 E9 D0 01 00 F4 03 04 00 1B 5F A8 66 B6 04 01 00 00 14 A9 1F 4E 19 32 B1 2D [09:25:28]CommunicateWithHost err = 0 [09:25:28]CheckOFDResponse [09:25:28]1017 (14) - 77093643461234 [09:25:28]1041 (16) - 0000000000874939 [09:25:28]1040 (4) - 119017 [09:25:28]1012 (4) - 30.07.2024 03:33 [09:25:28]1206 (1) - 0 [09:25:28]OFD Sender: Remove packet 119017 [09:25:28]ProducePacketName [09:25:28]name=ofd_packets/00119017 [09:25:28]NVStorageDeleteData [09:25:28]*** Cut start [09:25:28]*** Partial cut [09:25:28]*** CUTSNS_PIN = 1 [09:25:28]OFD Sender: No OFD packet to send [09:25:28]*** CUTSNS_PIN = 0 [09:25:28]*** Brake cut motor [09:25:29]Read from MH i2c: 01 [09:25:29]MH_I2C_Read... [09:25:29]*** Stop cut motor [09:25:29]*** Cut end [09:25:29]Read from MH i2c: 01 07 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: 01 07 00 86 A1 00 00 00 00 00 FF 0F 3C [09:25:29]process_action close_receipt done [09:25:29]requested_data is exist [09:25:29]produce_requested_data [09:25:29]requested_item fm.sn is exist - process it [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 11 00 00 [09:25:29]Write to MH i2c: E2 08 00 87 A1 80 11 00 00 00 00 00 00 A2 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 17 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 17 00 87 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FD [09:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:25:29]wFMCommunicate OK [09:25:29]requested_item fd.num is exist - process it [09:25:29]SAM_PROTO_GetFieldsCounters [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 13 00 00 [09:25:29]Write to MH i2c: E2 08 00 88 A1 80 13 00 00 00 00 00 00 A5 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 62 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 62 00 88 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [09:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_GetFieldsCounters done [09:25:29]requested_item shift.num is exist - process it [09:25:29]requested_item shift.opened is exist - process it [09:25:29]req_shift_opened [09:25:29]FM_GetShiftState [09:25:29]SAM_PROTO_GetShiftState [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 13 01 00 [09:25:29]Write to MH i2c: E2 08 00 89 A1 80 13 01 00 00 00 00 00 A7 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 89 A1 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 72 [09:25:29]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_GetShiftState done [09:25:29]FM_GetShiftState done [09:25:29]req_shift_opened done [09:25:29]requested_item shift.open_date is exist - process it [09:25:29]req_shift_open_date [09:25:29]req_shift_open_date done [09:25:29]produce_requested_data done [09:25:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119017,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:25:29]process_action_free close_receipt [09:25:29]json_value_free [09:25:29]json_value_free done [09:25:29]process_json_proto returns [09:25:29]Send response to host [09:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119017,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:25:29]free response buf [09:25:29]execute_script done [09:25:29]execute_script returns [09:25:29]free content buf [09:25:29]Sock 7.Close socket [09:25:29]Sock 7.Thread stoped [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:37]accept exits with 9 [09:26:37]New connection [09:26:37]New thread 3067383140 created [09:26:37]Thread 3067239780 joined [09:26:37]Waiting for new connection... [09:26:37] Sock 9.Parse request [09:26:37]Sock 9.Check first char [09:26:37]Sock 9.First char is OK [09:26:37]request: POST /json_proto HTTP/1.0 [09:26:37]Method: POST [09:26:37]URL: /json_proto [09:26:37]Method is POST - this is cgi request [09:26:37]url: /json_proto [09:26:37]query_string will be loaded in cgi processing [09:26:37]execute_cgi json_proto POST (null) [09:26:37]execute_cgi path=json_proto method=POST [09:26:37]POST find Content-Length [09:26:37]Host: 172.17.45.7:8080 [09:26:37]Content-Length: 677 [09:26:37]Content-Type: application/json [09:26:37] [09:26:37]POST finish read [09:26:37]Found Content-Length = 677 [09:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:37]execute_script... [09:26: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)949937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:37]POST & json_proto [09:26:37]process_json_proto [09:26:37]json parsed OK: [09:26:37]protocol is kg_v1.0 [09:26:37]action value=close_receipt [09:26:37]process_action close_receipt [09:26:37]cmd_close_receipt [09:26:37]MH_GetDate [09:26:37]Write to MH i2c: F0 00 00 8A A1 1A [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: F0 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: F0 09 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: F0 09 00 8A A1 00 D7 B1 A8 66 90 0F 3E 66 FC [09:26:37]GetLastDocTimeStamp 1722331535 [09:26:37]current date 1722331607 [09:26:37]FM_GetShiftState [09:26:37]SAM_PROTO_GetShiftState [09:26:37]wFMCommunicate request_size=4 [09:26:37]MH_SAM_APDU [09:26:37]CAPDU: 80 13 01 00 [09:26:37]Write to MH i2c: E2 08 00 8B A1 80 13 01 00 00 00 00 00 A9 [09:26:37]Write i2c OK [09:26:37]MH_I2C_Read... [09:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:37]Read from MH i2c: E2 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0E 00 [09:26:37]MH_I2C_Read... [09:26:37]Read from MH i2c: E2 0E 00 8B A1 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 74 [09:26:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:26:37]wFMCommunicate OK [09:26:37]SAM_PROTO_GetShiftState done [09:26:37]FM_GetShiftState done [09:26:37]opened in 1722298242 [09:26:37]opened+sec_in_day 1722384642 [09:26:37]quantity*price = 50036 [09:26:37]sum+1 = 50037 [09:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 70 30.07.2024 09:26 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119018 ФПД: 90056177255824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T092647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119018&fm=90056177255824&tin=02508201610067®Number=0000000000092660&sum=50000 [09:26:38]StoreToDocumentArchive [09:26:38]shift 435 fd 119018 [09:26:38]save to /storage/0435/doc_00119018 [09:26:38]save last doc name /storage/0435/doc_00119018 to /storage/kkm_last_doc_name [09:26:38]save OK [09:26:38]Clear old archive folders... [09:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:26:38]tlvbuf is 01FB6430 [09:26:38]SAM_PROTO_ClearQueue [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 09 00 00 [09:26:38]Write to MH i2c: E2 08 00 98 A1 80 09 00 00 00 00 00 00 AB [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 98 A1 00 90 00 AD [09:26:38]RAPDU: 90 00 [09:26:38]wFMCommunicate OK [09:26:38]SAM_PROTO_ClearQueue done [09:26:38]KKMCreateOFDPacket [09:26:38]OFDProtocolAddRootSTLVToBuf [09:26:38]FM_MakeSignedData [09:26:38]FM_MakeSignedData [09:26:38]SAM_PROTO_SignData [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 0D 01 02 [09:26:38]Write to MH i2c: E2 08 00 99 A1 80 0D 01 02 00 00 00 00 B3 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 99 A1 00 90 00 AE [09:26:38]RAPDU: 90 00 [09:26:38]wFMCommunicate OK [09:26:38]wFMCommunicate request_size=255 [09:26:38]MH_SAM_APDU [09:26: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D7 B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D0 01 00 35 04 06 00 51 [09:26:38]Write to MH i2c: E2 02 01 9A A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D7 B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D0 01 00 35 04 06 00 51 00 00 D3 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]OFD Sender: No OFD packet to send [09:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 9A A1 00 90 00 AF [09:26:38]RAPDU: 90 00 [09:26:38]wFMCommunicate OK [09:26:38]wFMCommunicate request_size=10 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 0D 02 02 05 E7 D6 74 85 90 [09:26:38]Write to MH i2c: E2 0D 00 9B A1 80 0D 02 02 05 00 E7 D6 74 85 90 00 00 06 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 03 00 9B A1 00 90 00 B0 [09:26:38]RAPDU: 90 00 [09:26:38]wFMCommunicate OK [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 0D 03 02 [09:26:38]Write to MH i2c: E2 08 00 9C A1 80 0D 03 02 00 00 00 00 B8 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:38]Read from MH i2c: E2 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 0B 00 [09:26:38]MH_I2C_Read... [09:26:38]Read from MH i2c: E2 0B 00 9C A1 00 56 88 A7 EF EE CC FD 0B 90 00 EF [09:26:38]RAPDU: 56 88 A7 EF EE CC FD 0B 90 00 [09:26:38]wFMCommunicate OK [09:26:38]SAM_PROTO_SignData done [09:26:38]FM_MakeSignedData done [09:26:38]CreateOFDProtocolMessage [09:26:38]wFMCommunicate request_size=4 [09:26:38]MH_SAM_APDU [09:26:38]CAPDU: 80 11 00 00 [09:26:38]Write to MH i2c: E2 08 00 9D A1 80 11 00 00 00 00 00 00 B8 [09:26:38]Write i2c OK [09:26:38]MH_I2C_Read... [09:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:39]Read from MH i2c: E2 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 17 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: E2 17 00 9D A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 13 [09:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:39]wFMCommunicate OK [09:26:39]CreateOFDProtocolMessage done [09:26:39]OFDSenderStorePacket 119018 [09:26:39]StoreOFDPacket docnum=119018 [09:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 29 6C 07 01 A6 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D7 B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D0 01 00 35 04 06 00 51 E7 D6 74 85 90 56 88 A7 EF EE CC FD 0B [09:26:39]CheckFolder [09:26:39]dirname=/storage/ofd_packets [09:26:39]CheckFolder done [09:26:39]ProducePacketName [09:26:39]name=ofd_packets/00119018 [09:26:39]NVStorageSaveData ofd_packets/00119018 [09:26:39]File name is /storage/ofd_packets/00119018 [09:26:39]Write 301 bytes [09:26:39]NVStorageSaveData done [09:26:39]OFDSenderStorePacket done [09:26:39]KKMCreateOFDPacket done [09:26:39]NVStorageSaveData kkm_last_timestamp [09:26:39]File name is /storage/kkm_last_timestamp [09:26:39]Write 4 bytes [09:26:39]NVStorageSaveData done [09:26:39]ExternCall_PrintAddStr [09:26:39]wPrintStart [09:26:39]Write to MH i2c: 01 00 00 9E A1 3F [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 9E A1 00 00 00 00 00 FF 0F 54 [09:26:39]RasterBufferAndPrint [09:26:39]line Счет N : (1)949937 [09:26:39]line ИНН: 02508201610067 [09:26:39]line Контрольно-Кассовый Чек [09:26:39]line ПРОДАЖА [09:26:39]line ТРК (МРК, ГНК) : 41 [09:26:39]line Товар: 2710124130 [09:26:39]line Аи-92-К-4 [09:26:39]line 7.380 * 67.80 [09:26:39]line = 500.36 [09:26:39]line НДС 12% НСП 1% [09:26:39]line > о реализуемом товаре [09:26:39]line ОКРУГЛЕНИЕ: -0.36 [09:26:39]line ИТОГО: 500.00 [09:26:39]line Внесено: 500.00 [09:26:39]line СДАЧА: 0.00 [09:26:39]line НСП 1% : 4.43 [09:26:39]line НДС 12% : 53.14 [09:26:39]line Наличными: 500.00 [09:26:39]line Безнал.: 0.00 [09:26:39]line Место: АЗС № 134 "Партнер Нефть" [09:26:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:26:39]line СНО: Общий режим [09:26:39]line Чек 70 30.07.2024 09:26 [09:26:39]line Смена: 435 ФФД: 1.0 [09:26:39]line ЗНМ: 0300000044 [09:26:39]line РНМ: 0000000000092660 [09:26:39]line Версия ККМ: 001 [09:26:39]line ФМ: 0000000000874939 [09:26:39]line ФД: 119018 [09:26:39]line ФПД: 90056177255824 [09:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T092647&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119018&fm=90056177255824&tin=02508201610067®Number=0000000000092660&sum=50000 [09:26:39]OFD Sender: Processing packet 119018 [packets to send 86, broken 85] [09:26:39]ProducePacketName [09:26:39]name=ofd_packets/00119018 [09:26:39]OFD Sender: To server: pG, [09:26:39]CommunicateWithHost lk.salyk.kg:30040 [09:26:39]ConnectInit lk.salyk.kg [09:26:39]written 0, free lines is 4095 [09:26:39]Connected sock=10 [09:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 29 6C 07 01 A6 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 D7 B1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D0 01 00 35 04 06 00 51 E7 D6 74 85 90 56 88 A7 EF EE CC FD 0B [09:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 92 36 47 00 6D FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D0 01 00 F4 03 04 00 62 5F A8 66 B6 04 01 00 00 D7 0D C4 40 FD 7B 0A 74 [09:26:39]CommunicateWithHost err = 0 [09:26:39]CheckOFDResponse [09:26:39]1017 (14) - 77093643461234 [09:26:39]1041 (16) - 0000000000874939 [09:26:39]1040 (4) - 119018 [09:26:39]1012 (4) - 30.07.2024 03:34 [09:26:39]1206 (1) - 0 [09:26:39]OFD Sender: Remove packet 119018 [09:26:39]ProducePacketName [09:26:39]name=ofd_packets/00119018 [09:26:39]NVStorageDeleteData [09:26:39]Write to MH i2c: 01 00 00 C8 A1 69 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: 01 07 00 C8 A1 00 00 00 00 00 E9 0C 65 [09:26:39]RasterBufferAndPrint [09:26:39]line [09:26:39]line [09:26:39]line [09:26:39]line [09:26:39]line [09:26:39]written 0, free lines is 3311 [09:26:39]MH_Cut [09:26:39]Write to MH i2c: D1 01 00 CF A1 01 42 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: D1 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: D1 01 00 [09:26:39]MH_I2C_Read... [09:26:39]Read from MH i2c: D1 01 00 CF A1 00 41 [09:26:39]Write to MH i2c: 01 00 00 D0 A1 71 [09:26:39]Write i2c OK [09:26:39]MH_I2C_Read... [09:26:39]OFD Sender: No OFD packet to send [09:26:40]*** Cut start [09:26:40]*** Partial cut [09:26:40]*** CUTSNS_PIN = 1 [09:26:40]*** CUTSNS_PIN = 0 [09:26:40]*** Brake cut motor [09:26:40]Read from MH i2c: 01 [09:26:40]MH_I2C_Read... [09:26:40]*** Stop cut motor [09:26:40]*** Cut end [09:26:40]Read from MH i2c: 01 07 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: 01 07 00 D0 A1 00 00 00 00 00 FF 0F 86 [09:26:40]process_action close_receipt done [09:26:40]requested_data is exist [09:26:40]produce_requested_data [09:26:40]requested_item fm.sn is exist - process it [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 11 00 00 [09:26:40]Write to MH i2c: E2 08 00 D1 A1 80 11 00 00 00 00 00 00 EC [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 17 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 17 00 D1 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 47 [09:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:26:40]wFMCommunicate OK [09:26:40]requested_item fd.num is exist - process it [09:26:40]SAM_PROTO_GetFieldsCounters [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 13 00 00 [09:26:40]Write to MH i2c: E2 08 00 D2 A1 80 13 00 00 00 00 00 00 EF [09:26:40]Write i2c OK [09:26:40]MH_I2C_Read... [09:26:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:40]Read from MH i2c: E2 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 62 00 [09:26:40]MH_I2C_Read... [09:26:40]Read from MH i2c: E2 62 00 D2 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [09:26:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:40]wFMCommunicate OK [09:26:40]SAM_PROTO_GetFieldsCounters done [09:26:40]requested_item shift.num is exist - process it [09:26:40]requested_item shift.opened is exist - process it [09:26:40]req_shift_opened [09:26:40]FM_GetShiftState [09:26:40]SAM_PROTO_GetShiftState [09:26:40]wFMCommunicate request_size=4 [09:26:40]MH_SAM_APDU [09:26:40]CAPDU: 80 13 01 00 [09:26:40]Write to MH i2c: E2 08 00 D3 A1 80 13 01 00 00 00 00 00 F1 [09:26:41]Write i2c OK [09:26:41]MH_I2C_Read... [09:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:41]Read from MH i2c: E2 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 0E 00 [09:26:41]MH_I2C_Read... [09:26:41]Read from MH i2c: E2 0E 00 D3 A1 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BC [09:26:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:26:41]wFMCommunicate OK [09:26:41]SAM_PROTO_GetShiftState done [09:26:41]FM_GetShiftState done [09:26:41]req_shift_opened done [09:26:41]requested_item shift.open_date is exist - process it [09:26:41]req_shift_open_date [09:26:41]req_shift_open_date done [09:26:41]produce_requested_data done [09:26:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119018,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:26:41]process_action_free close_receipt [09:26:41]json_value_free [09:26:41]json_value_free done [09:26:41]process_json_proto returns [09:26:41]Send response to host [09:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119018,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:26:41]free response buf [09:26:41]execute_script done [09:26:41]execute_script returns [09:26:41]free content buf [09:26:41]Sock 9.Close socket [09:26:41]Sock 9.Thread stoped [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:23]accept exits with 7 [09:30:23]New connection [09:30:23]New thread 3067239780 created [09:30:23]Thread 3067383140 joined [09:30:23]Waiting for new connection... [09:30:23] Sock 7.Parse request [09:30:23]Sock 7.Check first char [09:30:23]Sock 7.First char is OK [09:30:23]request: POST /json_proto HTTP/1.0 [09:30:23]Method: POST [09:30:23]URL: /json_proto [09:30:23]Method is POST - this is cgi request [09:30:23]url: /json_proto [09:30:23]query_string will be loaded in cgi processing [09:30:23]execute_cgi json_proto POST (null) [09:30:23]execute_cgi path=json_proto method=POST [09:30:23]POST find Content-Length [09:30:23]Host: 172.17.45.7:8080 [09:30:23]Content-Length: 682 [09:30:23]Content-Type: application/json [09:30:23] [09:30:23]POST finish read [09:30:23]Found Content-Length = 682 [09:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:23]execute_script... [09:30: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)949938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:23]POST & json_proto [09:30:23]process_json_proto [09:30:23]json parsed OK: [09:30:23]protocol is kg_v1.0 [09:30:23]action value=close_receipt [09:30:23]process_action close_receipt [09:30:23]cmd_close_receipt [09:30:23]MH_GetDate [09:30:23]Write to MH i2c: F0 00 00 D4 A1 64 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: F0 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: F0 09 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: F0 09 00 D4 A1 00 B9 B2 A8 66 90 0F 3E 66 29 [09:30:23]GetLastDocTimeStamp 1722331607 [09:30:23]current date 1722331833 [09:30:23]FM_GetShiftState [09:30:23]SAM_PROTO_GetShiftState [09:30:23]wFMCommunicate request_size=4 [09:30:23]MH_SAM_APDU [09:30:23]CAPDU: 80 13 01 00 [09:30:23]Write to MH i2c: E2 08 00 D5 A1 80 13 01 00 00 00 00 00 F3 [09:30:23]Write i2c OK [09:30:23]MH_I2C_Read... [09:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:23]Read from MH i2c: E2 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0E 00 [09:30:23]MH_I2C_Read... [09:30:23]Read from MH i2c: E2 0E 00 D5 A1 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BE [09:30:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:30:23]wFMCommunicate OK [09:30:23]SAM_PROTO_GetShiftState done [09:30:23]FM_GetShiftState done [09:30:23]opened in 1722298242 [09:30:23]opened+sec_in_day 1722384642 [09:30:23]quantity*price = 100005 [09:30:23]sum+1 = 100006 [09:30:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 71 30.07.2024 09:30 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119019 ФПД: 71986493864028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T093033&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119019&fm=71986493864028&tin=02508201610067®Number=0000000000092660&sum=100000 [09:30:25]StoreToDocumentArchive [09:30:25]shift 435 fd 119019 [09:30:25]save to /storage/0435/doc_00119019 [09:30:25]save last doc name /storage/0435/doc_00119019 to /storage/kkm_last_doc_name [09:30:25]save OK [09:30:25]Clear old archive folders... [09:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:25]tlvbuf is 01FF8C00 [09:30:25]SAM_PROTO_ClearQueue [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 09 00 00 [09:30:25]Write to MH i2c: E2 08 00 E2 A1 80 09 00 00 00 00 00 00 F5 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 E2 A1 00 90 00 F7 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_ClearQueue done [09:30:25]KKMCreateOFDPacket [09:30:25]OFDProtocolAddRootSTLVToBuf [09:30:25]FM_MakeSignedData [09:30:25]FM_MakeSignedData [09:30:25]SAM_PROTO_SignData [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 01 02 [09:30:25]Write to MH i2c: E2 08 00 E3 A1 80 0D 01 02 00 00 00 00 FD [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]OFD Sender: No OFD packet to send [09:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 E3 A1 00 90 00 F8 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=255 [09:30:25]MH_SAM_APDU [09:30: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 B2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D0 01 00 35 04 06 00 41 [09:30:25]Write to MH i2c: E2 02 01 E4 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 B2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D0 01 00 35 04 06 00 41 00 00 81 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 E4 A1 00 90 00 F9 [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=10 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 02 02 05 78 A9 65 38 5C [09:30:25]Write to MH i2c: E2 0D 00 E5 A1 80 0D 02 02 05 00 78 A9 65 38 5C 00 00 24 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 03 00 E5 A1 00 90 00 FA [09:30:25]RAPDU: 90 00 [09:30:25]wFMCommunicate OK [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 0D 03 02 [09:30:25]Write to MH i2c: E2 08 00 E6 A1 80 0D 03 02 00 00 00 00 02 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0B 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 0B 00 E6 A1 00 1B 36 86 AA 7E BA 9D BF 90 00 18 [09:30:25]RAPDU: 1B 36 86 AA 7E BA 9D BF 90 00 [09:30:25]wFMCommunicate OK [09:30:25]SAM_PROTO_SignData done [09:30:25]FM_MakeSignedData done [09:30:25]CreateOFDProtocolMessage [09:30:25]wFMCommunicate request_size=4 [09:30:25]MH_SAM_APDU [09:30:25]CAPDU: 80 11 00 00 [09:30:25]Write to MH i2c: E2 08 00 E7 A1 80 11 00 00 00 00 00 00 02 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:25]Read from MH i2c: E2 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: E2 17 00 E7 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5D [09:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:30:25]wFMCommunicate OK [09:30:25]CreateOFDProtocolMessage done [09:30:25]OFDSenderStorePacket 119019 [09:30:25]StoreOFDPacket docnum=119019 [09:30:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 01 07 01 E7 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 B2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D0 01 00 35 04 06 00 41 78 A9 65 38 5C 1B 36 86 AA 7E BA 9D BF [09:30:25]CheckFolder [09:30:25]dirname=/storage/ofd_packets [09:30:25]CheckFolder done [09:30:25]ProducePacketName [09:30:25]name=ofd_packets/00119019 [09:30:25]NVStorageSaveData ofd_packets/00119019 [09:30:25]File name is /storage/ofd_packets/00119019 [09:30:25]Write 301 bytes [09:30:25]NVStorageSaveData done [09:30:25]OFDSenderStorePacket done [09:30:25]KKMCreateOFDPacket done [09:30:25]NVStorageSaveData kkm_last_timestamp [09:30:25]File name is /storage/kkm_last_timestamp [09:30:25]Write 4 bytes [09:30:25]NVStorageSaveData done [09:30:25]ExternCall_PrintAddStr [09:30:25]wPrintStart [09:30:25]Write to MH i2c: 01 00 00 E8 A1 89 [09:30:25]Write i2c OK [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 [09:30:25]MH_I2C_Read... [09:30:25]Read from MH i2c: 01 07 00 E8 A1 00 00 00 00 00 FF 0F 9E [09:30:25]RasterBufferAndPrint [09:30:25]line Счет N : (1)949938 [09:30:25]line ИНН: 02508201610067 [09:30:25]line Контрольно-Кассовый Чек [09:30:25]line ПРОДАЖА [09:30:25]line ТРК (МРК, ГНК) : 41 [09:30:25]line Товар: 2710124130 [09:30:25]line Аи-92-К-4 [09:30:25]line 14.750 * 67.80 [09:30:25]line = 1000.05 [09:30:25]line НДС 12% НСП 1% [09:30:25]line > о реализуемом товаре [09:30:25]line ОКРУГЛЕНИЕ: -0.05 [09:30:25]line ИТОГО: 1000.00 [09:30:25]line Внесено: 1000.00 [09:30:25]line СДАЧА: 0.00 [09:30:25]line НСП 1% : 8.85 [09:30:25]line НДС 12% : 106.20 [09:30:25]line Наличными: 1000.00 [09:30:25]line Безнал.: 0.00 [09:30:25]line Место: АЗС № 134 "Партнер Нефть" [09:30:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:30:25]line СНО: Общий режим [09:30:25]line Чек 71 30.07.2024 09:30 [09:30:25]line Смена: 435 ФФД: 1.0 [09:30:25]line ЗНМ: 0300000044 [09:30:25]line РНМ: 0000000000092660 [09:30:25]line Версия ККМ: 001 [09:30:25]line ФМ: 0000000000874939 [09:30:25]line ФД: 119019 [09:30:25]line ФПД: 71986493864028 [09:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T093033&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119019&fm=71986493864028&tin=02508201610067®Number=0000000000092660&sum=100000 [09:30:25]OFD Sender: Processing packet 119019 [packets to send 86, broken 85] [09:30:25]ProducePacketName [09:30:25]name=ofd_packets/00119019 [09:30:25]OFD Sender: To server: pG, [09:30:25]CommunicateWithHost lk.salyk.kg:30040 [09:30:25]ConnectInit lk.salyk.kg [09:30:25]written 0, free lines is 4095 [09:30:26]Connected sock=10 [09:30:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 01 07 01 E7 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B9 B2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D0 01 00 35 04 06 00 41 78 A9 65 38 5C 1B 36 86 AA 7E BA 9D BF [09:30:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 55 C4 47 00 00 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D0 01 00 F4 03 04 00 45 60 A8 66 B6 04 01 00 00 2F 3D AB AA AD 6F D9 49 [09:30:26]CommunicateWithHost err = 0 [09:30:26]CheckOFDResponse [09:30:26]1017 (14) - 77093643461234 [09:30:26]1041 (16) - 0000000000874939 [09:30:26]1040 (4) - 119019 [09:30:26]1012 (4) - 30.07.2024 03:38 [09:30:26]1206 (1) - 0 [09:30:26]OFD Sender: Remove packet 119019 [09:30:26]ProducePacketName [09:30:26]name=ofd_packets/00119019 [09:30:26]NVStorageDeleteData [09:30:26]Write to MH i2c: 01 00 00 12 A2 B4 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: 01 07 00 12 A2 00 00 00 00 00 06 0D CE [09:30:26]RasterBufferAndPrint [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]line [09:30:26]written 0, free lines is 3340 [09:30:26]MH_Cut [09:30:26]Write to MH i2c: D1 01 00 19 A2 01 8D [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: D1 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: D1 01 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: D1 01 00 19 A2 00 8C [09:30:26]Write to MH i2c: 01 00 00 1A A2 BC [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]OFD Sender: No OFD packet to send [09:30:27]*** Cut start [09:30:27]*** Partial cut [09:30:27]*** CUTSNS_PIN = 1 [09:30:27]*** CUTSNS_PIN = 0 [09:30:27]*** Brake cut motor [09:30:27]Read from MH i2c: 01 [09:30:27]MH_I2C_Read... [09:30:27]*** Stop cut motor [09:30:27]*** Cut end [09:30:27]Read from MH i2c: 01 07 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 07 00 1A A2 00 00 00 00 00 FF 0F D1 [09:30:27]process_action close_receipt done [09:30:27]requested_data is exist [09:30:27]produce_requested_data [09:30:27]requested_item fm.sn is exist - process it [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 11 00 00 [09:30:27]Write to MH i2c: E2 08 00 1B A2 80 11 00 00 00 00 00 00 37 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 17 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 17 00 1B A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 92 [09:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:30:27]wFMCommunicate OK [09:30:27]requested_item fd.num is exist - process it [09:30:27]SAM_PROTO_GetFieldsCounters [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 13 00 00 [09:30:27]Write to MH i2c: E2 08 00 1C A2 80 13 00 00 00 00 00 00 3A [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 62 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 62 00 1C A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [09:30:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:27]wFMCommunicate OK [09:30:27]SAM_PROTO_GetFieldsCounters done [09:30:27]requested_item shift.num is exist - process it [09:30:27]requested_item shift.opened is exist - process it [09:30:27]req_shift_opened [09:30:27]FM_GetShiftState [09:30:27]SAM_PROTO_GetShiftState [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 13 01 00 [09:30:27]Write to MH i2c: E2 08 00 1D A2 80 13 01 00 00 00 00 00 3C [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 0E 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 0E 00 1D A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 07 [09:30:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:30:27]wFMCommunicate OK [09:30:27]SAM_PROTO_GetShiftState done [09:30:27]FM_GetShiftState done [09:30:27]req_shift_opened done [09:30:27]requested_item shift.open_date is exist - process it [09:30:27]req_shift_open_date [09:30:27]req_shift_open_date done [09:30:27]produce_requested_data done [09:30:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119019,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:30:27]process_action_free close_receipt [09:30:27]json_value_free [09:30:27]json_value_free done [09:30:27]process_json_proto returns [09:30:27]Send response to host [09:30:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119019,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:30:27]free response buf [09:30:27]execute_script done [09:30:27]execute_script returns [09:30:27]free content buf [09:30:27]Sock 7.Close socket [09:30:27]Sock 7.Thread stoped [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:48]accept exits with 9 [09:35:48]New connection [09:35:48]New thread 3067383140 created [09:35:48]Thread 3067239780 joined [09:35:48]Waiting for new connection... [09:35:48] Sock 9.Parse request [09:35:48]Sock 9.Check first char [09:35:48]Sock 9.First char is OK [09:35:48]request: POST /json_proto HTTP/1.0 [09:35:48]Method: POST [09:35:48]URL: /json_proto [09:35:48]Method is POST - this is cgi request [09:35:48]url: /json_proto [09:35:48]query_string will be loaded in cgi processing [09:35:48]execute_cgi json_proto POST (null) [09:35:48]execute_cgi path=json_proto method=POST [09:35:48]POST find Content-Length [09:35:48]Host: 172.17.45.7:8080 [09:35:48]Content-Length: 835 [09:35:48]Content-Type: application/json [09:35:48] [09:35:48]POST finish read [09:35:48]Found Content-Length = 835 [09:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 31.780, "sum" : 2400.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2400.00, "payments": [ { "type": 1, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:48]execute_script... [09:35: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)949939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 31.780, "sum" : 2400.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 2400.00, "payments": [ { "type": 1, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:48]POST & json_proto [09:35:48]process_json_proto [09:35:48]json parsed OK: [09:35:48]protocol is kg_v1.0 [09:35:48]action value=close_receipt [09:35:48]process_action close_receipt [09:35:48]cmd_close_receipt [09:35:48]MH_GetDate [09:35:48]Write to MH i2c: F0 00 00 1E A2 AF [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: F0 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: F0 09 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: F0 09 00 1E A2 00 FE B3 A8 66 90 0F 3E 66 BA [09:35:48]GetLastDocTimeStamp 1722331833 [09:35:48]current date 1722332158 [09:35:48]FM_GetShiftState [09:35:48]SAM_PROTO_GetShiftState [09:35:48]wFMCommunicate request_size=4 [09:35:48]MH_SAM_APDU [09:35:48]CAPDU: 80 13 01 00 [09:35:48]Write to MH i2c: E2 08 00 1F A2 80 13 01 00 00 00 00 00 3E [09:35:48]Write i2c OK [09:35:48]MH_I2C_Read... [09:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:48]Read from MH i2c: E2 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 0E 00 [09:35:48]MH_I2C_Read... [09:35:48]Read from MH i2c: E2 0E 00 1F A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 09 [09:35:48]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:35:48]wFMCommunicate OK [09:35:48]SAM_PROTO_GetShiftState done [09:35:48]FM_GetShiftState done [09:35:48]opened in 1722298242 [09:35:48]opened+sec_in_day 1722384642 [09:35:48]quantity*price = 240034 [09:35:48]sum+1 = 240035 [09:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2400.00 НСП 1% : 21.24 НДС 12% : 254.90 Наличными: 0.00 Безнал.: 2400.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 72 30.07.2024 09:35 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119020 ФПД: 129117407220218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T093558&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119020&fm=129117407220218&tin=02508201610067®Number=0000000000092660&sum=240000 [09:35:49]StoreToDocumentArchive [09:35:49]shift 435 fd 119020 [09:35:49]save to /storage/0435/doc_00119020 [09:35:49]save last doc name /storage/0435/doc_00119020 to /storage/kkm_last_doc_name [09:35:49]save OK [09:35:49]Clear old archive folders... [09:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:49]tlvbuf is 020D8310 [09:35:49]SAM_PROTO_ClearQueue [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 09 00 00 [09:35:49]Write to MH i2c: E2 08 00 2C A2 80 09 00 00 00 00 00 00 40 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 2C A2 00 90 00 42 [09:35:49]RAPDU: 90 00 [09:35:49]wFMCommunicate OK [09:35:49]SAM_PROTO_ClearQueue done [09:35:49]KKMCreateOFDPacket [09:35:49]OFDProtocolAddRootSTLVToBuf [09:35:49]FM_MakeSignedData [09:35:49]FM_MakeSignedData [09:35:49]SAM_PROTO_SignData [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 0D 01 02 [09:35:49]Write to MH i2c: E2 08 00 2D A2 80 0D 01 02 00 00 00 00 48 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 2D A2 00 90 00 43 [09:35:49]RAPDU: 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=255 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 7C 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FE B3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D0 01 00 35 04 06 00 75 6E 7D 31 [09:35:49]Write to MH i2c: E2 02 01 2E A2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 7C 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FE B3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D0 01 00 35 04 06 00 75 6E 7D 31 00 00 E6 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 2E A2 00 90 00 44 [09:35:49]RAPDU: 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=7 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 0D 02 02 02 11 FA [09:35:49]Write to MH i2c: E2 0A 00 2F A2 80 0D 02 02 02 00 11 FA 00 00 5A [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 03 00 2F A2 00 90 00 45 [09:35:49]RAPDU: 90 00 [09:35:49]wFMCommunicate OK [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 0D 03 02 [09:35:49]Write to MH i2c: E2 08 00 30 A2 80 0D 03 02 00 00 00 00 4D [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0B 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 0B 00 30 A2 00 CA 4E 97 BD E0 2B E6 B8 90 00 63 [09:35:49]RAPDU: CA 4E 97 BD E0 2B E6 B8 90 00 [09:35:49]wFMCommunicate OK [09:35:49]SAM_PROTO_SignData done [09:35:49]FM_MakeSignedData done [09:35:49]CreateOFDProtocolMessage [09:35:49]wFMCommunicate request_size=4 [09:35:49]MH_SAM_APDU [09:35:49]CAPDU: 80 11 00 00 [09:35:49]Write to MH i2c: E2 08 00 31 A2 80 11 00 00 00 00 00 00 4D [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:49]Read from MH i2c: E2 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 17 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: E2 17 00 31 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [09:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:35:49]wFMCommunicate OK [09:35:49]CreateOFDProtocolMessage done [09:35:49]OFDSenderStorePacket 119020 [09:35:49]StoreOFDPacket docnum=119020 [09:35:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AF 8C 04 01 D2 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 7C 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FE B3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D0 01 00 35 04 06 00 75 6E 7D 31 11 FA CA 4E 97 BD E0 2B E6 B8 [09:35:49]CheckFolder [09:35:49]dirname=/storage/ofd_packets [09:35:49]CheckFolder done [09:35:49]ProducePacketName [09:35:49]name=ofd_packets/00119020 [09:35:49]NVStorageSaveData ofd_packets/00119020 [09:35:49]File name is /storage/ofd_packets/00119020 [09:35:49]Write 298 bytes [09:35:49]NVStorageSaveData done [09:35:49]OFDSenderStorePacket done [09:35:49]KKMCreateOFDPacket done [09:35:49]NVStorageSaveData kkm_last_timestamp [09:35:49]File name is /storage/kkm_last_timestamp [09:35:49]Write 4 bytes [09:35:49]NVStorageSaveData done [09:35:49]ExternCall_PrintAddStr [09:35:49]wPrintStart [09:35:49]Write to MH i2c: 01 00 00 32 A2 D4 [09:35:49]Write i2c OK [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 07 00 [09:35:49]MH_I2C_Read... [09:35:49]Read from MH i2c: 01 07 00 32 A2 00 00 00 00 00 FF 0F E9 [09:35:49]RasterBufferAndPrint [09:35:49]line Счет N : (1)949939 [09:35:49]line ИНН: 02508201610067 [09:35:49]line Контрольно-Кассовый Чек [09:35:49]line ПРОДАЖА [09:35:49]line ТРК (МРК, ГНК) : 44 [09:35:49]line Товар: 2710194800 [09:35:49]line ДТ-К-5 [09:35:49]line 31.780 * 75.53 [09:35:49]line = 2400.34 [09:35:49]line НДС 12% НСП 1% [09:35:49]line > о реализуемом товаре [09:35:49]line ОКРУГЛЕНИЕ: -0.34 [09:35:49]line ИТОГО: 2400.00 [09:35:49]line НСП 1% : 21.24 [09:35:49]line НДС 12% : 254.90 [09:35:49]line Наличными: 0.00 [09:35:49]line Безнал.: 2400.00 [09:35:49]line Место: АЗС № 134 "Партнер Нефть" [09:35:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:35:49]line СНО: Общий режим [09:35:49]line Чек 72 30.07.2024 09:35 [09:35:49]line Смена: 435 ФФД: 1.0 [09:35:49]line ЗНМ: 0300000044 [09:35:49]line РНМ: 0000000000092660 [09:35:49]line Версия ККМ: 001 [09:35:49]line Платежная система: Бакай Банк [09:35:49]line ФМ: 0000000000874939 [09:35:49]line ФД: 119020 [09:35:49]line ФПД: 129117407220218 [09:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T093558&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119020&fm=129117407220218&tin=02508201610067®Number=0000000000092660&sum=240000 [09:35:50]OFD Sender: Processing packet 119020 [packets to send 86, broken 85] [09:35:50]ProducePacketName [09:35:50]name=ofd_packets/00119020 [09:35:50]OFD Sender: To server: pG, [09:35:50]CommunicateWithHost lk.salyk.kg:30040 [09:35:50]ConnectInit lk.salyk.kg [09:35:50]written 0, free lines is 4095 [09:35:50]Connected sock=10 [09:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AF 8C 04 01 D2 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 7C 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 A2 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 FE B3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D0 01 00 35 04 06 00 75 6E 7D 31 11 FA CA 4E 97 BD E0 2B E6 B8 [09:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD 44 47 00 C3 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D0 01 00 F4 03 04 00 8A 61 A8 66 B6 04 01 00 00 93 D0 F8 57 00 FB D5 E4 [09:35:50]CommunicateWithHost err = 0 [09:35:50]CheckOFDResponse [09:35:50]1017 (14) - 77093643461234 [09:35:50]1041 (16) - 0000000000874939 [09:35:50]1040 (4) - 119020 [09:35:50]1012 (4) - 30.07.2024 03:44 [09:35:50]1206 (1) - 0 [09:35:50]OFD Sender: Remove packet 119020 [09:35:50]ProducePacketName [09:35:50]name=ofd_packets/00119020 [09:35:50]NVStorageDeleteData [09:35:50]Write to MH i2c: 01 00 00 5C A2 FE [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: 01 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: 01 07 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: 01 07 00 5C A2 00 00 00 00 00 0B 0D 1D [09:35:50]RasterBufferAndPrint [09:35:50]line [09:35:50]line [09:35:50]line [09:35:50]line [09:35:50]line [09:35:50]written 0, free lines is 3345 [09:35:50]MH_Cut [09:35:50]Write to MH i2c: D1 01 00 63 A2 01 D7 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: D1 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: D1 01 00 [09:35:50]MH_I2C_Read... [09:35:50]Read from MH i2c: D1 01 00 63 A2 00 D6 [09:35:50]Write to MH i2c: 01 00 00 64 A2 06 [09:35:50]Write i2c OK [09:35:50]MH_I2C_Read... [09:35:51]OFD Sender: No OFD packet to send [09:35:51]*** Cut start [09:35:51]*** Partial cut [09:35:51]*** CUTSNS_PIN = 1 [09:35:51]*** CUTSNS_PIN = 0 [09:35:51]*** Brake cut motor [09:35:52]Read from MH i2c: 01 [09:35:52]MH_I2C_Read... [09:35:52]*** Stop cut motor [09:35:52]*** Cut end [09:35:52]Read from MH i2c: 01 07 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: 01 07 00 64 A2 00 00 00 00 00 FF 0F 1B [09:35:52]process_action close_receipt done [09:35:52]requested_data is exist [09:35:52]produce_requested_data [09:35:52]requested_item fm.sn is exist - process it [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 11 00 00 [09:35:52]Write to MH i2c: E2 08 00 65 A2 80 11 00 00 00 00 00 00 81 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 17 00 65 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DC [09:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:35:52]wFMCommunicate OK [09:35:52]requested_item fd.num is exist - process it [09:35:52]SAM_PROTO_GetFieldsCounters [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 13 00 00 [09:35:52]Write to MH i2c: E2 08 00 66 A2 80 13 00 00 00 00 00 00 84 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 62 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 62 00 66 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [09:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:52]wFMCommunicate OK [09:35:52]SAM_PROTO_GetFieldsCounters done [09:35:52]requested_item shift.num is exist - process it [09:35:52]requested_item shift.opened is exist - process it [09:35:52]req_shift_opened [09:35:52]FM_GetShiftState [09:35:52]SAM_PROTO_GetShiftState [09:35:52]wFMCommunicate request_size=4 [09:35:52]MH_SAM_APDU [09:35:52]CAPDU: 80 13 01 00 [09:35:52]Write to MH i2c: E2 08 00 67 A2 80 13 01 00 00 00 00 00 86 [09:35:52]Write i2c OK [09:35:52]MH_I2C_Read... [09:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:52]Read from MH i2c: E2 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0E 00 [09:35:52]MH_I2C_Read... [09:35:52]Read from MH i2c: E2 0E 00 67 A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 51 [09:35:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:35:52]wFMCommunicate OK [09:35:52]SAM_PROTO_GetShiftState done [09:35:52]FM_GetShiftState done [09:35:52]req_shift_opened done [09:35:52]requested_item shift.open_date is exist - process it [09:35:52]req_shift_open_date [09:35:52]req_shift_open_date done [09:35:52]produce_requested_data done [09:35:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119020,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:35:52]process_action_free close_receipt [09:35:52]json_value_free [09:35:52]json_value_free done [09:35:52]process_json_proto returns [09:35:52]Send response to host [09:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119020,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:35:52]free response buf [09:35:52]execute_script done [09:35:52]execute_script returns [09:35:52]free content buf [09:35:52]Sock 9.Close socket [09:35:52]Sock 9.Thread stoped [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:48]accept exits with 7 [09:36:48]New connection [09:36:48]New thread 3067239780 created [09:36:48]Thread 3067383140 joined [09:36:48]Waiting for new connection... [09:36:48] Sock 7.Parse request [09:36:48]Sock 7.Check first char [09:36:48]Sock 7.First char is OK [09:36:48]request: POST /json_proto HTTP/1.0 [09:36:48]Method: POST [09:36:48]URL: /json_proto [09:36:48]Method is POST - this is cgi request [09:36:48]url: /json_proto [09:36:48]query_string will be loaded in cgi processing [09:36:48]execute_cgi json_proto POST (null) [09:36:48]execute_cgi path=json_proto method=POST [09:36:48]POST find Content-Length [09:36:48]Host: 172.17.45.7:8080 [09:36:48]Content-Length: 679 [09:36:48]Content-Type: application/json [09:36:48] [09:36:48]POST finish read [09:36:48]Found Content-Length = 679 [09:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:48]execute_script... [09:36:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:48]POST & json_proto [09:36:48]process_json_proto [09:36:48]json parsed OK: [09:36:48]protocol is kg_v1.0 [09:36:48]action value=close_receipt [09:36:48]process_action close_receipt [09:36:48]cmd_close_receipt [09:36:48]MH_GetDate [09:36:48]Write to MH i2c: F0 00 00 68 A2 F9 [09:36:48]Write i2c OK [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: F0 [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: F0 09 00 [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: F0 09 00 68 A2 00 3A B4 A8 66 90 0F 3E 66 41 [09:36:48]GetLastDocTimeStamp 1722332158 [09:36:48]current date 1722332218 [09:36:48]FM_GetShiftState [09:36:48]SAM_PROTO_GetShiftState [09:36:48]wFMCommunicate request_size=4 [09:36:48]MH_SAM_APDU [09:36:48]CAPDU: 80 13 01 00 [09:36:48]Write to MH i2c: E2 08 00 69 A2 80 13 01 00 00 00 00 00 88 [09:36:48]Write i2c OK [09:36:48]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 0E 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 0E 00 69 A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 53 [09:36:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:36:49]wFMCommunicate OK [09:36:49]SAM_PROTO_GetShiftState done [09:36:49]FM_GetShiftState done [09:36:49]opened in 1722298242 [09:36:49]opened+sec_in_day 1722384642 [09:36:49]quantity*price = 100050 [09:36:49]sum+1 = 100052 [09:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 73 30.07.2024 09:36 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119021 ФПД: 245998115378297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T093659&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119021&fm=245998115378297&tin=02508201610067®Number=0000000000092660&sum=100000 [09:36:50]StoreToDocumentArchive [09:36:50]shift 435 fd 119021 [09:36:50]save to /storage/0435/doc_00119021 [09:36:50]save last doc name /storage/0435/doc_00119021 to /storage/kkm_last_doc_name [09:36:50]save OK [09:36:50]Clear old archive folders... [09:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:36:50]tlvbuf is 01E56E90 [09:36:50]SAM_PROTO_ClearQueue [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 09 00 00 [09:36:50]Write to MH i2c: E2 08 00 76 A2 80 09 00 00 00 00 00 00 8A [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 76 A2 00 90 00 8C [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]SAM_PROTO_ClearQueue done [09:36:50]KKMCreateOFDPacket [09:36:50]OFDProtocolAddRootSTLVToBuf [09:36:50]FM_MakeSignedData [09:36:50]FM_MakeSignedData [09:36:50]SAM_PROTO_SignData [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 01 02 [09:36:50]Write to MH i2c: E2 08 00 77 A2 80 0D 01 02 00 00 00 00 92 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 77 A2 00 90 00 8D [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]wFMCommunicate request_size=255 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3B B4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D0 01 00 35 04 06 00 DF BB E6 48 [09:36:50]Write to MH i2c: E2 02 01 78 A2 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3B B4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D0 01 00 35 04 06 00 DF BB E6 48 00 00 A2 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 78 A2 00 90 00 8E [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]wFMCommunicate request_size=7 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 02 02 02 54 79 [09:36:50]Write to MH i2c: E2 0A 00 79 A2 80 0D 02 02 02 00 54 79 00 00 66 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 03 00 79 A2 00 90 00 8F [09:36:50]RAPDU: 90 00 [09:36:50]wFMCommunicate OK [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 0D 03 02 [09:36:50]Write to MH i2c: E2 08 00 7A A2 80 0D 03 02 00 00 00 00 97 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 0B 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 0B 00 7A A2 00 20 6E D2 6B BD 67 7A 70 90 00 71 [09:36:50]RAPDU: 20 6E D2 6B BD 67 7A 70 90 00 [09:36:50]wFMCommunicate OK [09:36:50]SAM_PROTO_SignData done [09:36:50]FM_MakeSignedData done [09:36:50]CreateOFDProtocolMessage [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 11 00 00 [09:36:50]Write to MH i2c: E2 08 00 7B A2 80 11 00 00 00 00 00 00 97 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 17 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 17 00 7B A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [09:36:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:36:50]wFMCommunicate OK [09:36:50]CreateOFDProtocolMessage done [09:36:50]OFDSenderStorePacket 119021 [09:36:50]StoreOFDPacket docnum=119021 [09:36:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FD 3F 04 01 E1 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3B B4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D0 01 00 35 04 06 00 DF BB E6 48 54 79 20 6E D2 6B BD 67 7A 70 [09:36:50]CheckFolder [09:36:50]dirname=/storage/ofd_packets [09:36:50]CheckFolder done [09:36:50]ProducePacketName [09:36:50]name=ofd_packets/00119021 [09:36:50]NVStorageSaveData ofd_packets/00119021 [09:36:50]File name is /storage/ofd_packets/00119021 [09:36:50]Write 298 bytes [09:36:50]NVStorageSaveData done [09:36:50]OFDSenderStorePacket done [09:36:50]KKMCreateOFDPacket done [09:36:50]NVStorageSaveData kkm_last_timestamp [09:36:50]File name is /storage/kkm_last_timestamp [09:36:50]Write 4 bytes [09:36:50]NVStorageSaveData done [09:36:50]ExternCall_PrintAddStr [09:36:50]wPrintStart [09:36:50]Write to MH i2c: 01 00 00 7C A2 1E [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: 01 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: 01 07 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: 01 07 00 7C A2 00 00 00 00 00 FF 0F 33 [09:36:50]RasterBufferAndPrint [09:36:50]line Счет N : (1)949940 [09:36:50]line ИНН: 02508201610067 [09:36:50]line Контрольно-Кассовый Чек [09:36:50]line ПРОДАЖА [09:36:50]line ТРК (МРК, ГНК) : 21 [09:36:50]line Товар: 2710194800 [09:36:50]line ДТ-К-5 [09:36:50]line 13.130 * 76.20 [09:36:50]line = 1000.51 [09:36:50]line НДС 12% НСП 1% [09:36:50]line > о реализуемом товаре [09:36:50]line ОКРУГЛЕНИЕ: -0.51 [09:36:50]line ИТОГО: 1000.00 [09:36:50]line Внесено: 1000.00 [09:36:50]line СДАЧА: 0.00 [09:36:50]line НСП 1% : 8.85 [09:36:50]line НДС 12% : 106.25 [09:36:50]line Наличными: 1000.00 [09:36:50]line Безнал.: 0.00 [09:36:50]line Место: АЗС № 134 "Партнер Нефть" [09:36:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:36:50]line СНО: Общий режим [09:36:50]line Чек 73 30.07.2024 09:36 [09:36:50]line Смена: 435 ФФД: 1.0 [09:36:50]line ЗНМ: 0300000044 [09:36:50]line РНМ: 0000000000092660 [09:36:50]line Версия ККМ: 001 [09:36:50]line ФМ: 0000000000874939 [09:36:50]line ФД: 119021 [09:36:50]line ФПД: 245998115378297 [09:36:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T093659&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119021&fm=245998115378297&tin=02508201610067®Number=0000000000092660&sum=100000 [09:36:50]OFD Sender: Processing packet 119021 [packets to send 86, broken 85] [09:36:50]ProducePacketName [09:36:50]name=ofd_packets/00119021 [09:36:50]OFD Sender: To server: pG, [09:36:50]CommunicateWithHost lk.salyk.kg:30040 [09:36:50]ConnectInit lk.salyk.kg [09:36:50]written 0, free lines is 4095 [09:36:51]Connected sock=10 [09:36:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FD 3F 04 01 E1 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 3B B4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D0 01 00 35 04 06 00 DF BB E6 48 54 79 20 6E D2 6B BD 67 7A 70 [09:36:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FC 04 47 00 0B 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 34 39 33 39 10 04 04 00 ED D0 01 00 F4 03 04 00 C6 61 A8 66 B6 04 01 00 00 B2 44 10 C1 75 18 C5 A8 [09:36:51]CommunicateWithHost err = 0 [09:36:51]CheckOFDResponse [09:36:51]1017 (14) - 77093643461234 [09:36:51]1041 (16) - 0000000000874939 [09:36:51]1040 (4) - 119021 [09:36:51]1012 (4) - 30.07.2024 03:45 [09:36:51]1206 (1) - 0 [09:36:51]OFD Sender: Remove packet 119021 [09:36:51]ProducePacketName [09:36:51]name=ofd_packets/00119021 [09:36:51]NVStorageDeleteData [09:36:51]Write to MH i2c: 01 00 00 A6 A2 48 [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: 01 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: 01 07 00 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: 01 07 00 A6 A2 00 00 00 00 00 E8 0C 43 [09:36:51]RasterBufferAndPrint [09:36:51]line [09:36:51]line [09:36:51]line [09:36:51]line [09:36:51]line [09:36:51]written 0, free lines is 3310 [09:36:51]MH_Cut [09:36:51]Write to MH i2c: D1 01 00 AD A2 01 21 [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: D1 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: D1 01 00 [09:36:51]MH_I2C_Read... [09:36:51]Read from MH i2c: D1 01 00 AD A2 00 20 [09:36:51]Write to MH i2c: 01 00 00 AE A2 50 [09:36:51]Write i2c OK [09:36:51]MH_I2C_Read... [09:36:51]OFD Sender: No OFD packet to send [09:36:52]*** Cut start [09:36:52]*** Partial cut [09:36:52]*** CUTSNS_PIN = 1 [09:36:52]*** CUTSNS_PIN = 0 [09:36:52]*** Brake cut motor [09:36:52]Read from MH i2c: 01 [09:36:52]MH_I2C_Read... [09:36:52]*** Stop cut motor [09:36:52]*** Cut end [09:36:52]Read from MH i2c: 01 07 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: 01 07 00 AE A2 00 00 00 00 00 FF 0F 65 [09:36:52]process_action close_receipt done [09:36:52]requested_data is exist [09:36:52]produce_requested_data [09:36:52]requested_item fm.sn is exist - process it [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 11 00 00 [09:36:52]Write to MH i2c: E2 08 00 AF A2 80 11 00 00 00 00 00 00 CB [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 17 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 17 00 AF A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [09:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:36:52]wFMCommunicate OK [09:36:52]requested_item fd.num is exist - process it [09:36:52]SAM_PROTO_GetFieldsCounters [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 13 00 00 [09:36:52]Write to MH i2c: E2 08 00 B0 A2 80 13 00 00 00 00 00 00 CE [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 62 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 62 00 B0 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [09:36:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:52]wFMCommunicate OK [09:36:52]SAM_PROTO_GetFieldsCounters done [09:36:52]requested_item shift.num is exist - process it [09:36:52]requested_item shift.opened is exist - process it [09:36:52]req_shift_opened [09:36:52]FM_GetShiftState [09:36:52]SAM_PROTO_GetShiftState [09:36:52]wFMCommunicate request_size=4 [09:36:52]MH_SAM_APDU [09:36:52]CAPDU: 80 13 01 00 [09:36:52]Write to MH i2c: E2 08 00 B1 A2 80 13 01 00 00 00 00 00 D0 [09:36:52]Write i2c OK [09:36:52]MH_I2C_Read... [09:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:52]Read from MH i2c: E2 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 0E 00 [09:36:52]MH_I2C_Read... [09:36:52]Read from MH i2c: E2 0E 00 B1 A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9B [09:36:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:36:52]wFMCommunicate OK [09:36:52]SAM_PROTO_GetShiftState done [09:36:52]FM_GetShiftState done [09:36:52]req_shift_opened done [09:36:52]requested_item shift.open_date is exist - process it [09:36:52]req_shift_open_date [09:36:52]req_shift_open_date done [09:36:52]produce_requested_data done [09:36:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119021,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:36:52]process_action_free close_receipt [09:36:52]json_value_free [09:36:52]json_value_free done [09:36:52]process_json_proto returns [09:36:52]Send response to host [09:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119021,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:36:52]free response buf [09:36:52]execute_script done [09:36:52]execute_script returns [09:36:52]free content buf [09:36:52]Sock 7.Close socket [09:36:52]Sock 7.Thread stoped [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:16]OFD Sender: No OFD packet to send [09:38:21]OFD Sender: No OFD packet to send [09:38:26]OFD Sender: No OFD packet to send [09:38:31]OFD Sender: No OFD packet to send [09:38:36]OFD Sender: No OFD packet to send [09:38:41]OFD Sender: No OFD packet to send [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:21]OFD Sender: No OFD packet to send [09:39:26]OFD Sender: No OFD packet to send [09:39:31]OFD Sender: No OFD packet to send [09:39:36]OFD Sender: No OFD packet to send [09:39:41]OFD Sender: No OFD packet to send [09:39:46]OFD Sender: No OFD packet to send [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:03]accept exits with 9 [09:44:03]New connection [09:44:03]New thread 3067383140 created [09:44:03]Thread 3067239780 joined [09:44:03]Waiting for new connection... [09:44:03] Sock 9.Parse request [09:44:03]Sock 9.Check first char [09:44:03]Sock 9.First char is OK [09:44:03]request: POST /json_proto HTTP/1.0 [09:44:03]Method: POST [09:44:03]URL: /json_proto [09:44:03]Method is POST - this is cgi request [09:44:03]url: /json_proto [09:44:03]query_string will be loaded in cgi processing [09:44:03]execute_cgi json_proto POST (null) [09:44:03]execute_cgi path=json_proto method=POST [09:44:03]POST find Content-Length [09:44:03]Host: 172.17.45.7:8080 [09:44:03]Content-Length: 677 [09:44:03]Content-Type: application/json [09:44:03] [09:44:03]POST finish read [09:44:03]Found Content-Length = 677 [09:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:44:03]execute_script... [09:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:44:03]POST & json_proto [09:44:03]process_json_proto [09:44:03]json parsed OK: [09:44:03]protocol is kg_v1.0 [09:44:03]action value=close_receipt [09:44:03]process_action close_receipt [09:44:03]cmd_close_receipt [09:44:03]MH_GetDate [09:44:03]Write to MH i2c: F0 00 00 B2 A2 43 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: F0 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: F0 09 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: F0 09 00 B2 A2 00 ED B5 A8 66 90 0F 3E 66 3F [09:44:03]GetLastDocTimeStamp 1722332219 [09:44:03]current date 1722332653 [09:44:03]FM_GetShiftState [09:44:03]SAM_PROTO_GetShiftState [09:44:03]wFMCommunicate request_size=4 [09:44:03]MH_SAM_APDU [09:44:03]CAPDU: 80 13 01 00 [09:44:03]Write to MH i2c: E2 08 00 B3 A2 80 13 01 00 00 00 00 00 D2 [09:44:03]Write i2c OK [09:44:03]MH_I2C_Read... [09:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:03]Read from MH i2c: E2 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 0E 00 [09:44:03]MH_I2C_Read... [09:44:03]Read from MH i2c: E2 0E 00 B3 A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9D [09:44:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:44:03]wFMCommunicate OK [09:44:03]SAM_PROTO_GetShiftState done [09:44:03]FM_GetShiftState done [09:44:03]opened in 1722298242 [09:44:03]opened+sec_in_day 1722384642 [09:44:03]quantity*price = 40002 [09:44:03]sum+1 = 40003 [09:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 74 30.07.2024 09:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119022 ФПД: 38151537857404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T094413&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119022&fm=38151537857404&tin=02508201610067®Number=0000000000092660&sum=40000 [09:44:04]StoreToDocumentArchive [09:44:04]shift 435 fd 119022 [09:44:04]save to /storage/0435/doc_00119022 [09:44:04]save last doc name /storage/0435/doc_00119022 to /storage/kkm_last_doc_name [09:44:04]save OK [09:44:04]Clear old archive folders... [09:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:04]tlvbuf is 020813A0 [09:44:04]SAM_PROTO_ClearQueue [09:44:04]wFMCommunicate request_size=4 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 09 00 00 [09:44:04]Write to MH i2c: E2 08 00 C0 A2 80 09 00 00 00 00 00 00 D4 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 C0 A2 00 90 00 D6 [09:44:04]RAPDU: 90 00 [09:44:04]wFMCommunicate OK [09:44:04]SAM_PROTO_ClearQueue done [09:44:04]KKMCreateOFDPacket [09:44:04]OFDProtocolAddRootSTLVToBuf [09:44:04]FM_MakeSignedData [09:44:04]FM_MakeSignedData [09:44:04]SAM_PROTO_SignData [09:44:04]wFMCommunicate request_size=4 [09:44:04]MH_SAM_APDU [09:44:04]CAPDU: 80 0D 01 02 [09:44:04]Write to MH i2c: E2 08 00 C1 A2 80 0D 01 02 00 00 00 00 DC [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:04]Read from MH i2c: E2 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 [09:44:04]MH_I2C_Read... [09:44:04]Read from MH i2c: E2 03 00 C1 A2 00 90 00 D7 [09:44:04]RAPDU: 90 00 [09:44:04]wFMCommunicate OK [09:44:04]wFMCommunicate request_size=255 [09:44:04]MH_SAM_APDU [09:44: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 4A 00 00 00 F4 03 04 00 ED B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D0 01 00 35 04 06 00 22 [09:44:04]Write to MH i2c: E2 02 01 C2 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 4A 00 00 00 F4 03 04 00 ED B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D0 01 00 35 04 06 00 22 00 00 D4 [09:44:04]Write i2c OK [09:44:04]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 03 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 03 00 C2 A2 00 90 00 D8 [09:44:05]RAPDU: 90 00 [09:44:05]wFMCommunicate OK [09:44:05]wFMCommunicate request_size=10 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 0D 02 02 05 B2 D8 DC 93 7C [09:44:05]Write to MH i2c: E2 0D 00 C3 A2 80 0D 02 02 05 00 B2 D8 DC 93 7C 00 00 5E [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 03 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 03 00 C3 A2 00 90 00 D9 [09:44:05]RAPDU: 90 00 [09:44:05]wFMCommunicate OK [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 0D 03 02 [09:44:05]Write to MH i2c: E2 08 00 C4 A2 80 0D 03 02 00 00 00 00 E1 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 0B 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 0B 00 C4 A2 00 6A 57 B2 4F 49 79 6B A1 90 00 72 [09:44:05]RAPDU: 6A 57 B2 4F 49 79 6B A1 90 00 [09:44:05]wFMCommunicate OK [09:44:05]SAM_PROTO_SignData done [09:44:05]FM_MakeSignedData done [09:44:05]CreateOFDProtocolMessage [09:44:05]wFMCommunicate request_size=4 [09:44:05]MH_SAM_APDU [09:44:05]CAPDU: 80 11 00 00 [09:44:05]Write to MH i2c: E2 08 00 C5 A2 80 11 00 00 00 00 00 00 E1 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:05]Read from MH i2c: E2 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 17 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: E2 17 00 C5 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3C [09:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:44:05]wFMCommunicate OK [09:44:05]CreateOFDProtocolMessage done [09:44:05]OFDSenderStorePacket 119022 [09:44:05]StoreOFDPacket docnum=119022 [09:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9E 6F 07 01 34 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 4A 00 00 00 F4 03 04 00 ED B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D0 01 00 35 04 06 00 22 B2 D8 DC 93 7C 6A 57 B2 4F 49 79 6B A1 [09:44:05]CheckFolder [09:44:05]dirname=/storage/ofd_packets [09:44:05]CheckFolder done [09:44:05]ProducePacketName [09:44:05]name=ofd_packets/00119022 [09:44:05]NVStorageSaveData ofd_packets/00119022 [09:44:05]File name is /storage/ofd_packets/00119022 [09:44:05]Write 301 bytes [09:44:05]NVStorageSaveData done [09:44:05]OFDSenderStorePacket done [09:44:05]KKMCreateOFDPacket done [09:44:05]NVStorageSaveData kkm_last_timestamp [09:44:05]File name is /storage/kkm_last_timestamp [09:44:05]Write 4 bytes [09:44:05]NVStorageSaveData done [09:44:05]ExternCall_PrintAddStr [09:44:05]wPrintStart [09:44:05]Write to MH i2c: 01 00 00 C6 A2 68 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 C6 A2 00 00 00 00 00 FF 0F 7D [09:44:05]RasterBufferAndPrint [09:44:05]line Счет N : (1)949942 [09:44:05]line ИНН: 02508201610067 [09:44:05]line Контрольно-Кассовый Чек [09:44:05]line ПРОДАЖА [09:44:05]line ТРК (МРК, ГНК) : 51 [09:44:05]line Товар: 2710124130 [09:44:05]line Аи-92-К-4 [09:44:05]line 5.900 * 67.80 [09:44:05]line = 400.02 [09:44:05]line НДС 12% НСП 1% [09:44:05]line > о реализуемом товаре [09:44:05]line ОКРУГЛЕНИЕ: -0.02 [09:44:05]line ИТОГО: 400.00 [09:44:05]line Внесено: 400.00 [09:44:05]line СДАЧА: 0.00 [09:44:05]line НСП 1% : 3.54 [09:44:05]line НДС 12% : 42.48 [09:44:05]line Наличными: 400.00 [09:44:05]line Безнал.: 0.00 [09:44:05]line Место: АЗС № 134 "Партнер Нефть" [09:44:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:44:05]line СНО: Общий режим [09:44:05]line Чек 74 30.07.2024 09:44 [09:44:05]line Смена: 435 ФФД: 1.0 [09:44:05]line ЗНМ: 0300000044 [09:44:05]line РНМ: 0000000000092660 [09:44:05]line Версия ККМ: 001 [09:44:05]line ФМ: 0000000000874939 [09:44:05]line ФД: 119022 [09:44:05]line ФПД: 38151537857404 [09:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T094413&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119022&fm=38151537857404&tin=02508201610067®Number=0000000000092660&sum=40000 [09:44:05]written 0, free lines is 4095 [09:44:05]OFD Sender: Processing packet 119022 [packets to send 86, broken 85] [09:44:05]ProducePacketName [09:44:05]name=ofd_packets/00119022 [09:44:05]OFD Sender: To server: pG, [09:44:05]CommunicateWithHost lk.salyk.kg:30040 [09:44:05]ConnectInit lk.salyk.kg [09:44:05]Connected sock=7 [09:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9E 6F 07 01 34 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 4A 00 00 00 F4 03 04 00 ED B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D0 01 00 35 04 06 00 22 B2 D8 DC 93 7C 6A 57 B2 4F 49 79 6B A1 [09:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E5 A0 47 00 A6 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D0 01 00 F4 03 04 00 79 63 A8 66 B6 04 01 00 00 A3 C2 F4 53 12 02 C5 18 [09:44:05]CommunicateWithHost err = 0 [09:44:05]CheckOFDResponse [09:44:05]1017 (14) - 77093643461234 [09:44:05]1041 (16) - 0000000000874939 [09:44:05]1040 (4) - 119022 [09:44:05]1012 (4) - 30.07.2024 03:52 [09:44:05]1206 (1) - 0 [09:44:05]OFD Sender: Remove packet 119022 [09:44:05]ProducePacketName [09:44:05]name=ofd_packets/00119022 [09:44:05]NVStorageDeleteData [09:44:05]Write to MH i2c: 01 00 00 F0 A2 92 [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: 01 07 00 F0 A2 00 00 00 00 00 EE 0C 93 [09:44:05]RasterBufferAndPrint [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]line [09:44:05]written 0, free lines is 3316 [09:44:05]MH_Cut [09:44:05]Write to MH i2c: D1 01 00 F7 A2 01 6B [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 01 00 [09:44:05]MH_I2C_Read... [09:44:05]Read from MH i2c: D1 01 00 F7 A2 00 6A [09:44:05]Write to MH i2c: 01 00 00 F8 A2 9A [09:44:05]Write i2c OK [09:44:05]MH_I2C_Read... [09:44:06]OFD Sender: No OFD packet to send [09:44:06]*** Cut start [09:44:06]*** Partial cut [09:44:06]*** CUTSNS_PIN = 1 [09:44:06]*** CUTSNS_PIN = 0 [09:44:06]*** Brake cut motor [09:44:07]Read from MH i2c: 01 [09:44:07]MH_I2C_Read... [09:44:07]*** Stop cut motor [09:44:07]*** Cut end [09:44:07]Read from MH i2c: 01 07 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: 01 07 00 F8 A2 00 00 00 00 00 FF 0F AF [09:44:07]process_action close_receipt done [09:44:07]requested_data is exist [09:44:07]produce_requested_data [09:44:07]requested_item fm.sn is exist - process it [09:44:07]wFMCommunicate request_size=4 [09:44:07]MH_SAM_APDU [09:44:07]CAPDU: 80 11 00 00 [09:44:07]Write to MH i2c: E2 08 00 F9 A2 80 11 00 00 00 00 00 00 15 [09:44:07]Write i2c OK [09:44:07]MH_I2C_Read... [09:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:07]Read from MH i2c: E2 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 17 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 17 00 F9 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [09:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:44:07]wFMCommunicate OK [09:44:07]requested_item fd.num is exist - process it [09:44:07]SAM_PROTO_GetFieldsCounters [09:44:07]wFMCommunicate request_size=4 [09:44:07]MH_SAM_APDU [09:44:07]CAPDU: 80 13 00 00 [09:44:07]Write to MH i2c: E2 08 00 FA A2 80 13 00 00 00 00 00 00 18 [09:44:07]Write i2c OK [09:44:07]MH_I2C_Read... [09:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:07]Read from MH i2c: E2 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 62 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 62 00 FA A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:44:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:07]wFMCommunicate OK [09:44:07]SAM_PROTO_GetFieldsCounters done [09:44:07]requested_item shift.num is exist - process it [09:44:07]requested_item shift.opened is exist - process it [09:44:07]req_shift_opened [09:44:07]FM_GetShiftState [09:44:07]SAM_PROTO_GetShiftState [09:44:07]wFMCommunicate request_size=4 [09:44:07]MH_SAM_APDU [09:44:07]CAPDU: 80 13 01 00 [09:44:07]Write to MH i2c: E2 08 00 FB A2 80 13 01 00 00 00 00 00 1A [09:44:07]Write i2c OK [09:44:07]MH_I2C_Read... [09:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:07]Read from MH i2c: E2 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 0E 00 [09:44:07]MH_I2C_Read... [09:44:07]Read from MH i2c: E2 0E 00 FB A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E5 [09:44:07]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:44:07]wFMCommunicate OK [09:44:07]SAM_PROTO_GetShiftState done [09:44:07]FM_GetShiftState done [09:44:07]req_shift_opened done [09:44:07]requested_item shift.open_date is exist - process it [09:44:07]req_shift_open_date [09:44:07]req_shift_open_date done [09:44:07]produce_requested_data done [09:44:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119022,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:44:07]process_action_free close_receipt [09:44:07]json_value_free [09:44:07]json_value_free done [09:44:07]process_json_proto returns [09:44:07]Send response to host [09:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119022,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:44:07]free response buf [09:44:07]execute_script done [09:44:07]execute_script returns [09:44:07]free content buf [09:44:07]Sock 9.Close socket [09:44:07]Sock 9.Thread stoped [09:44:11]OFD Sender: No OFD packet to send [09:44:15]accept exits with 10 [09:44:15]New connection [09:44:15]New thread 3067239780 created [09:44:15]Thread 3067383140 joined [09:44:15]Waiting for new connection... [09:44:15] Sock 10.Parse request [09:44:15]Sock 10.Check first char [09:44:15]Sock 10.First char is OK [09:44:15]request: POST /json_proto HTTP/1.0 [09:44:15]Method: POST [09:44:15]URL: /json_proto [09:44:15]Method is POST - this is cgi request [09:44:15]url: /json_proto [09:44:15]query_string will be loaded in cgi processing [09:44:15]execute_cgi json_proto POST (null) [09:44:15]execute_cgi path=json_proto method=POST [09:44:15]POST find Content-Length [09:44:15]Host: 172.17.45.7:8080 [09:44:15]Content-Length: 822 [09:44:15]Content-Type: application/json [09:44:15] [09:44:15]POST finish read [09:44:15]Found Content-Length = 822 [09:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:15]execute_script... [09:44: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)949941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:15]POST & json_proto [09:44:15]process_json_proto [09:44:15]json parsed OK: [09:44:15]protocol is kg_v1.0 [09:44:15]action value=close_receipt [09:44:15]process_action close_receipt [09:44:15]cmd_close_receipt [09:44:15]MH_GetDate [09:44:15]Write to MH i2c: F0 00 00 FC A2 8D [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: F0 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: F0 09 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: F0 09 00 FC A2 00 F9 B5 A8 66 90 0F 3E 66 95 [09:44:15]GetLastDocTimeStamp 1722332653 [09:44:15]current date 1722332665 [09:44:15]FM_GetShiftState [09:44:15]SAM_PROTO_GetShiftState [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 13 01 00 [09:44:15]Write to MH i2c: E2 08 00 FD A2 80 13 01 00 00 00 00 00 1C [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0E 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0E 00 FD A2 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E7 [09:44:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_GetShiftState done [09:44:15]FM_GetShiftState done [09:44:15]opened in 1722298242 [09:44:15]opened+sec_in_day 1722384642 [09:44:15]quantity*price = 150041 [09:44:15]sum+1 = 150042 [09:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 75 30.07.2024 09:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119023 ФПД: 194027941397085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T094425&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119023&fm=194027941397085&tin=02508201610067®Number=0000000000092660&sum=150000 [09:44:16]StoreToDocumentArchive [09:44:16]shift 435 fd 119023 [09:44:16]save to /storage/0435/doc_00119023 [09:44:16]save last doc name /storage/0435/doc_00119023 to /storage/kkm_last_doc_name [09:44:16]save OK [09:44:16]Clear old archive folders... [09:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:16]tlvbuf is 020816C0 [09:44:16]SAM_PROTO_ClearQueue [09:44:16]wFMCommunicate request_size=4 [09:44:16]MH_SAM_APDU [09:44:16]CAPDU: 80 09 00 00 [09:44:16]Write to MH i2c: E2 08 00 0A A3 80 09 00 00 00 00 00 00 1F [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 0A A3 00 90 00 21 [09:44:16]RAPDU: 90 00 [09:44:16]wFMCommunicate OK [09:44:16]SAM_PROTO_ClearQueue done [09:44:16]KKMCreateOFDPacket [09:44:16]OFDProtocolAddRootSTLVToBuf [09:44:16]FM_MakeSignedData [09:44:16]FM_MakeSignedData [09:44:16]SAM_PROTO_SignData [09:44:16]wFMCommunicate request_size=4 [09:44:16]MH_SAM_APDU [09:44:16]CAPDU: 80 0D 01 02 [09:44:16]Write to MH i2c: E2 08 00 0B A3 80 0D 01 02 00 00 00 00 27 [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 0B A3 00 90 00 22 [09:44:16]RAPDU: 90 00 [09:44:16]wFMCommunicate OK [09:44:16]wFMCommunicate request_size=255 [09:44:16]MH_SAM_APDU [09:44: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D0 01 00 35 04 06 00 B0 [09:44:16]Write to MH i2c: E2 02 01 0C A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D0 01 00 35 04 06 00 B0 00 00 4B [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 0C A3 00 90 00 23 [09:44:16]RAPDU: 90 00 [09:44:16]wFMCommunicate OK [09:44:16]wFMCommunicate request_size=10 [09:44:16]MH_SAM_APDU [09:44:16]CAPDU: 80 0D 02 02 05 77 A6 86 02 5D [09:44:16]Write to MH i2c: E2 0D 00 0D A3 80 0D 02 02 05 00 77 A6 86 02 5D 00 00 36 [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 03 00 0D A3 00 90 00 24 [09:44:16]RAPDU: 90 00 [09:44:16]wFMCommunicate OK [09:44:16]wFMCommunicate request_size=4 [09:44:16]MH_SAM_APDU [09:44:16]CAPDU: 80 0D 03 02 [09:44:16]Write to MH i2c: E2 08 00 0E A3 80 0D 03 02 00 00 00 00 2C [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 0B 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 0B 00 0E A3 00 31 9C 34 BE F3 96 CA 89 90 00 C8 [09:44:16]RAPDU: 31 9C 34 BE F3 96 CA 89 90 00 [09:44:16]wFMCommunicate OK [09:44:16]SAM_PROTO_SignData done [09:44:16]FM_MakeSignedData done [09:44:16]CreateOFDProtocolMessage [09:44:16]wFMCommunicate request_size=4 [09:44:16]MH_SAM_APDU [09:44:16]CAPDU: 80 11 00 00 [09:44:16]Write to MH i2c: E2 08 00 0F A3 80 11 00 00 00 00 00 00 2C [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:16]Read from MH i2c: E2 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 17 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: E2 17 00 0F A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 87 [09:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:44:16]wFMCommunicate OK [09:44:16]CreateOFDProtocolMessage done [09:44:16]OFDSenderStorePacket 119023 [09:44:16]StoreOFDPacket docnum=119023 [09:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F3 FE 07 01 56 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D0 01 00 35 04 06 00 B0 77 A6 86 02 5D 31 9C 34 BE F3 96 CA 89 [09:44:16]CheckFolder [09:44:16]dirname=/storage/ofd_packets [09:44:16]CheckFolder done [09:44:16]ProducePacketName [09:44:16]name=ofd_packets/00119023 [09:44:16]NVStorageSaveData ofd_packets/00119023 [09:44:16]File name is /storage/ofd_packets/00119023 [09:44:16]Write 301 bytes [09:44:16]NVStorageSaveData done [09:44:16]OFDSenderStorePacket done [09:44:16]KKMCreateOFDPacket done [09:44:16]NVStorageSaveData kkm_last_timestamp [09:44:16]File name is /storage/kkm_last_timestamp [09:44:16]Write 4 bytes [09:44:16]NVStorageSaveData done [09:44:16]ExternCall_PrintAddStr [09:44:16]wPrintStart [09:44:16]Write to MH i2c: 01 00 00 10 A3 B3 [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 07 00 [09:44:16]MH_I2C_Read... [09:44:16]Read from MH i2c: 01 07 00 10 A3 00 00 00 00 00 FF 0F C8 [09:44:16]RasterBufferAndPrint [09:44:16]line Счет N : (1)949941 [09:44:16]line ИНН: 02508201610067 [09:44:16]line Контрольно-Кассовый Чек [09:44:16]line ПРОДАЖА [09:44:16]line ТРК (МРК, ГНК) : 61 [09:44:16]line Товар: 2710124130 [09:44:16]line Аи-92-К-4 [09:44:16]line 22.130 * 67.80 [09:44:16]line = 1500.41 [09:44:16]line НДС 12% НСП 1% [09:44:16]line > о реализуемом товаре [09:44:16]line ОКРУГЛЕНИЕ: -0.41 [09:44:16]line ИТОГО: 1500.00 [09:44:16]line НСП 1% : 13.28 [09:44:16]line НДС 12% : 159.34 [09:44:16]line Наличными: 0.00 [09:44:16]line Безнал.: 1500.00 [09:44:16]line Место: АЗС № 134 "Партнер Нефть" [09:44:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:44:16]line СНО: Общий режим [09:44:16]line Чек 75 30.07.2024 09:44 [09:44:16]line Смена: 435 ФФД: 1.0 [09:44:16]line ЗНМ: 0300000044 [09:44:16]line РНМ: 0000000000092660 [09:44:16]line Версия ККМ: 001 [09:44:16]line Платежная система: O! деньги [09:44:16]line ФМ: 0000000000874939 [09:44:16]line ФД: 119023 [09:44:16]line ФПД: 194027941397085 [09:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T094425&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119023&fm=194027941397085&tin=02508201610067®Number=0000000000092660&sum=150000 [09:44:16]written 0, free lines is 4095 [09:44:16]OFD Sender: Processing packet 119023 [packets to send 86, broken 85] [09:44:16]ProducePacketName [09:44:16]name=ofd_packets/00119023 [09:44:16]OFD Sender: To server: pG, [09:44:16]CommunicateWithHost lk.salyk.kg:30040 [09:44:16]ConnectInit lk.salyk.kg [09:44:17]Connected sock=9 [09:44:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F3 FE 07 01 56 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 B5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D0 01 00 35 04 06 00 B0 77 A6 86 02 5D 31 9C 34 BE F3 96 CA 89 [09:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 2E 47 00 AF 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 34 39 33 39 10 04 04 00 EF D0 01 00 F4 03 04 00 84 63 A8 66 B6 04 01 00 00 B6 90 6F F9 12 4D 12 87 [09:44:17]CommunicateWithHost err = 0 [09:44:17]CheckOFDResponse [09:44:17]1017 (14) - 77093643461234 [09:44:17]1041 (16) - 0000000000874939 [09:44:17]1040 (4) - 119023 [09:44:17]1012 (4) - 30.07.2024 03:52 [09:44:17]1206 (1) - 0 [09:44:17]OFD Sender: Remove packet 119023 [09:44:17]ProducePacketName [09:44:17]name=ofd_packets/00119023 [09:44:17]NVStorageDeleteData [09:44:17]Write to MH i2c: 01 00 00 3A A3 DD [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 07 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 07 00 3A A3 00 00 00 00 00 F2 0C E2 [09:44:17]RasterBufferAndPrint [09:44:17]line [09:44:17]line [09:44:17]line [09:44:17]line [09:44:17]line [09:44:17]written 0, free lines is 3324 [09:44:17]MH_Cut [09:44:17]Write to MH i2c: D1 01 00 41 A3 01 B6 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: D1 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: D1 01 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: D1 01 00 41 A3 00 B5 [09:44:17]Write to MH i2c: 01 00 00 42 A3 E5 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]OFD Sender: No OFD packet to send [09:44:18]*** Cut start [09:44:18]*** Partial cut [09:44:18]*** CUTSNS_PIN = 1 [09:44:18]*** CUTSNS_PIN = 0 [09:44:18]*** Brake cut motor [09:44:18]Read from MH i2c: 01 [09:44:18]MH_I2C_Read... [09:44:18]*** Stop cut motor [09:44:18]*** Cut end [09:44:18]Read from MH i2c: 01 07 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: 01 07 00 42 A3 00 00 00 00 00 FF 0F FA [09:44:18]process_action close_receipt done [09:44:18]requested_data is exist [09:44:18]produce_requested_data [09:44:18]requested_item fm.sn is exist - process it [09:44:18]wFMCommunicate request_size=4 [09:44:18]MH_SAM_APDU [09:44:18]CAPDU: 80 11 00 00 [09:44:18]Write to MH i2c: E2 08 00 43 A3 80 11 00 00 00 00 00 00 60 [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:18]Read from MH i2c: E2 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 17 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 17 00 43 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BB [09:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:44:18]wFMCommunicate OK [09:44:18]requested_item fd.num is exist - process it [09:44:18]SAM_PROTO_GetFieldsCounters [09:44:18]wFMCommunicate request_size=4 [09:44:18]MH_SAM_APDU [09:44:18]CAPDU: 80 13 00 00 [09:44:18]Write to MH i2c: E2 08 00 44 A3 80 13 00 00 00 00 00 00 63 [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:18]Read from MH i2c: E2 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 62 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 62 00 44 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [09:44:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:18]wFMCommunicate OK [09:44:18]SAM_PROTO_GetFieldsCounters done [09:44:18]requested_item shift.num is exist - process it [09:44:18]requested_item shift.opened is exist - process it [09:44:18]req_shift_opened [09:44:18]FM_GetShiftState [09:44:18]SAM_PROTO_GetShiftState [09:44:18]wFMCommunicate request_size=4 [09:44:18]MH_SAM_APDU [09:44:18]CAPDU: 80 13 01 00 [09:44:18]Write to MH i2c: E2 08 00 45 A3 80 13 01 00 00 00 00 00 65 [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:18]Read from MH i2c: E2 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 0E 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: E2 0E 00 45 A3 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 30 [09:44:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:44:18]wFMCommunicate OK [09:44:18]SAM_PROTO_GetShiftState done [09:44:18]FM_GetShiftState done [09:44:18]req_shift_opened done [09:44:18]requested_item shift.open_date is exist - process it [09:44:18]req_shift_open_date [09:44:18]req_shift_open_date done [09:44:18]produce_requested_data done [09:44:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119023,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:44:18]process_action_free close_receipt [09:44:18]json_value_free [09:44:18]json_value_free done [09:44:18]process_json_proto returns [09:44:18]Send response to host [09:44:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119023,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:44:18]free response buf [09:44:18]execute_script done [09:44:18]execute_script returns [09:44:18]free content buf [09:44:18]Sock 10.Close socket [09:44:18]Sock 10.Thread stoped [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:37]accept exits with 7 [09:48:37]New connection [09:48:37]New thread 3067383140 created [09:48:37]Thread 3067239780 joined [09:48:37]Waiting for new connection... [09:48:37] Sock 7.Parse request [09:48:37]Sock 7.Check first char [09:48:37]Sock 7.First char is OK [09:48:37]request: POST /json_proto HTTP/1.0 [09:48:37]Method: POST [09:48:37]URL: /json_proto [09:48:37]Method is POST - this is cgi request [09:48:37]url: /json_proto [09:48:37]query_string will be loaded in cgi processing [09:48:37]execute_cgi json_proto POST (null) [09:48:37]execute_cgi path=json_proto method=POST [09:48:37]POST find Content-Length [09:48:37]Host: 172.17.45.7:8080 [09:48:37]Content-Length: 819 [09:48:37]Content-Type: application/json [09:48:37] [09:48:37]POST finish read [09:48:37]Found Content-Length = 819 [09:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:37]execute_script... [09:48: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)949943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:37]POST & json_proto [09:48:37]process_json_proto [09:48:37]json parsed OK: [09:48:37]protocol is kg_v1.0 [09:48:37]action value=close_receipt [09:48:37]process_action close_receipt [09:48:37]cmd_close_receipt [09:48:37]MH_GetDate [09:48:37]Write to MH i2c: F0 00 00 46 A3 D8 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: F0 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: F0 09 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: F0 09 00 46 A3 00 FF B6 A8 66 90 0F 3E 66 E7 [09:48:37]GetLastDocTimeStamp 1722332665 [09:48:37]current date 1722332927 [09:48:37]FM_GetShiftState [09:48:37]SAM_PROTO_GetShiftState [09:48:37]wFMCommunicate request_size=4 [09:48:37]MH_SAM_APDU [09:48:37]CAPDU: 80 13 01 00 [09:48:37]Write to MH i2c: E2 08 00 47 A3 80 13 01 00 00 00 00 00 67 [09:48:37]Write i2c OK [09:48:37]MH_I2C_Read... [09:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:37]Read from MH i2c: E2 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 0E 00 [09:48:37]MH_I2C_Read... [09:48:37]Read from MH i2c: E2 0E 00 47 A3 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 32 [09:48:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:48:37]wFMCommunicate OK [09:48:37]SAM_PROTO_GetShiftState done [09:48:37]FM_GetShiftState done [09:48:37]opened in 1722298242 [09:48:37]opened+sec_in_day 1722384642 [09:48:37]quantity*price = 300075 [09:48:37]sum+1 = 300077 [09:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 76 30.07.2024 09:48 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119024 ФПД: 215499030864629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T094847&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119024&fm=215499030864629&tin=02508201610067®Number=0000000000092660&sum=300000 [09:48:38]StoreToDocumentArchive [09:48:38]shift 435 fd 119024 [09:48:38]save to /storage/0435/doc_00119024 [09:48:38]save last doc name /storage/0435/doc_00119024 to /storage/kkm_last_doc_name [09:48:38]save OK [09:48:38]Clear old archive folders... [09:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:38]tlvbuf is 01EC05E0 [09:48:38]SAM_PROTO_ClearQueue [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 09 00 00 [09:48:38]Write to MH i2c: E2 08 00 54 A3 80 09 00 00 00 00 00 00 69 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 54 A3 00 90 00 6B [09:48:38]RAPDU: 90 00 [09:48:38]wFMCommunicate OK [09:48:38]SAM_PROTO_ClearQueue done [09:48:38]KKMCreateOFDPacket [09:48:38]OFDProtocolAddRootSTLVToBuf [09:48:38]FM_MakeSignedData [09:48:38]FM_MakeSignedData [09:48:38]SAM_PROTO_SignData [09:48:38]wFMCommunicate request_size=4 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 0D 01 02 [09:48:38]Write to MH i2c: E2 08 00 55 A3 80 0D 01 02 00 00 00 00 71 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:38]Read from MH i2c: E2 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 [09:48:38]MH_I2C_Read... [09:48:38]Read from MH i2c: E2 03 00 55 A3 00 90 00 6C [09:48:38]RAPDU: 90 00 [09:48:38]wFMCommunicate OK [09:48:38]wFMCommunicate request_size=255 [09:48:38]MH_SAM_APDU [09:48:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FF B6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D0 01 00 35 04 06 00 C3 FE C7 2F [09:48:38]Write to MH i2c: E2 02 01 56 A3 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FF B6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D0 01 00 35 04 06 00 C3 FE C7 2F 00 00 73 [09:48:38]Write i2c OK [09:48:38]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 56 A3 00 90 00 6D [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]wFMCommunicate request_size=7 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 02 02 02 22 F5 [09:48:39]Write to MH i2c: E2 0A 00 57 A3 80 0D 02 02 02 00 22 F5 00 00 8F [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 03 00 57 A3 00 90 00 6E [09:48:39]RAPDU: 90 00 [09:48:39]wFMCommunicate OK [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 0D 03 02 [09:48:39]Write to MH i2c: E2 08 00 58 A3 80 0D 03 02 00 00 00 00 76 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 0B 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 0B 00 58 A3 00 32 C4 59 59 AC 77 F6 70 90 00 A8 [09:48:39]RAPDU: 32 C4 59 59 AC 77 F6 70 90 00 [09:48:39]wFMCommunicate OK [09:48:39]SAM_PROTO_SignData done [09:48:39]FM_MakeSignedData done [09:48:39]CreateOFDProtocolMessage [09:48:39]wFMCommunicate request_size=4 [09:48:39]MH_SAM_APDU [09:48:39]CAPDU: 80 11 00 00 [09:48:39]Write to MH i2c: E2 08 00 59 A3 80 11 00 00 00 00 00 00 76 [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:39]Read from MH i2c: E2 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 17 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: E2 17 00 59 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D1 [09:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:39]wFMCommunicate OK [09:48:39]CreateOFDProtocolMessage done [09:48:39]OFDSenderStorePacket 119024 [09:48:39]StoreOFDPacket docnum=119024 [09:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 B4 04 01 10 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FF B6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D0 01 00 35 04 06 00 C3 FE C7 2F 22 F5 32 C4 59 59 AC 77 F6 70 [09:48:39]CheckFolder [09:48:39]dirname=/storage/ofd_packets [09:48:39]CheckFolder done [09:48:39]ProducePacketName [09:48:39]name=ofd_packets/00119024 [09:48:39]NVStorageSaveData ofd_packets/00119024 [09:48:39]File name is /storage/ofd_packets/00119024 [09:48:39]Write 298 bytes [09:48:39]NVStorageSaveData done [09:48:39]OFDSenderStorePacket done [09:48:39]KKMCreateOFDPacket done [09:48:39]NVStorageSaveData kkm_last_timestamp [09:48:39]File name is /storage/kkm_last_timestamp [09:48:39]Write 4 bytes [09:48:39]NVStorageSaveData done [09:48:39]ExternCall_PrintAddStr [09:48:39]wPrintStart [09:48:39]Write to MH i2c: 01 00 00 5A A3 FD [09:48:39]Write i2c OK [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 [09:48:39]MH_I2C_Read... [09:48:39]Read from MH i2c: 01 07 00 5A A3 00 00 00 00 00 FF 0F 12 [09:48:39]RasterBufferAndPrint [09:48:39]line Счет N : (1)949943 [09:48:39]line ИНН: 02508201610067 [09:48:39]line Контрольно-Кассовый Чек [09:48:39]line ПРОДАЖА [09:48:39]line ТРК (МРК, ГНК) : 34 [09:48:39]line Товар: 2710194800 [09:48:39]line ДТ-К-5 [09:48:39]line 39.380 * 76.20 [09:48:39]line = 3000.76 [09:48:39]line НДС 12% НСП 1% [09:48:39]line > о реализуемом товаре [09:48:39]line ОКРУГЛЕНИЕ: -0.76 [09:48:39]line ИТОГО: 3000.00 [09:48:39]line НСП 1% : 26.55 [09:48:39]line НДС 12% : 318.66 [09:48:39]line Наличными: 0.00 [09:48:39]line Безнал.: 3000.00 [09:48:39]line Место: АЗС № 134 "Партнер Нефть" [09:48:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:48:39]line СНО: Общий режим [09:48:39]line Чек 76 30.07.2024 09:48 [09:48:39]line Смена: 435 ФФД: 1.0 [09:48:39]line ЗНМ: 0300000044 [09:48:39]line РНМ: 0000000000092660 [09:48:39]line Версия ККМ: 001 [09:48:39]line Платежная система: O! деньги [09:48:39]line ФМ: 0000000000874939 [09:48:39]line ФД: 119024 [09:48:39]line ФПД: 215499030864629 [09:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T094847&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119024&fm=215499030864629&tin=02508201610067®Number=0000000000092660&sum=300000 [09:48:39]OFD Sender: Processing packet 119024 [packets to send 86, broken 85] [09:48:39]ProducePacketName [09:48:39]name=ofd_packets/00119024 [09:48:39]OFD Sender: To server: pG, [09:48:39]CommunicateWithHost lk.salyk.kg:30040 [09:48:39]ConnectInit lk.salyk.kg [09:48:39]written 0, free lines is 4095 [09:48:39]Connected sock=10 [09:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 B4 04 01 10 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 FF B6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D0 01 00 35 04 06 00 C3 FE C7 2F 22 F5 32 C4 59 59 AC 77 F6 70 [09:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C4 ED 47 00 D1 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D0 01 00 F4 03 04 00 8B 64 A8 66 B6 04 01 00 00 FE 27 52 BF DC 1A 6F 42 [09:48:39]CommunicateWithHost err = 0 [09:48:39]CheckOFDResponse [09:48:39]1017 (14) - 77093643461234 [09:48:39]1041 (16) - 0000000000874939 [09:48:39]1040 (4) - 119024 [09:48:39]1012 (4) - 30.07.2024 03:56 [09:48:39]1206 (1) - 0 [09:48:39]OFD Sender: Remove packet 119024 [09:48:39]ProducePacketName [09:48:39]name=ofd_packets/00119024 [09:48:39]NVStorageDeleteData [09:48:40]Write to MH i2c: 01 00 00 84 A3 27 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: 01 07 00 84 A3 00 00 00 00 00 EE 0C 28 [09:48:40]RasterBufferAndPrint [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]line [09:48:40]written 0, free lines is 3317 [09:48:40]MH_Cut [09:48:40]Write to MH i2c: D1 01 00 8B A3 01 00 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 01 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: D1 01 00 8B A3 00 FF [09:48:40]Write to MH i2c: 01 00 00 8C A3 2F [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]OFD Sender: No OFD packet to send [09:48:40]*** Cut start [09:48:40]*** Partial cut [09:48:40]*** CUTSNS_PIN = 1 [09:48:40]*** CUTSNS_PIN = 0 [09:48:41]*** Brake cut motor [09:48:41]Read from MH i2c: 01 [09:48:41]MH_I2C_Read... [09:48:41]*** Stop cut motor [09:48:41]*** Cut end [09:48:41]Read from MH i2c: 01 07 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: 01 07 00 8C A3 00 00 00 00 00 FF 0F 44 [09:48:41]process_action close_receipt done [09:48:41]requested_data is exist [09:48:41]produce_requested_data [09:48:41]requested_item fm.sn is exist - process it [09:48:41]wFMCommunicate request_size=4 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 11 00 00 [09:48:41]Write to MH i2c: E2 08 00 8D A3 80 11 00 00 00 00 00 00 AA [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:41]Read from MH i2c: E2 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 17 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 17 00 8D A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 05 [09:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:48:41]wFMCommunicate OK [09:48:41]requested_item fd.num is exist - process it [09:48:41]SAM_PROTO_GetFieldsCounters [09:48:41]wFMCommunicate request_size=4 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 13 00 00 [09:48:41]Write to MH i2c: E2 08 00 8E A3 80 13 00 00 00 00 00 00 AD [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:41]Read from MH i2c: E2 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 62 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 62 00 8E A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [09:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:41]wFMCommunicate OK [09:48:41]SAM_PROTO_GetFieldsCounters done [09:48:41]requested_item shift.num is exist - process it [09:48:41]requested_item shift.opened is exist - process it [09:48:41]req_shift_opened [09:48:41]FM_GetShiftState [09:48:41]SAM_PROTO_GetShiftState [09:48:41]wFMCommunicate request_size=4 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 13 01 00 [09:48:41]Write to MH i2c: E2 08 00 8F A3 80 13 01 00 00 00 00 00 AF [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:41]Read from MH i2c: E2 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 0E 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 0E 00 8F A3 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 7A [09:48:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:48:41]wFMCommunicate OK [09:48:41]SAM_PROTO_GetShiftState done [09:48:41]FM_GetShiftState done [09:48:41]req_shift_opened done [09:48:41]requested_item shift.open_date is exist - process it [09:48:41]req_shift_open_date [09:48:41]req_shift_open_date done [09:48:41]produce_requested_data done [09:48:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119024,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:48:41]process_action_free close_receipt [09:48:41]json_value_free [09:48:41]json_value_free done [09:48:41]process_json_proto returns [09:48:41]Send response to host [09:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119024,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:48:41]free response buf [09:48:41]execute_script done [09:48:41]execute_script returns [09:48:41]free content buf [09:48:41]Sock 7.Close socket [09:48:41]Sock 7.Thread stoped [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:53]accept exits with 9 [09:49:53]New connection [09:49:53]New thread 3067239780 created [09:49:53]Thread 3067383140 joined [09:49:53]Waiting for new connection... [09:49:53] Sock 9.Parse request [09:49:53]Sock 9.Check first char [09:49:53]Sock 9.First char is OK [09:49:53]request: POST /json_proto HTTP/1.0 [09:49:53]Method: POST [09:49:53]URL: /json_proto [09:49:53]Method is POST - this is cgi request [09:49:53]url: /json_proto [09:49:53]query_string will be loaded in cgi processing [09:49:53]execute_cgi json_proto POST (null) [09:49:53]execute_cgi path=json_proto method=POST [09:49:53]POST find Content-Length [09:49:53]Host: 172.17.45.7:8080 [09:49:53]Content-Length: 677 [09:49:53]Content-Type: application/json [09:49:53] [09:49:53]POST finish read [09:49:53]Found Content-Length = 677 [09:49:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:49:53]execute_script... [09:49: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)949944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:49:53]POST & json_proto [09:49:53]process_json_proto [09:49:53]json parsed OK: [09:49:53]protocol is kg_v1.0 [09:49:53]action value=close_receipt [09:49:53]process_action close_receipt [09:49:53]cmd_close_receipt [09:49:53]MH_GetDate [09:49:53]Write to MH i2c: F0 00 00 90 A3 22 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: F0 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: F0 09 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: F0 09 00 90 A3 00 4B B7 A8 66 90 0F 3E 66 7E [09:49:53]GetLastDocTimeStamp 1722332927 [09:49:53]current date 1722333003 [09:49:53]FM_GetShiftState [09:49:53]SAM_PROTO_GetShiftState [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 13 01 00 [09:49:53]Write to MH i2c: E2 08 00 91 A3 80 13 01 00 00 00 00 00 B1 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0E 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0E 00 91 A3 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 7C [09:49:53]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_GetShiftState done [09:49:53]FM_GetShiftState done [09:49:53]opened in 1722298242 [09:49:53]opened+sec_in_day 1722384642 [09:49:53]quantity*price = 30035 [09:49:53]sum+1 = 30036 [09:49:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 77 30.07.2024 09:50 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119025 ФПД: 224381201258719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119025&fm=224381201258719&tin=02508201610067®Number=0000000000092660&sum=30000 [09:49:54]StoreToDocumentArchive [09:49:54]shift 435 fd 119025 [09:49:54]save to /storage/0435/doc_00119025 [09:49:54]save last doc name /storage/0435/doc_00119025 to /storage/kkm_last_doc_name [09:49:54]save OK [09:49:54]Clear old archive folders... [09:49:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:54]tlvbuf is 01E54030 [09:49:54]SAM_PROTO_ClearQueue [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 09 00 00 [09:49:54]Write to MH i2c: E2 08 00 9E A3 80 09 00 00 00 00 00 00 B3 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 9E A3 00 90 00 B5 [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]SAM_PROTO_ClearQueue done [09:49:54]KKMCreateOFDPacket [09:49:54]OFDProtocolAddRootSTLVToBuf [09:49:54]FM_MakeSignedData [09:49:54]FM_MakeSignedData [09:49:54]SAM_PROTO_SignData [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 0D 01 02 [09:49:54]Write to MH i2c: E2 08 00 9F A3 80 0D 01 02 00 00 00 00 BB [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 9F A3 00 90 00 B6 [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]wFMCommunicate request_size=255 [09:49:54]MH_SAM_APDU [09:49: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 4D 00 00 00 F4 03 04 00 4B B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D0 01 00 35 04 06 00 CC [09:49:54]Write to MH i2c: E2 02 01 A0 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 4D 00 00 00 F4 03 04 00 4B B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D0 01 00 35 04 06 00 CC 00 00 FD [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 A0 A3 00 90 00 B7 [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]wFMCommunicate request_size=10 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 0D 02 02 05 12 D1 CB 98 DF [09:49:54]Write to MH i2c: E2 0D 00 A1 A3 80 0D 02 02 05 00 12 D1 CB 98 DF 00 00 ED [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 A1 A3 00 90 00 B8 [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 0D 03 02 [09:49:54]Write to MH i2c: E2 08 00 A2 A3 80 0D 03 02 00 00 00 00 C0 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0B 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0B 00 A2 A3 00 50 54 E1 93 CE C8 AB 4C 90 00 66 [09:49:54]RAPDU: 50 54 E1 93 CE C8 AB 4C 90 00 [09:49:54]wFMCommunicate OK [09:49:54]SAM_PROTO_SignData done [09:49:54]FM_MakeSignedData done [09:49:54]CreateOFDProtocolMessage [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 11 00 00 [09:49:54]Write to MH i2c: E2 08 00 A3 A3 80 11 00 00 00 00 00 00 C0 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 A3 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1B [09:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:49:54]wFMCommunicate OK [09:49:54]CreateOFDProtocolMessage done [09:49:54]OFDSenderStorePacket 119025 [09:49:54]StoreOFDPacket docnum=119025 [09:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 20 D1 07 01 2C 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 4D 00 00 00 F4 03 04 00 4B B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D0 01 00 35 04 06 00 CC 12 D1 CB 98 DF 50 54 E1 93 CE C8 AB 4C [09:49:54]CheckFolder [09:49:54]dirname=/storage/ofd_packets [09:49:54]CheckFolder done [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00119025 [09:49:54]NVStorageSaveData ofd_packets/00119025 [09:49:54]File name is /storage/ofd_packets/00119025 [09:49:54]Write 301 bytes [09:49:54]NVStorageSaveData done [09:49:54]OFDSenderStorePacket done [09:49:54]KKMCreateOFDPacket done [09:49:54]NVStorageSaveData kkm_last_timestamp [09:49:54]File name is /storage/kkm_last_timestamp [09:49:54]Write 4 bytes [09:49:54]NVStorageSaveData done [09:49:54]ExternCall_PrintAddStr [09:49:54]wPrintStart [09:49:54]Write to MH i2c: 01 00 00 A4 A3 47 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 A4 A3 00 00 00 00 00 FF 0F 5C [09:49:54]RasterBufferAndPrint [09:49:54]line Счет N : (1)949944 [09:49:54]line ИНН: 02508201610067 [09:49:54]line Контрольно-Кассовый Чек [09:49:54]line ПРОДАЖА [09:49:54]line ТРК (МРК, ГНК) : 51 [09:49:54]line Товар: 2710124130 [09:49:54]line Аи-92-К-4 [09:49:54]line 4.430 * 67.80 [09:49:54]line = 300.35 [09:49:54]line НДС 12% НСП 1% [09:49:54]line > о реализуемом товаре [09:49:54]line ОКРУГЛЕНИЕ: -0.35 [09:49:54]line ИТОГО: 300.00 [09:49:54]line Внесено: 300.00 [09:49:54]line СДАЧА: 0.00 [09:49:54]line НСП 1% : 2.66 [09:49:54]line НДС 12% : 31.90 [09:49:54]line Наличными: 300.00 [09:49:54]line Безнал.: 0.00 [09:49:54]line Место: АЗС № 134 "Партнер Нефть" [09:49:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:49:54]line СНО: Общий режим [09:49:54]line Чек 77 30.07.2024 09:50 [09:49:54]line Смена: 435 ФФД: 1.0 [09:49:54]line ЗНМ: 0300000044 [09:49:54]line РНМ: 0000000000092660 [09:49:54]line Версия ККМ: 001 [09:49:54]line ФМ: 0000000000874939 [09:49:54]line ФД: 119025 [09:49:54]line ФПД: 224381201258719 [09:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095003&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119025&fm=224381201258719&tin=02508201610067®Number=0000000000092660&sum=30000 [09:49:54]written 0, free lines is 4095 [09:49:54]OFD Sender: Processing packet 119025 [packets to send 86, broken 85] [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00119025 [09:49:54]OFD Sender: To server: pG, [09:49:54]CommunicateWithHost lk.salyk.kg:30040 [09:49:54]ConnectInit lk.salyk.kg [09:49:55]Connected sock=10 [09:49:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 20 D1 07 01 2C 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 4D 00 00 00 F4 03 04 00 4B B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D0 01 00 35 04 06 00 CC 12 D1 CB 98 DF 50 54 E1 93 CE C8 AB 4C [09:49:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C 8D 47 00 20 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F1 D0 01 00 F4 03 04 00 D6 64 A8 66 B6 04 01 00 00 38 27 2B 77 06 24 44 7A [09:49:55]CommunicateWithHost err = 0 [09:49:55]CheckOFDResponse [09:49:55]1017 (14) - 77093643461234 [09:49:55]1041 (16) - 0000000000874939 [09:49:55]1040 (4) - 119025 [09:49:55]1012 (4) - 30.07.2024 03:58 [09:49:55]1206 (1) - 0 [09:49:55]OFD Sender: Remove packet 119025 [09:49:55]ProducePacketName [09:49:55]name=ofd_packets/00119025 [09:49:55]NVStorageDeleteData [09:49:55]Write to MH i2c: 01 00 00 CE A3 71 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 CE A3 00 00 00 00 00 F8 0C 7C [09:49:55]RasterBufferAndPrint [09:49:55]line [09:49:55]line [09:49:55]line [09:49:55]line [09:49:55]line [09:49:55]written 0, free lines is 3327 [09:49:55]MH_Cut [09:49:55]Write to MH i2c: D1 01 00 D5 A3 01 4A [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: D1 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: D1 01 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: D1 01 00 D5 A3 00 49 [09:49:55]Write to MH i2c: 01 00 00 D6 A3 79 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]OFD Sender: No OFD packet to send [09:49:56]*** Cut start [09:49:56]*** Partial cut [09:49:56]*** CUTSNS_PIN = 1 [09:49:56]*** CUTSNS_PIN = 0 [09:49:56]*** Brake cut motor [09:49:56]Read from MH i2c: 01 [09:49:56]MH_I2C_Read... [09:49:56]*** Stop cut motor [09:49:56]*** Cut end [09:49:56]Read from MH i2c: 01 07 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: 01 07 00 D6 A3 00 00 00 00 00 FF 0F 8E [09:49:56]process_action close_receipt done [09:49:56]requested_data is exist [09:49:56]produce_requested_data [09:49:56]requested_item fm.sn is exist - process it [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 11 00 00 [09:49:56]Write to MH i2c: E2 08 00 D7 A3 80 11 00 00 00 00 00 00 F4 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 D7 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4F [09:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:49:56]wFMCommunicate OK [09:49:56]requested_item fd.num is exist - process it [09:49:56]SAM_PROTO_GetFieldsCounters [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 13 00 00 [09:49:56]Write to MH i2c: E2 08 00 D8 A3 80 13 00 00 00 00 00 00 F7 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 62 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 62 00 D8 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [09:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F1 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_GetFieldsCounters done [09:49:56]requested_item shift.num is exist - process it [09:49:56]requested_item shift.opened is exist - process it [09:49:56]req_shift_opened [09:49:56]FM_GetShiftState [09:49:56]SAM_PROTO_GetShiftState [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 13 01 00 [09:49:56]Write to MH i2c: E2 08 00 D9 A3 80 13 01 00 00 00 00 00 F9 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0E 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0E 00 D9 A3 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C4 [09:49:56]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_GetShiftState done [09:49:56]FM_GetShiftState done [09:49:56]req_shift_opened done [09:49:56]requested_item shift.open_date is exist - process it [09:49:56]req_shift_open_date [09:49:56]req_shift_open_date done [09:49:56]produce_requested_data done [09:49:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119025,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:49:56]process_action_free close_receipt [09:49:56]json_value_free [09:49:56]json_value_free done [09:49:56]process_json_proto returns [09:49:56]Send response to host [09:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119025,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:49:56]free response buf [09:49:56]execute_script done [09:49:56]execute_script returns [09:49:56]free content buf [09:49:56]Sock 9.Close socket [09:49:56]Sock 9.Thread stoped [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:37]accept exits with 7 [09:51:37]New connection [09:51:37]New thread 3067383140 created [09:51:37]Thread 3067239780 joined [09:51:37]Waiting for new connection... [09:51:37] Sock 7.Parse request [09:51:37]Sock 7.Check first char [09:51:37]Sock 7.First char is OK [09:51:37]request: POST /json_proto HTTP/1.0 [09:51:37]Method: POST [09:51:37]URL: /json_proto [09:51:37]Method is POST - this is cgi request [09:51:37]url: /json_proto [09:51:37]query_string will be loaded in cgi processing [09:51:37]execute_cgi json_proto POST (null) [09:51:37]execute_cgi path=json_proto method=POST [09:51:37]POST find Content-Length [09:51:37]Host: 172.17.45.7:8080 [09:51:37]Content-Length: 677 [09:51:37]Content-Type: application/json [09:51:37] [09:51:37]POST finish read [09:51:37]Found Content-Length = 677 [09:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:37]execute_script... [09:51: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)949945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:37]POST & json_proto [09:51:37]process_json_proto [09:51:37]json parsed OK: [09:51:37]protocol is kg_v1.0 [09:51:37]action value=close_receipt [09:51:37]process_action close_receipt [09:51:37]cmd_close_receipt [09:51:37]MH_GetDate [09:51:37]Write to MH i2c: F0 00 00 DA A3 6C [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: F0 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: F0 09 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: F0 09 00 DA A3 00 B3 B7 A8 66 90 0F 3E 66 30 [09:51:37]GetLastDocTimeStamp 1722333003 [09:51:37]current date 1722333107 [09:51:37]FM_GetShiftState [09:51:37]SAM_PROTO_GetShiftState [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 13 01 00 [09:51:37]Write to MH i2c: E2 08 00 DB A3 80 13 01 00 00 00 00 00 FB [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0E 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0E 00 DB A3 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C6 [09:51:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_GetShiftState done [09:51:37]FM_GetShiftState done [09:51:37]opened in 1722298242 [09:51:37]opened+sec_in_day 1722384642 [09:51:37]quantity*price = 60003 [09:51:37]sum+1 = 60004 [09:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 78 30.07.2024 09:51 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119026 ФПД: 75782667159797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095147&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119026&fm=75782667159797&tin=02508201610067®Number=0000000000092660&sum=60000 [09:51:38]StoreToDocumentArchive [09:51:38]shift 435 fd 119026 [09:51:38]save to /storage/0435/doc_00119026 [09:51:38]save last doc name /storage/0435/doc_00119026 to /storage/kkm_last_doc_name [09:51:38]save OK [09:51:38]Clear old archive folders... [09:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:38]tlvbuf is 021C8BF0 [09:51:38]SAM_PROTO_ClearQueue [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 09 00 00 [09:51:38]Write to MH i2c: E2 08 00 E8 A3 80 09 00 00 00 00 00 00 FD [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 E8 A3 00 90 00 FF [09:51:39]RAPDU: 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_ClearQueue done [09:51:39]KKMCreateOFDPacket [09:51:39]OFDProtocolAddRootSTLVToBuf [09:51:39]FM_MakeSignedData [09:51:39]FM_MakeSignedData [09:51:39]SAM_PROTO_SignData [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 0D 01 02 [09:51:39]Write to MH i2c: E2 08 00 E9 A3 80 0D 01 02 00 00 00 00 05 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 E9 A3 00 90 00 00 [09:51:39]RAPDU: 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=255 [09:51:39]MH_SAM_APDU [09:51: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D0 01 00 35 04 06 00 44 [09:51:39]Write to MH i2c: E2 02 01 EA A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D0 01 00 35 04 06 00 44 00 00 D1 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 EA A3 00 90 00 01 [09:51:39]RAPDU: 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=10 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 0D 02 02 05 EC 86 F4 C8 F5 [09:51:39]Write to MH i2c: E2 0D 00 EB A3 80 0D 02 02 05 00 EC 86 F4 C8 F5 00 00 35 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 03 00 EB A3 00 90 00 02 [09:51:39]RAPDU: 90 00 [09:51:39]wFMCommunicate OK [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 0D 03 02 [09:51:39]Write to MH i2c: E2 08 00 EC A3 80 0D 03 02 00 00 00 00 0A [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0B 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 0B 00 EC A3 00 A3 1B E1 73 95 57 EC 4C 90 00 41 [09:51:39]RAPDU: A3 1B E1 73 95 57 EC 4C 90 00 [09:51:39]wFMCommunicate OK [09:51:39]SAM_PROTO_SignData done [09:51:39]FM_MakeSignedData done [09:51:39]CreateOFDProtocolMessage [09:51:39]wFMCommunicate request_size=4 [09:51:39]MH_SAM_APDU [09:51:39]CAPDU: 80 11 00 00 [09:51:39]Write to MH i2c: E2 08 00 ED A3 80 11 00 00 00 00 00 00 0A [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:39]Read from MH i2c: E2 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: E2 17 00 ED A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 65 [09:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:51:39]wFMCommunicate OK [09:51:39]CreateOFDProtocolMessage done [09:51:39]OFDSenderStorePacket 119026 [09:51:39]StoreOFDPacket docnum=119026 [09:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E9 55 07 01 77 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D0 01 00 35 04 06 00 44 EC 86 F4 C8 F5 A3 1B E1 73 95 57 EC 4C [09:51:39]CheckFolder [09:51:39]dirname=/storage/ofd_packets [09:51:39]CheckFolder done [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00119026 [09:51:39]NVStorageSaveData ofd_packets/00119026 [09:51:39]File name is /storage/ofd_packets/00119026 [09:51:39]Write 301 bytes [09:51:39]NVStorageSaveData done [09:51:39]OFDSenderStorePacket done [09:51:39]KKMCreateOFDPacket done [09:51:39]NVStorageSaveData kkm_last_timestamp [09:51:39]File name is /storage/kkm_last_timestamp [09:51:39]Write 4 bytes [09:51:39]NVStorageSaveData done [09:51:39]ExternCall_PrintAddStr [09:51:39]wPrintStart [09:51:39]Write to MH i2c: 01 00 00 EE A3 91 [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 EE A3 00 00 00 00 00 FF 0F A6 [09:51:39]RasterBufferAndPrint [09:51:39]line Счет N : (1)949945 [09:51:39]line ИНН: 02508201610067 [09:51:39]line Контрольно-Кассовый Чек [09:51:39]line ПРОДАЖА [09:51:39]line ТРК (МРК, ГНК) : 31 [09:51:39]line Товар: 2710124130 [09:51:39]line Аи-92-К-4 [09:51:39]line 8.850 * 67.80 [09:51:39]line = 600.03 [09:51:39]line НДС 12% НСП 1% [09:51:39]line > о реализуемом товаре [09:51:39]line ОКРУГЛЕНИЕ: -0.03 [09:51:39]line ИТОГО: 600.00 [09:51:39]line Внесено: 600.00 [09:51:39]line СДАЧА: 0.00 [09:51:39]line НСП 1% : 5.31 [09:51:39]line НДС 12% : 63.72 [09:51:39]line Наличными: 600.00 [09:51:39]line Безнал.: 0.00 [09:51:39]line Место: АЗС № 134 "Партнер Нефть" [09:51:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:51:39]line СНО: Общий режим [09:51:39]line Чек 78 30.07.2024 09:51 [09:51:39]line Смена: 435 ФФД: 1.0 [09:51:39]line ЗНМ: 0300000044 [09:51:39]line РНМ: 0000000000092660 [09:51:39]line Версия ККМ: 001 [09:51:39]line ФМ: 0000000000874939 [09:51:39]line ФД: 119026 [09:51:39]line ФПД: 75782667159797 [09:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095147&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119026&fm=75782667159797&tin=02508201610067®Number=0000000000092660&sum=60000 [09:51:39]written 0, free lines is 4095 [09:51:39]OFD Sender: Processing packet 119026 [packets to send 86, broken 85] [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00119026 [09:51:39]OFD Sender: To server: pG, [09:51:39]CommunicateWithHost lk.salyk.kg:30040 [09:51:39]ConnectInit lk.salyk.kg [09:51:39]Connected sock=9 [09:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E9 55 07 01 77 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 B3 B7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F2 D0 01 00 35 04 06 00 44 EC 86 F4 C8 F5 A3 1B E1 73 95 57 EC 4C [09:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 8B 47 00 F8 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 34 39 33 39 10 04 04 00 F2 D0 01 00 F4 03 04 00 3F 65 A8 66 B6 04 01 00 00 CD EF 1C 0E 34 73 B3 BF [09:51:39]CommunicateWithHost err = 0 [09:51:39]CheckOFDResponse [09:51:39]1017 (14) - 77093643461234 [09:51:39]1041 (16) - 0000000000874939 [09:51:39]1040 (4) - 119026 [09:51:39]1012 (4) - 30.07.2024 03:59 [09:51:39]1206 (1) - 0 [09:51:39]OFD Sender: Remove packet 119026 [09:51:39]ProducePacketName [09:51:39]name=ofd_packets/00119026 [09:51:39]NVStorageDeleteData [09:51:39]Write to MH i2c: 01 00 00 18 A4 BC [09:51:39]Write i2c OK [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 [09:51:39]MH_I2C_Read... [09:51:39]Read from MH i2c: 01 07 00 18 A4 00 00 00 00 00 F8 0C C7 [09:51:39]RasterBufferAndPrint [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]line [09:51:39]written 0, free lines is 3327 [09:51:40]MH_Cut [09:51:40]Write to MH i2c: D1 01 00 1F A4 01 95 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: D1 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: D1 01 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: D1 01 00 1F A4 00 94 [09:51:40]Write to MH i2c: 01 00 00 20 A4 C4 [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]OFD Sender: No OFD packet to send [09:51:40]*** Cut start [09:51:40]*** Partial cut [09:51:40]*** CUTSNS_PIN = 1 [09:51:40]*** CUTSNS_PIN = 0 [09:51:40]*** Brake cut motor [09:51:41]Read from MH i2c: 01 [09:51:41]MH_I2C_Read... [09:51:41]*** Stop cut motor [09:51:41]*** Cut end [09:51:41]Read from MH i2c: 01 07 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: 01 07 00 20 A4 00 00 00 00 00 FF 0F D9 [09:51:41]process_action close_receipt done [09:51:41]requested_data is exist [09:51:41]produce_requested_data [09:51:41]requested_item fm.sn is exist - process it [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 11 00 00 [09:51:41]Write to MH i2c: E2 08 00 21 A4 80 11 00 00 00 00 00 00 3F [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 17 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 17 00 21 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9A [09:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:51:41]wFMCommunicate OK [09:51:41]requested_item fd.num is exist - process it [09:51:41]SAM_PROTO_GetFieldsCounters [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 13 00 00 [09:51:41]Write to MH i2c: E2 08 00 22 A4 80 13 00 00 00 00 00 00 42 [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 62 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 62 00 22 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F2 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetFieldsCounters done [09:51:41]requested_item shift.num is exist - process it [09:51:41]requested_item shift.opened is exist - process it [09:51:41]req_shift_opened [09:51:41]FM_GetShiftState [09:51:41]SAM_PROTO_GetShiftState [09:51:41]wFMCommunicate request_size=4 [09:51:41]MH_SAM_APDU [09:51:41]CAPDU: 80 13 01 00 [09:51:41]Write to MH i2c: E2 08 00 23 A4 80 13 01 00 00 00 00 00 44 [09:51:41]Write i2c OK [09:51:41]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 23 A4 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0F [09:51:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetShiftState done [09:51:41]FM_GetShiftState done [09:51:41]req_shift_opened done [09:51:41]requested_item shift.open_date is exist - process it [09:51:41]req_shift_open_date [09:51:41]req_shift_open_date done [09:51:41]produce_requested_data done [09:51:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119026,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:51:41]process_action_free close_receipt [09:51:41]json_value_free [09:51:41]json_value_free done [09:51:41]process_json_proto returns [09:51:41]Send response to host [09:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119026,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:51:41]free response buf [09:51:41]execute_script done [09:51:41]execute_script returns [09:51:41]free content buf [09:51:41]Sock 7.Close socket [09:51:41]Sock 7.Thread stoped [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:11]accept exits with 10 [09:58:11]New connection [09:58:11]New thread 3067239780 created [09:58:11]Thread 3067383140 joined [09:58:11]Waiting for new connection... [09:58:11] Sock 10.Parse request [09:58:11]Sock 10.Check first char [09:58:11]Sock 10.First char is OK [09:58:11]request: POST /json_proto HTTP/1.0 [09:58:11]Method: POST [09:58:11]URL: /json_proto [09:58:11]Method is POST - this is cgi request [09:58:11]url: /json_proto [09:58:11]query_string will be loaded in cgi processing [09:58:11]execute_cgi json_proto POST (null) [09:58:11]execute_cgi path=json_proto method=POST [09:58:11]POST find Content-Length [09:58:11]Host: 172.17.45.7:8080 [09:58:11]Content-Length: 819 [09:58:11]Content-Type: application/json [09:58:11] [09:58:11]POST finish read [09:58:11]Found Content-Length = 819 [09:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:11]execute_script... [09:58: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)949946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:11]POST & json_proto [09:58:11]process_json_proto [09:58:11]json parsed OK: [09:58:11]protocol is kg_v1.0 [09:58:11]action value=close_receipt [09:58:11]process_action close_receipt [09:58:11]cmd_close_receipt [09:58:11]MH_GetDate [09:58:11]Write to MH i2c: F0 00 00 24 A4 B7 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: F0 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: F0 09 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: F0 09 00 24 A4 00 3D B9 A8 66 90 0F 3E 66 07 [09:58:11]GetLastDocTimeStamp 1722333107 [09:58:11]current date 1722333501 [09:58:11]FM_GetShiftState [09:58:11]SAM_PROTO_GetShiftState [09:58:11]wFMCommunicate request_size=4 [09:58:11]MH_SAM_APDU [09:58:11]CAPDU: 80 13 01 00 [09:58:11]Write to MH i2c: E2 08 00 25 A4 80 13 01 00 00 00 00 00 46 [09:58:11]Write i2c OK [09:58:11]MH_I2C_Read... [09:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:11]Read from MH i2c: E2 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 0E 00 [09:58:11]MH_I2C_Read... [09:58:11]Read from MH i2c: E2 0E 00 25 A4 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 11 [09:58:11]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:58:11]wFMCommunicate OK [09:58:11]SAM_PROTO_GetShiftState done [09:58:11]FM_GetShiftState done [09:58:11]opened in 1722298242 [09:58:11]opened+sec_in_day 1722384642 [09:58:11]quantity*price = 400050 [09:58:11]sum+1 = 400051 [09:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 79 30.07.2024 09:58 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119027 ФПД: 75527078986844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119027&fm=75527078986844&tin=02508201610067®Number=0000000000092660&sum=400000 [09:58:12]StoreToDocumentArchive [09:58:12]shift 435 fd 119027 [09:58:12]save to /storage/0435/doc_00119027 [09:58:12]save last doc name /storage/0435/doc_00119027 to /storage/kkm_last_doc_name [09:58:12]save OK [09:58:12]Clear old archive folders... [09:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:12]tlvbuf is 01E53F60 [09:58:12]SAM_PROTO_ClearQueue [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 09 00 00 [09:58:12]Write to MH i2c: E2 08 00 32 A4 80 09 00 00 00 00 00 00 48 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 32 A4 00 90 00 4A [09:58:12]RAPDU: 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_ClearQueue done [09:58:12]KKMCreateOFDPacket [09:58:12]OFDProtocolAddRootSTLVToBuf [09:58:12]FM_MakeSignedData [09:58:12]FM_MakeSignedData [09:58:12]SAM_PROTO_SignData [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 0D 01 02 [09:58:12]Write to MH i2c: E2 08 00 33 A4 80 0D 01 02 00 00 00 00 50 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 33 A4 00 90 00 4B [09:58:12]RAPDU: 90 00 [09:58:12]wFMCommunicate OK [09:58:12]wFMCommunicate request_size=255 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D0 01 00 35 04 06 00 44 B1 04 B6 [09:58:12]Write to MH i2c: E2 02 01 34 A4 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D0 01 00 35 04 06 00 44 B1 04 B6 00 00 7F [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 34 A4 00 90 00 4C [09:58:12]RAPDU: 90 00 [09:58:12]wFMCommunicate OK [09:58:12]wFMCommunicate request_size=7 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 0D 02 02 02 C4 5C [09:58:12]Write to MH i2c: E2 0A 00 35 A4 80 0D 02 02 02 00 C4 5C 00 00 77 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 03 00 35 A4 00 90 00 4D [09:58:12]RAPDU: 90 00 [09:58:12]wFMCommunicate OK [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 0D 03 02 [09:58:12]Write to MH i2c: E2 08 00 36 A4 80 0D 03 02 00 00 00 00 55 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0B 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 0B 00 36 A4 00 C3 4E 0B 46 FD AD 9D 18 90 00 17 [09:58:12]RAPDU: C3 4E 0B 46 FD AD 9D 18 90 00 [09:58:12]wFMCommunicate OK [09:58:12]SAM_PROTO_SignData done [09:58:12]FM_MakeSignedData done [09:58:12]CreateOFDProtocolMessage [09:58:12]wFMCommunicate request_size=4 [09:58:12]MH_SAM_APDU [09:58:12]CAPDU: 80 11 00 00 [09:58:12]Write to MH i2c: E2 08 00 37 A4 80 11 00 00 00 00 00 00 55 [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:12]Read from MH i2c: E2 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 17 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: E2 17 00 37 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B0 [09:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:12]wFMCommunicate OK [09:58:12]CreateOFDProtocolMessage done [09:58:12]OFDSenderStorePacket 119027 [09:58:12]StoreOFDPacket docnum=119027 [09:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 28 04 01 63 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D0 01 00 35 04 06 00 44 B1 04 B6 C4 5C C3 4E 0B 46 FD AD 9D 18 [09:58:12]CheckFolder [09:58:12]dirname=/storage/ofd_packets [09:58:12]CheckFolder done [09:58:12]ProducePacketName [09:58:12]name=ofd_packets/00119027 [09:58:12]NVStorageSaveData ofd_packets/00119027 [09:58:12]File name is /storage/ofd_packets/00119027 [09:58:12]Write 298 bytes [09:58:12]NVStorageSaveData done [09:58:12]OFDSenderStorePacket done [09:58:12]KKMCreateOFDPacket done [09:58:12]NVStorageSaveData kkm_last_timestamp [09:58:12]File name is /storage/kkm_last_timestamp [09:58:12]Write 4 bytes [09:58:12]NVStorageSaveData done [09:58:12]ExternCall_PrintAddStr [09:58:12]wPrintStart [09:58:12]Write to MH i2c: 01 00 00 38 A4 DC [09:58:12]Write i2c OK [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: 01 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: 01 07 00 [09:58:12]MH_I2C_Read... [09:58:12]Read from MH i2c: 01 07 00 38 A4 00 00 00 00 00 FF 0F F1 [09:58:12]RasterBufferAndPrint [09:58:12]line Счет N : (1)949946 [09:58:12]line ИНН: 02508201610067 [09:58:12]line Контрольно-Кассовый Чек [09:58:12]line ПРОДАЖА [09:58:12]line ТРК (МРК, ГНК) : 11 [09:58:12]line Товар: 2710194800 [09:58:12]line ДТ-К-5 [09:58:12]line 52.500 * 76.20 [09:58:12]line = 4000.50 [09:58:12]line НДС 12% НСП 1% [09:58:12]line > о реализуемом товаре [09:58:12]line ОКРУГЛЕНИЕ: -0.50 [09:58:12]line ИТОГО: 4000.00 [09:58:12]line НСП 1% : 35.40 [09:58:12]line НДС 12% : 424.83 [09:58:12]line Наличными: 0.00 [09:58:12]line Безнал.: 4000.00 [09:58:12]line Место: АЗС № 134 "Партнер Нефть" [09:58:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:58:12]line СНО: Общий режим [09:58:12]line Чек 79 30.07.2024 09:58 [09:58:12]line Смена: 435 ФФД: 1.0 [09:58:12]line ЗНМ: 0300000044 [09:58:12]line РНМ: 0000000000092660 [09:58:12]line Версия ККМ: 001 [09:58:12]line Платежная система: O! деньги [09:58:12]line ФМ: 0000000000874939 [09:58:12]line ФД: 119027 [09:58:12]line ФПД: 75527078986844 [09:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119027&fm=75527078986844&tin=02508201610067®Number=0000000000092660&sum=400000 [09:58:13]OFD Sender: Processing packet 119027 [packets to send 86, broken 85] [09:58:13]ProducePacketName [09:58:13]name=ofd_packets/00119027 [09:58:13]OFD Sender: To server: pG, [09:58:13]CommunicateWithHost lk.salyk.kg:30040 [09:58:13]ConnectInit lk.salyk.kg [09:58:13]written 0, free lines is 4095 [09:58:13]Connected sock=9 [09:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 28 04 01 63 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 3D B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F3 D0 01 00 35 04 06 00 44 B1 04 B6 C4 5C C3 4E 0B 46 FD AD 9D 18 [09:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 F4 47 00 B6 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 34 39 33 39 10 04 04 00 F3 D0 01 00 F4 03 04 00 C8 66 A8 66 B6 04 01 00 00 CF 81 AC C4 CD D6 5C BD [09:58:13]CommunicateWithHost err = 0 [09:58:13]CheckOFDResponse [09:58:13]1017 (14) - 77093643461234 [09:58:13]1041 (16) - 0000000000874939 [09:58:13]1040 (4) - 119027 [09:58:13]1012 (4) - 30.07.2024 04:06 [09:58:13]1206 (1) - 0 [09:58:13]OFD Sender: Remove packet 119027 [09:58:13]ProducePacketName [09:58:13]name=ofd_packets/00119027 [09:58:13]NVStorageDeleteData [09:58:13]Write to MH i2c: 01 00 00 62 A4 06 [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 07 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: 01 07 00 62 A4 00 00 00 00 00 EB 0C 04 [09:58:13]RasterBufferAndPrint [09:58:13]line [09:58:13]line [09:58:13]line [09:58:13]line [09:58:13]line [09:58:13]written 0, free lines is 3314 [09:58:13]MH_Cut [09:58:13]Write to MH i2c: D1 01 00 69 A4 01 DF [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: D1 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: D1 01 00 [09:58:13]MH_I2C_Read... [09:58:13]Read from MH i2c: D1 01 00 69 A4 00 DE [09:58:13]Write to MH i2c: 01 00 00 6A A4 0E [09:58:13]Write i2c OK [09:58:13]MH_I2C_Read... [09:58:13]OFD Sender: No OFD packet to send [09:58:14]*** Cut start [09:58:14]*** Partial cut [09:58:14]*** CUTSNS_PIN = 1 [09:58:14]*** CUTSNS_PIN = 0 [09:58:14]*** Brake cut motor [09:58:14]Read from MH i2c: 01 [09:58:14]MH_I2C_Read... [09:58:14]*** Stop cut motor [09:58:14]*** Cut end [09:58:14]Read from MH i2c: 01 07 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: 01 07 00 6A A4 00 00 00 00 00 FF 0F 23 [09:58:14]process_action close_receipt done [09:58:14]requested_data is exist [09:58:14]produce_requested_data [09:58:14]requested_item fm.sn is exist - process it [09:58:14]wFMCommunicate request_size=4 [09:58:14]MH_SAM_APDU [09:58:14]CAPDU: 80 11 00 00 [09:58:14]Write to MH i2c: E2 08 00 6B A4 80 11 00 00 00 00 00 00 89 [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:14]Read from MH i2c: E2 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: E2 17 00 [09:58:14]MH_I2C_Read... [09:58:14]Read from MH i2c: E2 17 00 6B A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E4 [09:58:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:14]wFMCommunicate OK [09:58:14]requested_item fd.num is exist - process it [09:58:14]SAM_PROTO_GetFieldsCounters [09:58:14]wFMCommunicate request_size=4 [09:58:14]MH_SAM_APDU [09:58:14]CAPDU: 80 13 00 00 [09:58:14]Write to MH i2c: E2 08 00 6C A4 80 13 00 00 00 00 00 00 8C [09:58:14]Write i2c OK [09:58:14]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 62 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 62 00 6C A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F3 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:15]wFMCommunicate OK [09:58:15]SAM_PROTO_GetFieldsCounters done [09:58:15]requested_item shift.num is exist - process it [09:58:15]requested_item shift.opened is exist - process it [09:58:15]req_shift_opened [09:58:15]FM_GetShiftState [09:58:15]SAM_PROTO_GetShiftState [09:58:15]wFMCommunicate request_size=4 [09:58:15]MH_SAM_APDU [09:58:15]CAPDU: 80 13 01 00 [09:58:15]Write to MH i2c: E2 08 00 6D A4 80 13 01 00 00 00 00 00 8E [09:58:15]Write i2c OK [09:58:15]MH_I2C_Read... [09:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:15]Read from MH i2c: E2 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 0E 00 [09:58:15]MH_I2C_Read... [09:58:15]Read from MH i2c: E2 0E 00 6D A4 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 59 [09:58:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:58:15]wFMCommunicate OK [09:58:15]SAM_PROTO_GetShiftState done [09:58:15]FM_GetShiftState done [09:58:15]req_shift_opened done [09:58:15]requested_item shift.open_date is exist - process it [09:58:15]req_shift_open_date [09:58:15]req_shift_open_date done [09:58:15]produce_requested_data done [09:58:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119027,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:58:15]process_action_free close_receipt [09:58:15]json_value_free [09:58:15]json_value_free done [09:58:15]process_json_proto returns [09:58:15]Send response to host [09:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119027,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:58:15]free response buf [09:58:15]execute_script done [09:58:15]execute_script returns [09:58:15]free content buf [09:58:15]Sock 10.Close socket [09:58:15]Sock 10.Thread stoped [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:34]accept exits with 7 [09:58:34]New connection [09:58:34]New thread 3067383140 created [09:58:34]Thread 3067239780 joined [09:58:34]Waiting for new connection... [09:58:34] Sock 7.Parse request [09:58:34]Sock 7.Check first char [09:58:34]Sock 7.First char is OK [09:58:34]request: POST /json_proto HTTP/1.0 [09:58:34]Method: POST [09:58:34]URL: /json_proto [09:58:34]Method is POST - this is cgi request [09:58:34]url: /json_proto [09:58:34]query_string will be loaded in cgi processing [09:58:34]execute_cgi json_proto POST (null) [09:58:34]execute_cgi path=json_proto method=POST [09:58:34]POST find Content-Length [09:58:34]Host: 172.17.45.7:8080 [09:58:34]Content-Length: 677 [09:58:34]Content-Type: application/json [09:58:34] [09:58:34]POST finish read [09:58:34]Found Content-Length = 677 [09:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:58:34]execute_script... [09:58: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)949947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:58:34]POST & json_proto [09:58:34]process_json_proto [09:58:34]json parsed OK: [09:58:34]protocol is kg_v1.0 [09:58:34]action value=close_receipt [09:58:34]process_action close_receipt [09:58:34]cmd_close_receipt [09:58:34]MH_GetDate [09:58:34]Write to MH i2c: F0 00 00 6E A4 01 [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: F0 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: F0 09 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: F0 09 00 6E A4 00 54 B9 A8 66 90 0F 3E 66 68 [09:58:34]GetLastDocTimeStamp 1722333501 [09:58:34]current date 1722333524 [09:58:34]FM_GetShiftState [09:58:34]SAM_PROTO_GetShiftState [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 13 01 00 [09:58:34]Write to MH i2c: E2 08 00 6F A4 80 13 01 00 00 00 00 00 90 [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 0E 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 0E 00 6F A4 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5B [09:58:34]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:58:34]wFMCommunicate OK [09:58:34]SAM_PROTO_GetShiftState done [09:58:34]FM_GetShiftState done [09:58:34]opened in 1722298242 [09:58:34]opened+sec_in_day 1722384642 [09:58:34]quantity*price = 30035 [09:58:34]sum+1 = 30036 [09:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 80 30.07.2024 09:58 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119028 ФПД: 258531646213220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119028&fm=258531646213220&tin=02508201610067®Number=0000000000092660&sum=30000 [09:58:35]StoreToDocumentArchive [09:58:35]shift 435 fd 119028 [09:58:35]save to /storage/0435/doc_00119028 [09:58:35]save last doc name /storage/0435/doc_00119028 to /storage/kkm_last_doc_name [09:58:35]save OK [09:58:35]Clear old archive folders... [09:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:35]tlvbuf is 01E52380 [09:58:35]SAM_PROTO_ClearQueue [09:58:35]wFMCommunicate request_size=4 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 09 00 00 [09:58:35]Write to MH i2c: E2 08 00 7C A4 80 09 00 00 00 00 00 00 92 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 7C A4 00 90 00 94 [09:58:36]RAPDU: 90 00 [09:58:36]wFMCommunicate OK [09:58:36]SAM_PROTO_ClearQueue done [09:58:36]KKMCreateOFDPacket [09:58:36]OFDProtocolAddRootSTLVToBuf [09:58:36]FM_MakeSignedData [09:58:36]FM_MakeSignedData [09:58:36]SAM_PROTO_SignData [09:58:36]wFMCommunicate request_size=4 [09:58:36]MH_SAM_APDU [09:58:36]CAPDU: 80 0D 01 02 [09:58:36]Write to MH i2c: E2 08 00 7D A4 80 0D 01 02 00 00 00 00 9A [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 7D A4 00 90 00 95 [09:58:36]RAPDU: 90 00 [09:58:36]wFMCommunicate OK [09:58:36]wFMCommunicate request_size=255 [09:58:36]MH_SAM_APDU [09:58: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 50 00 00 00 F4 03 04 00 54 B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D0 01 00 35 04 06 00 EB [09:58:36]Write to MH i2c: E2 02 01 7E A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 50 00 00 00 F4 03 04 00 54 B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D0 01 00 35 04 06 00 EB 00 00 0C [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 7E A4 00 90 00 96 [09:58:36]RAPDU: 90 00 [09:58:36]wFMCommunicate OK [09:58:36]wFMCommunicate request_size=10 [09:58:36]MH_SAM_APDU [09:58:36]CAPDU: 80 0D 02 02 05 22 16 EF 8C 64 [09:58:36]Write to MH i2c: E2 0D 00 7F A4 80 0D 02 02 05 00 22 16 EF 8C 64 00 00 BE [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 03 00 7F A4 00 90 00 97 [09:58:36]RAPDU: 90 00 [09:58:36]wFMCommunicate OK [09:58:36]wFMCommunicate request_size=4 [09:58:36]MH_SAM_APDU [09:58:36]CAPDU: 80 0D 03 02 [09:58:36]Write to MH i2c: E2 08 00 80 A4 80 0D 03 02 00 00 00 00 9F [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 0B 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 0B 00 80 A4 00 28 7B F4 99 E2 48 05 91 90 00 90 [09:58:36]RAPDU: 28 7B F4 99 E2 48 05 91 90 00 [09:58:36]wFMCommunicate OK [09:58:36]SAM_PROTO_SignData done [09:58:36]FM_MakeSignedData done [09:58:36]CreateOFDProtocolMessage [09:58:36]wFMCommunicate request_size=4 [09:58:36]MH_SAM_APDU [09:58:36]CAPDU: 80 11 00 00 [09:58:36]Write to MH i2c: E2 08 00 81 A4 80 11 00 00 00 00 00 00 9F [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 17 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 17 00 81 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [09:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:36]wFMCommunicate OK [09:58:36]CreateOFDProtocolMessage done [09:58:36]OFDSenderStorePacket 119028 [09:58:36]StoreOFDPacket docnum=119028 [09:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7D 8C 07 01 6E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 50 00 00 00 F4 03 04 00 54 B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D0 01 00 35 04 06 00 EB 22 16 EF 8C 64 28 7B F4 99 E2 48 05 91 [09:58:36]CheckFolder [09:58:36]dirname=/storage/ofd_packets [09:58:36]CheckFolder done [09:58:36]ProducePacketName [09:58:36]name=ofd_packets/00119028 [09:58:36]NVStorageSaveData ofd_packets/00119028 [09:58:36]File name is /storage/ofd_packets/00119028 [09:58:36]Write 301 bytes [09:58:36]NVStorageSaveData done [09:58:36]OFDSenderStorePacket done [09:58:36]KKMCreateOFDPacket done [09:58:36]NVStorageSaveData kkm_last_timestamp [09:58:36]File name is /storage/kkm_last_timestamp [09:58:36]Write 4 bytes [09:58:36]NVStorageSaveData done [09:58:36]ExternCall_PrintAddStr [09:58:36]wPrintStart [09:58:36]Write to MH i2c: 01 00 00 82 A4 26 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 07 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 07 00 82 A4 00 00 00 00 00 FF 0F 3B [09:58:36]RasterBufferAndPrint [09:58:36]line Счет N : (1)949947 [09:58:36]line ИНН: 02508201610067 [09:58:36]line Контрольно-Кассовый Чек [09:58:36]line ПРОДАЖА [09:58:36]line ТРК (МРК, ГНК) : 41 [09:58:36]line Товар: 2710124130 [09:58:36]line Аи-92-К-4 [09:58:36]line 4.430 * 67.80 [09:58:36]line = 300.35 [09:58:36]line НДС 12% НСП 1% [09:58:36]line > о реализуемом товаре [09:58:36]line ОКРУГЛЕНИЕ: -0.35 [09:58:36]line ИТОГО: 300.00 [09:58:36]line Внесено: 300.00 [09:58:36]line СДАЧА: 0.00 [09:58:36]line НСП 1% : 2.66 [09:58:36]line НДС 12% : 31.90 [09:58:36]line Наличными: 300.00 [09:58:36]line Безнал.: 0.00 [09:58:36]line Место: АЗС № 134 "Партнер Нефть" [09:58:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:58:36]line СНО: Общий режим [09:58:36]line Чек 80 30.07.2024 09:58 [09:58:36]line Смена: 435 ФФД: 1.0 [09:58:36]line ЗНМ: 0300000044 [09:58:36]line РНМ: 0000000000092660 [09:58:36]line Версия ККМ: 001 [09:58:36]line ФМ: 0000000000874939 [09:58:36]line ФД: 119028 [09:58:36]line ФПД: 258531646213220 [09:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T095844&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119028&fm=258531646213220&tin=02508201610067®Number=0000000000092660&sum=30000 [09:58:36]OFD Sender: Processing packet 119028 [packets to send 86, broken 85] [09:58:36]ProducePacketName [09:58:36]name=ofd_packets/00119028 [09:58:36]OFD Sender: To server: pG, [09:58:36]CommunicateWithHost lk.salyk.kg:30040 [09:58:36]ConnectInit lk.salyk.kg [09:58:36]written 0, free lines is 4095 [09:58:36]Connected sock=10 [09:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7D 8C 07 01 6E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 50 00 00 00 F4 03 04 00 54 B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D0 01 00 35 04 06 00 EB 22 16 EF 8C 64 28 7B F4 99 E2 48 05 91 [09:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 93 47 00 0E 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F4 D0 01 00 F4 03 04 00 E0 66 A8 66 B6 04 01 00 00 3B A8 99 6C 08 36 12 7B [09:58:37]CommunicateWithHost err = 0 [09:58:37]CheckOFDResponse [09:58:37]1017 (14) - 77093643461234 [09:58:37]1041 (16) - 0000000000874939 [09:58:37]1040 (4) - 119028 [09:58:37]1012 (4) - 30.07.2024 04:06 [09:58:37]1206 (1) - 0 [09:58:37]OFD Sender: Remove packet 119028 [09:58:37]ProducePacketName [09:58:37]name=ofd_packets/00119028 [09:58:37]NVStorageDeleteData [09:58:37]Write to MH i2c: 01 00 00 AC A4 50 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: 01 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: 01 07 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: 01 07 00 AC A4 00 00 00 00 00 F2 0C 55 [09:58:37]RasterBufferAndPrint [09:58:37]line [09:58:37]line [09:58:37]line [09:58:37]line [09:58:37]line [09:58:37]written 0, free lines is 3322 [09:58:37]MH_Cut [09:58:37]Write to MH i2c: D1 01 00 B3 A4 01 29 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: D1 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: D1 01 00 [09:58:37]MH_I2C_Read... [09:58:37]Read from MH i2c: D1 01 00 B3 A4 00 28 [09:58:37]Write to MH i2c: 01 00 00 B4 A4 58 [09:58:37]Write i2c OK [09:58:37]MH_I2C_Read... [09:58:37]OFD Sender: No OFD packet to send [09:58:38]*** Cut start [09:58:38]*** Partial cut [09:58:38]*** CUTSNS_PIN = 1 [09:58:38]*** CUTSNS_PIN = 0 [09:58:38]*** Brake cut motor [09:58:38]Read from MH i2c: 01 [09:58:38]MH_I2C_Read... [09:58:38]*** Stop cut motor [09:58:38]*** Cut end [09:58:38]Read from MH i2c: 01 07 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: 01 07 00 B4 A4 00 00 00 00 00 FF 0F 6D [09:58:38]process_action close_receipt done [09:58:38]requested_data is exist [09:58:38]produce_requested_data [09:58:38]requested_item fm.sn is exist - process it [09:58:38]wFMCommunicate request_size=4 [09:58:38]MH_SAM_APDU [09:58:38]CAPDU: 80 11 00 00 [09:58:38]Write to MH i2c: E2 08 00 B5 A4 80 11 00 00 00 00 00 00 D3 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:38]Read from MH i2c: E2 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 17 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 17 00 B5 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [09:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [09:58:38]wFMCommunicate OK [09:58:38]requested_item fd.num is exist - process it [09:58:38]SAM_PROTO_GetFieldsCounters [09:58:38]wFMCommunicate request_size=4 [09:58:38]MH_SAM_APDU [09:58:38]CAPDU: 80 13 00 00 [09:58:38]Write to MH i2c: E2 08 00 B6 A4 80 13 00 00 00 00 00 00 D6 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:38]Read from MH i2c: E2 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 62 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 62 00 B6 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09:58:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F4 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:38]wFMCommunicate OK [09:58:38]SAM_PROTO_GetFieldsCounters done [09:58:38]requested_item shift.num is exist - process it [09:58:38]requested_item shift.opened is exist - process it [09:58:38]req_shift_opened [09:58:38]FM_GetShiftState [09:58:38]SAM_PROTO_GetShiftState [09:58:38]wFMCommunicate request_size=4 [09:58:38]MH_SAM_APDU [09:58:38]CAPDU: 80 13 01 00 [09:58:38]Write to MH i2c: E2 08 00 B7 A4 80 13 01 00 00 00 00 00 D8 [09:58:38]Write i2c OK [09:58:38]MH_I2C_Read... [09:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:38]Read from MH i2c: E2 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 0E 00 [09:58:38]MH_I2C_Read... [09:58:38]Read from MH i2c: E2 0E 00 B7 A4 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A3 [09:58:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [09:58:38]wFMCommunicate OK [09:58:38]SAM_PROTO_GetShiftState done [09:58:38]FM_GetShiftState done [09:58:38]req_shift_opened done [09:58:38]requested_item shift.open_date is exist - process it [09:58:38]req_shift_open_date [09:58:38]req_shift_open_date done [09:58:38]produce_requested_data done [09:58:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119028,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [09:58:38]process_action_free close_receipt [09:58:38]json_value_free [09:58:38]json_value_free done [09:58:38]process_json_proto returns [09:58:38]Send response to host [09:58:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119028,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [09:58:38]free response buf [09:58:38]execute_script done [09:58:38]execute_script returns [09:58:38]free content buf [09:58:38]Sock 7.Close socket [09:58:38]Sock 7.Thread stoped [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:23]accept exits with 9 [10:01:23]New connection [10:01:23]New thread 3067239780 created [10:01:23]Thread 3067383140 joined [10:01:23]Waiting for new connection... [10:01:23] Sock 9.Parse request [10:01:23]Sock 9.Check first char [10:01:23]Sock 9.First char is OK [10:01:23]request: POST /json_proto HTTP/1.0 [10:01:23]Method: POST [10:01:23]URL: /json_proto [10:01:23]Method is POST - this is cgi request [10:01:23]url: /json_proto [10:01:23]query_string will be loaded in cgi processing [10:01:23]execute_cgi json_proto POST (null) [10:01:23]execute_cgi path=json_proto method=POST [10:01:23]POST find Content-Length [10:01:23]Host: 172.17.45.7:8080 [10:01:23]Content-Length: 678 [10:01:23]Content-Type: application/json [10:01:23] [10:01:23]POST finish read [10:01:23]Found Content-Length = 678 [10:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [10:01:23]execute_script... [10:01: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)949948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [10:01:23]POST & json_proto [10:01:23]process_json_proto [10:01:23]json parsed OK: [10:01:23]protocol is kg_v1.0 [10:01:23]action value=close_receipt [10:01:23]process_action close_receipt [10:01:23]cmd_close_receipt [10:01:23]MH_GetDate [10:01:23]Write to MH i2c: F0 00 00 B8 A4 4B [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 09 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 09 00 B8 A4 00 FD B9 A8 66 90 0F 3E 66 5B [10:01:23]GetLastDocTimeStamp 1722333524 [10:01:23]current date 1722333693 [10:01:23]FM_GetShiftState [10:01:23]SAM_PROTO_GetShiftState [10:01:23]wFMCommunicate request_size=4 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 13 01 00 [10:01:23]Write to MH i2c: E2 08 00 B9 A4 80 13 01 00 00 00 00 00 DA [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 0E 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 0E 00 B9 A4 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A5 [10:01:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:01:23]wFMCommunicate OK [10:01:23]SAM_PROTO_GetShiftState done [10:01:23]FM_GetShiftState done [10:01:23]opened in 1722298242 [10:01:23]opened+sec_in_day 1722384642 [10:01:23]quantity*price = 70037 [10:01:23]sum+1 = 70038 [10:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 81 30.07.2024 10:01 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119029 ФПД: 225635864980503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100134&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119029&fm=225635864980503&tin=02508201610067®Number=0000000000092660&sum=70000 [10:01:25]StoreToDocumentArchive [10:01:25]shift 435 fd 119029 [10:01:25]save to /storage/0435/doc_00119029 [10:01:25]save last doc name /storage/0435/doc_00119029 to /storage/kkm_last_doc_name [10:01:25]save OK [10:01:25]Clear old archive folders... [10:01:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:25]tlvbuf is 01E51D10 [10:01:25]SAM_PROTO_ClearQueue [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 09 00 00 [10:01:25]Write to MH i2c: E2 08 00 C6 A4 80 09 00 00 00 00 00 00 DC [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 C6 A4 00 90 00 DE [10:01:25]RAPDU: 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_ClearQueue done [10:01:25]KKMCreateOFDPacket [10:01:25]OFDProtocolAddRootSTLVToBuf [10:01:25]FM_MakeSignedData [10:01:25]FM_MakeSignedData [10:01:25]SAM_PROTO_SignData [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 0D 01 02 [10:01:25]Write to MH i2c: E2 08 00 C7 A4 80 0D 01 02 00 00 00 00 E4 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 C7 A4 00 90 00 DF [10:01:25]RAPDU: 90 00 [10:01:25]wFMCommunicate OK [10:01:25]wFMCommunicate request_size=255 [10:01:25]MH_SAM_APDU [10:01: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 51 00 00 00 F4 03 04 00 FE B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D0 01 00 35 04 06 00 CD [10:01:25]Write to MH i2c: E2 02 01 C8 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 51 00 00 00 F4 03 04 00 FE B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D0 01 00 35 04 06 00 CD 00 00 AC [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 C8 A4 00 90 00 E0 [10:01:25]RAPDU: 90 00 [10:01:25]wFMCommunicate OK [10:01:25]wFMCommunicate request_size=10 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 0D 02 02 05 36 F1 94 AC 17 [10:01:25]Write to MH i2c: E2 0D 00 C9 A4 80 0D 02 02 05 00 36 F1 94 AC 17 00 00 6F [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 03 00 C9 A4 00 90 00 E1 [10:01:25]RAPDU: 90 00 [10:01:25]wFMCommunicate OK [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 0D 03 02 [10:01:25]Write to MH i2c: E2 08 00 CA A4 80 0D 03 02 00 00 00 00 E9 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0B 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0B 00 CA A4 00 2A 11 5A 91 23 B0 E6 8A 90 00 53 [10:01:25]RAPDU: 2A 11 5A 91 23 B0 E6 8A 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_SignData done [10:01:25]FM_MakeSignedData done [10:01:25]CreateOFDProtocolMessage [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 11 00 00 [10:01:25]Write to MH i2c: E2 08 00 CB A4 80 11 00 00 00 00 00 00 E9 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 CB A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [10:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:01:25]wFMCommunicate OK [10:01:25]CreateOFDProtocolMessage done [10:01:25]OFDSenderStorePacket 119029 [10:01:25]StoreOFDPacket docnum=119029 [10:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 8F 07 01 7B 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 51 00 00 00 F4 03 04 00 FE B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D0 01 00 35 04 06 00 CD 36 F1 94 AC 17 2A 11 5A 91 23 B0 E6 8A [10:01:25]CheckFolder [10:01:25]dirname=/storage/ofd_packets [10:01:25]CheckFolder done [10:01:25]ProducePacketName [10:01:25]name=ofd_packets/00119029 [10:01:25]NVStorageSaveData ofd_packets/00119029 [10:01:25]File name is /storage/ofd_packets/00119029 [10:01:25]Write 301 bytes [10:01:25]NVStorageSaveData done [10:01:25]OFDSenderStorePacket done [10:01:25]KKMCreateOFDPacket done [10:01:25]NVStorageSaveData kkm_last_timestamp [10:01:25]File name is /storage/kkm_last_timestamp [10:01:25]Write 4 bytes [10:01:25]NVStorageSaveData done [10:01:25]ExternCall_PrintAddStr [10:01:25]wPrintStart [10:01:25]Write to MH i2c: 01 00 00 CC A4 70 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 CC A4 00 00 00 00 00 FF 0F 85 [10:01:25]RasterBufferAndPrint [10:01:25]line Счет N : (1)949948 [10:01:25]line ИНН: 02508201610067 [10:01:25]line Контрольно-Кассовый Чек [10:01:25]line ПРОДАЖА [10:01:25]line ТРК (МРК, ГНК) : 41 [10:01:25]line Товар: 2710124130 [10:01:25]line Аи-92-К-4 [10:01:25]line 10.330 * 67.80 [10:01:25]line = 700.37 [10:01:25]line НДС 12% НСП 1% [10:01:25]line > о реализуемом товаре [10:01:25]line ОКРУГЛЕНИЕ: -0.37 [10:01:25]line ИТОГО: 700.00 [10:01:25]line Внесено: 700.00 [10:01:25]line СДАЧА: 0.00 [10:01:25]line НСП 1% : 6.20 [10:01:25]line НДС 12% : 74.38 [10:01:25]line Наличными: 700.00 [10:01:25]line Безнал.: 0.00 [10:01:25]line Место: АЗС № 134 "Партнер Нефть" [10:01:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:01:25]line СНО: Общий режим [10:01:25]line Чек 81 30.07.2024 10:01 [10:01:25]line Смена: 435 ФФД: 1.0 [10:01:25]line ЗНМ: 0300000044 [10:01:25]line РНМ: 0000000000092660 [10:01:25]line Версия ККМ: 001 [10:01:25]line ФМ: 0000000000874939 [10:01:25]line ФД: 119029 [10:01:25]line ФПД: 225635864980503 [10:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100134&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119029&fm=225635864980503&tin=02508201610067®Number=0000000000092660&sum=70000 [10:01:25]OFD Sender: Processing packet 119029 [packets to send 86, broken 85] [10:01:25]ProducePacketName [10:01:25]name=ofd_packets/00119029 [10:01:25]OFD Sender: To server: pG, [10:01:25]CommunicateWithHost lk.salyk.kg:30040 [10:01:25]ConnectInit lk.salyk.kg [10:01:25]written 0, free lines is 4095 [10:01:25]Connected sock=10 [10:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CA 8F 07 01 7B 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 51 00 00 00 F4 03 04 00 FE B9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D0 01 00 35 04 06 00 CD 36 F1 94 AC 17 2A 11 5A 91 23 B0 E6 8A [10:01:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE 70 47 00 0E 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F5 D0 01 00 F4 03 04 00 89 67 A8 66 B6 04 01 00 00 4B A9 7F 15 C8 8F DE 8D [10:01:26]CommunicateWithHost err = 0 [10:01:26]CheckOFDResponse [10:01:26]1017 (14) - 77093643461234 [10:01:26]1041 (16) - 0000000000874939 [10:01:26]1040 (4) - 119029 [10:01:26]1012 (4) - 30.07.2024 04:09 [10:01:26]1206 (1) - 0 [10:01:26]OFD Sender: Remove packet 119029 [10:01:26]ProducePacketName [10:01:26]name=ofd_packets/00119029 [10:01:26]NVStorageDeleteData [10:01:26]Write to MH i2c: 01 00 00 F6 A4 9A [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 F6 A4 00 00 00 00 00 E4 0C 91 [10:01:26]RasterBufferAndPrint [10:01:26]line [10:01:26]line [10:01:26]line [10:01:26]line [10:01:26]line [10:01:26]written 0, free lines is 3306 [10:01:26]MH_Cut [10:01:26]Write to MH i2c: D1 01 00 FD A4 01 73 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: D1 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: D1 01 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: D1 01 00 FD A4 00 72 [10:01:26]Write to MH i2c: 01 00 00 FE A4 A2 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]OFD Sender: No OFD packet to send [10:01:27]*** Cut start [10:01:27]*** Partial cut [10:01:27]*** CUTSNS_PIN = 1 [10:01:27]*** CUTSNS_PIN = 0 [10:01:27]*** Brake cut motor [10:01:27]Read from MH i2c: 01 [10:01:27]MH_I2C_Read... [10:01:27]*** Stop cut motor [10:01:27]*** Cut end [10:01:27]Read from MH i2c: 01 07 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: 01 07 00 FE A4 00 00 00 00 00 FF 0F B7 [10:01:27]process_action close_receipt done [10:01:27]requested_data is exist [10:01:27]produce_requested_data [10:01:27]requested_item fm.sn is exist - process it [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 11 00 00 [10:01:27]Write to MH i2c: E2 08 00 FF A4 80 11 00 00 00 00 00 00 1D [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 17 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 17 00 FF A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [10:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:01:27]wFMCommunicate OK [10:01:27]requested_item fd.num is exist - process it [10:01:27]SAM_PROTO_GetFieldsCounters [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 13 00 00 [10:01:27]Write to MH i2c: E2 08 00 00 A5 80 13 00 00 00 00 00 00 21 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 62 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 62 00 00 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F5 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_GetFieldsCounters done [10:01:27]requested_item shift.num is exist - process it [10:01:27]requested_item shift.opened is exist - process it [10:01:27]req_shift_opened [10:01:27]FM_GetShiftState [10:01:27]SAM_PROTO_GetShiftState [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 13 01 00 [10:01:27]Write to MH i2c: E2 08 00 01 A5 80 13 01 00 00 00 00 00 23 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 0E 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 0E 00 01 A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EE [10:01:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_GetShiftState done [10:01:27]FM_GetShiftState done [10:01:27]req_shift_opened done [10:01:27]requested_item shift.open_date is exist - process it [10:01:27]req_shift_open_date [10:01:27]req_shift_open_date done [10:01:27]produce_requested_data done [10:01:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119029,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:01:27]process_action_free close_receipt [10:01:27]json_value_free [10:01:27]json_value_free done [10:01:27]process_json_proto returns [10:01:27]Send response to host [10:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119029,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:01:27]free response buf [10:01:27]execute_script done [10:01:27]execute_script returns [10:01:27]free content buf [10:01:27]Sock 9.Close socket [10:01:27]Sock 9.Thread stoped [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:52]accept exits with 7 [10:01:52]New connection [10:01:52]New thread 3067383140 created [10:01:52]Thread 3067239780 joined [10:01:52]Waiting for new connection... [10:01:52] Sock 7.Parse request [10:01:52]Sock 7.Check first char [10:01:52]Sock 7.First char is OK [10:01:52]request: POST /json_proto HTTP/1.0 [10:01:52]Method: POST [10:01:52]URL: /json_proto [10:01:52]Method is POST - this is cgi request [10:01:52]url: /json_proto [10:01:52]query_string will be loaded in cgi processing [10:01:52]execute_cgi json_proto POST (null) [10:01:52]execute_cgi path=json_proto method=POST [10:01:52]POST find Content-Length [10:01:52]Host: 172.17.45.7:8080 [10:01:52]Content-Length: 677 [10:01:52]Content-Type: application/json [10:01:52] [10:01:52]POST finish read [10:01:52]Found Content-Length = 677 [10:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:52]execute_script... [10:01: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)949949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:52]POST & json_proto [10:01:52]process_json_proto [10:01:52]json parsed OK: [10:01:52]protocol is kg_v1.0 [10:01:52]action value=close_receipt [10:01:52]process_action close_receipt [10:01:52]cmd_close_receipt [10:01:52]MH_GetDate [10:01:52]Write to MH i2c: F0 00 00 02 A5 96 [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: F0 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: F0 09 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: F0 09 00 02 A5 00 1A BA A8 66 90 0F 3E 66 C4 [10:01:52]GetLastDocTimeStamp 1722333694 [10:01:52]current date 1722333722 [10:01:52]FM_GetShiftState [10:01:52]SAM_PROTO_GetShiftState [10:01:52]wFMCommunicate request_size=4 [10:01:52]MH_SAM_APDU [10:01:52]CAPDU: 80 13 01 00 [10:01:52]Write to MH i2c: E2 08 00 03 A5 80 13 01 00 00 00 00 00 25 [10:01:52]Write i2c OK [10:01:52]MH_I2C_Read... [10:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:52]Read from MH i2c: E2 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 0E 00 [10:01:52]MH_I2C_Read... [10:01:52]Read from MH i2c: E2 0E 00 03 A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F0 [10:01:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:01:52]wFMCommunicate OK [10:01:52]SAM_PROTO_GetShiftState done [10:01:52]FM_GetShiftState done [10:01:52]opened in 1722298242 [10:01:52]opened+sec_in_day 1722384642 [10:01:52]quantity*price = 50036 [10:01:52]sum+1 = 50037 [10:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 82 30.07.2024 10:02 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119030 ФПД: 244704905786156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119030&fm=244704905786156&tin=02508201610067®Number=0000000000092660&sum=50000 [10:01:53]StoreToDocumentArchive [10:01:53]shift 435 fd 119030 [10:01:53]save to /storage/0435/doc_00119030 [10:01:53]save last doc name /storage/0435/doc_00119030 to /storage/kkm_last_doc_name [10:01:53]save OK [10:01:53]Clear old archive folders... [10:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:53]tlvbuf is 01EBDB40 [10:01:53]SAM_PROTO_ClearQueue [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 09 00 00 [10:01:53]Write to MH i2c: E2 08 00 10 A5 80 09 00 00 00 00 00 00 27 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 10 A5 00 90 00 29 [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]SAM_PROTO_ClearQueue done [10:01:53]KKMCreateOFDPacket [10:01:53]OFDProtocolAddRootSTLVToBuf [10:01:53]FM_MakeSignedData [10:01:53]FM_MakeSignedData [10:01:53]SAM_PROTO_SignData [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 01 02 [10:01:53]Write to MH i2c: E2 08 00 11 A5 80 0D 01 02 00 00 00 00 2F [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 11 A5 00 90 00 2A [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=255 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1A BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D0 01 00 35 04 06 00 DE [10:01:53]Write to MH i2c: E2 02 01 12 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1A BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D0 01 00 35 04 06 00 DE 00 00 40 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 12 A5 00 90 00 2B [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=10 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 02 02 05 8E CC FB F3 2C [10:01:53]Write to MH i2c: E2 0D 00 13 A5 80 0D 02 02 05 00 8E CC FB F3 2C 00 00 B0 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 03 00 13 A5 00 90 00 2C [10:01:53]RAPDU: 90 00 [10:01:53]wFMCommunicate OK [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 0D 03 02 [10:01:53]Write to MH i2c: E2 08 00 14 A5 80 0D 03 02 00 00 00 00 34 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 0B 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 0B 00 14 A5 00 02 4C A8 E7 DD C1 F9 6D 90 00 16 [10:01:53]RAPDU: 02 4C A8 E7 DD C1 F9 6D 90 00 [10:01:53]wFMCommunicate OK [10:01:53]SAM_PROTO_SignData done [10:01:53]FM_MakeSignedData done [10:01:53]CreateOFDProtocolMessage [10:01:53]wFMCommunicate request_size=4 [10:01:53]MH_SAM_APDU [10:01:53]CAPDU: 80 11 00 00 [10:01:53]Write to MH i2c: E2 08 00 15 A5 80 11 00 00 00 00 00 00 34 [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 [10:01:53]MH_I2C_Read... [10:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:53]Read from MH i2c: E2 17 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: E2 17 00 15 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8F [10:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:01:53]wFMCommunicate OK [10:01:53]CreateOFDProtocolMessage done [10:01:53]OFDSenderStorePacket 119030 [10:01:53]StoreOFDPacket docnum=119030 [10:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6E 44 07 01 E3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1A BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D0 01 00 35 04 06 00 DE 8E CC FB F3 2C 02 4C A8 E7 DD C1 F9 6D [10:01:53]CheckFolder [10:01:53]dirname=/storage/ofd_packets [10:01:53]CheckFolder done [10:01:53]ProducePacketName [10:01:53]name=ofd_packets/00119030 [10:01:53]NVStorageSaveData ofd_packets/00119030 [10:01:53]File name is /storage/ofd_packets/00119030 [10:01:53]Write 301 bytes [10:01:53]NVStorageSaveData done [10:01:53]OFDSenderStorePacket done [10:01:53]KKMCreateOFDPacket done [10:01:53]NVStorageSaveData kkm_last_timestamp [10:01:53]File name is /storage/kkm_last_timestamp [10:01:53]Write 4 bytes [10:01:53]NVStorageSaveData done [10:01:53]ExternCall_PrintAddStr [10:01:53]wPrintStart [10:01:53]Write to MH i2c: 01 00 00 16 A5 BB [10:01:53]Write i2c OK [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: 01 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: 01 07 00 [10:01:53]MH_I2C_Read... [10:01:53]Read from MH i2c: 01 07 00 16 A5 00 00 00 00 00 FF 0F D0 [10:01:53]RasterBufferAndPrint [10:01:53]line Счет N : (1)949949 [10:01:53]line ИНН: 02508201610067 [10:01:53]line Контрольно-Кассовый Чек [10:01:53]line ПРОДАЖА [10:01:53]line ТРК (МРК, ГНК) : 61 [10:01:53]line Товар: 2710124130 [10:01:53]line Аи-92-К-4 [10:01:53]line 7.380 * 67.80 [10:01:53]line = 500.36 [10:01:53]line НДС 12% НСП 1% [10:01:53]line > о реализуемом товаре [10:01:53]line ОКРУГЛЕНИЕ: -0.36 [10:01:53]line ИТОГО: 500.00 [10:01:53]line Внесено: 500.00 [10:01:53]line СДАЧА: 0.00 [10:01:53]line НСП 1% : 4.43 [10:01:53]line НДС 12% : 53.14 [10:01:53]line Наличными: 500.00 [10:01:53]line Безнал.: 0.00 [10:01:53]line Место: АЗС № 134 "Партнер Нефть" [10:01:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:01:53]line СНО: Общий режим [10:01:53]line Чек 82 30.07.2024 10:02 [10:01:53]line Смена: 435 ФФД: 1.0 [10:01:53]line ЗНМ: 0300000044 [10:01:53]line РНМ: 0000000000092660 [10:01:53]line Версия ККМ: 001 [10:01:53]line ФМ: 0000000000874939 [10:01:53]line ФД: 119030 [10:01:53]line ФПД: 244704905786156 [10:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100202&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119030&fm=244704905786156&tin=02508201610067®Number=0000000000092660&sum=50000 [10:01:53]written 0, free lines is 4095 [10:01:53]OFD Sender: Processing packet 119030 [packets to send 86, broken 85] [10:01:53]ProducePacketName [10:01:53]name=ofd_packets/00119030 [10:01:53]OFD Sender: To server: pG, [10:01:53]CommunicateWithHost lk.salyk.kg:30040 [10:01:53]ConnectInit lk.salyk.kg [10:01:53]Connected sock=10 [10:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6E 44 07 01 E3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1A BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D0 01 00 35 04 06 00 DE 8E CC FB F3 2C 02 4C A8 E7 DD C1 F9 6D [10:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 61 47 47 00 43 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F6 D0 01 00 F4 03 04 00 A5 67 A8 66 B6 04 01 00 00 8E E7 1E 9A 02 36 C9 98 [10:01:54]CommunicateWithHost err = 0 [10:01:54]CheckOFDResponse [10:01:54]1017 (14) - 77093643461234 [10:01:54]1041 (16) - 0000000000874939 [10:01:54]1040 (4) - 119030 [10:01:54]1012 (4) - 30.07.2024 04:10 [10:01:54]1206 (1) - 0 [10:01:54]OFD Sender: Remove packet 119030 [10:01:54]ProducePacketName [10:01:54]name=ofd_packets/00119030 [10:01:54]NVStorageDeleteData [10:01:54]Write to MH i2c: 01 00 00 40 A5 E5 [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: 01 07 00 40 A5 00 00 00 00 00 F2 0C EA [10:01:54]RasterBufferAndPrint [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]line [10:01:54]written 0, free lines is 3320 [10:01:54]MH_Cut [10:01:54]Write to MH i2c: D1 01 00 47 A5 01 BE [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 01 00 [10:01:54]MH_I2C_Read... [10:01:54]Read from MH i2c: D1 01 00 47 A5 00 BD [10:01:54]Write to MH i2c: 01 00 00 48 A5 ED [10:01:54]Write i2c OK [10:01:54]MH_I2C_Read... [10:01:54]OFD Sender: No OFD packet to send [10:01:54]*** Cut start [10:01:54]*** Partial cut [10:01:54]*** CUTSNS_PIN = 1 [10:01:54]*** CUTSNS_PIN = 0 [10:01:55]*** Brake cut motor [10:01:55]Read from MH i2c: 01 [10:01:55]MH_I2C_Read... [10:01:55]*** Stop cut motor [10:01:55]*** Cut end [10:01:55]Read from MH i2c: 01 07 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: 01 07 00 48 A5 00 00 00 00 00 FF 0F 02 [10:01:55]process_action close_receipt done [10:01:55]requested_data is exist [10:01:55]produce_requested_data [10:01:55]requested_item fm.sn is exist - process it [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 11 00 00 [10:01:55]Write to MH i2c: E2 08 00 49 A5 80 11 00 00 00 00 00 00 68 [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 17 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 17 00 49 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C3 [10:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:01:55]wFMCommunicate OK [10:01:55]requested_item fd.num is exist - process it [10:01:55]SAM_PROTO_GetFieldsCounters [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 13 00 00 [10:01:55]Write to MH i2c: E2 08 00 4A A5 80 13 00 00 00 00 00 00 6B [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 62 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 62 00 4A A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [10:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F6 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:55]wFMCommunicate OK [10:01:55]SAM_PROTO_GetFieldsCounters done [10:01:55]requested_item shift.num is exist - process it [10:01:55]requested_item shift.opened is exist - process it [10:01:55]req_shift_opened [10:01:55]FM_GetShiftState [10:01:55]SAM_PROTO_GetShiftState [10:01:55]wFMCommunicate request_size=4 [10:01:55]MH_SAM_APDU [10:01:55]CAPDU: 80 13 01 00 [10:01:55]Write to MH i2c: E2 08 00 4B A5 80 13 01 00 00 00 00 00 6D [10:01:55]Write i2c OK [10:01:55]MH_I2C_Read... [10:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:55]Read from MH i2c: E2 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 0E 00 [10:01:55]MH_I2C_Read... [10:01:55]Read from MH i2c: E2 0E 00 4B A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 38 [10:01:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:01:55]wFMCommunicate OK [10:01:55]SAM_PROTO_GetShiftState done [10:01:55]FM_GetShiftState done [10:01:55]req_shift_opened done [10:01:55]requested_item shift.open_date is exist - process it [10:01:55]req_shift_open_date [10:01:55]req_shift_open_date done [10:01:55]produce_requested_data done [10:01:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119030,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:01:55]process_action_free close_receipt [10:01:55]json_value_free [10:01:55]json_value_free done [10:01:55]process_json_proto returns [10:01:55]Send response to host [10:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119030,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:01:55]free response buf [10:01:55]execute_script done [10:01:55]execute_script returns [10:01:55]free content buf [10:01:55]Sock 7.Close socket [10:01:55]Sock 7.Thread stoped [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02: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:18]accept exits with 9 [10:03:18]New connection [10:03:18]New thread 3067239780 created [10:03:18]Thread 3067383140 joined [10:03:18]Waiting for new connection... [10:03:18] Sock 9.Parse request [10:03:18]Sock 9.Check first char [10:03:18]Sock 9.First char is OK [10:03:18]request: POST /json_proto HTTP/1.0 [10:03:18]Method: POST [10:03:18]URL: /json_proto [10:03:18]Method is POST - this is cgi request [10:03:18]url: /json_proto [10:03:18]query_string will be loaded in cgi processing [10:03:18]execute_cgi json_proto POST (null) [10:03:18]execute_cgi path=json_proto method=POST [10:03:18]POST find Content-Length [10:03:18]Host: 172.17.45.7:8080 [10:03:18]Content-Length: 677 [10:03:18]Content-Type: application/json [10:03:18] [10:03:18]POST finish read [10:03:18]Found Content-Length = 677 [10:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:03:18]execute_script... [10:03: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)949950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:03:18]POST & json_proto [10:03:18]process_json_proto [10:03:18]json parsed OK: [10:03:18]protocol is kg_v1.0 [10:03:18]action value=close_receipt [10:03:18]process_action close_receipt [10:03:18]cmd_close_receipt [10:03:18]MH_GetDate [10:03:18]Write to MH i2c: F0 00 00 4C A5 E0 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: F0 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: F0 09 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: F0 09 00 4C A5 00 70 BA A8 66 90 0F 3E 66 64 [10:03:18]GetLastDocTimeStamp 1722333722 [10:03:18]current date 1722333808 [10:03:18]FM_GetShiftState [10:03:18]SAM_PROTO_GetShiftState [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 13 01 00 [10:03:18]Write to MH i2c: E2 08 00 4D A5 80 13 01 00 00 00 00 00 6F [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 0E 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 0E 00 4D A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3A [10:03:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:03:18]wFMCommunicate OK [10:03:18]SAM_PROTO_GetShiftState done [10:03:18]FM_GetShiftState done [10:03:18]opened in 1722298242 [10:03:18]opened+sec_in_day 1722384642 [10:03:18]quantity*price = 30035 [10:03:18]sum+1 = 30036 [10:03:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 83 30.07.2024 10:03 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119031 ФПД: 145109921887684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100328&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119031&fm=145109921887684&tin=02508201610067®Number=0000000000092660&sum=30000 [10:03:19]StoreToDocumentArchive [10:03:19]shift 435 fd 119031 [10:03:19]save to /storage/0435/doc_00119031 [10:03:19]save last doc name /storage/0435/doc_00119031 to /storage/kkm_last_doc_name [10:03:19]save OK [10:03:19]Clear old archive folders... [10:03:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:19]tlvbuf is 02138C00 [10:03:19]SAM_PROTO_ClearQueue [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 09 00 00 [10:03:19]Write to MH i2c: E2 08 00 5A A5 80 09 00 00 00 00 00 00 71 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 5A A5 00 90 00 73 [10:03:19]RAPDU: 90 00 [10:03:19]wFMCommunicate OK [10:03:19]SAM_PROTO_ClearQueue done [10:03:19]KKMCreateOFDPacket [10:03:19]OFDProtocolAddRootSTLVToBuf [10:03:19]FM_MakeSignedData [10:03:19]FM_MakeSignedData [10:03:19]SAM_PROTO_SignData [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 0D 01 02 [10:03:19]Write to MH i2c: E2 08 00 5B A5 80 0D 01 02 00 00 00 00 79 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 5B A5 00 90 00 74 [10:03:19]RAPDU: 90 00 [10:03:19]wFMCommunicate OK [10:03:19]wFMCommunicate request_size=255 [10:03:19]MH_SAM_APDU [10:03: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 53 00 00 00 F4 03 04 00 70 BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D0 01 00 35 04 06 00 83 [10:03:19]Write to MH i2c: E2 02 01 5C A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 53 00 00 00 F4 03 04 00 70 BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D0 01 00 35 04 06 00 83 00 00 A6 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]OFD Sender: No OFD packet to send [10:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 5C A5 00 90 00 75 [10:03:19]RAPDU: 90 00 [10:03:19]wFMCommunicate OK [10:03:19]wFMCommunicate request_size=10 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 0D 02 02 05 FA 09 58 F5 C4 [10:03:19]Write to MH i2c: E2 0D 00 5D A5 80 0D 02 02 05 00 FA 09 58 F5 C4 00 00 9A [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 5D A5 00 90 00 76 [10:03:19]RAPDU: 90 00 [10:03:19]wFMCommunicate OK [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 0D 03 02 [10:03:19]Write to MH i2c: E2 08 00 5E A5 80 0D 03 02 00 00 00 00 7E [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0B 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0B 00 5E A5 00 7C 00 EF F9 99 C0 03 9C 90 00 DB [10:03:19]RAPDU: 7C 00 EF F9 99 C0 03 9C 90 00 [10:03:19]wFMCommunicate OK [10:03:19]SAM_PROTO_SignData done [10:03:19]FM_MakeSignedData done [10:03:19]CreateOFDProtocolMessage [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 11 00 00 [10:03:19]Write to MH i2c: E2 08 00 5F A5 80 11 00 00 00 00 00 00 7E [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 17 00 5F A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D9 [10:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:03:20]wFMCommunicate OK [10:03:20]CreateOFDProtocolMessage done [10:03:20]OFDSenderStorePacket 119031 [10:03:20]StoreOFDPacket docnum=119031 [10:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8F 6F 07 01 BC AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 53 00 00 00 F4 03 04 00 70 BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D0 01 00 35 04 06 00 83 FA 09 58 F5 C4 7C 00 EF F9 99 C0 03 9C [10:03:20]CheckFolder [10:03:20]dirname=/storage/ofd_packets [10:03:20]CheckFolder done [10:03:20]ProducePacketName [10:03:20]name=ofd_packets/00119031 [10:03:20]NVStorageSaveData ofd_packets/00119031 [10:03:20]File name is /storage/ofd_packets/00119031 [10:03:20]Write 301 bytes [10:03:20]NVStorageSaveData done [10:03:20]OFDSenderStorePacket done [10:03:20]KKMCreateOFDPacket done [10:03:20]NVStorageSaveData kkm_last_timestamp [10:03:20]File name is /storage/kkm_last_timestamp [10:03:20]Write 4 bytes [10:03:20]NVStorageSaveData done [10:03:20]ExternCall_PrintAddStr [10:03:20]wPrintStart [10:03:20]Write to MH i2c: 01 00 00 60 A5 05 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 60 A5 00 00 00 00 00 FF 0F 1A [10:03:20]RasterBufferAndPrint [10:03:20]line Счет N : (1)949950 [10:03:20]line ИНН: 02508201610067 [10:03:20]line Контрольно-Кассовый Чек [10:03:20]line ПРОДАЖА [10:03:20]line ТРК (МРК, ГНК) : 41 [10:03:20]line Товар: 2710124130 [10:03:20]line Аи-92-К-4 [10:03:20]line 4.430 * 67.80 [10:03:20]line = 300.35 [10:03:20]line НДС 12% НСП 1% [10:03:20]line > о реализуемом товаре [10:03:20]line ОКРУГЛЕНИЕ: -0.35 [10:03:20]line ИТОГО: 300.00 [10:03:20]line Внесено: 300.00 [10:03:20]line СДАЧА: 0.00 [10:03:20]line НСП 1% : 2.66 [10:03:20]line НДС 12% : 31.90 [10:03:20]line Наличными: 300.00 [10:03:20]line Безнал.: 0.00 [10:03:20]line Место: АЗС № 134 "Партнер Нефть" [10:03:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:03:20]line СНО: Общий режим [10:03:20]line Чек 83 30.07.2024 10:03 [10:03:20]line Смена: 435 ФФД: 1.0 [10:03:20]line ЗНМ: 0300000044 [10:03:20]line РНМ: 0000000000092660 [10:03:20]line Версия ККМ: 001 [10:03:20]line ФМ: 0000000000874939 [10:03:20]line ФД: 119031 [10:03:20]line ФПД: 145109921887684 [10:03:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100328&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119031&fm=145109921887684&tin=02508201610067®Number=0000000000092660&sum=30000 [10:03:20]OFD Sender: Processing packet 119031 [packets to send 86, broken 85] [10:03:20]ProducePacketName [10:03:20]name=ofd_packets/00119031 [10:03:20]OFD Sender: To server: pG, [10:03:20]CommunicateWithHost lk.salyk.kg:30040 [10:03:20]ConnectInit lk.salyk.kg [10:03:20]written 0, free lines is 4095 [10:03:20]Connected sock=10 [10:03:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8F 6F 07 01 BC AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 53 00 00 00 F4 03 04 00 70 BA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D0 01 00 35 04 06 00 83 FA 09 58 F5 C4 7C 00 EF F9 99 C0 03 9C [10:03:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 28 47 00 5D A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F7 D0 01 00 F4 03 04 00 FC 67 A8 66 B6 04 01 00 00 64 FA E2 A1 1C CF AD 8E [10:03:20]CommunicateWithHost err = 0 [10:03:20]CheckOFDResponse [10:03:20]1017 (14) - 77093643461234 [10:03:20]1041 (16) - 0000000000874939 [10:03:20]1040 (4) - 119031 [10:03:20]1012 (4) - 30.07.2024 04:11 [10:03:20]1206 (1) - 0 [10:03:20]OFD Sender: Remove packet 119031 [10:03:20]ProducePacketName [10:03:20]name=ofd_packets/00119031 [10:03:20]NVStorageDeleteData [10:03:20]Write to MH i2c: 01 00 00 8A A5 2F [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 8A A5 00 00 00 00 00 F4 0C 36 [10:03:20]RasterBufferAndPrint [10:03:20]line [10:03:20]line [10:03:20]line [10:03:20]line [10:03:20]line [10:03:20]written 0, free lines is 3324 [10:03:20]MH_Cut [10:03:20]Write to MH i2c: D1 01 00 91 A5 01 08 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: D1 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: D1 01 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: D1 01 00 91 A5 00 07 [10:03:20]Write to MH i2c: 01 00 00 92 A5 37 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:21]OFD Sender: No OFD packet to send [10:03:21]*** Cut start [10:03:21]*** Partial cut [10:03:21]*** CUTSNS_PIN = 1 [10:03:21]*** CUTSNS_PIN = 0 [10:03:21]*** Brake cut motor [10:03:22]Read from MH i2c: 01 [10:03:22]MH_I2C_Read... [10:03:22]*** Stop cut motor [10:03:22]*** Cut end [10:03:22]Read from MH i2c: 01 07 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 92 A5 00 00 00 00 00 FF 0F 4C [10:03:22]process_action close_receipt done [10:03:22]requested_data is exist [10:03:22]produce_requested_data [10:03:22]requested_item fm.sn is exist - process it [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 11 00 00 [10:03:22]Write to MH i2c: E2 08 00 93 A5 80 11 00 00 00 00 00 00 B2 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 93 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [10:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:03:22]wFMCommunicate OK [10:03:22]requested_item fd.num is exist - process it [10:03:22]SAM_PROTO_GetFieldsCounters [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 13 00 00 [10:03:22]Write to MH i2c: E2 08 00 94 A5 80 13 00 00 00 00 00 00 B5 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 62 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 62 00 94 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [10:03:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F7 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:22]wFMCommunicate OK [10:03:22]SAM_PROTO_GetFieldsCounters done [10:03:22]requested_item shift.num is exist - process it [10:03:22]requested_item shift.opened is exist - process it [10:03:22]req_shift_opened [10:03:22]FM_GetShiftState [10:03:22]SAM_PROTO_GetShiftState [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 13 01 00 [10:03:22]Write to MH i2c: E2 08 00 95 A5 80 13 01 00 00 00 00 00 B7 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 0E 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 0E 00 95 A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 82 [10:03:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:03:22]wFMCommunicate OK [10:03:22]SAM_PROTO_GetShiftState done [10:03:22]FM_GetShiftState done [10:03:22]req_shift_opened done [10:03:22]requested_item shift.open_date is exist - process it [10:03:22]req_shift_open_date [10:03:22]req_shift_open_date done [10:03:22]produce_requested_data done [10:03:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119031,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:03:22]process_action_free close_receipt [10:03:22]json_value_free [10:03:22]json_value_free done [10:03:22]process_json_proto returns [10:03:22]Send response to host [10:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119031,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:03:22]free response buf [10:03:22]execute_script done [10:03:22]execute_script returns [10:03:22]free content buf [10:03:22]Sock 9.Close socket [10:03:22]Sock 9.Thread stoped [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]accept exits with 7 [10:08:21]New connection [10:08:21]New thread 3067383140 created [10:08:21]Thread 3067239780 joined [10:08:21]Waiting for new connection... [10:08:21] Sock 7.Parse request [10:08:21]Sock 7.Check first char [10:08:21]Sock 7.First char is OK [10:08:21]request: POST /json_proto HTTP/1.0 [10:08:21]Method: POST [10:08:21]URL: /json_proto [10:08:21]Method is POST - this is cgi request [10:08:21]url: /json_proto [10:08:21]query_string will be loaded in cgi processing [10:08:21]execute_cgi json_proto POST (null) [10:08:21]execute_cgi path=json_proto method=POST [10:08:21]POST find Content-Length [10:08:21]Host: 172.17.45.7:8080 [10:08:21]Content-Length: 677 [10:08:21]Content-Type: application/json [10:08:21] [10:08:21]POST finish read [10:08:21]Found Content-Length = 677 [10:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:21]execute_script... [10:08:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:21]POST & json_proto [10:08:21]process_json_proto [10:08:21]json parsed OK: [10:08:21]protocol is kg_v1.0 [10:08:21]action value=close_receipt [10:08:21]process_action close_receipt [10:08:21]cmd_close_receipt [10:08:21]MH_GetDate [10:08:21]Write to MH i2c: F0 00 00 96 A5 2A [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: F0 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: F0 09 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: F0 09 00 96 A5 00 9F BB A8 66 90 0F 3E 66 DE [10:08:21]GetLastDocTimeStamp 1722333808 [10:08:21]current date 1722334111 [10:08:21]FM_GetShiftState [10:08:21]SAM_PROTO_GetShiftState [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 13 01 00 [10:08:21]Write to MH i2c: E2 08 00 97 A5 80 13 01 00 00 00 00 00 B9 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0E 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0E 00 97 A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 84 [10:08:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:08:21]wFMCommunicate OK [10:08:21]SAM_PROTO_GetShiftState done [10:08:21]FM_GetShiftState done [10:08:21]opened in 1722298242 [10:08:21]opened+sec_in_day 1722384642 [10:08:21]quantity*price = 50010 [10:08:21]sum+1 = 50012 [10:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 84 30.07.2024 10:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119032 ФПД: 252660946890312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100831&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119032&fm=252660946890312&tin=02508201610067®Number=0000000000092660&sum=50000 [10:08:22]StoreToDocumentArchive [10:08:22]shift 435 fd 119032 [10:08:22]save to /storage/0435/doc_00119032 [10:08:22]save last doc name /storage/0435/doc_00119032 to /storage/kkm_last_doc_name [10:08:22]save OK [10:08:22]Clear old archive folders... [10:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:22]tlvbuf is 01E70470 [10:08:22]SAM_PROTO_ClearQueue [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 09 00 00 [10:08:22]Write to MH i2c: E2 08 00 A4 A5 80 09 00 00 00 00 00 00 BB [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 A4 A5 00 90 00 BD [10:08:22]RAPDU: 90 00 [10:08:22]wFMCommunicate OK [10:08:22]SAM_PROTO_ClearQueue done [10:08:22]KKMCreateOFDPacket [10:08:22]OFDProtocolAddRootSTLVToBuf [10:08:22]FM_MakeSignedData [10:08:22]FM_MakeSignedData [10:08:22]SAM_PROTO_SignData [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 0D 01 02 [10:08:22]Write to MH i2c: E2 08 00 A5 A5 80 0D 01 02 00 00 00 00 C3 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 A5 A5 00 90 00 BE [10:08:22]RAPDU: 90 00 [10:08:22]wFMCommunicate OK [10:08:22]wFMCommunicate request_size=255 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9F BB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D0 01 00 35 04 06 00 E5 [10:08:22]Write to MH i2c: E2 02 01 A6 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9F BB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D0 01 00 35 04 06 00 E5 00 00 4C [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 A6 A5 00 90 00 BF [10:08:22]RAPDU: 90 00 [10:08:22]wFMCommunicate OK [10:08:22]wFMCommunicate request_size=10 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 0D 02 02 05 CB 35 FC EE 48 [10:08:22]Write to MH i2c: E2 0D 00 A7 A5 80 0D 02 02 05 00 CB 35 FC EE 48 00 00 02 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 A7 A5 00 90 00 C0 [10:08:22]RAPDU: 90 00 [10:08:22]wFMCommunicate OK [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 0D 03 02 [10:08:22]Write to MH i2c: E2 08 00 A8 A5 80 0D 03 02 00 00 00 00 C8 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 0B 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 0B 00 A8 A5 00 AC 6A 2D 7A 99 E2 38 91 90 00 CA [10:08:22]RAPDU: AC 6A 2D 7A 99 E2 38 91 90 00 [10:08:22]wFMCommunicate OK [10:08:22]SAM_PROTO_SignData done [10:08:22]FM_MakeSignedData done [10:08:22]CreateOFDProtocolMessage [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 11 00 00 [10:08:22]Write to MH i2c: E2 08 00 A9 A5 80 11 00 00 00 00 00 00 C8 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 17 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 17 00 A9 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [10:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:08:22]wFMCommunicate OK [10:08:22]CreateOFDProtocolMessage done [10:08:22]OFDSenderStorePacket 119032 [10:08:22]StoreOFDPacket docnum=119032 [10:08:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A7 A5 07 01 D5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9F BB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D0 01 00 35 04 06 00 E5 CB 35 FC EE 48 AC 6A 2D 7A 99 E2 38 91 [10:08:22]CheckFolder [10:08:22]dirname=/storage/ofd_packets [10:08:22]CheckFolder done [10:08:22]ProducePacketName [10:08:22]name=ofd_packets/00119032 [10:08:22]NVStorageSaveData ofd_packets/00119032 [10:08:22]File name is /storage/ofd_packets/00119032 [10:08:22]Write 301 bytes [10:08:22]NVStorageSaveData done [10:08:22]OFDSenderStorePacket done [10:08:22]KKMCreateOFDPacket done [10:08:22]NVStorageSaveData kkm_last_timestamp [10:08:22]File name is /storage/kkm_last_timestamp [10:08:22]Write 4 bytes [10:08:22]NVStorageSaveData done [10:08:22]ExternCall_PrintAddStr [10:08:22]wPrintStart [10:08:22]Write to MH i2c: 01 00 00 AA A5 4F [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 07 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: 01 07 00 AA A5 00 00 00 00 00 FF 0F 64 [10:08:22]RasterBufferAndPrint [10:08:22]line Счет N : (1)949951 [10:08:22]line ИНН: 02508201610067 [10:08:22]line Контрольно-Кассовый Чек [10:08:22]line ПРОДАЖА [10:08:22]line ТРК (МРК, ГНК) : 33 [10:08:22]line Товар: 2710124500 [10:08:22]line Аи-95-К-3 [10:08:22]line 6.740 * 74.20 [10:08:22]line = 500.11 [10:08:22]line НДС 12% НСП 1% [10:08:22]line > о реализуемом товаре [10:08:22]line ОКРУГЛЕНИЕ: -0.11 [10:08:22]line ИТОГО: 500.00 [10:08:22]line Внесено: 500.00 [10:08:22]line СДАЧА: 0.00 [10:08:22]line НСП 1% : 4.43 [10:08:22]line НДС 12% : 53.11 [10:08:22]line Наличными: 500.00 [10:08:22]line Безнал.: 0.00 [10:08:22]line Место: АЗС № 134 "Партнер Нефть" [10:08:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:08:22]line СНО: Общий режим [10:08:22]line Чек 84 30.07.2024 10:08 [10:08:22]line Смена: 435 ФФД: 1.0 [10:08:22]line ЗНМ: 0300000044 [10:08:22]line РНМ: 0000000000092660 [10:08:22]line Версия ККМ: 001 [10:08:22]line ФМ: 0000000000874939 [10:08:22]line ФД: 119032 [10:08:22]line ФПД: 252660946890312 [10:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T100831&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119032&fm=252660946890312&tin=02508201610067®Number=0000000000092660&sum=50000 [10:08:23]OFD Sender: Processing packet 119032 [packets to send 86, broken 85] [10:08:23]ProducePacketName [10:08:23]name=ofd_packets/00119032 [10:08:23]OFD Sender: To server: pG, [10:08:23]CommunicateWithHost lk.salyk.kg:30040 [10:08:23]ConnectInit lk.salyk.kg [10:08:23]written 0, free lines is 4095 [10:08:23]Connected sock=10 [10:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A7 A5 07 01 D5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 9F BB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D0 01 00 35 04 06 00 E5 CB 35 FC EE 48 AC 6A 2D 7A 99 E2 38 91 [10:08:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD 94 47 00 83 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F8 D0 01 00 F4 03 04 00 2B 69 A8 66 B6 04 01 00 00 91 A1 8B 66 CC 07 B9 9C [10:08:23]CommunicateWithHost err = 0 [10:08:23]CheckOFDResponse [10:08:23]1017 (14) - 77093643461234 [10:08:23]1041 (16) - 0000000000874939 [10:08:23]1040 (4) - 119032 [10:08:23]1012 (4) - 30.07.2024 04:16 [10:08:23]1206 (1) - 0 [10:08:23]OFD Sender: Remove packet 119032 [10:08:23]ProducePacketName [10:08:23]name=ofd_packets/00119032 [10:08:23]NVStorageDeleteData [10:08:23]Write to MH i2c: 01 00 00 D4 A5 79 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 07 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 07 00 D4 A5 00 00 00 00 00 E4 0C 70 [10:08:23]RasterBufferAndPrint [10:08:23]line [10:08:23]line [10:08:23]line [10:08:23]line [10:08:23]line [10:08:23]written 0, free lines is 3306 [10:08:23]MH_Cut [10:08:23]Write to MH i2c: D1 01 00 DB A5 01 52 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: D1 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: D1 01 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: D1 01 00 DB A5 00 51 [10:08:23]Write to MH i2c: 01 00 00 DC A5 81 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:24]OFD Sender: No OFD packet to send [10:08:24]*** Cut start [10:08:24]*** Partial cut [10:08:24]*** CUTSNS_PIN = 1 [10:08:24]*** CUTSNS_PIN = 0 [10:08:24]*** Brake cut motor [10:08:25]Read from MH i2c: 01 [10:08:25]MH_I2C_Read... [10:08:25]*** Stop cut motor [10:08:25]*** Cut end [10:08:25]Read from MH i2c: 01 07 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: 01 07 00 DC A5 00 00 00 00 00 FF 0F 96 [10:08:25]process_action close_receipt done [10:08:25]requested_data is exist [10:08:25]produce_requested_data [10:08:25]requested_item fm.sn is exist - process it [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 11 00 00 [10:08:25]Write to MH i2c: E2 08 00 DD A5 80 11 00 00 00 00 00 00 FC [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 17 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 17 00 DD A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [10:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:08:25]wFMCommunicate OK [10:08:25]requested_item fd.num is exist - process it [10:08:25]SAM_PROTO_GetFieldsCounters [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 00 00 [10:08:25]Write to MH i2c: E2 08 00 DE A5 80 13 00 00 00 00 00 00 FF [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 62 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 62 00 DE A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [10:08:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F8 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetFieldsCounters done [10:08:25]requested_item shift.num is exist - process it [10:08:25]requested_item shift.opened is exist - process it [10:08:25]req_shift_opened [10:08:25]FM_GetShiftState [10:08:25]SAM_PROTO_GetShiftState [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 01 00 [10:08:25]Write to MH i2c: E2 08 00 DF A5 80 13 01 00 00 00 00 00 01 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 DF A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CC [10:08:25]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetShiftState done [10:08:25]FM_GetShiftState done [10:08:25]req_shift_opened done [10:08:25]requested_item shift.open_date is exist - process it [10:08:25]req_shift_open_date [10:08:25]req_shift_open_date done [10:08:25]produce_requested_data done [10:08:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119032,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:08:25]process_action_free close_receipt [10:08:25]json_value_free [10:08:25]json_value_free done [10:08:25]process_json_proto returns [10:08:25]Send response to host [10:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119032,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:08:25]free response buf [10:08:25]execute_script done [10:08:25]execute_script returns [10:08:25]free content buf [10:08:25]Sock 7.Close socket [10:08:25]Sock 7.Thread stoped [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:16]accept exits with 9 [10:10:16]New connection [10:10:16]New thread 3067239780 created [10:10:16]Thread 3067383140 joined [10:10:16]Waiting for new connection... [10:10:16] Sock 9.Parse request [10:10:16]Sock 9.Check first char [10:10:16]Sock 9.First char is OK [10:10:16]request: POST /json_proto HTTP/1.0 [10:10:16]Method: POST [10:10:16]URL: /json_proto [10:10:16]Method is POST - this is cgi request [10:10:16]url: /json_proto [10:10:16]query_string will be loaded in cgi processing [10:10:16]execute_cgi json_proto POST (null) [10:10:16]execute_cgi path=json_proto method=POST [10:10:16]POST find Content-Length [10:10:16]Host: 172.17.45.7:8080 [10:10:16]Content-Length: 831 [10:10:16]Content-Type: application/json [10:10:16] [10:10:16]POST finish read [10:10:16]Found Content-Length = 831 [10:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 6.620, "sum" : 500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:16]execute_script... [10:10: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)949952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 6.620, "sum" : 500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:16]POST & json_proto [10:10:16]process_json_proto [10:10:16]json parsed OK: [10:10:16]protocol is kg_v1.0 [10:10:16]action value=close_receipt [10:10:16]process_action close_receipt [10:10:16]cmd_close_receipt [10:10:16]MH_GetDate [10:10:16]Write to MH i2c: F0 00 00 E0 A5 74 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 09 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: F0 09 00 E0 A5 00 12 BC A8 66 90 0F 3E 66 9C [10:10:16]GetLastDocTimeStamp 1722334111 [10:10:16]current date 1722334226 [10:10:16]FM_GetShiftState [10:10:16]SAM_PROTO_GetShiftState [10:10:16]wFMCommunicate request_size=4 [10:10:16]MH_SAM_APDU [10:10:16]CAPDU: 80 13 01 00 [10:10:16]Write to MH i2c: E2 08 00 E1 A5 80 13 01 00 00 00 00 00 03 [10:10:16]Write i2c OK [10:10:16]MH_I2C_Read... [10:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:16]Read from MH i2c: E2 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 [10:10:16]MH_I2C_Read... [10:10:16]Read from MH i2c: E2 0E 00 E1 A5 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CE [10:10:16]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:10:16]wFMCommunicate OK [10:10:16]SAM_PROTO_GetShiftState done [10:10:16]FM_GetShiftState done [10:10:16]opened in 1722298242 [10:10:16]opened+sec_in_day 1722384642 [10:10:16]quantity*price = 50000 [10:10:16]sum+1 = 50002 [10:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 85 30.07.2024 10:10 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119033 ФПД: 208406468827251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101026&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119033&fm=208406468827251&tin=02508201610067®Number=0000000000092660&sum=50000 [10:10:17]StoreToDocumentArchive [10:10:17]shift 435 fd 119033 [10:10:17]save to /storage/0435/doc_00119033 [10:10:17]save last doc name /storage/0435/doc_00119033 to /storage/kkm_last_doc_name [10:10:17]save OK [10:10:17]Clear old archive folders... [10:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:17]tlvbuf is 01FC9530 [10:10:17]SAM_PROTO_ClearQueue [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 09 00 00 [10:10:17]Write to MH i2c: E2 08 00 EE A5 80 09 00 00 00 00 00 00 05 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 EE A5 00 90 00 07 [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]SAM_PROTO_ClearQueue done [10:10:17]KKMCreateOFDPacket [10:10:17]OFDProtocolAddRootSTLVToBuf [10:10:17]FM_MakeSignedData [10:10:17]FM_MakeSignedData [10:10:17]SAM_PROTO_SignData [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 01 02 [10:10:17]Write to MH i2c: E2 08 00 EF A5 80 0D 01 02 00 00 00 00 0D [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 EF A5 00 90 00 08 [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]wFMCommunicate request_size=255 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D0 01 00 35 04 06 00 BD 8B 69 8B [10:10:17]Write to MH i2c: E2 02 01 F0 A5 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D0 01 00 35 04 06 00 BD 8B 69 8B 00 00 BA [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 F0 A5 00 90 00 09 [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]wFMCommunicate request_size=7 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 02 02 02 18 73 [10:10:17]Write to MH i2c: E2 0A 00 F1 A5 80 0D 02 02 02 00 18 73 00 00 9F [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 03 00 F1 A5 00 90 00 0A [10:10:17]RAPDU: 90 00 [10:10:17]wFMCommunicate OK [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 0D 03 02 [10:10:17]Write to MH i2c: E2 08 00 F2 A5 80 0D 03 02 00 00 00 00 12 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 0B 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 0B 00 F2 A5 00 50 22 3D 2E BD B5 00 49 90 00 AB [10:10:17]RAPDU: 50 22 3D 2E BD B5 00 49 90 00 [10:10:17]wFMCommunicate OK [10:10:17]SAM_PROTO_SignData done [10:10:17]FM_MakeSignedData done [10:10:17]CreateOFDProtocolMessage [10:10:17]wFMCommunicate request_size=4 [10:10:17]MH_SAM_APDU [10:10:17]CAPDU: 80 11 00 00 [10:10:17]Write to MH i2c: E2 08 00 F3 A5 80 11 00 00 00 00 00 00 12 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:17]Read from MH i2c: E2 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 17 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: E2 17 00 F3 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [10:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:10:17]wFMCommunicate OK [10:10:17]CreateOFDProtocolMessage done [10:10:17]OFDSenderStorePacket 119033 [10:10:17]StoreOFDPacket docnum=119033 [10:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C7 22 04 01 7A DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D0 01 00 35 04 06 00 BD 8B 69 8B 18 73 50 22 3D 2E BD B5 00 49 [10:10:17]CheckFolder [10:10:17]dirname=/storage/ofd_packets [10:10:17]CheckFolder done [10:10:17]ProducePacketName [10:10:17]name=ofd_packets/00119033 [10:10:17]NVStorageSaveData ofd_packets/00119033 [10:10:17]File name is /storage/ofd_packets/00119033 [10:10:17]Write 298 bytes [10:10:17]NVStorageSaveData done [10:10:17]OFDSenderStorePacket done [10:10:17]KKMCreateOFDPacket done [10:10:17]NVStorageSaveData kkm_last_timestamp [10:10:17]File name is /storage/kkm_last_timestamp [10:10:17]Write 4 bytes [10:10:17]NVStorageSaveData done [10:10:17]ExternCall_PrintAddStr [10:10:17]wPrintStart [10:10:17]Write to MH i2c: 01 00 00 F4 A5 99 [10:10:17]Write i2c OK [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: 01 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: 01 07 00 [10:10:17]MH_I2C_Read... [10:10:17]Read from MH i2c: 01 07 00 F4 A5 00 00 00 00 00 FF 0F AE [10:10:17]RasterBufferAndPrint [10:10:17]line Счет N : (1)949952 [10:10:17]line ИНН: 02508201610067 [10:10:17]line Контрольно-Кассовый Чек [10:10:17]line ПРОДАЖА [10:10:17]line ТРК (МРК, ГНК) : 21 [10:10:17]line Товар: 2710194800 [10:10:17]line ДТ-К-5 [10:10:17]line 6.620 * 75.53 [10:10:17]line = 500.01 [10:10:17]line НДС 12% НСП 1% [10:10:17]line > о реализуемом товаре [10:10:17]line ОКРУГЛЕНИЕ: -0.01 [10:10:17]line ИТОГО: 500.00 [10:10:17]line НСП 1% : 4.42 [10:10:17]line НДС 12% : 53.10 [10:10:17]line Наличными: 0.00 [10:10:17]line Безнал.: 500.00 [10:10:17]line Место: АЗС № 134 "Партнер Нефть" [10:10:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:10:17]line СНО: Общий режим [10:10:17]line Чек 85 30.07.2024 10:10 [10:10:17]line Смена: 435 ФФД: 1.0 [10:10:17]line ЗНМ: 0300000044 [10:10:17]line РНМ: 0000000000092660 [10:10:17]line Версия ККМ: 001 [10:10:17]line Платежная система: Бакай Банк [10:10:17]line ФМ: 0000000000874939 [10:10:17]line ФД: 119033 [10:10:17]line ФПД: 208406468827251 [10:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101026&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119033&fm=208406468827251&tin=02508201610067®Number=0000000000092660&sum=50000 [10:10:18]OFD Sender: Processing packet 119033 [packets to send 86, broken 85] [10:10:18]ProducePacketName [10:10:18]name=ofd_packets/00119033 [10:10:18]OFD Sender: To server: pG, [10:10:18]CommunicateWithHost lk.salyk.kg:30040 [10:10:18]ConnectInit lk.salyk.kg [10:10:18]written 0, free lines is 4095 [10:10:18]Connected sock=10 [10:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C7 22 04 01 7A DA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 19 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 51 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 12 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D0 01 00 35 04 06 00 BD 8B 69 8B 18 73 50 22 3D 2E BD B5 00 49 [10:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 99 37 47 00 84 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F9 D0 01 00 F4 03 04 00 9D 69 A8 66 B6 04 01 00 00 17 A3 F4 7A 81 BE 82 3E [10:10:18]CommunicateWithHost err = 0 [10:10:18]CheckOFDResponse [10:10:18]1017 (14) - 77093643461234 [10:10:18]1041 (16) - 0000000000874939 [10:10:18]1040 (4) - 119033 [10:10:18]1012 (4) - 30.07.2024 04:18 [10:10:18]1206 (1) - 0 [10:10:18]OFD Sender: Remove packet 119033 [10:10:18]ProducePacketName [10:10:18]name=ofd_packets/00119033 [10:10:18]NVStorageDeleteData [10:10:18]Write to MH i2c: 01 00 00 1E A6 C4 [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: 01 07 00 1E A6 00 00 00 00 00 EC 0C C3 [10:10:18]RasterBufferAndPrint [10:10:18]line [10:10:18]line [10:10:18]line [10:10:18]line [10:10:18]line [10:10:18]written 0, free lines is 3318 [10:10:18]MH_Cut [10:10:18]Write to MH i2c: D1 01 00 25 A6 01 9D [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: D1 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: D1 01 00 [10:10:18]MH_I2C_Read... [10:10:18]Read from MH i2c: D1 01 00 25 A6 00 9C [10:10:18]Write to MH i2c: 01 00 00 26 A6 CC [10:10:18]Write i2c OK [10:10:18]MH_I2C_Read... [10:10:18]OFD Sender: No OFD packet to send [10:10:19]*** Cut start [10:10:19]*** Partial cut [10:10:19]*** CUTSNS_PIN = 1 [10:10:19]*** CUTSNS_PIN = 0 [10:10:19]*** Brake cut motor [10:10:19]Read from MH i2c: 01 [10:10:19]MH_I2C_Read... [10:10:19]*** Stop cut motor [10:10:19]*** Cut end [10:10:19]Read from MH i2c: 01 07 00 [10:10:19]MH_I2C_Read... [10:10:19]Read from MH i2c: 01 07 00 26 A6 00 00 00 00 00 FF 0F E1 [10:10:19]process_action close_receipt done [10:10:19]requested_data is exist [10:10:19]produce_requested_data [10:10:19]requested_item fm.sn is exist - process it [10:10:19]wFMCommunicate request_size=4 [10:10:19]MH_SAM_APDU [10:10:19]CAPDU: 80 11 00 00 [10:10:19]Write to MH i2c: E2 08 00 27 A6 80 11 00 00 00 00 00 00 47 [10:10:19]Write i2c OK [10:10:19]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 17 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 17 00 27 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A2 [10:10:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:10:20]wFMCommunicate OK [10:10:20]requested_item fd.num is exist - process it [10:10:20]SAM_PROTO_GetFieldsCounters [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 13 00 00 [10:10:20]Write to MH i2c: E2 08 00 28 A6 80 13 00 00 00 00 00 00 4A [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 62 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 62 00 28 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [10:10:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F9 D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:20]wFMCommunicate OK [10:10:20]SAM_PROTO_GetFieldsCounters done [10:10:20]requested_item shift.num is exist - process it [10:10:20]requested_item shift.opened is exist - process it [10:10:20]req_shift_opened [10:10:20]FM_GetShiftState [10:10:20]SAM_PROTO_GetShiftState [10:10:20]wFMCommunicate request_size=4 [10:10:20]MH_SAM_APDU [10:10:20]CAPDU: 80 13 01 00 [10:10:20]Write to MH i2c: E2 08 00 29 A6 80 13 01 00 00 00 00 00 4C [10:10:20]Write i2c OK [10:10:20]MH_I2C_Read... [10:10:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:20]Read from MH i2c: E2 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 0E 00 [10:10:20]MH_I2C_Read... [10:10:20]Read from MH i2c: E2 0E 00 29 A6 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 17 [10:10:20]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:10:20]wFMCommunicate OK [10:10:20]SAM_PROTO_GetShiftState done [10:10:20]FM_GetShiftState done [10:10:20]req_shift_opened done [10:10:20]requested_item shift.open_date is exist - process it [10:10:20]req_shift_open_date [10:10:20]req_shift_open_date done [10:10:20]produce_requested_data done [10:10:20]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119033,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:10:20]process_action_free close_receipt [10:10:20]json_value_free [10:10:20]json_value_free done [10:10:20]process_json_proto returns [10:10:20]Send response to host [10:10:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119033,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:10:20]free response buf [10:10:20]execute_script done [10:10:20]execute_script returns [10:10:20]free content buf [10:10:20]Sock 9.Close socket [10:10:20]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:18]accept exits with 7 [10:12:18]New connection [10:12:18]New thread 3067383140 created [10:12:18]Thread 3067239780 joined [10:12:18]Waiting for new connection... [10:12:18] Sock 7.Parse request [10:12:18]Sock 7.Check first char [10:12:18]Sock 7.First char is OK [10:12:18]request: POST /json_proto HTTP/1.0 [10:12:18]Method: POST [10:12:18]URL: /json_proto [10:12:18]Method is POST - this is cgi request [10:12:18]url: /json_proto [10:12:18]query_string will be loaded in cgi processing [10:12:18]execute_cgi json_proto POST (null) [10:12:18]execute_cgi path=json_proto method=POST [10:12:18]POST find Content-Length [10:12:18]Host: 172.17.45.7:8080 [10:12:18]Content-Length: 678 [10:12:18]Content-Type: application/json [10:12:18] [10:12:18]POST finish read [10:12:18]Found Content-Length = 678 [10:12:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [10:12:18]execute_script... [10:12: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)949953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [10:12:18]POST & json_proto [10:12:18]process_json_proto [10:12:18]json parsed OK: [10:12:18]protocol is kg_v1.0 [10:12:18]action value=close_receipt [10:12:18]process_action close_receipt [10:12:18]cmd_close_receipt [10:12:18]MH_GetDate [10:12:18]Write to MH i2c: F0 00 00 2A A6 BF [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: F0 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: F0 09 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: F0 09 00 2A A6 00 8C BC A8 66 90 0F 3E 66 61 [10:12:18]GetLastDocTimeStamp 1722334226 [10:12:18]current date 1722334348 [10:12:18]FM_GetShiftState [10:12:18]SAM_PROTO_GetShiftState [10:12:18]wFMCommunicate request_size=4 [10:12:18]MH_SAM_APDU [10:12:18]CAPDU: 80 13 01 00 [10:12:18]Write to MH i2c: E2 08 00 2B A6 80 13 01 00 00 00 00 00 4E [10:12:18]Write i2c OK [10:12:18]MH_I2C_Read... [10:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:18]Read from MH i2c: E2 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 0E 00 [10:12:18]MH_I2C_Read... [10:12:18]Read from MH i2c: E2 0E 00 2B A6 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 19 [10:12:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:12:18]wFMCommunicate OK [10:12:18]SAM_PROTO_GetShiftState done [10:12:18]FM_GetShiftState done [10:12:18]opened in 1722298242 [10:12:18]opened+sec_in_day 1722384642 [10:12:18]quantity*price = 70037 [10:12:18]sum+1 = 70038 [10:12:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 86 30.07.2024 10:12 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119034 ФПД: 258547923463475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101228&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119034&fm=258547923463475&tin=02508201610067®Number=0000000000092660&sum=70000 [10:12:19]StoreToDocumentArchive [10:12:19]shift 435 fd 119034 [10:12:19]save to /storage/0435/doc_00119034 [10:12:19]save last doc name /storage/0435/doc_00119034 to /storage/kkm_last_doc_name [10:12:19]save OK [10:12:19]Clear old archive folders... [10:12:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:19]tlvbuf is 02063CA0 [10:12:19]SAM_PROTO_ClearQueue [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 09 00 00 [10:12:19]Write to MH i2c: E2 08 00 38 A6 80 09 00 00 00 00 00 00 50 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:19]Read from MH i2c: E2 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 03 00 [10:12:19]MH_I2C_Read... [10:12:19]Read from MH i2c: E2 03 00 38 A6 00 90 00 52 [10:12:19]RAPDU: 90 00 [10:12:19]wFMCommunicate OK [10:12:19]SAM_PROTO_ClearQueue done [10:12:19]KKMCreateOFDPacket [10:12:19]OFDProtocolAddRootSTLVToBuf [10:12:19]FM_MakeSignedData [10:12:19]FM_MakeSignedData [10:12:19]SAM_PROTO_SignData [10:12:19]wFMCommunicate request_size=4 [10:12:19]MH_SAM_APDU [10:12:19]CAPDU: 80 0D 01 02 [10:12:19]Write to MH i2c: E2 08 00 39 A6 80 0D 01 02 00 00 00 00 58 [10:12:19]Write i2c OK [10:12:19]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 39 A6 00 90 00 53 [10:12:20]RAPDU: 90 00 [10:12:20]wFMCommunicate OK [10:12:20]wFMCommunicate request_size=255 [10:12:20]MH_SAM_APDU [10: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 56 00 00 00 F4 03 04 00 8C BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D0 01 00 35 04 06 00 EB [10:12:20]Write to MH i2c: E2 02 01 3A A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 56 00 00 00 F4 03 04 00 8C BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D0 01 00 35 04 06 00 EB 00 00 D9 [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 3A A6 00 90 00 54 [10:12:20]RAPDU: 90 00 [10:12:20]wFMCommunicate OK [10:12:20]wFMCommunicate request_size=10 [10:12:20]MH_SAM_APDU [10:12:20]CAPDU: 80 0D 02 02 05 25 E1 22 AD 33 [10:12:20]Write to MH i2c: E2 0D 00 3B A6 80 0D 02 02 05 00 25 E1 22 AD 33 00 00 6D [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 03 00 3B A6 00 90 00 55 [10:12:20]RAPDU: 90 00 [10:12:20]wFMCommunicate OK [10:12:20]wFMCommunicate request_size=4 [10:12:20]MH_SAM_APDU [10:12:20]CAPDU: 80 0D 03 02 [10:12:20]Write to MH i2c: E2 08 00 3C A6 80 0D 03 02 00 00 00 00 5D [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 0B 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 0B 00 3C A6 00 0D 40 0B AB 4A BB F5 80 90 00 DB [10:12:20]RAPDU: 0D 40 0B AB 4A BB F5 80 90 00 [10:12:20]wFMCommunicate OK [10:12:20]SAM_PROTO_SignData done [10:12:20]FM_MakeSignedData done [10:12:20]CreateOFDProtocolMessage [10:12:20]wFMCommunicate request_size=4 [10:12:20]MH_SAM_APDU [10:12:20]CAPDU: 80 11 00 00 [10:12:20]Write to MH i2c: E2 08 00 3D A6 80 11 00 00 00 00 00 00 5D [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:20]Read from MH i2c: E2 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 17 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: E2 17 00 3D A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B8 [10:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:12:20]wFMCommunicate OK [10:12:20]CreateOFDProtocolMessage done [10:12:20]OFDSenderStorePacket 119034 [10:12:20]StoreOFDPacket docnum=119034 [10:12:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C 4A 07 01 FC A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 56 00 00 00 F4 03 04 00 8C BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D0 01 00 35 04 06 00 EB 25 E1 22 AD 33 0D 40 0B AB 4A BB F5 80 [10:12:20]CheckFolder [10:12:20]dirname=/storage/ofd_packets [10:12:20]CheckFolder done [10:12:20]ProducePacketName [10:12:20]name=ofd_packets/00119034 [10:12:20]NVStorageSaveData ofd_packets/00119034 [10:12:20]File name is /storage/ofd_packets/00119034 [10:12:20]Write 301 bytes [10:12:20]NVStorageSaveData done [10:12:20]OFDSenderStorePacket done [10:12:20]KKMCreateOFDPacket done [10:12:20]NVStorageSaveData kkm_last_timestamp [10:12:20]File name is /storage/kkm_last_timestamp [10:12:20]Write 4 bytes [10:12:20]NVStorageSaveData done [10:12:20]ExternCall_PrintAddStr [10:12:20]wPrintStart [10:12:20]Write to MH i2c: 01 00 00 3E A6 E4 [10:12:20]Write i2c OK [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: 01 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: 01 07 00 [10:12:20]MH_I2C_Read... [10:12:20]Read from MH i2c: 01 07 00 3E A6 00 00 00 00 00 FF 0F F9 [10:12:20]RasterBufferAndPrint [10:12:20]line Счет N : (1)949953 [10:12:20]line ИНН: 02508201610067 [10:12:20]line Контрольно-Кассовый Чек [10:12:20]line ПРОДАЖА [10:12:20]line ТРК (МРК, ГНК) : 41 [10:12:20]line Товар: 2710124130 [10:12:20]line Аи-92-К-4 [10:12:20]line 10.330 * 67.80 [10:12:20]line = 700.37 [10:12:20]line НДС 12% НСП 1% [10:12:20]line > о реализуемом товаре [10:12:20]line ОКРУГЛЕНИЕ: -0.37 [10:12:20]line ИТОГО: 700.00 [10:12:20]line Внесено: 700.00 [10:12:20]line СДАЧА: 0.00 [10:12:20]line НСП 1% : 6.20 [10:12:20]line НДС 12% : 74.38 [10:12:20]line Наличными: 700.00 [10:12:20]line Безнал.: 0.00 [10:12:20]line Место: АЗС № 134 "Партнер Нефть" [10:12:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:12:20]line СНО: Общий режим [10:12:20]line Чек 86 30.07.2024 10:12 [10:12:20]line Смена: 435 ФФД: 1.0 [10:12:20]line ЗНМ: 0300000044 [10:12:20]line РНМ: 0000000000092660 [10:12:20]line Версия ККМ: 001 [10:12:20]line ФМ: 0000000000874939 [10:12:20]line ФД: 119034 [10:12:20]line ФПД: 258547923463475 [10:12:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101228&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119034&fm=258547923463475&tin=02508201610067®Number=0000000000092660&sum=70000 [10:12:20]OFD Sender: Processing packet 119034 [packets to send 86, broken 85] [10:12:20]ProducePacketName [10:12:20]name=ofd_packets/00119034 [10:12:20]OFD Sender: To server: pG, [10:12:20]CommunicateWithHost lk.salyk.kg:30040 [10:12:20]ConnectInit lk.salyk.kg [10:12:20]written 0, free lines is 4095 [10:12:20]Connected sock=10 [10:12:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9C 4A 07 01 FC A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 56 00 00 00 F4 03 04 00 8C BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D0 01 00 35 04 06 00 EB 25 E1 22 AD 33 0D 40 0B AB 4A BB F5 80 [10:12:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 09 47 00 BA 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FA D0 01 00 F4 03 04 00 18 6A A8 66 B6 04 01 00 00 1D E0 40 67 B7 11 AB 48 [10:12:21]CommunicateWithHost err = 0 [10:12:21]CheckOFDResponse [10:12:21]1017 (14) - 77093643461234 [10:12:21]1041 (16) - 0000000000874939 [10:12:21]1040 (4) - 119034 [10:12:21]1012 (4) - 30.07.2024 04:20 [10:12:21]1206 (1) - 0 [10:12:21]OFD Sender: Remove packet 119034 [10:12:21]ProducePacketName [10:12:21]name=ofd_packets/00119034 [10:12:21]NVStorageDeleteData [10:12:21]Write to MH i2c: 01 00 00 68 A6 0E [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 07 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: 01 07 00 68 A6 00 00 00 00 00 EC 0C 0D [10:12:21]RasterBufferAndPrint [10:12:21]line [10:12:21]line [10:12:21]line [10:12:21]line [10:12:21]line [10:12:21]written 0, free lines is 3315 [10:12:21]MH_Cut [10:12:21]Write to MH i2c: D1 01 00 6F A6 01 E7 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: D1 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: D1 01 00 [10:12:21]MH_I2C_Read... [10:12:21]Read from MH i2c: D1 01 00 6F A6 00 E6 [10:12:21]Write to MH i2c: 01 00 00 70 A6 16 [10:12:21]Write i2c OK [10:12:21]MH_I2C_Read... [10:12:21]OFD Sender: No OFD packet to send [10:12:21]*** Cut start [10:12:21]*** Partial cut [10:12:21]*** CUTSNS_PIN = 1 [10:12:22]*** CUTSNS_PIN = 0 [10:12:22]*** Brake cut motor [10:12:22]Read from MH i2c: 01 [10:12:22]MH_I2C_Read... [10:12:22]*** Stop cut motor [10:12:22]*** Cut end [10:12:22]Read from MH i2c: 01 07 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: 01 07 00 70 A6 00 00 00 00 00 FF 0F 2B [10:12:22]process_action close_receipt done [10:12:22]requested_data is exist [10:12:22]produce_requested_data [10:12:22]requested_item fm.sn is exist - process it [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 11 00 00 [10:12:22]Write to MH i2c: E2 08 00 71 A6 80 11 00 00 00 00 00 00 91 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 17 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 17 00 71 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [10:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:12:22]wFMCommunicate OK [10:12:22]requested_item fd.num is exist - process it [10:12:22]SAM_PROTO_GetFieldsCounters [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 13 00 00 [10:12:22]Write to MH i2c: E2 08 00 72 A6 80 13 00 00 00 00 00 00 94 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 62 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 62 00 72 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [10: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FA D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_GetFieldsCounters done [10:12:22]requested_item shift.num is exist - process it [10:12:22]requested_item shift.opened is exist - process it [10:12:22]req_shift_opened [10:12:22]FM_GetShiftState [10:12:22]SAM_PROTO_GetShiftState [10:12:22]wFMCommunicate request_size=4 [10:12:22]MH_SAM_APDU [10:12:22]CAPDU: 80 13 01 00 [10:12:22]Write to MH i2c: E2 08 00 73 A6 80 13 01 00 00 00 00 00 96 [10:12:22]Write i2c OK [10:12:22]MH_I2C_Read... [10:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:22]Read from MH i2c: E2 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0E 00 [10:12:22]MH_I2C_Read... [10:12:22]Read from MH i2c: E2 0E 00 73 A6 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 61 [10:12:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:12:22]wFMCommunicate OK [10:12:22]SAM_PROTO_GetShiftState done [10:12:22]FM_GetShiftState done [10:12:22]req_shift_opened done [10:12:22]requested_item shift.open_date is exist - process it [10:12:22]req_shift_open_date [10:12:22]req_shift_open_date done [10:12:22]produce_requested_data done [10:12:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119034,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:12:22]process_action_free close_receipt [10:12:22]json_value_free [10:12:22]json_value_free done [10:12:22]process_json_proto returns [10:12:22]Send response to host [10:12:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119034,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:12:22]free response buf [10:12:22]execute_script done [10:12:22]execute_script returns [10:12:22]free content buf [10:12:22]Sock 7.Close socket [10:12:22]Sock 7.Thread stoped [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:04]accept exits with 9 [10:14:04]New connection [10:14:04]New thread 3067239780 created [10:14:04]Thread 3067383140 joined [10:14:04]Waiting for new connection... [10:14:04] Sock 9.Parse request [10:14:04]Sock 9.Check first char [10:14:04]Sock 9.First char is OK [10:14:04]request: POST /json_proto HTTP/1.0 [10:14:04]Method: POST [10:14:04]URL: /json_proto [10:14:04]Method is POST - this is cgi request [10:14:04]url: /json_proto [10:14:04]query_string will be loaded in cgi processing [10:14:04]execute_cgi json_proto POST (null) [10:14:04]execute_cgi path=json_proto method=POST [10:14:04]POST find Content-Length [10:14:04]Host: 172.17.45.7:8080 [10:14:04]Content-Length: 674 [10:14:04]Content-Type: application/json [10:14:04] [10:14:04]POST finish read [10:14:04]Found Content-Length = 674 [10:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:04]execute_script... [10:14: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)949954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:04]POST & json_proto [10:14:04]process_json_proto [10:14:04]json parsed OK: [10:14:04]protocol is kg_v1.0 [10:14:04]action value=close_receipt [10:14:04]process_action close_receipt [10:14:04]cmd_close_receipt [10:14:04]MH_GetDate [10:14:04]Write to MH i2c: F0 00 00 74 A6 09 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: F0 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: F0 09 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: F0 09 00 74 A6 00 F6 BC A8 66 90 0F 3E 66 15 [10:14:04]GetLastDocTimeStamp 1722334348 [10:14:04]current date 1722334454 [10:14:04]FM_GetShiftState [10:14:04]SAM_PROTO_GetShiftState [10:14:04]wFMCommunicate request_size=4 [10:14:04]MH_SAM_APDU [10:14:04]CAPDU: 80 13 01 00 [10:14:04]Write to MH i2c: E2 08 00 75 A6 80 13 01 00 00 00 00 00 98 [10:14:04]Write i2c OK [10:14:04]MH_I2C_Read... [10:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:04]Read from MH i2c: E2 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 0E 00 [10:14:04]MH_I2C_Read... [10:14:04]Read from MH i2c: E2 0E 00 75 A6 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 63 [10:14:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:14:04]wFMCommunicate OK [10:14:04]SAM_PROTO_GetShiftState done [10:14:04]FM_GetShiftState done [10:14:04]opened in 1722298242 [10:14:04]opened+sec_in_day 1722384642 [10:14:04]quantity*price = 50063 [10:14:04]sum+1 = 50064 [10:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 87 30.07.2024 10:14 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119035 ФПД: 273615425742386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101414&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119035&fm=273615425742386&tin=02508201610067®Number=0000000000092660&sum=50000 [10:14:05]StoreToDocumentArchive [10:14:05]shift 435 fd 119035 [10:14:05]save to /storage/0435/doc_00119035 [10:14:05]save last doc name /storage/0435/doc_00119035 to /storage/kkm_last_doc_name [10:14:05]save OK [10:14:05]Clear old archive folders... [10:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:14:05]tlvbuf is 01F342D0 [10:14:05]SAM_PROTO_ClearQueue [10:14:05]wFMCommunicate request_size=4 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 09 00 00 [10:14:05]Write to MH i2c: E2 08 00 82 A6 80 09 00 00 00 00 00 00 9A [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 82 A6 00 90 00 9C [10:14:05]RAPDU: 90 00 [10:14:05]wFMCommunicate OK [10:14:05]SAM_PROTO_ClearQueue done [10:14:05]KKMCreateOFDPacket [10:14:05]OFDProtocolAddRootSTLVToBuf [10:14:05]FM_MakeSignedData [10:14:05]FM_MakeSignedData [10:14:05]SAM_PROTO_SignData [10:14:05]wFMCommunicate request_size=4 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 0D 01 02 [10:14:05]Write to MH i2c: E2 08 00 83 A6 80 0D 01 02 00 00 00 00 A2 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 83 A6 00 90 00 9D [10:14:05]RAPDU: 90 00 [10:14:05]wFMCommunicate OK [10:14:05]wFMCommunicate request_size=255 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D0 01 00 35 04 06 00 F8 DA 0E 41 [10:14:05]Write to MH i2c: E2 02 01 84 A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D0 01 00 35 04 06 00 F8 DA 0E 41 00 00 72 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 84 A6 00 90 00 9E [10:14:05]RAPDU: 90 00 [10:14:05]wFMCommunicate OK [10:14:05]wFMCommunicate request_size=7 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 0D 02 02 02 A6 32 [10:14:05]Write to MH i2c: E2 0A 00 85 A6 80 0D 02 02 02 00 A6 32 00 00 81 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:05]Read from MH i2c: E2 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 [10:14:05]MH_I2C_Read... [10:14:05]Read from MH i2c: E2 03 00 85 A6 00 90 00 9F [10:14:05]RAPDU: 90 00 [10:14:05]wFMCommunicate OK [10:14:05]wFMCommunicate request_size=4 [10:14:05]MH_SAM_APDU [10:14:05]CAPDU: 80 0D 03 02 [10:14:05]Write to MH i2c: E2 08 00 86 A6 80 0D 03 02 00 00 00 00 A7 [10:14:05]Write i2c OK [10:14:05]MH_I2C_Read... [10:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:06]Read from MH i2c: E2 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 0B 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 0B 00 86 A6 00 4E 6C 29 40 F6 87 82 1D 90 00 E7 [10:14:06]RAPDU: 4E 6C 29 40 F6 87 82 1D 90 00 [10:14:06]wFMCommunicate OK [10:14:06]SAM_PROTO_SignData done [10:14:06]FM_MakeSignedData done [10:14:06]CreateOFDProtocolMessage [10:14:06]wFMCommunicate request_size=4 [10:14:06]MH_SAM_APDU [10:14:06]CAPDU: 80 11 00 00 [10:14:06]Write to MH i2c: E2 08 00 87 A6 80 11 00 00 00 00 00 00 A7 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:06]Read from MH i2c: E2 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 17 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 17 00 87 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 02 [10:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:14:06]wFMCommunicate OK [10:14:06]CreateOFDProtocolMessage done [10:14:06]OFDSenderStorePacket 119035 [10:14:06]StoreOFDPacket docnum=119035 [10:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B0 FA 04 01 E5 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D0 01 00 35 04 06 00 F8 DA 0E 41 A6 32 4E 6C 29 40 F6 87 82 1D [10:14:06]CheckFolder [10:14:06]dirname=/storage/ofd_packets [10:14:06]CheckFolder done [10:14:06]ProducePacketName [10:14:06]name=ofd_packets/00119035 [10:14:06]NVStorageSaveData ofd_packets/00119035 [10:14:06]File name is /storage/ofd_packets/00119035 [10:14:06]Write 298 bytes [10:14:06]NVStorageSaveData done [10:14:06]OFDSenderStorePacket done [10:14:06]KKMCreateOFDPacket done [10:14:06]NVStorageSaveData kkm_last_timestamp [10:14:06]File name is /storage/kkm_last_timestamp [10:14:06]Write 4 bytes [10:14:06]NVStorageSaveData done [10:14:06]ExternCall_PrintAddStr [10:14:06]wPrintStart [10:14:06]Write to MH i2c: 01 00 00 88 A6 2E [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 07 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 07 00 88 A6 00 00 00 00 00 FF 0F 43 [10:14:06]RasterBufferAndPrint [10:14:06]line Счет N : (1)949954 [10:14:06]line ИНН: 02508201610067 [10:14:06]line Контрольно-Кассовый Чек [10:14:06]line ПРОДАЖА [10:14:06]line ТРК (МРК, ГНК) : 34 [10:14:06]line Товар: 2710194800 [10:14:06]line ДТ-К-5 [10:14:06]line 6.570 * 76.20 [10:14:06]line = 500.63 [10:14:06]line НДС 12% НСП 1% [10:14:06]line > о реализуемом товаре [10:14:06]line ОКРУГЛЕНИЕ: -0.63 [10:14:06]line ИТОГО: 500.00 [10:14:06]line Внесено: 500.00 [10:14:06]line СДАЧА: 0.00 [10:14:06]line НСП 1% : 4.43 [10:14:06]line НДС 12% : 53.16 [10:14:06]line Наличными: 500.00 [10:14:06]line Безнал.: 0.00 [10:14:06]line Место: АЗС № 134 "Партнер Нефть" [10:14:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:14:06]line СНО: Общий режим [10:14:06]line Чек 87 30.07.2024 10:14 [10:14:06]line Смена: 435 ФФД: 1.0 [10:14:06]line ЗНМ: 0300000044 [10:14:06]line РНМ: 0000000000092660 [10:14:06]line Версия ККМ: 001 [10:14:06]line ФМ: 0000000000874939 [10:14:06]line ФД: 119035 [10:14:06]line ФПД: 273615425742386 [10:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101414&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119035&fm=273615425742386&tin=02508201610067®Number=0000000000092660&sum=50000 [10:14:06]OFD Sender: Processing packet 119035 [packets to send 86, broken 85] [10:14:06]ProducePacketName [10:14:06]name=ofd_packets/00119035 [10:14:06]OFD Sender: To server: pG, [10:14:06]CommunicateWithHost lk.salyk.kg:30040 [10:14:06]ConnectInit lk.salyk.kg [10:14:06]written 0, free lines is 4095 [10:14:06]Connected sock=10 [10:14:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B0 FA 04 01 E5 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 F6 BC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D0 01 00 35 04 06 00 F8 DA 0E 41 A6 32 4E 6C 29 40 F6 87 82 1D [10:14:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B9 74 47 00 2C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FB D0 01 00 F4 03 04 00 82 6A A8 66 B6 04 01 00 00 BA 8C 70 E6 76 CB EA CA [10:14:06]CommunicateWithHost err = 0 [10:14:06]CheckOFDResponse [10:14:06]1017 (14) - 77093643461234 [10:14:06]1041 (16) - 0000000000874939 [10:14:06]1040 (4) - 119035 [10:14:06]1012 (4) - 30.07.2024 04:22 [10:14:06]1206 (1) - 0 [10:14:06]OFD Sender: Remove packet 119035 [10:14:06]ProducePacketName [10:14:06]name=ofd_packets/00119035 [10:14:06]NVStorageDeleteData [10:14:06]Write to MH i2c: 01 00 00 B2 A6 58 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 07 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: 01 07 00 B2 A6 00 00 00 00 00 E4 0C 4F [10:14:06]RasterBufferAndPrint [10:14:06]line [10:14:06]line [10:14:06]line [10:14:06]line [10:14:06]line [10:14:06]written 0, free lines is 3306 [10:14:06]MH_Cut [10:14:06]Write to MH i2c: D1 01 00 B9 A6 01 31 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: D1 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: D1 01 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: D1 01 00 B9 A6 00 30 [10:14:06]Write to MH i2c: 01 00 00 BA A6 60 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:07]OFD Sender: No OFD packet to send [10:14:07]*** Cut start [10:14:07]*** Partial cut [10:14:07]*** CUTSNS_PIN = 1 [10:14:07]*** CUTSNS_PIN = 0 [10:14:07]*** Brake cut motor [10:14:08]Read from MH i2c: 01 [10:14:08]MH_I2C_Read... [10:14:08]*** Stop cut motor [10:14:08]*** Cut end [10:14:08]Read from MH i2c: 01 07 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: 01 07 00 BA A6 00 00 00 00 00 FF 0F 75 [10:14:08]process_action close_receipt done [10:14:08]requested_data is exist [10:14:08]produce_requested_data [10:14:08]requested_item fm.sn is exist - process it [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 11 00 00 [10:14:08]Write to MH i2c: E2 08 00 BB A6 80 11 00 00 00 00 00 00 DB [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 17 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 17 00 BB A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 36 [10:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:14:08]wFMCommunicate OK [10:14:08]requested_item fd.num is exist - process it [10:14:08]SAM_PROTO_GetFieldsCounters [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 13 00 00 [10:14:08]Write to MH i2c: E2 08 00 BC A6 80 13 00 00 00 00 00 00 DE [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 62 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 62 00 BC A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [10:14:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FB D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:08]wFMCommunicate OK [10:14:08]SAM_PROTO_GetFieldsCounters done [10:14:08]requested_item shift.num is exist - process it [10:14:08]requested_item shift.opened is exist - process it [10:14:08]req_shift_opened [10:14:08]FM_GetShiftState [10:14:08]SAM_PROTO_GetShiftState [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 13 01 00 [10:14:08]Write to MH i2c: E2 08 00 BD A6 80 13 01 00 00 00 00 00 E0 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 0E 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 0E 00 BD A6 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AB [10:14:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:14:08]wFMCommunicate OK [10:14:08]SAM_PROTO_GetShiftState done [10:14:08]FM_GetShiftState done [10:14:08]req_shift_opened done [10:14:08]requested_item shift.open_date is exist - process it [10:14:08]req_shift_open_date [10:14:08]req_shift_open_date done [10:14:08]produce_requested_data done [10:14:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119035,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:14:08]process_action_free close_receipt [10:14:08]json_value_free [10:14:08]json_value_free done [10:14:08]process_json_proto returns [10:14:08]Send response to host [10:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119035,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:14:08]free response buf [10:14:08]execute_script done [10:14:08]execute_script returns [10:14:08]free content buf [10:14:08]Sock 9.Close socket [10:14:08]Sock 9.Thread stoped [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:39]accept exits with 7 [10:16:39]New connection [10:16:39]New thread 3067383140 created [10:16:39] Sock 7.Parse request [10:16:39]Thread 3067239780 joined [10:16:39]Sock 7.Check first char [10:16:39]Waiting for new connection... [10:16:39]Sock 7.First char is OK [10:16:39]request: POST /json_proto HTTP/1.0 [10:16:39]Method: POST [10:16:39]URL: /json_proto [10:16:39]Method is POST - this is cgi request [10:16:39]url: /json_proto [10:16:39]query_string will be loaded in cgi processing [10:16:39]execute_cgi json_proto POST (null) [10:16:39]execute_cgi path=json_proto method=POST [10:16:39]POST find Content-Length [10:16:39]Host: 172.17.45.7:8080 [10:16:39]Content-Length: 674 [10:16:39]Content-Type: application/json [10:16:39] [10:16:39]POST finish read [10:16:39]Found Content-Length = 674 [10:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:39]execute_script... [10:16:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:39]POST & json_proto [10:16:39]process_json_proto [10:16:39]json parsed OK: [10:16:39]protocol is kg_v1.0 [10:16:39]action value=close_receipt [10:16:39]process_action close_receipt [10:16:39]cmd_close_receipt [10:16:39]MH_GetDate [10:16:39]Write to MH i2c: F0 00 00 BE A6 53 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: F0 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: F0 09 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: F0 09 00 BE A6 00 91 BD A8 66 90 0F 3E 66 FB [10:16:39]GetLastDocTimeStamp 1722334454 [10:16:39]current date 1722334609 [10:16:39]FM_GetShiftState [10:16:39]SAM_PROTO_GetShiftState [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 01 00 [10:16:39]Write to MH i2c: E2 08 00 BF A6 80 13 01 00 00 00 00 00 E2 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 BF A6 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AD [10:16:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetShiftState done [10:16:39]FM_GetShiftState done [10:16:39]opened in 1722298242 [10:16:39]opened+sec_in_day 1722384642 [10:16:39]quantity*price = 50063 [10:16:39]sum+1 = 50064 [10:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 88 30.07.2024 10:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119036 ФПД: 33673757354427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101649&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119036&fm=33673757354427&tin=02508201610067®Number=0000000000092660&sum=50000 [10:16:40]StoreToDocumentArchive [10:16:40]shift 435 fd 119036 [10:16:40]save to /storage/0435/doc_00119036 [10:16:40]save last doc name /storage/0435/doc_00119036 to /storage/kkm_last_doc_name [10:16:40]save OK [10:16:40]Clear old archive folders... [10:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:16:40]tlvbuf is 01E4FF20 [10:16:40]SAM_PROTO_ClearQueue [10:16:40]wFMCommunicate request_size=4 [10:16:40]MH_SAM_APDU [10:16:40]CAPDU: 80 09 00 00 [10:16:40]Write to MH i2c: E2 08 00 CC A6 80 09 00 00 00 00 00 00 E4 [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:40]Read from MH i2c: E2 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 03 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 03 00 CC A6 00 90 00 E6 [10:16:40]RAPDU: 90 00 [10:16:40]wFMCommunicate OK [10:16:40]SAM_PROTO_ClearQueue done [10:16:40]KKMCreateOFDPacket [10:16:40]OFDProtocolAddRootSTLVToBuf [10:16:40]FM_MakeSignedData [10:16:40]FM_MakeSignedData [10:16:40]SAM_PROTO_SignData [10:16:40]wFMCommunicate request_size=4 [10:16:40]MH_SAM_APDU [10:16:40]CAPDU: 80 0D 01 02 [10:16:40]Write to MH i2c: E2 08 00 CD A6 80 0D 01 02 00 00 00 00 EC [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:40]Read from MH i2c: E2 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 03 00 [10:16:40]MH_I2C_Read... [10:16:40]Read from MH i2c: E2 03 00 CD A6 00 90 00 E7 [10:16:40]RAPDU: 90 00 [10:16:40]wFMCommunicate OK [10:16:40]wFMCommunicate request_size=255 [10:16:40]MH_SAM_APDU [10:16:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 91 BD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D0 01 00 35 04 06 00 1E A0 48 58 [10:16:40]Write to MH i2c: E2 02 01 CE A6 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 91 BD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D0 01 00 35 04 06 00 1E A0 48 58 00 00 97 [10:16:40]Write i2c OK [10:16:40]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 CE A6 00 90 00 E8 [10:16:41]RAPDU: 90 00 [10:16:41]wFMCommunicate OK [10:16:41]wFMCommunicate request_size=7 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 0D 02 02 02 69 BB [10:16:41]Write to MH i2c: E2 0A 00 CF A6 80 0D 02 02 02 00 69 BB 00 00 17 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 03 00 CF A6 00 90 00 E9 [10:16:41]RAPDU: 90 00 [10:16:41]wFMCommunicate OK [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 0D 03 02 [10:16:41]Write to MH i2c: E2 08 00 D0 A6 80 0D 03 02 00 00 00 00 F1 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 0B 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 0B 00 D0 A6 00 A0 0F D8 32 7D 54 EB 14 90 00 7B [10:16:41]RAPDU: A0 0F D8 32 7D 54 EB 14 90 00 [10:16:41]wFMCommunicate OK [10:16:41]SAM_PROTO_SignData done [10:16:41]FM_MakeSignedData done [10:16:41]CreateOFDProtocolMessage [10:16:41]wFMCommunicate request_size=4 [10:16:41]MH_SAM_APDU [10:16:41]CAPDU: 80 11 00 00 [10:16:41]Write to MH i2c: E2 08 00 D1 A6 80 11 00 00 00 00 00 00 F1 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:41]Read from MH i2c: E2 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 17 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: E2 17 00 D1 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [10:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:16:41]wFMCommunicate OK [10:16:41]CreateOFDProtocolMessage done [10:16:41]OFDSenderStorePacket 119036 [10:16:41]StoreOFDPacket docnum=119036 [10:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C1 B7 04 01 86 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 91 BD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D0 01 00 35 04 06 00 1E A0 48 58 69 BB A0 0F D8 32 7D 54 EB 14 [10:16:41]CheckFolder [10:16:41]dirname=/storage/ofd_packets [10:16:41]CheckFolder done [10:16:41]ProducePacketName [10:16:41]name=ofd_packets/00119036 [10:16:41]NVStorageSaveData ofd_packets/00119036 [10:16:41]File name is /storage/ofd_packets/00119036 [10:16:41]Write 298 bytes [10:16:41]NVStorageSaveData done [10:16:41]OFDSenderStorePacket done [10:16:41]KKMCreateOFDPacket done [10:16:41]NVStorageSaveData kkm_last_timestamp [10:16:41]File name is /storage/kkm_last_timestamp [10:16:41]Write 4 bytes [10:16:41]NVStorageSaveData done [10:16:41]ExternCall_PrintAddStr [10:16:41]wPrintStart [10:16:41]Write to MH i2c: 01 00 00 D2 A6 78 [10:16:41]Write i2c OK [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 07 00 [10:16:41]MH_I2C_Read... [10:16:41]Read from MH i2c: 01 07 00 D2 A6 00 00 00 00 00 FF 0F 8D [10:16:41]RasterBufferAndPrint [10:16:41]line Счет N : (1)949955 [10:16:41]line ИНН: 02508201610067 [10:16:41]line Контрольно-Кассовый Чек [10:16:41]line ПРОДАЖА [10:16:41]line ТРК (МРК, ГНК) : 44 [10:16:41]line Товар: 2710194800 [10:16:41]line ДТ-К-5 [10:16:41]line 6.570 * 76.20 [10:16:41]line = 500.63 [10:16:41]line НДС 12% НСП 1% [10:16:41]line > о реализуемом товаре [10:16:41]line ОКРУГЛЕНИЕ: -0.63 [10:16:41]line ИТОГО: 500.00 [10:16:41]line Внесено: 500.00 [10:16:41]line СДАЧА: 0.00 [10:16:41]line НСП 1% : 4.43 [10:16:41]line НДС 12% : 53.16 [10:16:41]line Наличными: 500.00 [10:16:41]line Безнал.: 0.00 [10:16:41]line Место: АЗС № 134 "Партнер Нефть" [10:16:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:16:41]line СНО: Общий режим [10:16:41]line Чек 88 30.07.2024 10:16 [10:16:41]line Смена: 435 ФФД: 1.0 [10:16:41]line ЗНМ: 0300000044 [10:16:41]line РНМ: 0000000000092660 [10:16:41]line Версия ККМ: 001 [10:16:41]line ФМ: 0000000000874939 [10:16:41]line ФД: 119036 [10:16:41]line ФПД: 33673757354427 [10:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101649&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119036&fm=33673757354427&tin=02508201610067®Number=0000000000092660&sum=50000 [10:16:41]OFD Sender: Processing packet 119036 [packets to send 86, broken 85] [10:16:41]ProducePacketName [10:16:41]name=ofd_packets/00119036 [10:16:41]OFD Sender: To server: pG, [10:16:41]CommunicateWithHost lk.salyk.kg:30040 [10:16:41]ConnectInit lk.salyk.kg [10:16:41]written 0, free lines is 4095 [10:16:41]Connected sock=10 [10:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C1 B7 04 01 86 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 91 BD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FC D0 01 00 35 04 06 00 1E A0 48 58 69 BB A0 0F D8 32 7D 54 EB 14 [10:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 09 D6 47 00 94 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 34 39 33 39 10 04 04 00 FC D0 01 00 F4 03 04 00 1D 6B A8 66 B6 04 01 00 00 08 B4 04 C6 80 21 F8 8F [10:16:41]CommunicateWithHost err = 0 [10:16:41]CheckOFDResponse [10:16:41]1017 (14) - 77093643461234 [10:16:41]1041 (16) - 0000000000874939 [10:16:41]1040 (4) - 119036 [10:16:41]1012 (4) - 30.07.2024 04:25 [10:16:41]1206 (1) - 0 [10:16:41]OFD Sender: Remove packet 119036 [10:16:41]ProducePacketName [10:16:41]name=ofd_packets/00119036 [10:16:41]NVStorageDeleteData [10:16:42]Write to MH i2c: 01 00 00 FC A6 A2 [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: 01 07 00 FC A6 00 00 00 00 00 E0 0C 95 [10:16:42]RasterBufferAndPrint [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]line [10:16:42]written 0, free lines is 3305 [10:16:42]MH_Cut [10:16:42]Write to MH i2c: D1 01 00 03 A7 01 7C [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 01 00 [10:16:42]MH_I2C_Read... [10:16:42]Read from MH i2c: D1 01 00 03 A7 00 7B [10:16:42]Write to MH i2c: 01 00 00 04 A7 AB [10:16:42]Write i2c OK [10:16:42]MH_I2C_Read... [10:16:42]OFD Sender: No OFD packet to send [10:16:42]*** Cut start [10:16:42]*** Partial cut [10:16:42]*** CUTSNS_PIN = 1 [10:16:42]*** CUTSNS_PIN = 0 [10:16:43]*** Brake cut motor [10:16:43]Read from MH i2c: 01 [10:16:43]MH_I2C_Read... [10:16:43]*** Stop cut motor [10:16:43]*** Cut end [10:16:43]Read from MH i2c: 01 07 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: 01 07 00 04 A7 00 00 00 00 00 FF 0F C0 [10:16:43]process_action close_receipt done [10:16:43]requested_data is exist [10:16:43]produce_requested_data [10:16:43]requested_item fm.sn is exist - process it [10:16:43]wFMCommunicate request_size=4 [10:16:43]MH_SAM_APDU [10:16:43]CAPDU: 80 11 00 00 [10:16:43]Write to MH i2c: E2 08 00 05 A7 80 11 00 00 00 00 00 00 26 [10:16:43]Write i2c OK [10:16:43]MH_I2C_Read... [10:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:43]Read from MH i2c: E2 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 17 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 17 00 05 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [10:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:16:43]wFMCommunicate OK [10:16:43]requested_item fd.num is exist - process it [10:16:43]SAM_PROTO_GetFieldsCounters [10:16:43]wFMCommunicate request_size=4 [10:16:43]MH_SAM_APDU [10:16:43]CAPDU: 80 13 00 00 [10:16:43]Write to MH i2c: E2 08 00 06 A7 80 13 00 00 00 00 00 00 29 [10:16:43]Write i2c OK [10:16:43]MH_I2C_Read... [10:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:43]Read from MH i2c: E2 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 62 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 62 00 06 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [10:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FC D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:43]wFMCommunicate OK [10:16:43]SAM_PROTO_GetFieldsCounters done [10:16:43]requested_item shift.num is exist - process it [10:16:43]requested_item shift.opened is exist - process it [10:16:43]req_shift_opened [10:16:43]FM_GetShiftState [10:16:43]SAM_PROTO_GetShiftState [10:16:43]wFMCommunicate request_size=4 [10:16:43]MH_SAM_APDU [10:16:43]CAPDU: 80 13 01 00 [10:16:43]Write to MH i2c: E2 08 00 07 A7 80 13 01 00 00 00 00 00 2B [10:16:43]Write i2c OK [10:16:43]MH_I2C_Read... [10:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:43]Read from MH i2c: E2 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 0E 00 [10:16:43]MH_I2C_Read... [10:16:43]Read from MH i2c: E2 0E 00 07 A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F6 [10:16:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:16:43]wFMCommunicate OK [10:16:43]SAM_PROTO_GetShiftState done [10:16:43]FM_GetShiftState done [10:16:43]req_shift_opened done [10:16:43]requested_item shift.open_date is exist - process it [10:16:43]req_shift_open_date [10:16:43]req_shift_open_date done [10:16:43]produce_requested_data done [10:16:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119036,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:16:43]process_action_free close_receipt [10:16:43]json_value_free [10:16:43]json_value_free done [10:16:43]process_json_proto returns [10:16:43]Send response to host [10:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119036,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:16:43]free response buf [10:16:43]execute_script done [10:16:43]execute_script returns [10:16:43]free content buf [10:16:43]Sock 7.Close socket [10:16:43]Sock 7.Thread stoped [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]accept exits with 9 [10:19:22]New connection [10:19:22]New thread 3067239780 created [10:19:22]Thread 3067383140 joined [10:19:22]Waiting for new connection... [10:19:22] Sock 9.Parse request [10:19:22]Sock 9.Check first char [10:19:22]Sock 9.First char is OK [10:19:22]request: POST /json_proto HTTP/1.0 [10:19:22]Method: POST [10:19:22]URL: /json_proto [10:19:22]Method is POST - this is cgi request [10:19:22]url: /json_proto [10:19:22]query_string will be loaded in cgi processing [10:19:22]execute_cgi json_proto POST (null) [10:19:22]execute_cgi path=json_proto method=POST [10:19:22]POST find Content-Length [10:19:22]Host: 172.17.45.7:8080 [10:19:22]Content-Length: 677 [10:19:22]Content-Type: application/json [10:19:22] [10:19:22]POST finish read [10:19:22]Found Content-Length = 677 [10:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [10:19:22]execute_script... [10:19: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)949956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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" ] } } [10:19:22]POST & json_proto [10:19:22]process_json_proto [10:19:22]json parsed OK: [10:19:22]protocol is kg_v1.0 [10:19:22]action value=close_receipt [10:19:22]process_action close_receipt [10:19:22]cmd_close_receipt [10:19:22]MH_GetDate [10:19:22]Write to MH i2c: F0 00 00 08 A7 9E [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: F0 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: F0 09 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: F0 09 00 08 A7 00 34 BE A8 66 90 0F 3E 66 EA [10:19:22]GetLastDocTimeStamp 1722334609 [10:19:22]current date 1722334772 [10:19:22]FM_GetShiftState [10:19:22]SAM_PROTO_GetShiftState [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 13 01 00 [10:19:22]Write to MH i2c: E2 08 00 09 A7 80 13 01 00 00 00 00 00 2D [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 0E 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 0E 00 09 A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F8 [10:19:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:19:22]wFMCommunicate OK [10:19:22]SAM_PROTO_GetShiftState done [10:19:22]FM_GetShiftState done [10:19:22]opened in 1722298242 [10:19:22]opened+sec_in_day 1722384642 [10:19:22]quantity*price = 20001 [10:19:22]sum+1 = 20002 [10:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 89 30.07.2024 10:19 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119037 ФПД: 95658816221170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101932&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119037&fm=95658816221170&tin=02508201610067®Number=0000000000092660&sum=20000 [10:19:23]StoreToDocumentArchive [10:19:23]shift 435 fd 119037 [10:19:23]save to /storage/0435/doc_00119037 [10:19:23]save last doc name /storage/0435/doc_00119037 to /storage/kkm_last_doc_name [10:19:23]save OK [10:19:23]Clear old archive folders... [10:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:23]tlvbuf is 01FCF290 [10:19:23]SAM_PROTO_ClearQueue [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 09 00 00 [10:19:23]Write to MH i2c: E2 08 00 16 A7 80 09 00 00 00 00 00 00 2F [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 16 A7 00 90 00 31 [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_ClearQueue done [10:19:23]KKMCreateOFDPacket [10:19:23]OFDProtocolAddRootSTLVToBuf [10:19:23]FM_MakeSignedData [10:19:23]FM_MakeSignedData [10:19:23]SAM_PROTO_SignData [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 0D 01 02 [10:19:23]Write to MH i2c: E2 08 00 17 A7 80 0D 01 02 00 00 00 00 37 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 17 A7 00 90 00 32 [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]wFMCommunicate request_size=255 [10:19:23]MH_SAM_APDU [10:19: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 59 00 00 00 F4 03 04 00 34 BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D0 01 00 35 04 06 00 57 [10:19:23]Write to MH i2c: E2 02 01 18 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 59 00 00 00 F4 03 04 00 34 BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D0 01 00 35 04 06 00 57 00 00 EF [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 18 A7 00 90 00 33 [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]wFMCommunicate request_size=10 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 0D 02 02 05 00 4D C2 AF F2 [10:19:23]Write to MH i2c: E2 0D 00 19 A7 80 0D 02 02 05 00 00 4D C2 AF F2 00 00 F4 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 19 A7 00 90 00 34 [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 0D 03 02 [10:19:23]Write to MH i2c: E2 08 00 1A A7 80 0D 03 02 00 00 00 00 3C [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0B 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0B 00 1A A7 00 1D 02 64 5E 09 7E A9 0E 90 00 5C [10:19:23]RAPDU: 1D 02 64 5E 09 7E A9 0E 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_SignData done [10:19:23]FM_MakeSignedData done [10:19:23]CreateOFDProtocolMessage [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 11 00 00 [10:19:23]Write to MH i2c: E2 08 00 1B A7 80 11 00 00 00 00 00 00 3C [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:24]Read from MH i2c: E2 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 17 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: E2 17 00 1B A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [10:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:24]wFMCommunicate OK [10:19:24]CreateOFDProtocolMessage done [10:19:24]OFDSenderStorePacket 119037 [10:19:24]StoreOFDPacket docnum=119037 [10:19:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 16 D4 07 01 30 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 59 00 00 00 F4 03 04 00 34 BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D0 01 00 35 04 06 00 57 00 4D C2 AF F2 1D 02 64 5E 09 7E A9 0E [10:19:24]CheckFolder [10:19:24]dirname=/storage/ofd_packets [10:19:24]CheckFolder done [10:19:24]ProducePacketName [10:19:24]name=ofd_packets/00119037 [10:19:24]NVStorageSaveData ofd_packets/00119037 [10:19:24]File name is /storage/ofd_packets/00119037 [10:19:24]Write 301 bytes [10:19:24]NVStorageSaveData done [10:19:24]OFDSenderStorePacket done [10:19:24]KKMCreateOFDPacket done [10:19:24]NVStorageSaveData kkm_last_timestamp [10:19:24]File name is /storage/kkm_last_timestamp [10:19:24]Write 4 bytes [10:19:24]NVStorageSaveData done [10:19:24]ExternCall_PrintAddStr [10:19:24]wPrintStart [10:19:24]Write to MH i2c: 01 00 00 1C A7 C3 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 1C A7 00 00 00 00 00 FF 0F D8 [10:19:24]RasterBufferAndPrint [10:19:24]line Счет N : (1)949956 [10:19:24]line ИНН: 02508201610067 [10:19:24]line Контрольно-Кассовый Чек [10:19:24]line ПРОДАЖА [10:19:24]line ТРК (МРК, ГНК) : 51 [10:19:24]line Товар: 2710124130 [10:19:24]line Аи-92-К-4 [10:19:24]line 2.950 * 67.80 [10:19:24]line = 200.01 [10:19:24]line НДС 12% НСП 1% [10:19:24]line > о реализуемом товаре [10:19:24]line ОКРУГЛЕНИЕ: -0.01 [10:19:24]line ИТОГО: 200.00 [10:19:24]line Внесено: 200.00 [10:19:24]line СДАЧА: 0.00 [10:19:24]line НСП 1% : 1.77 [10:19:24]line НДС 12% : 21.24 [10:19:24]line Наличными: 200.00 [10:19:24]line Безнал.: 0.00 [10:19:24]line Место: АЗС № 134 "Партнер Нефть" [10:19:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:19:24]line СНО: Общий режим [10:19:24]line Чек 89 30.07.2024 10:19 [10:19:24]line Смена: 435 ФФД: 1.0 [10:19:24]line ЗНМ: 0300000044 [10:19:24]line РНМ: 0000000000092660 [10:19:24]line Версия ККМ: 001 [10:19:24]line ФМ: 0000000000874939 [10:19:24]line ФД: 119037 [10:19:24]line ФПД: 95658816221170 [10:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T101932&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119037&fm=95658816221170&tin=02508201610067®Number=0000000000092660&sum=20000 [10:19:24]written 0, free lines is 4095 [10:19:24]OFD Sender: Processing packet 119037 [packets to send 86, broken 85] [10:19:24]ProducePacketName [10:19:24]name=ofd_packets/00119037 [10:19:24]OFD Sender: To server: pG, [10:19:24]CommunicateWithHost lk.salyk.kg:30040 [10:19:24]ConnectInit lk.salyk.kg [10:19:24]Connected sock=10 [10:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 16 D4 07 01 30 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 59 00 00 00 F4 03 04 00 34 BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D0 01 00 35 04 06 00 57 00 4D C2 AF F2 1D 02 64 5E 09 7E A9 0E [10:19:24]Write to MH i2c: 01 00 00 46 A7 ED [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: 01 07 00 46 A7 00 00 00 00 00 DF 0C DF [10:19:24]RasterBufferAndPrint [10:19:24]line [10:19:24]line [10:19:24]line [10:19:24]line [10:19:24]line [10:19:24]written 0, free lines is 3301 [10:19:24]MH_Cut [10:19:24]Write to MH i2c: D1 01 00 4D A7 01 C6 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: D1 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: D1 01 00 [10:19:24]MH_I2C_Read... [10:19:24]Read from MH i2c: D1 01 00 4D A7 00 C5 [10:19:24]Write to MH i2c: 01 00 00 4E A7 F5 [10:19:24]Write i2c OK [10:19:24]MH_I2C_Read... [10:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F1 0C 47 00 AD 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FD D0 01 00 F4 03 04 00 C0 6B A8 66 B6 04 01 00 00 C4 01 C3 84 29 71 B0 91 [10:19:24]CommunicateWithHost err = 0 [10:19:24]CheckOFDResponse [10:19:24]1017 (14) - 77093643461234 [10:19:24]1041 (16) - 0000000000874939 [10:19:24]1040 (4) - 119037 [10:19:24]1012 (4) - 30.07.2024 04:27 [10:19:24]1206 (1) - 0 [10:19:24]OFD Sender: Remove packet 119037 [10:19:24]ProducePacketName [10:19:24]name=ofd_packets/00119037 [10:19:24]NVStorageDeleteData [10:19:25]OFD Sender: No OFD packet to send [10:19:25]*** Cut start [10:19:25]*** Partial cut [10:19:25]*** CUTSNS_PIN = 1 [10:19:25]*** CUTSNS_PIN = 0 [10:19:25]*** Brake cut motor [10:19:25]Read from MH i2c: 01 [10:19:25]MH_I2C_Read... [10:19:25]*** Stop cut motor [10:19:25]*** Cut end [10:19:25]Read from MH i2c: 01 07 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 07 00 4E A7 00 00 00 00 00 FF 0F 0A [10:19:25]process_action close_receipt done [10:19:25]requested_data is exist [10:19:25]produce_requested_data [10:19:25]requested_item fm.sn is exist - process it [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 11 00 00 [10:19:25]Write to MH i2c: E2 08 00 4F A7 80 11 00 00 00 00 00 00 70 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 17 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 17 00 4F A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [10:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:19:25]wFMCommunicate OK [10:19:25]requested_item fd.num is exist - process it [10:19:25]SAM_PROTO_GetFieldsCounters [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 13 00 00 [10:19:25]Write to MH i2c: E2 08 00 50 A7 80 13 00 00 00 00 00 00 73 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 62 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 62 00 50 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [10:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FD D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:26]wFMCommunicate OK [10:19:26]SAM_PROTO_GetFieldsCounters done [10:19:26]requested_item shift.num is exist - process it [10:19:26]requested_item shift.opened is exist - process it [10:19:26]req_shift_opened [10:19:26]FM_GetShiftState [10:19:26]SAM_PROTO_GetShiftState [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 13 01 00 [10:19:26]Write to MH i2c: E2 08 00 51 A7 80 13 01 00 00 00 00 00 75 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 0E 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 0E 00 51 A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 40 [10:19:26]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:19:26]wFMCommunicate OK [10:19:26]SAM_PROTO_GetShiftState done [10:19:26]FM_GetShiftState done [10:19:26]req_shift_opened done [10:19:26]requested_item shift.open_date is exist - process it [10:19:26]req_shift_open_date [10:19:26]req_shift_open_date done [10:19:26]produce_requested_data done [10:19:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119037,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:19:26]process_action_free close_receipt [10:19:26]json_value_free [10:19:26]json_value_free done [10:19:26]process_json_proto returns [10:19:26]Send response to host [10:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119037,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:19:26]free response buf [10:19:26]execute_script done [10:19:26]execute_script returns [10:19:26]free content buf [10:19:26]Sock 9.Close socket [10:19:26]Sock 9.Thread stoped [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:41]accept exits with 7 [10:21:41]New connection [10:21:41]New thread 3067383140 created [10:21:41]Thread 3067239780 joined [10:21:41]Waiting for new connection... [10:21:41] Sock 7.Parse request [10:21:41]Sock 7.Check first char [10:21:41]Sock 7.First char is OK [10:21:41]request: POST /json_proto HTTP/1.0 [10:21:41]Method: POST [10:21:41]URL: /json_proto [10:21:41]Method is POST - this is cgi request [10:21:41]url: /json_proto [10:21:41]query_string will be loaded in cgi processing [10:21:41]execute_cgi json_proto POST (null) [10:21:41]execute_cgi path=json_proto method=POST [10:21:41]POST find Content-Length [10:21:41]Host: 172.17.45.7:8080 [10:21:41]Content-Length: 677 [10:21:41]Content-Type: application/json [10:21:41] [10:21:41]POST finish read [10:21:41]Found Content-Length = 677 [10:21:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:41]execute_script... [10: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)949957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:41]POST & json_proto [10:21:41]process_json_proto [10:21:41]json parsed OK: [10:21:41]protocol is kg_v1.0 [10:21:41]action value=close_receipt [10:21:41]process_action close_receipt [10:21:41]cmd_close_receipt [10:21:41]MH_GetDate [10:21:41]Write to MH i2c: F0 00 00 52 A7 E8 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: F0 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: F0 09 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: F0 09 00 52 A7 00 BF BE A8 66 90 0F 3E 66 BF [10:21:41]GetLastDocTimeStamp 1722334772 [10:21:41]current date 1722334911 [10:21:41]FM_GetShiftState [10:21:41]SAM_PROTO_GetShiftState [10:21:41]wFMCommunicate request_size=4 [10:21:41]MH_SAM_APDU [10:21:41]CAPDU: 80 13 01 00 [10:21:41]Write to MH i2c: E2 08 00 53 A7 80 13 01 00 00 00 00 00 77 [10:21:41]Write i2c OK [10:21:41]MH_I2C_Read... [10:21:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:41]Read from MH i2c: E2 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0E 00 [10:21:41]MH_I2C_Read... [10:21:41]Read from MH i2c: E2 0E 00 53 A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 42 [10:21:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:21:41]wFMCommunicate OK [10:21:41]SAM_PROTO_GetShiftState done [10:21:41]FM_GetShiftState done [10:21:41]opened in 1722298242 [10:21:41]opened+sec_in_day 1722384642 [10:21:41]quantity*price = 40002 [10:21:41]sum+1 = 40003 [10:21:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 90 30.07.2024 10:21 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119038 ФПД: 81591059080737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T102151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119038&fm=81591059080737&tin=02508201610067®Number=0000000000092660&sum=40000 [10:21:42]StoreToDocumentArchive [10:21:42]shift 435 fd 119038 [10:21:42]save to /storage/0435/doc_00119038 [10:21:42]save last doc name /storage/0435/doc_00119038 to /storage/kkm_last_doc_name [10:21:42]save OK [10:21:42]Clear old archive folders... [10:21:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:42]tlvbuf is 0203E850 [10:21:42]SAM_PROTO_ClearQueue [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 09 00 00 [10:21:42]Write to MH i2c: E2 08 00 60 A7 80 09 00 00 00 00 00 00 79 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:42]Read from MH i2c: E2 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 [10:21:42]MH_I2C_Read... [10:21:42]Read from MH i2c: E2 03 00 60 A7 00 90 00 7B [10:21:42]RAPDU: 90 00 [10:21:42]wFMCommunicate OK [10:21:42]SAM_PROTO_ClearQueue done [10:21:42]KKMCreateOFDPacket [10:21:42]OFDProtocolAddRootSTLVToBuf [10:21:42]FM_MakeSignedData [10:21:42]FM_MakeSignedData [10:21:42]SAM_PROTO_SignData [10:21:42]wFMCommunicate request_size=4 [10:21:42]MH_SAM_APDU [10:21:42]CAPDU: 80 0D 01 02 [10:21:42]Write to MH i2c: E2 08 00 61 A7 80 0D 01 02 00 00 00 00 81 [10:21:42]Write i2c OK [10:21:42]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 03 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 03 00 61 A7 00 90 00 7C [10:21:43]RAPDU: 90 00 [10:21:43]wFMCommunicate OK [10:21:43]wFMCommunicate request_size=255 [10:21:43]MH_SAM_APDU [10:21: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 BF BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D0 01 00 35 04 06 00 4A [10:21:43]Write to MH i2c: E2 02 01 62 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 BF BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D0 01 00 35 04 06 00 4A 00 00 9C [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 03 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 03 00 62 A7 00 90 00 7D [10:21:43]RAPDU: 90 00 [10:21:43]wFMCommunicate OK [10:21:43]wFMCommunicate request_size=10 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 0D 02 02 05 34 E6 17 E6 21 [10:21:43]Write to MH i2c: E2 0D 00 63 A7 80 0D 02 02 05 00 34 E6 17 E6 21 00 00 C6 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 03 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 03 00 63 A7 00 90 00 7E [10:21:43]RAPDU: 90 00 [10:21:43]wFMCommunicate OK [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 0D 03 02 [10:21:43]Write to MH i2c: E2 08 00 64 A7 80 0D 03 02 00 00 00 00 86 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 0B 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 0B 00 64 A7 00 E6 BD A0 F7 24 75 AC 96 90 00 9C [10:21:43]RAPDU: E6 BD A0 F7 24 75 AC 96 90 00 [10:21:43]wFMCommunicate OK [10:21:43]SAM_PROTO_SignData done [10:21:43]FM_MakeSignedData done [10:21:43]CreateOFDProtocolMessage [10:21:43]wFMCommunicate request_size=4 [10:21:43]MH_SAM_APDU [10:21:43]CAPDU: 80 11 00 00 [10:21:43]Write to MH i2c: E2 08 00 65 A7 80 11 00 00 00 00 00 00 86 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:43]Read from MH i2c: E2 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 17 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: E2 17 00 65 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E1 [10:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:21:43]wFMCommunicate OK [10:21:43]CreateOFDProtocolMessage done [10:21:43]OFDSenderStorePacket 119038 [10:21:43]StoreOFDPacket docnum=119038 [10:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 36 C8 07 01 CE 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 BF BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D0 01 00 35 04 06 00 4A 34 E6 17 E6 21 E6 BD A0 F7 24 75 AC 96 [10:21:43]CheckFolder [10:21:43]dirname=/storage/ofd_packets [10:21:43]CheckFolder done [10:21:43]ProducePacketName [10:21:43]name=ofd_packets/00119038 [10:21:43]NVStorageSaveData ofd_packets/00119038 [10:21:43]File name is /storage/ofd_packets/00119038 [10:21:43]Write 301 bytes [10:21:43]NVStorageSaveData done [10:21:43]OFDSenderStorePacket done [10:21:43]KKMCreateOFDPacket done [10:21:43]NVStorageSaveData kkm_last_timestamp [10:21:43]File name is /storage/kkm_last_timestamp [10:21:43]Write 4 bytes [10:21:43]NVStorageSaveData done [10:21:43]ExternCall_PrintAddStr [10:21:43]wPrintStart [10:21:43]Write to MH i2c: 01 00 00 66 A7 0D [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 66 A7 00 00 00 00 00 FF 0F 22 [10:21:43]RasterBufferAndPrint [10:21:43]line Счет N : (1)949957 [10:21:43]line ИНН: 02508201610067 [10:21:43]line Контрольно-Кассовый Чек [10:21:43]line ПРОДАЖА [10:21:43]line ТРК (МРК, ГНК) : 31 [10:21:43]line Товар: 2710124130 [10:21:43]line Аи-92-К-4 [10:21:43]line 5.900 * 67.80 [10:21:43]line = 400.02 [10:21:43]line НДС 12% НСП 1% [10:21:43]line > о реализуемом товаре [10:21:43]line ОКРУГЛЕНИЕ: -0.02 [10:21:43]line ИТОГО: 400.00 [10:21:43]line Внесено: 400.00 [10:21:43]line СДАЧА: 0.00 [10:21:43]line НСП 1% : 3.54 [10:21:43]line НДС 12% : 42.48 [10:21:43]line Наличными: 400.00 [10:21:43]line Безнал.: 0.00 [10:21:43]line Место: АЗС № 134 "Партнер Нефть" [10:21:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:21:43]line СНО: Общий режим [10:21:43]line Чек 90 30.07.2024 10:21 [10:21:43]line Смена: 435 ФФД: 1.0 [10:21:43]line ЗНМ: 0300000044 [10:21:43]line РНМ: 0000000000092660 [10:21:43]line Версия ККМ: 001 [10:21:43]line ФМ: 0000000000874939 [10:21:43]line ФД: 119038 [10:21:43]line ФПД: 81591059080737 [10:21:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T102151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119038&fm=81591059080737&tin=02508201610067®Number=0000000000092660&sum=40000 [10:21:43]written 0, free lines is 4095 [10:21:43]OFD Sender: Processing packet 119038 [packets to send 86, broken 85] [10:21:43]ProducePacketName [10:21:43]name=ofd_packets/00119038 [10:21:43]OFD Sender: To server: pG, [10:21:43]CommunicateWithHost lk.salyk.kg:30040 [10:21:43]ConnectInit lk.salyk.kg [10:21:43]Connected sock=10 [10:21:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 36 C8 07 01 CE 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 5A 00 00 00 F4 03 04 00 BF BE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D0 01 00 35 04 06 00 4A 34 E6 17 E6 21 E6 BD A0 F7 24 75 AC 96 [10:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C6 E3 47 00 89 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FE D0 01 00 F4 03 04 00 4B 6C A8 66 B6 04 01 00 00 13 65 5B AD 11 48 8B 5A [10:21:43]CommunicateWithHost err = 0 [10:21:43]CheckOFDResponse [10:21:43]1017 (14) - 77093643461234 [10:21:43]1041 (16) - 0000000000874939 [10:21:43]1040 (4) - 119038 [10:21:43]1012 (4) - 30.07.2024 04:30 [10:21:43]1206 (1) - 0 [10:21:43]OFD Sender: Remove packet 119038 [10:21:43]ProducePacketName [10:21:43]name=ofd_packets/00119038 [10:21:43]NVStorageDeleteData [10:21:43]Write to MH i2c: 01 00 00 90 A7 37 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: 01 07 00 90 A7 00 00 00 00 00 F1 0C 3B [10:21:43]RasterBufferAndPrint [10:21:43]line [10:21:43]line [10:21:43]line [10:21:43]line [10:21:43]line [10:21:43]written 0, free lines is 3320 [10:21:43]MH_Cut [10:21:43]Write to MH i2c: D1 01 00 97 A7 01 10 [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: D1 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: D1 01 00 [10:21:43]MH_I2C_Read... [10:21:43]Read from MH i2c: D1 01 00 97 A7 00 0F [10:21:43]Write to MH i2c: 01 00 00 98 A7 3F [10:21:43]Write i2c OK [10:21:43]MH_I2C_Read... [10:21:44]OFD Sender: No OFD packet to send [10:21:44]*** Cut start [10:21:44]*** Partial cut [10:21:44]*** CUTSNS_PIN = 1 [10:21:44]*** CUTSNS_PIN = 0 [10:21:44]*** Brake cut motor [10:21:45]Read from MH i2c: 01 [10:21:45]MH_I2C_Read... [10:21:45]*** Stop cut motor [10:21:45]*** Cut end [10:21:45]Read from MH i2c: 01 07 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: 01 07 00 98 A7 00 00 00 00 00 FF 0F 54 [10:21:45]process_action close_receipt done [10:21:45]requested_data is exist [10:21:45]produce_requested_data [10:21:45]requested_item fm.sn is exist - process it [10:21:45]wFMCommunicate request_size=4 [10:21:45]MH_SAM_APDU [10:21:45]CAPDU: 80 11 00 00 [10:21:45]Write to MH i2c: E2 08 00 99 A7 80 11 00 00 00 00 00 00 BA [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 17 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 17 00 99 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [10:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:21:45]wFMCommunicate OK [10:21:45]requested_item fd.num is exist - process it [10:21:45]SAM_PROTO_GetFieldsCounters [10:21:45]wFMCommunicate request_size=4 [10:21:45]MH_SAM_APDU [10:21:45]CAPDU: 80 13 00 00 [10:21:45]Write to MH i2c: E2 08 00 9A A7 80 13 00 00 00 00 00 00 BD [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 62 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 62 00 9A A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [10: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FE D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:45]wFMCommunicate OK [10:21:45]SAM_PROTO_GetFieldsCounters done [10:21:45]requested_item shift.num is exist - process it [10:21:45]requested_item shift.opened is exist - process it [10:21:45]req_shift_opened [10:21:45]FM_GetShiftState [10:21:45]SAM_PROTO_GetShiftState [10:21:45]wFMCommunicate request_size=4 [10:21:45]MH_SAM_APDU [10:21:45]CAPDU: 80 13 01 00 [10:21:45]Write to MH i2c: E2 08 00 9B A7 80 13 01 00 00 00 00 00 BF [10:21:45]Write i2c OK [10:21:45]MH_I2C_Read... [10:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:45]Read from MH i2c: E2 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 0E 00 [10:21:45]MH_I2C_Read... [10:21:45]Read from MH i2c: E2 0E 00 9B A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8A [10:21:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:21:45]wFMCommunicate OK [10:21:45]SAM_PROTO_GetShiftState done [10:21:45]FM_GetShiftState done [10:21:45]req_shift_opened done [10:21:45]requested_item shift.open_date is exist - process it [10:21:45]req_shift_open_date [10:21:45]req_shift_open_date done [10:21:45]produce_requested_data done [10:21:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119038,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:21:45]process_action_free close_receipt [10:21:45]json_value_free [10:21:45]json_value_free done [10:21:45]process_json_proto returns [10:21:45]Send response to host [10:21:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119038,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:21:45]free response buf [10:21:45]execute_script done [10:21:45]execute_script returns [10:21:45]free content buf [10:21:45]Sock 7.Close socket [10:21:45]Sock 7.Thread stoped [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]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:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:55]accept exits with 9 [10:26:55]New connection [10:26:55]New thread 3067239780 created [10:26:55]Thread 3067383140 joined [10:26:55]Waiting for new connection... [10:26:55] Sock 9.Parse request [10:26:55]Sock 9.Check first char [10:26:55]Sock 9.First char is OK [10:26:55]request: POST /json_proto HTTP/1.0 [10:26:55]Method: POST [10:26:55]URL: /json_proto [10:26:55]Method is POST - this is cgi request [10:26:55]url: /json_proto [10:26:55]query_string will be loaded in cgi processing [10:26:55]execute_cgi json_proto POST (null) [10:26:55]execute_cgi path=json_proto method=POST [10:26:55]POST find Content-Length [10:26:55]Host: 172.17.45.7:8080 [10:26:55]Content-Length: 679 [10:26:55]Content-Type: application/json [10:26:55] [10:26:55]POST finish read [10:26:55]Found Content-Length = 679 [10:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:55]execute_script... [10:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:55]POST & json_proto [10:26:55]process_json_proto [10:26:55]json parsed OK: [10:26:55]protocol is kg_v1.0 [10:26:55]action value=close_receipt [10:26:55]process_action close_receipt [10:26:55]cmd_close_receipt [10:26:55]MH_GetDate [10:26:55]Write to MH i2c: F0 00 00 9C A7 32 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: F0 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: F0 09 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: F0 09 00 9C A7 00 FA BF A8 66 90 0F 3E 66 45 [10:26:55]GetLastDocTimeStamp 1722334911 [10:26:55]current date 1722335226 [10:26:55]FM_GetShiftState [10:26:55]SAM_PROTO_GetShiftState [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 13 01 00 [10:26:55]Write to MH i2c: E2 08 00 9D A7 80 13 01 00 00 00 00 00 C1 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 0E 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 0E 00 9D A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8C [10:26:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:26:55]wFMCommunicate OK [10:26:55]SAM_PROTO_GetShiftState done [10:26:55]FM_GetShiftState done [10:26:55]opened in 1722298242 [10:26:55]opened+sec_in_day 1722384642 [10:26:55]quantity*price = 100050 [10:26:55]sum+1 = 100052 [10:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 91 30.07.2024 10:27 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119039 ФПД: 159607728701034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T102706&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119039&fm=159607728701034&tin=02508201610067®Number=0000000000092660&sum=100000 [10:26:57]StoreToDocumentArchive [10:26:57]shift 435 fd 119039 [10:26:57]save to /storage/0435/doc_00119039 [10:26:57]save last doc name /storage/0435/doc_00119039 to /storage/kkm_last_doc_name [10:26:57]save OK [10:26:57]Clear old archive folders... [10:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:57]tlvbuf is 01FB6180 [10:26:57]SAM_PROTO_ClearQueue [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 09 00 00 [10:26:57]Write to MH i2c: E2 08 00 AA A7 80 09 00 00 00 00 00 00 C3 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 AA A7 00 90 00 C5 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_ClearQueue done [10:26:57]KKMCreateOFDPacket [10:26:57]OFDProtocolAddRootSTLVToBuf [10:26:57]FM_MakeSignedData [10:26:57]FM_MakeSignedData [10:26:57]SAM_PROTO_SignData [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 01 02 [10:26:57]Write to MH i2c: E2 08 00 AB A7 80 0D 01 02 00 00 00 00 CB [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 AB A7 00 90 00 C6 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=255 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FA BF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D0 01 00 35 04 06 00 91 29 91 F8 [10:26:57]Write to MH i2c: E2 02 01 AC A7 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FA BF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D0 01 00 35 04 06 00 91 29 91 F8 00 00 44 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 AC A7 00 90 00 C7 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=7 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 02 02 02 FE 6A [10:26:57]Write to MH i2c: E2 0A 00 AD A7 80 0D 02 02 02 00 FE 6A 00 00 3A [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 03 00 AD A7 00 90 00 C8 [10:26:57]RAPDU: 90 00 [10:26:57]wFMCommunicate OK [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 0D 03 02 [10:26:57]Write to MH i2c: E2 08 00 AE A7 80 0D 03 02 00 00 00 00 D0 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0B 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 0B 00 AE A7 00 65 8A 72 4F 80 13 28 14 90 00 50 [10:26:57]RAPDU: 65 8A 72 4F 80 13 28 14 90 00 [10:26:57]wFMCommunicate OK [10:26:57]SAM_PROTO_SignData done [10:26:57]FM_MakeSignedData done [10:26:57]CreateOFDProtocolMessage [10:26:57]wFMCommunicate request_size=4 [10:26:57]MH_SAM_APDU [10:26:57]CAPDU: 80 11 00 00 [10:26:57]Write to MH i2c: E2 08 00 AF A7 80 11 00 00 00 00 00 00 D0 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:57]Read from MH i2c: E2 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: E2 17 00 AF A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [10:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:26:57]wFMCommunicate OK [10:26:57]CreateOFDProtocolMessage done [10:26:57]OFDSenderStorePacket 119039 [10:26:57]StoreOFDPacket docnum=119039 [10:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 97 4E 04 01 FD 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FA BF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D0 01 00 35 04 06 00 91 29 91 F8 FE 6A 65 8A 72 4F 80 13 28 14 [10:26:57]CheckFolder [10:26:57]dirname=/storage/ofd_packets [10:26:57]CheckFolder done [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00119039 [10:26:57]NVStorageSaveData ofd_packets/00119039 [10:26:57]File name is /storage/ofd_packets/00119039 [10:26:57]Write 298 bytes [10:26:57]NVStorageSaveData done [10:26:57]OFDSenderStorePacket done [10:26:57]KKMCreateOFDPacket done [10:26:57]NVStorageSaveData kkm_last_timestamp [10:26:57]File name is /storage/kkm_last_timestamp [10:26:57]Write 4 bytes [10:26:57]NVStorageSaveData done [10:26:57]ExternCall_PrintAddStr [10:26:57]wPrintStart [10:26:57]Write to MH i2c: 01 00 00 B0 A7 57 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 B0 A7 00 00 00 00 00 FF 0F 6C [10:26:57]RasterBufferAndPrint [10:26:57]line Счет N : (1)949958 [10:26:57]line ИНН: 02508201610067 [10:26:57]line Контрольно-Кассовый Чек [10:26:57]line ПРОДАЖА [10:26:57]line ТРК (МРК, ГНК) : 64 [10:26:57]line Товар: 2710194800 [10:26:57]line ДТ-К-5 [10:26:57]line 13.130 * 76.20 [10:26:57]line = 1000.51 [10:26:57]line НДС 12% НСП 1% [10:26:57]line > о реализуемом товаре [10:26:57]line ОКРУГЛЕНИЕ: -0.51 [10:26:57]line ИТОГО: 1000.00 [10:26:57]line Внесено: 1000.00 [10:26:57]line СДАЧА: 0.00 [10:26:57]line НСП 1% : 8.85 [10:26:57]line НДС 12% : 106.25 [10:26:57]line Наличными: 1000.00 [10:26:57]line Безнал.: 0.00 [10:26:57]line Место: АЗС № 134 "Партнер Нефть" [10:26:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:26:57]line СНО: Общий режим [10:26:57]line Чек 91 30.07.2024 10:27 [10:26:57]line Смена: 435 ФФД: 1.0 [10:26:57]line ЗНМ: 0300000044 [10:26:57]line РНМ: 0000000000092660 [10:26:57]line Версия ККМ: 001 [10:26:57]line ФМ: 0000000000874939 [10:26:57]line ФД: 119039 [10:26:57]line ФПД: 159607728701034 [10:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T102706&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119039&fm=159607728701034&tin=02508201610067®Number=0000000000092660&sum=100000 [10:26:57]OFD Sender: Processing packet 119039 [packets to send 86, broken 85] [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00119039 [10:26:57]OFD Sender: To server: pG, [10:26:57]CommunicateWithHost lk.salyk.kg:30040 [10:26:57]ConnectInit lk.salyk.kg [10:26:57]written 0, free lines is 4095 [10:26:58]Connected sock=10 [10:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 97 4E 04 01 FD 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 FA BF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 FF D0 01 00 35 04 06 00 91 29 91 F8 FE 6A 65 8A 72 4F 80 13 28 14 [10:26:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DC 0C 47 00 93 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 34 39 33 39 10 04 04 00 FF D0 01 00 F4 03 04 00 85 6D A8 66 B6 04 01 00 00 A8 25 53 F6 31 F8 3B 4C [10:26:58]CommunicateWithHost err = 0 [10:26:58]CheckOFDResponse [10:26:58]1017 (14) - 77093643461234 [10:26:58]1041 (16) - 0000000000874939 [10:26:58]1040 (4) - 119039 [10:26:58]1012 (4) - 30.07.2024 04:35 [10:26:58]1206 (1) - 0 [10:26:58]OFD Sender: Remove packet 119039 [10:26:58]ProducePacketName [10:26:58]name=ofd_packets/00119039 [10:26:58]NVStorageDeleteData [10:26:58]Write to MH i2c: 01 00 00 DA A7 81 [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 07 00 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 07 00 DA A7 00 00 00 00 00 EB 0C 7F [10:26:58]RasterBufferAndPrint [10:26:58]line [10:26:58]line [10:26:58]line [10:26:58]line [10:26:58]line [10:26:58]written 0, free lines is 3313 [10:26:58]MH_Cut [10:26:58]Write to MH i2c: D1 01 00 E1 A7 01 5A [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: D1 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: D1 01 00 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: D1 01 00 E1 A7 00 59 [10:26:58]Write to MH i2c: 01 00 00 E2 A7 89 [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:58]OFD Sender: No OFD packet to send [10:26:59]*** Cut start [10:26:59]*** Partial cut [10:26:59]*** CUTSNS_PIN = 1 [10:26:59]*** CUTSNS_PIN = 0 [10:26:59]*** Brake cut motor [10:26:59]Read from MH i2c: 01 [10:26:59]MH_I2C_Read... [10:26:59]*** Stop cut motor [10:26:59]*** Cut end [10:26:59]Read from MH i2c: 01 07 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: 01 07 00 E2 A7 00 00 00 00 00 FF 0F 9E [10:26:59]process_action close_receipt done [10:26:59]requested_data is exist [10:26:59]produce_requested_data [10:26:59]requested_item fm.sn is exist - process it [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 11 00 00 [10:26:59]Write to MH i2c: E2 08 00 E3 A7 80 11 00 00 00 00 00 00 04 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 17 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 17 00 E3 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [10:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:26:59]wFMCommunicate OK [10:26:59]requested_item fd.num is exist - process it [10:26:59]SAM_PROTO_GetFieldsCounters [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 00 00 [10:26:59]Write to MH i2c: E2 08 00 E4 A7 80 13 00 00 00 00 00 00 07 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 62 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 62 00 E4 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [10:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 FF D0 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetFieldsCounters done [10:26:59]requested_item shift.num is exist - process it [10:26:59]requested_item shift.opened is exist - process it [10:26:59]req_shift_opened [10:26:59]FM_GetShiftState [10:26:59]SAM_PROTO_GetShiftState [10:26:59]wFMCommunicate request_size=4 [10:26:59]MH_SAM_APDU [10:26:59]CAPDU: 80 13 01 00 [10:26:59]Write to MH i2c: E2 08 00 E5 A7 80 13 01 00 00 00 00 00 09 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 E5 A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D4 [10:26:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetShiftState done [10:26:59]FM_GetShiftState done [10:26:59]req_shift_opened done [10:26:59]requested_item shift.open_date is exist - process it [10:26:59]req_shift_open_date [10:26:59]req_shift_open_date done [10:26:59]produce_requested_data done [10:26:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119039,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:26:59]process_action_free close_receipt [10:26:59]json_value_free [10:26:59]json_value_free done [10:26:59]process_json_proto returns [10:26:59]Send response to host [10:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119039,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:26:59]free response buf [10:26:59]execute_script done [10:26:59]execute_script returns [10:26:59]free content buf [10:26:59]Sock 9.Close socket [10:26:59]Sock 9.Thread stoped [10:27:03]OFD Sender: No OFD packet to send [10:27:08]OFD Sender: No OFD packet to send [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:35]accept exits with 7 [10:28:35]New connection [10:28:35]New thread 3067383140 created [10:28:35]Thread 3067239780 joined [10:28:35]Waiting for new connection... [10:28:35] Sock 7.Parse request [10:28:35]Sock 7.Check first char [10:28:35]Sock 7.First char is OK [10:28:35]request: POST /json_proto HTTP/1.0 [10:28:35]Method: POST [10:28:35]URL: /json_proto [10:28:35]Method is POST - this is cgi request [10:28:35]url: /json_proto [10:28:35]query_string will be loaded in cgi processing [10:28:35]execute_cgi json_proto POST (null) [10:28:35]execute_cgi path=json_proto method=POST [10:28:35]POST find Content-Length [10:28:35]Host: 172.17.45.7:8080 [10:28:35]Content-Length: 682 [10:28:35]Content-Type: application/json [10:28:35] [10:28:35]POST finish read [10:28:35]Found Content-Length = 682 [10:28:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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:28:35]execute_script... [10:28: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)949959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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:28:35]POST & json_proto [10:28:35]process_json_proto [10:28:35]json parsed OK: [10:28:35]protocol is kg_v1.0 [10:28:35]action value=close_receipt [10:28:35]process_action close_receipt [10:28:35]cmd_close_receipt [10:28:35]MH_GetDate [10:28:35]Write to MH i2c: F0 00 00 E6 A7 7C [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: F0 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: F0 09 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: F0 09 00 E6 A7 00 5D C0 A8 66 90 0F 3E 66 F3 [10:28:35]GetLastDocTimeStamp 1722335226 [10:28:35]current date 1722335325 [10:28:35]FM_GetShiftState [10:28:35]SAM_PROTO_GetShiftState [10:28:35]wFMCommunicate request_size=4 [10:28:35]MH_SAM_APDU [10:28:35]CAPDU: 80 13 01 00 [10:28:35]Write to MH i2c: E2 08 00 E7 A7 80 13 01 00 00 00 00 00 0B [10:28:35]Write i2c OK [10:28:35]MH_I2C_Read... [10:28:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:35]Read from MH i2c: E2 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 [10:28:35]MH_I2C_Read... [10:28:35]Read from MH i2c: E2 0E 00 E7 A7 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D6 [10:28:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:28:35]wFMCommunicate OK [10:28:35]SAM_PROTO_GetShiftState done [10:28:35]FM_GetShiftState done [10:28:35]opened in 1722298242 [10:28:35]opened+sec_in_day 1722384642 [10:28:35]quantity*price = 120006 [10:28:35]sum+1 = 120007 [10:28:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 92 30.07.2024 10:28 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119040 ФПД: 46710416461485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T102845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119040&fm=46710416461485&tin=02508201610067®Number=0000000000092660&sum=120000 [10:28:36]StoreToDocumentArchive [10:28:36]shift 435 fd 119040 [10:28:36]save to /storage/0435/doc_00119040 [10:28:36]save last doc name /storage/0435/doc_00119040 to /storage/kkm_last_doc_name [10:28:36]save OK [10:28:36]Clear old archive folders... [10:28:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:36]tlvbuf is 01E4D3A0 [10:28:36]SAM_PROTO_ClearQueue [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 09 00 00 [10:28:36]Write to MH i2c: E2 08 00 F4 A7 80 09 00 00 00 00 00 00 0D [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 F4 A7 00 90 00 0F [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]SAM_PROTO_ClearQueue done [10:28:36]KKMCreateOFDPacket [10:28:36]OFDProtocolAddRootSTLVToBuf [10:28:36]FM_MakeSignedData [10:28:36]FM_MakeSignedData [10:28:36]SAM_PROTO_SignData [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 0D 01 02 [10:28:36]Write to MH i2c: E2 08 00 F5 A7 80 0D 01 02 00 00 00 00 15 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:36]E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 F5 A7 00 90 00 10 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]wFMCommunicate request_size=255 [10:28:36]MH_SAM_APDU [10:28: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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 5C 00 00 00 F4 03 04 00 5D C0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D1 01 00 35 04 06 00 2A [10:28:36]Write to MH i2c: E2 02 01 F6 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 5C 00 00 00 F4 03 04 00 5D C0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D1 01 00 35 04 06 00 2A 00 00 42 [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 F6 A7 00 90 00 11 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]wFMCommunicate request_size=10 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 0D 02 02 05 7B 9D C7 CE AD [10:28:36]Write to MH i2c: E2 0D 00 F7 A7 80 0D 02 02 05 00 7B 9D C7 CE AD 00 00 7C [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:36]Read from MH i2c: E2 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 [10:28:36]MH_I2C_Read... [10:28:36]Read from MH i2c: E2 03 00 F7 A7 00 90 00 12 [10:28:36]RAPDU: 90 00 [10:28:36]wFMCommunicate OK [10:28:36]wFMCommunicate request_size=4 [10:28:36]MH_SAM_APDU [10:28:36]CAPDU: 80 0D 03 02 [10:28:36]Write to MH i2c: E2 08 00 F8 A7 80 0D 03 02 00 00 00 00 1A [10:28:36]Write i2c OK [10:28:36]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 0B 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 0B 00 F8 A7 00 F8 B2 C9 16 7A 5B 4F 84 90 00 4C [10:28:37]RAPDU: F8 B2 C9 16 7A 5B 4F 84 90 00 [10:28:37]wFMCommunicate OK [10:28:37]SAM_PROTO_SignData done [10:28:37]FM_MakeSignedData done [10:28:37]CreateOFDProtocolMessage [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 11 00 00 [10:28:37]Write to MH i2c: E2 08 00 F9 A7 80 11 00 00 00 00 00 00 1A [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 17 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 17 00 F9 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [10:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:37]wFMCommunicate OK [10:28:37]CreateOFDProtocolMessage done [10:28:37]OFDSenderStorePacket 119040 [10:28:37]StoreOFDPacket docnum=119040 [10:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA DE 07 01 5A 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 5C 00 00 00 F4 03 04 00 5D C0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D1 01 00 35 04 06 00 2A 7B 9D C7 CE AD F8 B2 C9 16 7A 5B 4F 84 [10:28:37]CheckFolder [10:28:37]dirname=/storage/ofd_packets [10:28:37]CheckFolder done [10:28:37]ProducePacketName [10:28:37]name=ofd_packets/00119040 [10:28:37]NVStorageSaveData ofd_packets/00119040 [10:28:37]File name is /storage/ofd_packets/00119040 [10:28:37]Write 301 bytes [10:28:37]NVStorageSaveData done [10:28:37]OFDSenderStorePacket done [10:28:37]KKMCreateOFDPacket done [10:28:37]NVStorageSaveData kkm_last_timestamp [10:28:37]File name is /storage/kkm_last_timestamp [10:28:37]Write 4 bytes [10:28:37]NVStorageSaveData done [10:28:37]ExternCall_PrintAddStr [10:28:37]wPrintStart [10:28:37]Write to MH i2c: 01 00 00 FA A7 A1 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 07 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 07 00 FA A7 00 00 00 00 00 FF 0F B6 [10:28:37]RasterBufferAndPrint [10:28:37]line Счет N : (1)949959 [10:28:37]line ИНН: 02508201610067 [10:28:37]line Контрольно-Кассовый Чек [10:28:37]line ПРОДАЖА [10:28:37]line ТРК (МРК, ГНК) : 31 [10:28:37]line Товар: 2710124130 [10:28:37]line Аи-92-К-4 [10:28:37]line 17.700 * 67.80 [10:28:37]line = 1200.06 [10:28:37]line НДС 12% НСП 1% [10:28:37]line > о реализуемом товаре [10:28:37]line ОКРУГЛЕНИЕ: -0.06 [10:28:37]line ИТОГО: 1200.00 [10:28:37]line Внесено: 1200.00 [10:28:37]line СДАЧА: 0.00 [10:28:37]line НСП 1% : 10.62 [10:28:37]line НДС 12% : 127.44 [10:28:37]line Наличными: 1200.00 [10:28:37]line Безнал.: 0.00 [10:28:37]line Место: АЗС № 134 "Партнер Нефть" [10:28:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:28:37]line СНО: Общий режим [10:28:37]line Чек 92 30.07.2024 10:28 [10:28:37]line Смена: 435 ФФД: 1.0 [10:28:37]line ЗНМ: 0300000044 [10:28:37]line РНМ: 0000000000092660 [10:28:37]line Версия ККМ: 001 [10:28:37]line ФМ: 0000000000874939 [10:28:37]line ФД: 119040 [10:28:37]line ФПД: 46710416461485 [10:28:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T102845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119040&fm=46710416461485&tin=02508201610067®Number=0000000000092660&sum=120000 [10:28:37]OFD Sender: Processing packet 119040 [packets to send 86, broken 85] [10:28:37]ProducePacketName [10:28:37]name=ofd_packets/00119040 [10:28:37]OFD Sender: To server: pG, [10:28:37]CommunicateWithHost lk.salyk.kg:30040 [10:28:37]ConnectInit lk.salyk.kg [10:28:37]written 0, free lines is 4095 [10:28:37]Connected sock=10 [10:28:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BA DE 07 01 5A 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 5C 00 00 00 F4 03 04 00 5D C0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D1 01 00 35 04 06 00 2A 7B 9D C7 CE AD F8 B2 C9 16 7A 5B 4F 84 [10:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4B 3B 47 00 92 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 00 D1 01 00 F4 03 04 00 E9 6D A8 66 B6 04 01 00 00 A9 4E 2B EB FC AC 64 9B [10:28:37]CommunicateWithHost err = 0 [10:28:37]CheckOFDResponse [10:28:37]1017 (14) - 77093643461234 [10:28:37]1041 (16) - 0000000000874939 [10:28:37]1040 (4) - 119040 [10:28:37]1012 (4) - 30.07.2024 04:36 [10:28:37]1206 (1) - 0 [10:28:37]OFD Sender: Remove packet 119040 [10:28:37]ProducePacketName [10:28:37]name=ofd_packets/00119040 [10:28:37]NVStorageDeleteData [10:28:37]Write to MH i2c: 01 00 00 24 A8 CC [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 07 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: 01 07 00 24 A8 00 00 00 00 00 EF 0C CE [10:28:37]RasterBufferAndPrint [10:28:37]line [10:28:37]line [10:28:37]line [10:28:37]line [10:28:37]line [10:28:37]written 0, free lines is 3316 [10:28:37]MH_Cut [10:28:37]Write to MH i2c: D1 01 00 2B A8 01 A5 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: D1 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: D1 01 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: D1 01 00 2B A8 00 A4 [10:28:37]Write to MH i2c: 01 00 00 2C A8 D4 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:38]OFD Sender: No OFD packet to send [10:28:38]*** Cut start [10:28:38]*** Partial cut [10:28:38]*** CUTSNS_PIN = 1 [10:28:38]*** CUTSNS_PIN = 0 [10:28:38]*** Brake cut motor [10:28:39]Read from MH i2c: 01 [10:28:39]MH_I2C_Read... [10:28:39]*** Stop cut motor [10:28:39]*** Cut end [10:28:39]Read from MH i2c: 01 07 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 2C A8 00 00 00 00 00 FF 0F E9 [10:28:39]process_action close_receipt done [10:28:39]requested_data is exist [10:28:39]produce_requested_data [10:28:39]requested_item fm.sn is exist - process it [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 11 00 00 [10:28:39]Write to MH i2c: E2 08 00 2D A8 80 11 00 00 00 00 00 00 4F [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 17 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 17 00 2D A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [10:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:28:39]wFMCommunicate OK [10:28:39]requested_item fd.num is exist - process it [10:28:39]SAM_PROTO_GetFieldsCounters [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 13 00 00 [10:28:39]Write to MH i2c: E2 08 00 2E A8 80 13 00 00 00 00 00 00 52 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 62 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 62 00 2E A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [10:28:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 00 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:39]wFMCommunicate OK [10:28:39]SAM_PROTO_GetFieldsCounters done [10:28:39]requested_item shift.num is exist - process it [10:28:39]requested_item shift.opened is exist - process it [10:28:39]req_shift_opened [10:28:39]FM_GetShiftState [10:28:39]SAM_PROTO_GetShiftState [10:28:39]wFMCommunicate request_size=4 [10:28:39]MH_SAM_APDU [10:28:39]CAPDU: 80 13 01 00 [10:28:39]Write to MH i2c: E2 08 00 2F A8 80 13 01 00 00 00 00 00 54 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:39]Read from MH i2c: E2 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0E 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: E2 0E 00 2F A8 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 1F [10:28:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:28:39]wFMCommunicate OK [10:28:39]SAM_PROTO_GetShiftState done [10:28:39]FM_GetShiftState done [10:28:39]req_shift_opened done [10:28:39]requested_item shift.open_date is exist - process it [10:28:39]req_shift_open_date [10:28:39]req_shift_open_date done [10:28:39]produce_requested_data done [10:28:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119040,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:28:39]process_action_free close_receipt [10:28:39]json_value_free [10:28:39]json_value_free done [10:28:39]process_json_proto returns [10:28:39]Send response to host [10:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119040,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:28:39]free response buf [10:28:39]execute_script done [10:28:39]execute_script returns [10:28:39]free content buf [10:28:39]Sock 7.Close socket [10:28:39]Sock 7.Thread stoped [10:28:43]OFD Sender: No OFD packet to send [10:28:48]OFD Sender: No OFD packet to send [10:28:53]OFD Sender: No OFD packet to send [10:28:58]OFD Sender: No OFD packet to send [10:29:03]OFD Sender: No OFD packet to send [10:29:08]OFD Sender: No OFD packet to send [10:29:13]OFD Sender: No OFD packet to send [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:55]accept exits with 9 [10:32:55]New connection [10:32:55]New thread 3067239780 created [10:32:55]Thread 3067383140 joined [10:32:55]Waiting for new connection... [10:32:55] Sock 9.Parse request [10:32:55]Sock 9.Check first char [10:32:55]Sock 9.First char is OK [10:32:55]request: POST /json_proto HTTP/1.0 [10:32:55]Method: POST [10:32:55]URL: /json_proto [10:32:55]Method is POST - this is cgi request [10:32:55]url: /json_proto [10:32:55]query_string will be loaded in cgi processing [10:32:55]execute_cgi json_proto POST (null) [10:32:55]execute_cgi path=json_proto method=POST [10:32:55]POST find Content-Length [10:32:55]Host: 172.17.45.7:8080 [10:32:55]Content-Length: 682 [10:32:55]Content-Type: application/json [10:32:55] [10:32:55]POST finish read [10:32:55]Found Content-Length = 682 [10:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:32:55]execute_script... [10:32: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)949960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:32:55]POST & json_proto [10:32:55]process_json_proto [10:32:55]json parsed OK: [10:32:55]protocol is kg_v1.0 [10:32:55]action value=close_receipt [10:32:55]process_action close_receipt [10:32:55]cmd_close_receipt [10:32:55]MH_GetDate [10:32:55]Write to MH i2c: F0 00 00 30 A8 C7 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 09 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: F0 09 00 30 A8 00 62 C1 A8 66 90 0F 3E 66 44 [10:32:55]GetLastDocTimeStamp 1722335325 [10:32:55]current date 1722335586 [10:32:55]FM_GetShiftState [10:32:55]SAM_PROTO_GetShiftState [10:32:55]wFMCommunicate request_size=4 [10:32:55]MH_SAM_APDU [10:32:55]CAPDU: 80 13 01 00 [10:32:55]Write to MH i2c: E2 08 00 31 A8 80 13 01 00 00 00 00 00 56 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:56]Read from MH i2c: E2 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 [10:32:56]MH_I2C_Read... [10:32:56]Read from MH i2c: E2 0E 00 31 A8 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 21 [10:32:56]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:32:56]wFMCommunicate OK [10:32:56]SAM_PROTO_GetShiftState done [10:32:56]FM_GetShiftState done [10:32:56]opened in 1722298242 [10:32:56]opened+sec_in_day 1722384642 [10:32:56]quantity*price = 100005 [10:32:56]sum+1 = 100006 [10:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 93 30.07.2024 10:33 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119041 ФПД: 226012661742066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T103306&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119041&fm=226012661742066&tin=02508201610067®Number=0000000000092660&sum=100000 [10:32:57]StoreToDocumentArchive [10:32:57]shift 435 fd 119041 [10:32:57]save to /storage/0435/doc_00119041 [10:32:57]save last doc name /storage/0435/doc_00119041 to /storage/kkm_last_doc_name [10:32:57]save OK [10:32:57]Clear old archive folders... [10:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:57]tlvbuf is 01E474E0 [10:32:57]SAM_PROTO_ClearQueue [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 09 00 00 [10:32:57]Write to MH i2c: E2 08 00 3E A8 80 09 00 00 00 00 00 00 58 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 3E A8 00 90 00 5A [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_ClearQueue done [10:32:57]KKMCreateOFDPacket [10:32:57]OFDProtocolAddRootSTLVToBuf [10:32:57]FM_MakeSignedData [10:32:57]FM_MakeSignedData [10:32:57]SAM_PROTO_SignData [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 01 02 [10:32:57]Write to MH i2c: E2 08 00 3F A8 80 0D 01 02 00 00 00 00 60 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 3F A8 00 90 00 5B [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=255 [10:32:57]MH_SAM_APDU [10:32: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 62 C1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D1 01 00 35 04 06 00 CD [10:32:57]Write to MH i2c: E2 02 01 40 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 62 C1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D1 01 00 35 04 06 00 CD 00 00 55 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 40 A8 00 90 00 5C [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=10 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 02 02 05 8E AC 6A F9 F2 [10:32:57]Write to MH i2c: E2 0D 00 41 A8 80 0D 02 02 05 00 8E AC 6A F9 F2 00 00 FC [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 03 00 41 A8 00 90 00 5D [10:32:57]RAPDU: 90 00 [10:32:57]wFMCommunicate OK [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 0D 03 02 [10:32:57]Write to MH i2c: E2 08 00 42 A8 80 0D 03 02 00 00 00 00 65 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 0B 00 42 A8 00 7C 3C 7A 46 7F 2E F6 C1 90 00 42 [10:32:57]RAPDU: 7C 3C 7A 46 7F 2E F6 C1 90 00 [10:32:57]wFMCommunicate OK [10:32:57]SAM_PROTO_SignData done [10:32:57]FM_MakeSignedData done [10:32:57]CreateOFDProtocolMessage [10:32:57]wFMCommunicate request_size=4 [10:32:57]MH_SAM_APDU [10:32:57]CAPDU: 80 11 00 00 [10:32:57]Write to MH i2c: E2 08 00 43 A8 80 11 00 00 00 00 00 00 65 [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:57]Read from MH i2c: E2 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 17 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: E2 17 00 43 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [10:32:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:32:57]wFMCommunicate OK [10:32:57]CreateOFDProtocolMessage done [10:32:57]OFDSenderStorePacket 119041 [10:32:57]StoreOFDPacket docnum=119041 [10:32:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AB CF 07 01 8B B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 62 C1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D1 01 00 35 04 06 00 CD 8E AC 6A F9 F2 7C 3C 7A 46 7F 2E F6 C1 [10:32:57]CheckFolder [10:32:57]dirname=/storage/ofd_packets [10:32:57]CheckFolder done [10:32:57]ProducePacketName [10:32:57]name=ofd_packets/00119041 [10:32:57]NVStorageSaveData ofd_packets/00119041 [10:32:57]File name is /storage/ofd_packets/00119041 [10:32:57]Write 301 bytes [10:32:57]NVStorageSaveData done [10:32:57]OFDSenderStorePacket done [10:32:57]KKMCreateOFDPacket done [10:32:57]NVStorageSaveData kkm_last_timestamp [10:32:57]File name is /storage/kkm_last_timestamp [10:32:57]Write 4 bytes [10:32:57]NVStorageSaveData done [10:32:57]ExternCall_PrintAddStr [10:32:57]wPrintStart [10:32:57]Write to MH i2c: 01 00 00 44 A8 EC [10:32:57]Write i2c OK [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 [10:32:57]MH_I2C_Read... [10:32:57]Read from MH i2c: 01 07 00 44 A8 00 00 00 00 00 FF 0F 01 [10:32:57]RasterBufferAndPrint [10:32:57]line Счет N : (1)949960 [10:32:57]line ИНН: 02508201610067 [10:32:57]line Контрольно-Кассовый Чек [10:32:57]line ПРОДАЖА [10:32:57]line ТРК (МРК, ГНК) : 51 [10:32:57]line Товар: 2710124130 [10:32:57]line Аи-92-К-4 [10:32:57]line 14.750 * 67.80 [10:32:57]line = 1000.05 [10:32:57]line НДС 12% НСП 1% [10:32:57]line > о реализуемом товаре [10:32:57]line ОКРУГЛЕНИЕ: -0.05 [10:32:57]line ИТОГО: 1000.00 [10:32:57]line Внесено: 1000.00 [10:32:57]line СДАЧА: 0.00 [10:32:57]line НСП 1% : 8.85 [10:32:57]line НДС 12% : 106.20 [10:32:57]line Наличными: 1000.00 [10:32:57]line Безнал.: 0.00 [10:32:57]line Место: АЗС № 134 "Партнер Нефть" [10:32:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:32:57]line СНО: Общий режим [10:32:57]line Чек 93 30.07.2024 10:33 [10:32:57]line Смена: 435 ФФД: 1.0 [10:32:57]line ЗНМ: 0300000044 [10:32:57]line РНМ: 0000000000092660 [10:32:57]line Версия ККМ: 001 [10:32:57]line ФМ: 0000000000874939 [10:32:57]line ФД: 119041 [10:32:57]line ФПД: 226012661742066 [10:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T103306&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119041&fm=226012661742066&tin=02508201610067®Number=0000000000092660&sum=100000 [10:32:58]OFD Sender: Processing packet 119041 [packets to send 86, broken 85] [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00119041 [10:32:58]OFD Sender: To server: pG, [10:32:58]CommunicateWithHost lk.salyk.kg:30040 [10:32:58]ConnectInit lk.salyk.kg [10:32:58]written 0, free lines is 4095 [10:32:58]Connected sock=10 [10:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AB CF 07 01 8B B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 62 C1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D1 01 00 35 04 06 00 CD 8E AC 6A F9 F2 7C 3C 7A 46 7F 2E F6 C1 [10:32:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 80 35 47 00 CC A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 01 D1 01 00 F4 03 04 00 ED 6E A8 66 B6 04 01 00 00 6C 5A BE D8 06 05 94 95 [10:32:58]CommunicateWithHost err = 0 [10:32:58]CheckOFDResponse [10:32:58]1017 (14) - 77093643461234 [10:32:58]1041 (16) - 0000000000874939 [10:32:58]1040 (4) - 119041 [10:32:58]1012 (4) - 30.07.2024 04:41 [10:32:58]1206 (1) - 0 [10:32:58]OFD Sender: Remove packet 119041 [10:32:58]ProducePacketName [10:32:58]name=ofd_packets/00119041 [10:32:58]NVStorageDeleteData [10:32:58]Write to MH i2c: 01 00 00 6E A8 16 [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: 01 07 00 6E A8 00 00 00 00 00 DF 0C 08 [10:32:58]RasterBufferAndPrint [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]line [10:32:58]written 0, free lines is 3301 [10:32:58]MH_Cut [10:32:58]Write to MH i2c: D1 01 00 75 A8 01 EF [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 01 00 [10:32:58]MH_I2C_Read... [10:32:58]Read from MH i2c: D1 01 00 75 A8 00 EE [10:32:58]Write to MH i2c: 01 00 00 76 A8 1E [10:32:58]Write i2c OK [10:32:58]MH_I2C_Read... [10:32:58]OFD Sender: No OFD packet to send [10:32:59]*** Cut start [10:32:59]*** Partial cut [10:32:59]*** CUTSNS_PIN = 1 [10:32:59]*** CUTSNS_PIN = 0 [10:32:59]*** Brake cut motor [10:32:59]Read from MH i2c: 01 [10:32:59]MH_I2C_Read... [10:32:59]*** Stop cut motor [10:32:59]*** Cut end [10:32:59]Read from MH i2c: 01 07 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 07 00 76 A8 00 00 00 00 00 FF 0F 33 [10:32:59]process_action close_receipt done [10:32:59]requested_data is exist [10:32:59]produce_requested_data [10:32:59]requested_item fm.sn is exist - process it [10:32:59]wFMCommunicate request_size=4 [10:32:59]MH_SAM_APDU [10:32:59]CAPDU: 80 11 00 00 [10:32:59]Write to MH i2c: E2 08 00 77 A8 80 11 00 00 00 00 00 00 99 [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:59]Read from MH i2c: E2 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 17 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 17 00 77 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F4 [10:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:32:59]wFMCommunicate OK [10:32:59]requested_item fd.num is exist - process it [10:32:59]SAM_PROTO_GetFieldsCounters [10:32:59]wFMCommunicate request_size=4 [10:32:59]MH_SAM_APDU [10:32:59]CAPDU: 80 13 00 00 [10:32:59]Write to MH i2c: E2 08 00 78 A8 80 13 00 00 00 00 00 00 9C [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:59]Read from MH i2c: E2 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 62 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: E2 62 00 78 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 01 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:59]wFMCommunicate OK [10:32:59]SAM_PROTO_GetFieldsCounters done [10:32:59]requested_item shift.num is exist - process it [10:32:59]requested_item shift.opened is exist - process it [10:32:59]req_shift_opened [10:32:59]FM_GetShiftState [10:32:59]SAM_PROTO_GetShiftState [10:32:59]wFMCommunicate request_size=4 [10:32:59]MH_SAM_APDU [10:32:59]CAPDU: 80 13 01 00 [10:32:59]Write to MH i2c: E2 08 00 79 A8 80 13 01 00 00 00 00 00 9E [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:00]Read from MH i2c: E2 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 0E 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: E2 0E 00 79 A8 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 69 [10:33:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:33:00]wFMCommunicate OK [10:33:00]SAM_PROTO_GetShiftState done [10:33:00]FM_GetShiftState done [10:33:00]req_shift_opened done [10:33:00]requested_item shift.open_date is exist - process it [10:33:00]req_shift_open_date [10:33:00]req_shift_open_date done [10:33:00]produce_requested_data done [10:33:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119041,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:33:00]process_action_free close_receipt [10:33:00]json_value_free [10:33:00]json_value_free done [10:33:00]process_json_proto returns [10:33:00]Send response to host [10:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119041,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:33:00]free response buf [10:33:00]execute_script done [10:33:00]execute_script returns [10:33:00]free content buf [10:33:00]Sock 9.Close socket [10:33:00]Sock 9.Thread stoped [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [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]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:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]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: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:34]accept exits with 7 [10:38:34]New connection [10:38:34]New thread 3067383140 created [10:38:34]Thread 3067239780 joined [10:38:34]Waiting for new connection... [10:38:34] Sock 7.Parse request [10:38:34]Sock 7.Check first char [10:38:34]Sock 7.First char is OK [10:38:34]request: POST /json_proto HTTP/1.0 [10:38:34]Method: POST [10:38:34]URL: /json_proto [10:38:34]Method is POST - this is cgi request [10:38:34]url: /json_proto [10:38:34]query_string will be loaded in cgi processing [10:38:34]execute_cgi json_proto POST (null) [10:38:34]execute_cgi path=json_proto method=POST [10:38:34]POST find Content-Length [10:38:34]Host: 172.17.45.7:8080 [10:38:34]Content-Length: 677 [10:38:34]Content-Type: application/json [10:38:34] [10:38:34]POST finish read [10:38:34]Found Content-Length = 677 [10:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]execute_script... [10:38:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]POST & json_proto [10:38:34]process_json_proto [10:38:34]json parsed OK: [10:38:34]protocol is kg_v1.0 [10:38:34]action value=close_receipt [10:38:34]process_action close_receipt [10:38:34]cmd_close_receipt [10:38:34]MH_GetDate [10:38:34]Write to MH i2c: F0 00 00 7A A8 11 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 7A A8 00 B5 C2 A8 66 90 0F 3E 66 E2 [10:38:34]GetLastDocTimeStamp 1722335586 [10:38:34]current date 1722335925 [10:38:34]FM_GetShiftState [10:38:34]SAM_PROTO_GetShiftState [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 01 00 [10:38:34]Write to MH i2c: E2 08 00 7B A8 80 13 01 00 00 00 00 00 A0 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 7B A8 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6B [10:38:34]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetShiftState done [10:38:34]FM_GetShiftState done [10:38:34]opened in 1722298242 [10:38:34]opened+sec_in_day 1722384642 [10:38:34]quantity*price = 50036 [10:38:34]sum+1 = 50037 [10:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 94 30.07.2024 10:38 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119042 ФПД: 258054169973468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T103845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119042&fm=258054169973468&tin=02508201610067®Number=0000000000092660&sum=50000 [10:38:36]StoreToDocumentArchive [10:38:36]shift 435 fd 119042 [10:38:36]save to /storage/0435/doc_00119042 [10:38:36]save last doc name /storage/0435/doc_00119042 to /storage/kkm_last_doc_name [10:38:36]save OK [10:38:36]Clear old archive folders... [10:38:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:36]tlvbuf is 02042120 [10:38:36]SAM_PROTO_ClearQueue [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 09 00 00 [10:38:36]Write to MH i2c: E2 08 00 88 A8 80 09 00 00 00 00 00 00 A2 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 88 A8 00 90 00 A4 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_ClearQueue done [10:38:36]KKMCreateOFDPacket [10:38:36]OFDProtocolAddRootSTLVToBuf [10:38:36]FM_MakeSignedData [10:38:36]FM_MakeSignedData [10:38:36]SAM_PROTO_SignData [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 01 02 [10:38:36]Write to MH i2c: E2 08 00 89 A8 80 0D 01 02 00 00 00 00 AA [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 89 A8 00 90 00 A5 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=255 [10:38:36]MH_SAM_APDU [10:38: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B5 C2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D1 01 00 35 04 06 00 EA [10:38:36]Write to MH i2c: E2 02 01 8A A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B5 C2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D1 01 00 35 04 06 00 EA 00 00 83 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 8A A8 00 90 00 A6 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=10 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 02 02 05 B2 EB 22 52 DC [10:38:36]Write to MH i2c: E2 0D 00 8B A8 80 0D 02 02 05 00 B2 EB 22 52 DC 00 00 A4 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 03 00 8B A8 00 90 00 A7 [10:38:36]RAPDU: 90 00 [10:38:36]wFMCommunicate OK [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 0D 03 02 [10:38:36]Write to MH i2c: E2 08 00 8C A8 80 0D 03 02 00 00 00 00 AF [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 0B 00 8C A8 00 FE EE FC 25 36 77 88 BB 90 00 AD [10:38:36]RAPDU: FE EE FC 25 36 77 88 BB 90 00 [10:38:36]wFMCommunicate OK [10:38:36]SAM_PROTO_SignData done [10:38:36]FM_MakeSignedData done [10:38:36]CreateOFDProtocolMessage [10:38:36]wFMCommunicate request_size=4 [10:38:36]MH_SAM_APDU [10:38:36]CAPDU: 80 11 00 00 [10:38:36]Write to MH i2c: E2 08 00 8D A8 80 11 00 00 00 00 00 00 AF [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:36]Read from MH i2c: E2 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: E2 17 00 8D A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0A [10:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:38:36]wFMCommunicate OK [10:38:36]CreateOFDProtocolMessage done [10:38:36]OFDSenderStorePacket 119042 [10:38:36]StoreOFDPacket docnum=119042 [10:38:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 18 B9 07 01 14 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B5 C2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D1 01 00 35 04 06 00 EA B2 EB 22 52 DC FE EE FC 25 36 77 88 BB [10:38:36]CheckFolder [10:38:36]dirname=/storage/ofd_packets [10:38:36]CheckFolder done [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00119042 [10:38:36]NVStorageSaveData ofd_packets/00119042 [10:38:36]File name is /storage/ofd_packets/00119042 [10:38:36]Write 301 bytes [10:38:36]NVStorageSaveData done [10:38:36]OFDSenderStorePacket done [10:38:36]KKMCreateOFDPacket done [10:38:36]NVStorageSaveData kkm_last_timestamp [10:38:36]File name is /storage/kkm_last_timestamp [10:38:36]Write 4 bytes [10:38:36]NVStorageSaveData done [10:38:36]ExternCall_PrintAddStr [10:38:36]wPrintStart [10:38:36]Write to MH i2c: 01 00 00 8E A8 36 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 8E A8 00 00 00 00 00 FF 0F 4B [10:38:36]RasterBufferAndPrint [10:38:36]line Счет N : (1)949961 [10:38:36]line ИНН: 02508201610067 [10:38:36]line Контрольно-Кассовый Чек [10:38:36]line ПРОДАЖА [10:38:36]line ТРК (МРК, ГНК) : 31 [10:38:36]line Товар: 2710124130 [10:38:36]line Аи-92-К-4 [10:38:36]line 7.380 * 67.80 [10:38:36]line = 500.36 [10:38:36]line НДС 12% НСП 1% [10:38:36]line > о реализуемом товаре [10:38:36]line ОКРУГЛЕНИЕ: -0.36 [10:38:36]line ИТОГО: 500.00 [10:38:36]line Внесено: 500.00 [10:38:36]line СДАЧА: 0.00 [10:38:36]line НСП 1% : 4.43 [10:38:36]line НДС 12% : 53.14 [10:38:36]line Наличными: 500.00 [10:38:36]line Безнал.: 0.00 [10:38:36]line Место: АЗС № 134 "Партнер Нефть" [10:38:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:38:36]line СНО: Общий режим [10:38:36]line Чек 94 30.07.2024 10:38 [10:38:36]line Смена: 435 ФФД: 1.0 [10:38:36]line ЗНМ: 0300000044 [10:38:36]line РНМ: 0000000000092660 [10:38:36]line Версия ККМ: 001 [10:38:36]line ФМ: 0000000000874939 [10:38:36]line ФД: 119042 [10:38:36]line ФПД: 258054169973468 [10:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T103845&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119042&fm=258054169973468&tin=02508201610067®Number=0000000000092660&sum=50000 [10:38:36]written 0, free lines is 4095 [10:38:36]OFD Sender: Processing packet 119042 [packets to send 86, broken 85] [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00119042 [10:38:36]OFD Sender: To server: pG, [10:38:36]CommunicateWithHost lk.salyk.kg:30040 [10:38:36]ConnectInit lk.salyk.kg [10:38:36]Connected sock=10 [10:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 18 B9 07 01 14 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 B5 C2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D1 01 00 35 04 06 00 EA B2 EB 22 52 DC FE EE FC 25 36 77 88 BB [10:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 41 34 47 00 87 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 02 D1 01 00 F4 03 04 00 40 70 A8 66 B6 04 01 00 00 94 B8 8A 0A 42 66 F1 F2 [10:38:36]CommunicateWithHost err = 0 [10:38:36]CheckOFDResponse [10:38:36]1017 (14) - 77093643461234 [10:38:36]1041 (16) - 0000000000874939 [10:38:36]1040 (4) - 119042 [10:38:36]1012 (4) - 30.07.2024 04:46 [10:38:36]1206 (1) - 0 [10:38:36]OFD Sender: Remove packet 119042 [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00119042 [10:38:36]NVStorageDeleteData [10:38:37]Write to MH i2c: 01 00 00 B8 A8 60 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 B8 A8 00 00 00 00 00 EB 0C 5E [10:38:37]RasterBufferAndPrint [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]line [10:38:37]written 0, free lines is 3313 [10:38:37]MH_Cut [10:38:37]Write to MH i2c: D1 01 00 BF A8 01 39 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 01 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: D1 01 00 BF A8 00 38 [10:38:37]Write to MH i2c: 01 00 00 C0 A8 68 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]OFD Sender: No OFD packet to send [10:38:37]*** Cut start [10:38:37]*** Partial cut [10:38:37]*** CUTSNS_PIN = 1 [10:38:37]*** CUTSNS_PIN = 0 [10:38:38]*** Brake cut motor [10:38:38]Read from MH i2c: 01 [10:38:38]MH_I2C_Read... [10:38:38]*** Stop cut motor [10:38:38]*** Cut end [10:38:38]Read from MH i2c: 01 07 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: 01 07 00 C0 A8 00 00 00 00 00 FF 0F 7D [10:38:38]process_action close_receipt done [10:38:38]requested_data is exist [10:38:38]produce_requested_data [10:38:38]requested_item fm.sn is exist - process it [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 11 00 00 [10:38:38]Write to MH i2c: E2 08 00 C1 A8 80 11 00 00 00 00 00 00 E3 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 17 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 17 00 C1 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3E [10:38:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:38:38]wFMCommunicate OK [10:38:38]requested_item fd.num is exist - process it [10:38:38]SAM_PROTO_GetFieldsCounters [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 13 00 00 [10:38:38]Write to MH i2c: E2 08 00 C2 A8 80 13 00 00 00 00 00 00 E6 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 62 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 62 00 C2 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [10:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 02 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:38]wFMCommunicate OK [10:38:38]SAM_PROTO_GetFieldsCounters done [10:38:38]requested_item shift.num is exist - process it [10:38:38]requested_item shift.opened is exist - process it [10:38:38]req_shift_opened [10:38:38]FM_GetShiftState [10:38:38]SAM_PROTO_GetShiftState [10:38:38]wFMCommunicate request_size=4 [10:38:38]MH_SAM_APDU [10:38:38]CAPDU: 80 13 01 00 [10:38:38]Write to MH i2c: E2 08 00 C3 A8 80 13 01 00 00 00 00 00 E8 [10:38:38]Write i2c OK [10:38:38]MH_I2C_Read... [10:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:38]Read from MH i2c: E2 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 0E 00 [10:38:38]MH_I2C_Read... [10:38:38]Read from MH i2c: E2 0E 00 C3 A8 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B3 [10:38:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:38:38]wFMCommunicate OK [10:38:38]SAM_PROTO_GetShiftState done [10:38:38]FM_GetShiftState done [10:38:38]req_shift_opened done [10:38:38]requested_item shift.open_date is exist - process it [10:38:38]req_shift_open_date [10:38:38]req_shift_open_date done [10:38:38]produce_requested_data done [10:38:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119042,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:38:38]process_action_free close_receipt [10:38:38]json_value_free [10:38:38]json_value_free done [10:38:38]process_json_proto returns [10:38:38]Send response to host [10:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119042,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:38:38]free response buf [10:38:38]execute_script done [10:38:38]execute_script returns [10:38:38]free content buf [10:38:38]Sock 7.Close socket [10:38:38]Sock 7.Thread stoped [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:39:59]accept exits with 9 [10:39:59]New connection [10:39:59]New thread 3067239780 created [10:39:59]Thread 3067383140 joined [10:39:59]Waiting for new connection... [10:39:59] Sock 9.Parse request [10:39:59]Sock 9.Check first char [10:39:59]Sock 9.First char is OK [10:39:59]request: POST /json_proto HTTP/1.0 [10:39:59]Method: POST [10:39:59]URL: /json_proto [10:39:59]Method is POST - this is cgi request [10:39:59]url: /json_proto [10:39:59]query_string will be loaded in cgi processing [10:39:59]execute_cgi json_proto POST (null) [10:39:59]execute_cgi path=json_proto method=POST [10:39:59]POST find Content-Length [10:39:59]Host: 172.17.45.7:8080 [10:39:59]Content-Length: 677 [10:39:59]Content-Type: application/json [10:39:59] [10:39:59]POST finish read [10:39:59]Found Content-Length = 677 [10:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:59]execute_script... [10:39: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)949962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:59]POST & json_proto [10:39:59]process_json_proto [10:39:59]json parsed OK: [10:39:59]protocol is kg_v1.0 [10:39:59]action value=close_receipt [10:39:59]process_action close_receipt [10:39:59]cmd_close_receipt [10:39:59]MH_GetDate [10:39:59]Write to MH i2c: F0 00 00 C4 A8 5B [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: F0 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: F0 09 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: F0 09 00 C4 A8 00 09 C3 A8 66 90 0F 3E 66 81 [10:39:59]GetLastDocTimeStamp 1722335925 [10:39:59]current date 1722336009 [10:39:59]FM_GetShiftState [10:39:59]SAM_PROTO_GetShiftState [10:39:59]wFMCommunicate request_size=4 [10:39:59]MH_SAM_APDU [10:39:59]CAPDU: 80 13 01 00 [10:39:59]Write to MH i2c: E2 08 00 C5 A8 80 13 01 00 00 00 00 00 EA [10:39:59]Write i2c OK [10:39:59]MH_I2C_Read... [10:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:59]Read from MH i2c: E2 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 0E 00 [10:39:59]MH_I2C_Read... [10:39:59]Read from MH i2c: E2 0E 00 C5 A8 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B5 [10:39:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:39:59]wFMCommunicate OK [10:39:59]SAM_PROTO_GetShiftState done [10:39:59]FM_GetShiftState done [10:39:59]opened in 1722298242 [10:39:59]opened+sec_in_day 1722384642 [10:39:59]quantity*price = 50036 [10:39:59]sum+1 = 50037 [10:39:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 95 30.07.2024 10:40 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119043 ФПД: 170326177750458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T104009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119043&fm=170326177750458&tin=02508201610067®Number=0000000000092660&sum=50000 [10:40:00]StoreToDocumentArchive [10:40:00]shift 435 fd 119043 [10:40:00]save to /storage/0435/doc_00119043 [10:40:00]save last doc name /storage/0435/doc_00119043 to /storage/kkm_last_doc_name [10:40:00]save OK [10:40:00]Clear old archive folders... [10:40:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:00]tlvbuf is 01FB64C0 [10:40:00]SAM_PROTO_ClearQueue [10:40:00]wFMCommunicate request_size=4 [10:40:00]MH_SAM_APDU [10:40:00]CAPDU: 80 09 00 00 [10:40:00]Write to MH i2c: E2 08 00 D2 A8 80 09 00 00 00 00 00 00 EC [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:00]Read from MH i2c: E2 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 03 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 03 00 D2 A8 00 90 00 EE [10:40:00]RAPDU: 90 00 [10:40:00]wFMCommunicate OK [10:40:00]SAM_PROTO_ClearQueue done [10:40:00]KKMCreateOFDPacket [10:40:00]OFDProtocolAddRootSTLVToBuf [10:40:00]FM_MakeSignedData [10:40:00]FM_MakeSignedData [10:40:00]SAM_PROTO_SignData [10:40:00]wFMCommunicate request_size=4 [10:40:00]MH_SAM_APDU [10:40:00]CAPDU: 80 0D 01 02 [10:40:00]Write to MH i2c: E2 08 00 D3 A8 80 0D 01 02 00 00 00 00 F4 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:00]Read from MH i2c: E2 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 03 00 [10:40:00]MH_I2C_Read... [10:40:00]Read from MH i2c: E2 03 00 D3 A8 00 90 00 EF [10:40:00]RAPDU: 90 00 [10:40:00]wFMCommunicate OK [10:40:00]wFMCommunicate request_size=255 [10:40:00]MH_SAM_APDU [10:40: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D1 01 00 35 04 06 00 9A [10:40:00]Write to MH i2c: E2 02 01 D4 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D1 01 00 35 04 06 00 9A 00 00 D4 [10:40:00]Write i2c OK [10:40:00]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 D4 A8 00 90 00 F0 [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]wFMCommunicate request_size=10 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 02 02 05 E9 27 52 1D BA [10:40:01]Write to MH i2c: E2 0D 00 D5 A8 80 0D 02 02 05 00 E9 27 52 1D BA 00 00 3A [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 03 00 D5 A8 00 90 00 F1 [10:40:01]RAPDU: 90 00 [10:40:01]wFMCommunicate OK [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 0D 03 02 [10:40:01]Write to MH i2c: E2 08 00 D6 A8 80 0D 03 02 00 00 00 00 F9 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 0B 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 0B 00 D6 A8 00 ED EC 23 BB DE 4E 90 71 90 00 DE [10:40:01]RAPDU: ED EC 23 BB DE 4E 90 71 90 00 [10:40:01]wFMCommunicate OK [10:40:01]SAM_PROTO_SignData done [10:40:01]FM_MakeSignedData done [10:40:01]CreateOFDProtocolMessage [10:40:01]wFMCommunicate request_size=4 [10:40:01]MH_SAM_APDU [10:40:01]CAPDU: 80 11 00 00 [10:40:01]Write to MH i2c: E2 08 00 D7 A8 80 11 00 00 00 00 00 00 F9 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:01]Read from MH i2c: E2 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 17 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: E2 17 00 D7 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 54 [10:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:01]wFMCommunicate OK [10:40:01]CreateOFDProtocolMessage done [10:40:01]OFDSenderStorePacket 119043 [10:40:01]StoreOFDPacket docnum=119043 [10:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F8 FF 07 01 6A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D1 01 00 35 04 06 00 9A E9 27 52 1D BA ED EC 23 BB DE 4E 90 71 [10:40:01]CheckFolder [10:40:01]dirname=/storage/ofd_packets [10:40:01]CheckFolder done [10:40:01]ProducePacketName [10:40:01]name=ofd_packets/00119043 [10:40:01]NVStorageSaveData ofd_packets/00119043 [10:40:01]File name is /storage/ofd_packets/00119043 [10:40:01]Write 301 bytes [10:40:01]NVStorageSaveData done [10:40:01]OFDSenderStorePacket done [10:40:01]KKMCreateOFDPacket done [10:40:01]NVStorageSaveData kkm_last_timestamp [10:40:01]File name is /storage/kkm_last_timestamp [10:40:01]Write 4 bytes [10:40:01]NVStorageSaveData done [10:40:01]ExternCall_PrintAddStr [10:40:01]wPrintStart [10:40:01]Write to MH i2c: 01 00 00 D8 A8 80 [10:40:01]Write i2c OK [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: 01 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: 01 07 00 [10:40:01]MH_I2C_Read... [10:40:01]Read from MH i2c: 01 07 00 D8 A8 00 00 00 00 00 FF 0F 95 [10:40:01]RasterBufferAndPrint [10:40:01]line Счет N : (1)949962 [10:40:01]line ИНН: 02508201610067 [10:40:01]line Контрольно-Кассовый Чек [10:40:01]line ПРОДАЖА [10:40:01]line ТРК (МРК, ГНК) : 51 [10:40:01]line Товар: 2710124130 [10:40:01]line Аи-92-К-4 [10:40:01]line 7.380 * 67.80 [10:40:01]line = 500.36 [10:40:01]line НДС 12% НСП 1% [10:40:01]line > о реализуемом товаре [10:40:01]line ОКРУГЛЕНИЕ: -0.36 [10:40:01]line ИТОГО: 500.00 [10:40:01]line Внесено: 500.00 [10:40:01]line СДАЧА: 0.00 [10:40:01]line НСП 1% : 4.43 [10:40:01]line НДС 12% : 53.14 [10:40:01]line Наличными: 500.00 [10:40:01]line Безнал.: 0.00 [10:40:01]line Место: АЗС № 134 "Партнер Нефть" [10:40:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:40:01]line СНО: Общий режим [10:40:01]line Чек 95 30.07.2024 10:40 [10:40:01]line Смена: 435 ФФД: 1.0 [10:40:01]line ЗНМ: 0300000044 [10:40:01]line РНМ: 0000000000092660 [10:40:01]line Версия ККМ: 001 [10:40:01]line ФМ: 0000000000874939 [10:40:01]line ФД: 119043 [10:40:01]line ФПД: 170326177750458 [10:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T104009&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119043&fm=170326177750458&tin=02508201610067®Number=0000000000092660&sum=50000 [10:40:01]OFD Sender: Processing packet 119043 [packets to send 86, broken 85] [10:40:01]ProducePacketName [10:40:01]name=ofd_packets/00119043 [10:40:01]OFD Sender: To server: pG, [10:40:01]CommunicateWithHost lk.salyk.kg:30040 [10:40:01]ConnectInit lk.salyk.kg [10:40:01]written 0, free lines is 4095 [10:40:01]Connected sock=10 [10:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F8 FF 07 01 6A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 09 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D1 01 00 35 04 06 00 9A E9 27 52 1D BA ED EC 23 BB DE 4E 90 71 [10:40:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 06 D3 47 00 FB 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 03 D1 01 00 F4 03 04 00 95 70 A8 66 B6 04 01 00 00 F4 89 F9 C9 0A 3F 38 F3 [10:40:01]CommunicateWithHost err = 0 [10:40:01]CheckOFDResponse [10:40:01]1017 (14) - 77093643461234 [10:40:01]1041 (16) - 0000000000874939 [10:40:01]1040 (4) - 119043 [10:40:01]1012 (4) - 30.07.2024 04:48 [10:40:01]1206 (1) - 0 [10:40:01]OFD Sender: Remove packet 119043 [10:40:01]ProducePacketName [10:40:01]name=ofd_packets/00119043 [10:40:01]NVStorageDeleteData [10:40:02]Write to MH i2c: 01 00 00 02 A9 AB [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: 01 07 00 02 A9 00 00 00 00 00 E3 0C A1 [10:40:02]RasterBufferAndPrint [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]line [10:40:02]written 0, free lines is 3305 [10:40:02]MH_Cut [10:40:02]Write to MH i2c: D1 01 00 09 A9 01 84 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 01 00 [10:40:02]MH_I2C_Read... [10:40:02]Read from MH i2c: D1 01 00 09 A9 00 83 [10:40:02]Write to MH i2c: 01 00 00 0A A9 B3 [10:40:02]Write i2c OK [10:40:02]MH_I2C_Read... [10:40:02]OFD Sender: No OFD packet to send [10:40:02]*** Cut start [10:40:02]*** Partial cut [10:40:02]*** CUTSNS_PIN = 1 [10:40:02]*** CUTSNS_PIN = 0 [10:40:03]*** Brake cut motor [10:40:03]Read from MH i2c: 01 [10:40:03]MH_I2C_Read... [10:40:03]*** Stop cut motor [10:40:03]*** Cut end [10:40:03]Read from MH i2c: 01 07 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: 01 07 00 0A A9 00 00 00 00 00 FF 0F C8 [10:40:03]process_action close_receipt done [10:40:03]requested_data is exist [10:40:03]produce_requested_data [10:40:03]requested_item fm.sn is exist - process it [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 11 00 00 [10:40:03]Write to MH i2c: E2 08 00 0B A9 80 11 00 00 00 00 00 00 2E [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 17 00 0B A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [10:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:40:03]wFMCommunicate OK [10:40:03]requested_item fd.num is exist - process it [10:40:03]SAM_PROTO_GetFieldsCounters [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 13 00 00 [10:40:03]Write to MH i2c: E2 08 00 0C A9 80 13 00 00 00 00 00 00 31 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 62 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 62 00 0C A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [10:40:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 03 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_GetFieldsCounters done [10:40:03]requested_item shift.num is exist - process it [10:40:03]requested_item shift.opened is exist - process it [10:40:03]req_shift_opened [10:40:03]FM_GetShiftState [10:40:03]SAM_PROTO_GetShiftState [10:40:03]wFMCommunicate request_size=4 [10:40:03]MH_SAM_APDU [10:40:03]CAPDU: 80 13 01 00 [10:40:03]Write to MH i2c: E2 08 00 0D A9 80 13 01 00 00 00 00 00 33 [10:40:03]Write i2c OK [10:40:03]MH_I2C_Read... [10:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:03]Read from MH i2c: E2 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 0E 00 [10:40:03]MH_I2C_Read... [10:40:03]Read from MH i2c: E2 0E 00 0D A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 FE [10:40:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:40:03]wFMCommunicate OK [10:40:03]SAM_PROTO_GetShiftState done [10:40:03]FM_GetShiftState done [10:40:03]req_shift_opened done [10:40:03]requested_item shift.open_date is exist - process it [10:40:03]req_shift_open_date [10:40:03]req_shift_open_date done [10:40:03]produce_requested_data done [10:40:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119043,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:40:03]process_action_free close_receipt [10:40:03]json_value_free [10:40:03]json_value_free done [10:40:03]process_json_proto returns [10:40:03]Send response to host [10:40:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119043,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:40:03]free response buf [10:40:03]execute_script done [10:40:03]execute_script returns [10:40:03]free content buf [10:40:03]Sock 9.Close socket [10:40:03]Sock 9.Thread stoped [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:06]accept exits with 7 [10:43:06]New connection [10:43:06]New thread 3067383140 created [10:43:06]Thread 3067239780 joined [10:43:06]Waiting for new connection... [10:43:06] Sock 7.Parse request [10:43:06]Sock 7.Check first char [10:43:06]Sock 7.First char is OK [10:43:06]request: POST /json_proto HTTP/1.0 [10:43:06]Method: POST [10:43:06]URL: /json_proto [10:43:06]Method is POST - this is cgi request [10:43:06]url: /json_proto [10:43:06]query_string will be loaded in cgi processing [10:43:06]execute_cgi json_proto POST (null) [10:43:06]execute_cgi path=json_proto method=POST [10:43:06]POST find Content-Length [10:43:06]Host: 172.17.45.7:8080 [10:43:06]Content-Length: 677 [10:43:06]Content-Type: application/json [10:43:06] [10:43:06]POST finish read [10:43:06]Found Content-Length = 677 [10:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:06]execute_script... [10:43: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)949963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:06]POST & json_proto [10:43:06]process_json_proto [10:43:06]json parsed OK: [10:43:06]protocol is kg_v1.0 [10:43:06]action value=close_receipt [10:43:06]process_action close_receipt [10:43:06]cmd_close_receipt [10:43:06]MH_GetDate [10:43:06]Write to MH i2c: F0 00 00 0E A9 A6 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 09 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 09 00 0E A9 00 C4 C3 A8 66 90 0F 3E 66 87 [10:43:06]GetLastDocTimeStamp 1722336009 [10:43:06]current date 1722336196 [10:43:06]FM_GetShiftState [10:43:06]SAM_PROTO_GetShiftState [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 01 00 [10:43:06]Write to MH i2c: E2 08 00 0F A9 80 13 01 00 00 00 00 00 35 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:06]Read from MH i2c: E2 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: E2 0E 00 0F A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 00 [10:43:06]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:43:06]wFMCommunicate OK [10:43:06]SAM_PROTO_GetShiftState done [10:43:06]FM_GetShiftState done [10:43:06]opened in 1722298242 [10:43:06]opened+sec_in_day 1722384642 [10:43:06]quantity*price = 40068 [10:43:06]sum+1 = 40069 [10:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 96 30.07.2024 10:43 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119044 ФПД: 228951925097175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T104316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119044&fm=228951925097175&tin=02508201610067®Number=0000000000092660&sum=40000 [10:43:07]StoreToDocumentArchive [10:43:07]shift 435 fd 119044 [10:43:07]save to /storage/0435/doc_00119044 [10:43:07]save last doc name /storage/0435/doc_00119044 to /storage/kkm_last_doc_name [10:43:07]save OK [10:43:07]Clear old archive folders... [10:43:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:07]tlvbuf is 020980A0 [10:43:07]SAM_PROTO_ClearQueue [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 09 00 00 [10:43:07]Write to MH i2c: E2 08 00 1C A9 80 09 00 00 00 00 00 00 37 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 1C A9 00 90 00 39 [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]SAM_PROTO_ClearQueue done [10:43:07]KKMCreateOFDPacket [10:43:07]OFDProtocolAddRootSTLVToBuf [10:43:07]FM_MakeSignedData [10:43:07]FM_MakeSignedData [10:43:07]SAM_PROTO_SignData [10:43:07]wFMCommunicate request_size=4 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 01 02 [10:43:07]Write to MH i2c: E2 08 00 1D A9 80 0D 01 02 00 00 00 00 3F [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 03 00 1D A9 00 90 00 3A [10:43:07]RAPDU: 90 00 [10:43:07]wFMCommunicate OK [10:43:07]wFMCommunicate request_size=255 [10:43:07]MH_SAM_APDU [10:43:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C4 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D1 01 00 35 04 06 00 D0 [10:43:07]Write to MH i2c: E2 02 01 1E A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C4 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D1 01 00 35 04 06 00 D0 00 00 D0 [10:43:07]Write i2c OK [10:43:07]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 1E A9 00 90 00 3B [10:43:08]RAPDU: 90 00 [10:43:08]wFMCommunicate OK [10:43:08]wFMCommunicate request_size=10 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 0D 02 02 05 3B 06 2A 82 D7 [10:43:08]Write to MH i2c: E2 0D 00 1F A9 80 0D 02 02 05 00 3B 06 2A 82 D7 00 00 10 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 1F A9 00 90 00 3C [10:43:08]RAPDU: 90 00 [10:43:08]wFMCommunicate OK [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 0D 03 02 [10:43:08]Write to MH i2c: E2 08 00 20 A9 80 0D 03 02 00 00 00 00 44 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 0B 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 0B 00 20 A9 00 DA 3E 89 26 FF 74 F5 7E 90 00 F2 [10:43:08]RAPDU: DA 3E 89 26 FF 74 F5 7E 90 00 [10:43:08]wFMCommunicate OK [10:43:08]SAM_PROTO_SignData done [10:43:08]FM_MakeSignedData done [10:43:08]CreateOFDProtocolMessage [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 11 00 00 [10:43:08]Write to MH i2c: E2 08 00 21 A9 80 11 00 00 00 00 00 00 44 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 17 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 17 00 21 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [10:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:43:08]wFMCommunicate OK [10:43:08]CreateOFDProtocolMessage done [10:43:08]OFDSenderStorePacket 119044 [10:43:08]StoreOFDPacket docnum=119044 [10:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4E B9 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C4 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D1 01 00 35 04 06 00 D0 3B 06 2A 82 D7 DA 3E 89 26 FF 74 F5 7E [10:43:08]CheckFolder [10:43:08]dirname=/storage/ofd_packets [10:43:08]CheckFolder done [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00119044 [10:43:08]NVStorageSaveData ofd_packets/00119044 [10:43:08]File name is /storage/ofd_packets/00119044 [10:43:08]Write 301 bytes [10:43:08]NVStorageSaveData done [10:43:08]OFDSenderStorePacket done [10:43:08]KKMCreateOFDPacket done [10:43:08]NVStorageSaveData kkm_last_timestamp [10:43:08]File name is /storage/kkm_last_timestamp [10:43:08]Write 4 bytes [10:43:08]NVStorageSaveData done [10:43:08]ExternCall_PrintAddStr [10:43:08]wPrintStart [10:43:08]Write to MH i2c: 01 00 00 22 A9 CB [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 22 A9 00 00 00 00 00 FF 0F E0 [10:43:08]RasterBufferAndPrint [10:43:08]line Счет N : (1)949963 [10:43:08]line ИНН: 02508201610067 [10:43:08]line Контрольно-Кассовый Чек [10:43:08]line ПРОДАЖА [10:43:08]line ТРК (МРК, ГНК) : 53 [10:43:08]line Товар: 2710124500 [10:43:08]line Аи-95-К-3 [10:43:08]line 5.400 * 74.20 [10:43:08]line = 400.68 [10:43:08]line НДС 12% НСП 1% [10:43:08]line > о реализуемом товаре [10:43:08]line ОКРУГЛЕНИЕ: -0.68 [10:43:08]line ИТОГО: 400.00 [10:43:08]line Внесено: 400.00 [10:43:08]line СДАЧА: 0.00 [10:43:08]line НСП 1% : 3.55 [10:43:08]line НДС 12% : 42.55 [10:43:08]line Наличными: 400.00 [10:43:08]line Безнал.: 0.00 [10:43:08]line Место: АЗС № 134 "Партнер Нефть" [10:43:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:43:08]line СНО: Общий режим [10:43:08]line Чек 96 30.07.2024 10:43 [10:43:08]line Смена: 435 ФФД: 1.0 [10:43:08]line ЗНМ: 0300000044 [10:43:08]line РНМ: 0000000000092660 [10:43:08]line Версия ККМ: 001 [10:43:08]line ФМ: 0000000000874939 [10:43:08]line ФД: 119044 [10:43:08]line ФПД: 228951925097175 [10:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T104316&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119044&fm=228951925097175&tin=02508201610067®Number=0000000000092660&sum=40000 [10:43:08]written 0, free lines is 4095 [10:43:08]OFD Sender: Processing packet 119044 [packets to send 86, broken 85] [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00119044 [10:43:08]OFD Sender: To server: pG, [10:43:08]CommunicateWithHost lk.salyk.kg:30040 [10:43:08]ConnectInit lk.salyk.kg [10:43:08]Connected sock=10 [10:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4E B9 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 C4 C3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D1 01 00 35 04 06 00 D0 3B 06 2A 82 D7 DA 3E 89 26 FF 74 F5 7E [10:43:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 4C 47 00 DF 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 04 D1 01 00 F4 03 04 00 50 71 A8 66 B6 04 01 00 00 1E 0F 11 6A 32 85 BB 1C [10:43:08]CommunicateWithHost err = 0 [10:43:08]CheckOFDResponse [10:43:08]1017 (14) - 77093643461234 [10:43:08]1041 (16) - 0000000000874939 [10:43:08]1040 (4) - 119044 [10:43:08]1012 (4) - 30.07.2024 04:51 [10:43:08]1206 (1) - 0 [10:43:08]OFD Sender: Remove packet 119044 [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00119044 [10:43:08]NVStorageDeleteData [10:43:08]Write to MH i2c: 01 00 00 4C A9 F5 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 4C A9 00 00 00 00 00 EB 0C F3 [10:43:08]RasterBufferAndPrint [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]line [10:43:08]written 0, free lines is 3313 [10:43:08]MH_Cut [10:43:08]Write to MH i2c: D1 01 00 53 A9 01 CE [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 01 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: D1 01 00 53 A9 00 CD [10:43:08]Write to MH i2c: 01 00 00 54 A9 FD [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:09]OFD Sender: No OFD packet to send [10:43:09]*** Cut start [10:43:09]*** Partial cut [10:43:09]*** CUTSNS_PIN = 1 [10:43:09]*** CUTSNS_PIN = 0 [10:43:09]*** Brake cut motor [10:43:10]Read from MH i2c: 01 [10:43:10]MH_I2C_Read... [10:43:10]*** Stop cut motor [10:43:10]*** Cut end [10:43:10]Read from MH i2c: 01 07 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: 01 07 00 54 A9 00 00 00 00 00 FF 0F 12 [10:43:10]process_action close_receipt done [10:43:10]requested_data is exist [10:43:10]produce_requested_data [10:43:10]requested_item fm.sn is exist - process it [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 11 00 00 [10:43:10]Write to MH i2c: E2 08 00 55 A9 80 11 00 00 00 00 00 00 78 [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 17 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 17 00 55 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [10:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [10:43:10]wFMCommunicate OK [10:43:10]requested_item fd.num is exist - process it [10:43:10]SAM_PROTO_GetFieldsCounters [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 13 00 00 [10:43:10]Write to MH i2c: E2 08 00 56 A9 80 13 00 00 00 00 00 00 7B [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 62 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 62 00 56 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [10:43: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 04 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:10]wFMCommunicate OK [10:43:10]SAM_PROTO_GetFieldsCounters done [10:43:10]requested_item shift.num is exist - process it [10:43:10]requested_item shift.opened is exist - process it [10:43:10]req_shift_opened [10:43:10]FM_GetShiftState [10:43:10]SAM_PROTO_GetShiftState [10:43:10]wFMCommunicate request_size=4 [10:43:10]MH_SAM_APDU [10:43:10]CAPDU: 80 13 01 00 [10:43:10]Write to MH i2c: E2 08 00 57 A9 80 13 01 00 00 00 00 00 7D [10:43:10]Write i2c OK [10:43:10]MH_I2C_Read... [10:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:10]Read from MH i2c: E2 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 0E 00 [10:43:10]MH_I2C_Read... [10:43:10]Read from MH i2c: E2 0E 00 57 A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 48 [10:43:10]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [10:43:10]wFMCommunicate OK [10:43:10]SAM_PROTO_GetShiftState done [10:43:10]FM_GetShiftState done [10:43:10]req_shift_opened done [10:43:10]requested_item shift.open_date is exist - process it [10:43:10]req_shift_open_date [10:43:10]req_shift_open_date done [10:43:10]produce_requested_data done [10:43:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119044,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [10:43:10]process_action_free close_receipt [10:43:10]json_value_free [10:43:10]json_value_free done [10:43:10]process_json_proto returns [10:43:10]Send response to host [10:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119044,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [10:43:10]free response buf [10:43:10]execute_script done [10:43:10]execute_script returns [10:43:10]free content buf [10:43:10]Sock 7.Close socket [10:43:10]Sock 7.Thread stoped [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:39]OFD Sender: No OFD packet to send [10:51:44]OFD Sender: No OFD packet to send [10:51:49]OFD Sender: No OFD packet to send [10:51:54]OFD Sender: No OFD packet to send [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]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]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: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:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:22]accept exits with 9 [11:09:22]New connection [11:09:22]New thread 3067239780 created [11:09:22]Thread 3067383140 joined [11:09:22]Waiting for new connection... [11:09:22] Sock 9.Parse request [11:09:22]Sock 9.Check first char [11:09:22]Sock 9.First char is OK [11:09:22]request: POST /json_proto HTTP/1.0 [11:09:22]Method: POST [11:09:22]URL: /json_proto [11:09:22]Method is POST - this is cgi request [11:09:22]url: /json_proto [11:09:22]query_string will be loaded in cgi processing [11:09:22]execute_cgi json_proto POST (null) [11:09:22]execute_cgi path=json_proto method=POST [11:09:22]POST find Content-Length [11:09:22]Host: 172.17.45.7:8080 [11:09:22]Content-Length: 678 [11:09:22]Content-Type: application/json [11:09:22] [11:09:22]POST finish read [11:09:22]Found Content-Length = 678 [11:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:09:22]execute_script... [11:09: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)949964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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:09:22]POST & json_proto [11:09:22]process_json_proto [11:09:22]json parsed OK: [11:09:22]protocol is kg_v1.0 [11:09:22]action value=close_receipt [11:09:22]process_action close_receipt [11:09:22]cmd_close_receipt [11:09:22]MH_GetDate [11:09:22]Write to MH i2c: F0 00 00 58 A9 F0 [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: F0 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: F0 09 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: F0 09 00 58 A9 00 EC C9 A8 66 90 0F 3E 66 FF [11:09:22]GetLastDocTimeStamp 1722336196 [11:09:22]current date 1722337772 [11:09:22]FM_GetShiftState [11:09:22]SAM_PROTO_GetShiftState [11:09:22]wFMCommunicate request_size=4 [11:09:22]MH_SAM_APDU [11:09:22]CAPDU: 80 13 01 00 [11:09:22]Write to MH i2c: E2 08 00 59 A9 80 13 01 00 00 00 00 00 7F [11:09:22]Write i2c OK [11:09:22]MH_I2C_Read... [11:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:22]Read from MH i2c: E2 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 0E 00 [11:09:22]MH_I2C_Read... [11:09:22]Read from MH i2c: E2 0E 00 59 A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4A [11:09:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:09:22]wFMCommunicate OK [11:09:22]SAM_PROTO_GetShiftState done [11:09:22]FM_GetShiftState done [11:09:22]opened in 1722298242 [11:09:22]opened+sec_in_day 1722384642 [11:09:22]quantity*price = 70037 [11:09:22]sum+1 = 70038 [11:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 97 30.07.2024 11:09 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119045 ФПД: 11173881025518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T110932&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119045&fm=11173881025518&tin=02508201610067®Number=0000000000092660&sum=70000 [11:09:23]StoreToDocumentArchive [11:09:23]shift 435 fd 119045 [11:09:23]save to /storage/0435/doc_00119045 [11:09:23]save last doc name /storage/0435/doc_00119045 to /storage/kkm_last_doc_name [11:09:23]save OK [11:09:23]Clear old archive folders... [11:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:23]tlvbuf is 02080F80 [11:09:23]SAM_PROTO_ClearQueue [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 09 00 00 [11:09:23]Write to MH i2c: E2 08 00 66 A9 80 09 00 00 00 00 00 00 81 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 66 A9 00 90 00 83 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]SAM_PROTO_ClearQueue done [11:09:23]KKMCreateOFDPacket [11:09:23]OFDProtocolAddRootSTLVToBuf [11:09:23]FM_MakeSignedData [11:09:23]FM_MakeSignedData [11:09:23]SAM_PROTO_SignData [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 01 02 [11:09:23]Write to MH i2c: E2 08 00 67 A9 80 0D 01 02 00 00 00 00 89 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 67 A9 00 90 00 84 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=255 [11:09:23]MH_SAM_APDU [11:09: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EC C9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D1 01 00 35 04 06 00 0A [11:09:23]Write to MH i2c: E2 02 01 68 A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EC C9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D1 01 00 35 04 06 00 0A 00 00 AD [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 68 A9 00 90 00 85 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=10 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 02 02 05 29 9F 35 93 EE [11:09:23]Write to MH i2c: E2 0D 00 69 A9 80 0D 02 02 05 00 29 9F 35 93 EE 00 00 14 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 03 00 69 A9 00 90 00 86 [11:09:23]RAPDU: 90 00 [11:09:23]wFMCommunicate OK [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 0D 03 02 [11:09:23]Write to MH i2c: E2 08 00 6A A9 80 0D 03 02 00 00 00 00 8E [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 0B 00 6A A9 00 A4 BA 6A 4A E4 AB 90 10 90 00 D0 [11:09:23]RAPDU: A4 BA 6A 4A E4 AB 90 10 90 00 [11:09:23]wFMCommunicate OK [11:09:23]SAM_PROTO_SignData done [11:09:23]FM_MakeSignedData done [11:09:23]CreateOFDProtocolMessage [11:09:23]wFMCommunicate request_size=4 [11:09:23]MH_SAM_APDU [11:09:23]CAPDU: 80 11 00 00 [11:09:23]Write to MH i2c: E2 08 00 6B A9 80 11 00 00 00 00 00 00 8E [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:23]Read from MH i2c: E2 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: E2 17 00 6B A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E9 [11:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:09:23]wFMCommunicate OK [11:09:23]CreateOFDProtocolMessage done [11:09:23]OFDSenderStorePacket 119045 [11:09:23]StoreOFDPacket docnum=119045 [11:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 22 DA 07 01 85 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EC C9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D1 01 00 35 04 06 00 0A 29 9F 35 93 EE A4 BA 6A 4A E4 AB 90 10 [11:09:23]CheckFolder [11:09:23]dirname=/storage/ofd_packets [11:09:23]CheckFolder done [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00119045 [11:09:23]NVStorageSaveData ofd_packets/00119045 [11:09:23]File name is /storage/ofd_packets/00119045 [11:09:23]Write 301 bytes [11:09:23]NVStorageSaveData done [11:09:23]OFDSenderStorePacket done [11:09:23]KKMCreateOFDPacket done [11:09:23]NVStorageSaveData kkm_last_timestamp [11:09:23]File name is /storage/kkm_last_timestamp [11:09:23]Write 4 bytes [11:09:23]NVStorageSaveData done [11:09:23]ExternCall_PrintAddStr [11:09:23]wPrintStart [11:09:23]Write to MH i2c: 01 00 00 6C A9 15 [11:09:23]Write i2c OK [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 [11:09:23]MH_I2C_Read... [11:09:23]Read from MH i2c: 01 07 00 6C A9 00 00 00 00 00 FF 0F 2A [11:09:23]RasterBufferAndPrint [11:09:23]line Счет N : (1)949964 [11:09:23]line ИНН: 02508201610067 [11:09:23]line Контрольно-Кассовый Чек [11:09:23]line ПРОДАЖА [11:09:23]line ТРК (МРК, ГНК) : 51 [11:09:23]line Товар: 2710124130 [11:09:23]line Аи-92-К-4 [11:09:23]line 10.330 * 67.80 [11:09:23]line = 700.37 [11:09:23]line НДС 12% НСП 1% [11:09:23]line > о реализуемом товаре [11:09:23]line ОКРУГЛЕНИЕ: -0.37 [11:09:23]line ИТОГО: 700.00 [11:09:23]line Внесено: 700.00 [11:09:23]line СДАЧА: 0.00 [11:09:23]line НСП 1% : 6.20 [11:09:23]line НДС 12% : 74.38 [11:09:23]line Наличными: 700.00 [11:09:23]line Безнал.: 0.00 [11:09:23]line Место: АЗС № 134 "Партнер Нефть" [11:09:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:09:23]line СНО: Общий режим [11:09:23]line Чек 97 30.07.2024 11:09 [11:09:23]line Смена: 435 ФФД: 1.0 [11:09:23]line ЗНМ: 0300000044 [11:09:23]line РНМ: 0000000000092660 [11:09:23]line Версия ККМ: 001 [11:09:23]line ФМ: 0000000000874939 [11:09:23]line ФД: 119045 [11:09:23]line ФПД: 11173881025518 [11:09:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T110932&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119045&fm=11173881025518&tin=02508201610067®Number=0000000000092660&sum=70000 [11:09:23]written 0, free lines is 4095 [11:09:23]OFD Sender: Processing packet 119045 [packets to send 86, broken 85] [11:09:23]ProducePacketName [11:09:23]name=ofd_packets/00119045 [11:09:23]OFD Sender: To server: pG, [11:09:23]CommunicateWithHost lk.salyk.kg:30040 [11:09:23]ConnectInit lk.salyk.kg [11:09:23]Connected sock=10 [11:09:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 22 DA 07 01 85 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 EC C9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D1 01 00 35 04 06 00 0A 29 9F 35 93 EE A4 BA 6A 4A E4 AB 90 10 [11:09:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F4 A3 47 00 A3 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 05 D1 01 00 F4 03 04 00 77 77 A8 66 B6 04 01 00 00 00 8E 17 98 3B 2C 40 6C [11:09:24]CommunicateWithHost err = 0 [11:09:24]CheckOFDResponse [11:09:24]1017 (14) - 77093643461234 [11:09:24]1041 (16) - 0000000000874939 [11:09:24]1040 (4) - 119045 [11:09:24]1012 (4) - 30.07.2024 05:17 [11:09:24]1206 (1) - 0 [11:09:24]OFD Sender: Remove packet 119045 [11:09:24]ProducePacketName [11:09:24]name=ofd_packets/00119045 [11:09:24]NVStorageDeleteData [11:09:24]Write to MH i2c: 01 00 00 96 A9 3F [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: 01 07 00 96 A9 00 00 00 00 00 EB 0C 3D [11:09:24]RasterBufferAndPrint [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]line [11:09:24]written 0, free lines is 3313 [11:09:24]MH_Cut [11:09:24]Write to MH i2c: D1 01 00 9D A9 01 18 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 [11:09:24]MH_I2C_Read... [11:09:24]Read from MH i2c: D1 01 00 9D A9 00 17 [11:09:24]Write to MH i2c: 01 00 00 9E A9 47 [11:09:24]Write i2c OK [11:09:24]MH_I2C_Read... [11:09:24]OFD Sender: No OFD packet to send [11:09:24]*** Cut start [11:09:24]*** Partial cut [11:09:24]*** CUTSNS_PIN = 1 [11:09:24]*** CUTSNS_PIN = 0 [11:09:25]*** Brake cut motor [11:09:25]Read from MH i2c: 01 [11:09:25]MH_I2C_Read... [11:09:25]*** Stop cut motor [11:09:25]*** Cut end [11:09:25]Read from MH i2c: 01 07 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: 01 07 00 9E A9 00 00 00 00 00 FF 0F 5C [11:09:25]process_action close_receipt done [11:09:25]requested_data is exist [11:09:25]produce_requested_data [11:09:25]requested_item fm.sn is exist - process it [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 11 00 00 [11:09:25]Write to MH i2c: E2 08 00 9F A9 80 11 00 00 00 00 00 00 C2 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 17 00 9F A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1D [11:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:09:25]wFMCommunicate OK [11:09:25]requested_item fd.num is exist - process it [11:09:25]SAM_PROTO_GetFieldsCounters [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 13 00 00 [11:09:25]Write to MH i2c: E2 08 00 A0 A9 80 13 00 00 00 00 00 00 C5 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 62 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 62 00 A0 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [11:09:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 05 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_GetFieldsCounters done [11:09:25]requested_item shift.num is exist - process it [11:09:25]requested_item shift.opened is exist - process it [11:09:25]req_shift_opened [11:09:25]FM_GetShiftState [11:09:25]SAM_PROTO_GetShiftState [11:09:25]wFMCommunicate request_size=4 [11:09:25]MH_SAM_APDU [11:09:25]CAPDU: 80 13 01 00 [11:09:25]Write to MH i2c: E2 08 00 A1 A9 80 13 01 00 00 00 00 00 C7 [11:09:25]Write i2c OK [11:09:25]MH_I2C_Read... [11:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:25]Read from MH i2c: E2 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0E 00 [11:09:25]MH_I2C_Read... [11:09:25]Read from MH i2c: E2 0E 00 A1 A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 92 [11:09:25]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:09:25]wFMCommunicate OK [11:09:25]SAM_PROTO_GetShiftState done [11:09:25]FM_GetShiftState done [11:09:25]req_shift_opened done [11:09:25]requested_item shift.open_date is exist - process it [11:09:25]req_shift_open_date [11:09:25]req_shift_open_date done [11:09:25]produce_requested_data done [11:09:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119045,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:09:25]process_action_free close_receipt [11:09:25]json_value_free [11:09:25]json_value_free done [11:09:25]process_json_proto returns [11:09:25]Send response to host [11:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119045,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:09:25]free response buf [11:09:25]execute_script done [11:09:25]execute_script returns [11:09:25]free content buf [11:09:25]Sock 9.Close socket [11:09:25]Sock 9.Thread stoped [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]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:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:36]accept exits with 7 [11:15:36]New connection [11:15:36]New thread 3067383140 created [11:15:36]Thread 3067239780 joined [11:15:36]Waiting for new connection... [11:15:36] Sock 7.Parse request [11:15:36]Sock 7.Check first char [11:15:36]Sock 7.First char is OK [11:15:36]request: POST /json_proto HTTP/1.0 [11:15:36]Method: POST [11:15:36]URL: /json_proto [11:15:36]Method is POST - this is cgi request [11:15:36]url: /json_proto [11:15:36]query_string will be loaded in cgi processing [11:15:36]execute_cgi json_proto POST (null) [11:15:36]execute_cgi path=json_proto method=POST [11:15:36]POST find Content-Length [11:15:36]Host: 172.17.45.7:8080 [11:15:36]Content-Length: 679 [11:15:36]Content-Type: application/json [11:15:36] [11:15:36]POST finish read [11:15:36]Found Content-Length = 679 [11:15:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:36]execute_script... [11:15: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)949966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:36]POST & json_proto [11:15:36]process_json_proto [11:15:36]json parsed OK: [11:15:36]protocol is kg_v1.0 [11:15:36]action value=close_receipt [11:15:36]process_action close_receipt [11:15:36]cmd_close_receipt [11:15:36]MH_GetDate [11:15:36]Write to MH i2c: F0 00 00 A2 A9 3A [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: F0 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: F0 09 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: F0 09 00 A2 A9 00 62 CB A8 66 90 0F 3E 66 C1 [11:15:36]GetLastDocTimeStamp 1722337772 [11:15:36]current date 1722338146 [11:15:36]FM_GetShiftState [11:15:36]SAM_PROTO_GetShiftState [11:15:36]wFMCommunicate request_size=4 [11:15:36]MH_SAM_APDU [11:15:36]CAPDU: 80 13 01 00 [11:15:36]Write to MH i2c: E2 08 00 A3 A9 80 13 01 00 00 00 00 00 C9 [11:15:36]Write i2c OK [11:15:36]MH_I2C_Read... [11:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:36]Read from MH i2c: E2 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 0E 00 [11:15:36]MH_I2C_Read... [11:15:36]Read from MH i2c: E2 0E 00 A3 A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 94 [11:15:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:15:36]wFMCommunicate OK [11:15:36]SAM_PROTO_GetShiftState done [11:15:36]FM_GetShiftState done [11:15:36]opened in 1722298242 [11:15:36]opened+sec_in_day 1722384642 [11:15:36]quantity*price = 100050 [11:15:36]sum+1 = 100052 [11:15:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 98 30.07.2024 11:15 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119046 ФПД: 205771272745320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T111546&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119046&fm=205771272745320&tin=02508201610067®Number=0000000000092660&sum=100000 [11:15:37]StoreToDocumentArchive [11:15:37]shift 435 fd 119046 [11:15:37]save to /storage/0435/doc_00119046 [11:15:37]save last doc name /storage/0435/doc_00119046 to /storage/kkm_last_doc_name [11:15:37]save OK [11:15:37]Clear old archive folders... [11:15:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:15:37]tlvbuf is 02055080 [11:15:37]SAM_PROTO_ClearQueue [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 09 00 00 [11:15:37]Write to MH i2c: E2 08 00 B0 A9 80 09 00 00 00 00 00 00 CB [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 B0 A9 00 90 00 CD [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_ClearQueue done [11:15:37]KKMCreateOFDPacket [11:15:37]OFDProtocolAddRootSTLVToBuf [11:15:37]FM_MakeSignedData [11:15:37]FM_MakeSignedData [11:15:37]SAM_PROTO_SignData [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 01 02 [11:15:37]Write to MH i2c: E2 08 00 B1 A9 80 0D 01 02 00 00 00 00 D3 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 B1 A9 00 90 00 CE [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=255 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 62 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D1 01 00 35 04 06 00 BB 25 DB 9D [11:15:37]Write to MH i2c: E2 02 01 B2 A9 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 62 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D1 01 00 35 04 06 00 BB 25 DB 9D 00 00 E4 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 B2 A9 00 90 00 CF [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=7 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 02 02 02 F1 68 [11:15:37]Write to MH i2c: E2 0A 00 B3 A9 80 0D 02 02 02 00 F1 68 00 00 33 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 03 00 B3 A9 00 90 00 D0 [11:15:37]RAPDU: 90 00 [11:15:37]wFMCommunicate OK [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 0D 03 02 [11:15:37]Write to MH i2c: E2 08 00 B4 A9 80 0D 03 02 00 00 00 00 D8 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0B 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 0B 00 B4 A9 00 AF FD D6 81 43 B2 D1 1A 90 00 BC [11:15:37]RAPDU: AF FD D6 81 43 B2 D1 1A 90 00 [11:15:37]wFMCommunicate OK [11:15:37]SAM_PROTO_SignData done [11:15:37]FM_MakeSignedData done [11:15:37]CreateOFDProtocolMessage [11:15:37]wFMCommunicate request_size=4 [11:15:37]MH_SAM_APDU [11:15:37]CAPDU: 80 11 00 00 [11:15:37]Write to MH i2c: E2 08 00 B5 A9 80 11 00 00 00 00 00 00 D8 [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:37]Read from MH i2c: E2 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 17 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: E2 17 00 B5 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 33 [11:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:15:37]wFMCommunicate OK [11:15:37]CreateOFDProtocolMessage done [11:15:37]OFDSenderStorePacket 119046 [11:15:37]StoreOFDPacket docnum=119046 [11:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 30 2F 04 01 B3 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 62 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D1 01 00 35 04 06 00 BB 25 DB 9D F1 68 AF FD D6 81 43 B2 D1 1A [11:15:37]CheckFolder [11:15:37]dirname=/storage/ofd_packets [11:15:37]CheckFolder done [11:15:37]ProducePacketName [11:15:37]name=ofd_packets/00119046 [11:15:37]NVStorageSaveData ofd_packets/00119046 [11:15:37]File name is /storage/ofd_packets/00119046 [11:15:37]Write 298 bytes [11:15:37]NVStorageSaveData done [11:15:37]OFDSenderStorePacket done [11:15:37]KKMCreateOFDPacket done [11:15:37]NVStorageSaveData kkm_last_timestamp [11:15:37]File name is /storage/kkm_last_timestamp [11:15:37]Write 4 bytes [11:15:37]NVStorageSaveData done [11:15:37]ExternCall_PrintAddStr [11:15:37]wPrintStart [11:15:37]Write to MH i2c: 01 00 00 B6 A9 5F [11:15:37]Write i2c OK [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 [11:15:37]MH_I2C_Read... [11:15:37]Read from MH i2c: 01 07 00 B6 A9 00 00 00 00 00 FF 0F 74 [11:15:37]RasterBufferAndPrint [11:15:37]line Счет N : (1)949966 [11:15:37]line ИНН: 02508201610067 [11:15:37]line Контрольно-Кассовый Чек [11:15:37]line ПРОДАЖА [11:15:37]line ТРК (МРК, ГНК) : 64 [11:15:37]line Товар: 2710194800 [11:15:37]line ДТ-К-5 [11:15:37]line 13.130 * 76.20 [11:15:37]line = 1000.51 [11:15:37]line НДС 12% НСП 1% [11:15:37]line > о реализуемом товаре [11:15:37]line ОКРУГЛЕНИЕ: -0.51 [11:15:37]line ИТОГО: 1000.00 [11:15:37]line Внесено: 1000.00 [11:15:37]line СДАЧА: 0.00 [11:15:37]line НСП 1% : 8.85 [11:15:37]line НДС 12% : 106.25 [11:15:37]line Наличными: 1000.00 [11:15:37]line Безнал.: 0.00 [11:15:37]line Место: АЗС № 134 "Партнер Нефть" [11:15:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:15:37]line СНО: Общий режим [11:15:37]line Чек 98 30.07.2024 11:15 [11:15:37]line Смена: 435 ФФД: 1.0 [11:15:37]line ЗНМ: 0300000044 [11:15:37]line РНМ: 0000000000092660 [11:15:37]line Версия ККМ: 001 [11:15:37]line ФМ: 0000000000874939 [11:15:37]line ФД: 119046 [11:15:37]line ФПД: 205771272745320 [11:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T111546&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119046&fm=205771272745320&tin=02508201610067®Number=0000000000092660&sum=100000 [11:15:38]OFD Sender: Processing packet 119046 [packets to send 86, broken 85] [11:15:38]ProducePacketName [11:15:38]name=ofd_packets/00119046 [11:15:38]OFD Sender: To server: pG, [11:15:38]CommunicateWithHost lk.salyk.kg:30040 [11:15:38]ConnectInit lk.salyk.kg [11:15:38]written 0, free lines is 4095 [11:15:38]Connected sock=10 [11:15:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 30 2F 04 01 B3 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 62 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D1 01 00 35 04 06 00 BB 25 DB 9D F1 68 AF FD D6 81 43 B2 D1 1A [11:15:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0B C3 47 00 48 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 06 D1 01 00 F4 03 04 00 EE 78 A8 66 B6 04 01 00 00 07 E2 DF C8 2B 26 4F 2F [11:15:38]CommunicateWithHost err = 0 [11:15:38]CheckOFDResponse [11:15:38]1017 (14) - 77093643461234 [11:15:38]1041 (16) - 0000000000874939 [11:15:38]1040 (4) - 119046 [11:15:38]1012 (4) - 30.07.2024 05:23 [11:15:38]1206 (1) - 0 [11:15:38]OFD Sender: Remove packet 119046 [11:15:38]ProducePacketName [11:15:38]name=ofd_packets/00119046 [11:15:38]NVStorageDeleteData [11:15:38]Write to MH i2c: 01 00 00 E0 A9 89 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: 01 07 00 E0 A9 00 00 00 00 00 EC 0C 88 [11:15:38]RasterBufferAndPrint [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]line [11:15:38]written 0, free lines is 3315 [11:15:38]MH_Cut [11:15:38]Write to MH i2c: D1 01 00 E7 A9 01 62 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 01 00 [11:15:38]MH_I2C_Read... [11:15:38]Read from MH i2c: D1 01 00 E7 A9 00 61 [11:15:38]Write to MH i2c: 01 00 00 E8 A9 91 [11:15:38]Write i2c OK [11:15:38]MH_I2C_Read... [11:15:39]OFD Sender: No OFD packet to send [11:15:39]*** Cut start [11:15:39]*** Partial cut [11:15:39]*** CUTSNS_PIN = 1 [11:15:39]*** CUTSNS_PIN = 0 [11:15:39]*** Brake cut motor [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]*** Stop cut motor [11:15:40]*** Cut end [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 E8 A9 00 00 00 00 00 FF 0F A6 [11:15:40]process_action close_receipt done [11:15:40]requested_data is exist [11:15:40]produce_requested_data [11:15:40]requested_item fm.sn is exist - process it [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 11 00 00 [11:15:40]Write to MH i2c: E2 08 00 E9 A9 80 11 00 00 00 00 00 00 0C [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 17 00 E9 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 67 [11:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:15:40]wFMCommunicate OK [11:15:40]requested_item fd.num is exist - process it [11:15:40]SAM_PROTO_GetFieldsCounters [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 00 00 [11:15:40]Write to MH i2c: E2 08 00 EA A9 80 13 00 00 00 00 00 00 0F [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 62 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 62 00 EA A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [11:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 06 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:40]wFMCommunicate OK [11:15:40]SAM_PROTO_GetFieldsCounters done [11:15:40]requested_item shift.num is exist - process it [11:15:40]requested_item shift.opened is exist - process it [11:15:40]req_shift_opened [11:15:40]FM_GetShiftState [11:15:40]SAM_PROTO_GetShiftState [11:15:40]wFMCommunicate request_size=4 [11:15:40]MH_SAM_APDU [11:15:40]CAPDU: 80 13 01 00 [11:15:40]Write to MH i2c: E2 08 00 EB A9 80 13 01 00 00 00 00 00 11 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:40]Read from MH i2c: E2 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 0E 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: E2 0E 00 EB A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DC [11:15:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:15:40]wFMCommunicate OK [11:15:40]SAM_PROTO_GetShiftState done [11:15:40]FM_GetShiftState done [11:15:40]req_shift_opened done [11:15:40]requested_item shift.open_date is exist - process it [11:15:40]req_shift_open_date [11:15:40]req_shift_open_date done [11:15:40]produce_requested_data done [11:15:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119046,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:15:40]process_action_free close_receipt [11:15:40]json_value_free [11:15:40]json_value_free done [11:15:40]process_json_proto returns [11:15:40]Send response to host [11:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119046,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:15:40]free response buf [11:15:40]execute_script done [11:15:40]execute_script returns [11:15:40]free content buf [11:15:40]Sock 7.Close socket [11:15:40]Sock 7.Thread stoped [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:04]OFD Sender: No OFD packet to send [11:16:08]accept exits with 9 [11:16:08]New connection [11:16:08]New thread 3067239780 created [11:16:08]Thread 3067383140 joined [11:16:08]Waiting for new connection... [11:16:08] Sock 9.Parse request [11:16:08]Sock 9.Check first char [11:16:08]Sock 9.First char is OK [11:16:08]request: POST /json_proto HTTP/1.0 [11:16:08]Method: POST [11:16:08]URL: /json_proto [11:16:08]Method is POST - this is cgi request [11:16:08]url: /json_proto [11:16:08]query_string will be loaded in cgi processing [11:16:08]execute_cgi json_proto POST (null) [11:16:08]execute_cgi path=json_proto method=POST [11:16:08]POST find Content-Length [11:16:08]Host: 172.17.45.7:8080 [11:16:08]Content-Length: 838 [11:16:08]Content-Type: application/json [11:16:08] [11:16:08]POST finish read [11:16:08]Found Content-Length = 838 [11:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 13.600, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:08]execute_script... [11:16: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)949965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 73.54, "quantity" : 13.600, "sum" : 1000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:08]POST & json_proto [11:16:08]process_json_proto [11:16:08]json parsed OK: [11:16:08]protocol is kg_v1.0 [11:16:08]action value=close_receipt [11:16:08]process_action close_receipt [11:16:08]cmd_close_receipt [11:16:08]MH_GetDate [11:16:08]Write to MH i2c: F0 00 00 EC A9 84 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 09 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: F0 09 00 EC A9 00 83 CB A8 66 90 0F 3E 66 2C [11:16:08]GetLastDocTimeStamp 1722338146 [11:16:08]current date 1722338179 [11:16:08]FM_GetShiftState [11:16:08]SAM_PROTO_GetShiftState [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 01 00 [11:16:08]Write to MH i2c: E2 08 00 ED A9 80 13 01 00 00 00 00 00 13 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 ED A9 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DE [11:16:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetShiftState done [11:16:08]FM_GetShiftState done [11:16:08]opened in 1722298242 [11:16:08]opened+sec_in_day 1722384642 [11:16:08]quantity*price = 100014 [11:16:08]sum+1 = 100015 [11:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 99 30.07.2024 11:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119047 ФПД: 228537622917035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T111619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119047&fm=228537622917035&tin=02508201610067®Number=0000000000092660&sum=100000 [11:16:09]StoreToDocumentArchive [11:16:09]shift 435 fd 119047 [11:16:09]save to /storage/0435/doc_00119047 [11:16:09]save last doc name /storage/0435/doc_00119047 to /storage/kkm_last_doc_name [11:16:09]save OK [11:16:09]Clear old archive folders... [11:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:09]tlvbuf is 021388E0 [11:16:09]SAM_PROTO_ClearQueue [11:16:09]wFMCommunicate request_size=4 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 09 00 00 [11:16:09]Write to MH i2c: E2 08 00 FA A9 80 09 00 00 00 00 00 00 15 [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:09]Read from MH i2c: E2 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 [11:16:09]MH_I2C_Read... [11:16:09]Read from MH i2c: E2 03 00 FA A9 00 90 00 17 [11:16:09]RAPDU: 90 00 [11:16:09]wFMCommunicate OK [11:16:09]SAM_PROTO_ClearQueue done [11:16:09]KKMCreateOFDPacket [11:16:09]OFDProtocolAddRootSTLVToBuf [11:16:09]FM_MakeSignedData [11:16:09]FM_MakeSignedData [11:16:09]SAM_PROTO_SignData [11:16:09]wFMCommunicate request_size=4 [11:16:09]MH_SAM_APDU [11:16:09]CAPDU: 80 0D 01 02 [11:16:09]Write to MH i2c: E2 08 00 FB A9 80 0D 01 02 00 00 00 00 1D [11:16:09]Write i2c OK [11:16:09]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 FB A9 00 90 00 18 [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]wFMCommunicate request_size=255 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 83 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D1 01 00 35 04 06 00 CF [11:16:10]Write to MH i2c: E2 02 01 FC A9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 83 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D1 01 00 35 04 06 00 CF 00 00 16 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 FC A9 00 90 00 19 [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]wFMCommunicate request_size=10 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 0D 02 02 05 DA 8F D4 EF AB [11:16:10]Write to MH i2c: E2 0D 00 FD A9 80 0D 02 02 05 00 DA 8F D4 EF AB 00 00 01 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 03 00 FD A9 00 90 00 1A [11:16:10]RAPDU: 90 00 [11:16:10]wFMCommunicate OK [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 0D 03 02 [11:16:10]Write to MH i2c: E2 08 00 FE A9 80 0D 03 02 00 00 00 00 22 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0B 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 0B 00 FE A9 00 8E 98 FF 0C F0 79 38 B3 90 00 A8 [11:16:10]RAPDU: 8E 98 FF 0C F0 79 38 B3 90 00 [11:16:10]wFMCommunicate OK [11:16:10]SAM_PROTO_SignData done [11:16:10]FM_MakeSignedData done [11:16:10]CreateOFDProtocolMessage [11:16:10]wFMCommunicate request_size=4 [11:16:10]MH_SAM_APDU [11:16:10]CAPDU: 80 11 00 00 [11:16:10]Write to MH i2c: E2 08 00 FF A9 80 11 00 00 00 00 00 00 22 [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:10]Read from MH i2c: E2 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: E2 17 00 FF A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7D [11:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:10]wFMCommunicate OK [11:16:10]CreateOFDProtocolMessage done [11:16:10]OFDSenderStorePacket 119047 [11:16:10]StoreOFDPacket docnum=119047 [11:16:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 03 07 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 83 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D1 01 00 35 04 06 00 CF DA 8F D4 EF AB 8E 98 FF 0C F0 79 38 B3 [11:16:10]CheckFolder [11:16:10]dirname=/storage/ofd_packets [11:16:10]CheckFolder done [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00119047 [11:16:10]NVStorageSaveData ofd_packets/00119047 [11:16:10]File name is /storage/ofd_packets/00119047 [11:16:10]Write 301 bytes [11:16:10]NVStorageSaveData done [11:16:10]OFDSenderStorePacket done [11:16:10]KKMCreateOFDPacket done [11:16:10]NVStorageSaveData kkm_last_timestamp [11:16:10]File name is /storage/kkm_last_timestamp [11:16:10]Write 4 bytes [11:16:10]NVStorageSaveData done [11:16:10]ExternCall_PrintAddStr [11:16:10]wPrintStart [11:16:10]Write to MH i2c: 01 00 00 00 AA AA [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 00 AA 00 00 00 00 00 FF 0F BF [11:16:10]RasterBufferAndPrint [11:16:10]line Счет N : (1)949965 [11:16:10]line ИНН: 02508201610067 [11:16:10]line Контрольно-Кассовый Чек [11:16:10]line ПРОДАЖА [11:16:10]line ТРК (МРК, ГНК) : 43 [11:16:10]line Товар: 2710124500 [11:16:10]line Аи-95-К-3 [11:16:10]line 13.600 * 73.54 [11:16:10]line = 1000.14 [11:16:10]line НДС 12% НСП 1% [11:16:10]line > о реализуемом товаре [11:16:10]line ОКРУГЛЕНИЕ: -0.14 [11:16:10]line ИТОГО: 1000.00 [11:16:10]line НСП 1% : 8.85 [11:16:10]line НДС 12% : 106.21 [11:16:10]line Наличными: 0.00 [11:16:10]line Безнал.: 1000.00 [11:16:10]line Место: АЗС № 134 "Партнер Нефть" [11:16:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:16:10]line СНО: Общий режим [11:16:10]line Чек 99 30.07.2024 11:16 [11:16:10]line Смена: 435 ФФД: 1.0 [11:16:10]line ЗНМ: 0300000044 [11:16:10]line РНМ: 0000000000092660 [11:16:10]line Версия ККМ: 001 [11:16:10]line Платежная система: Бакай Банк [11:16:10]line ФМ: 0000000000874939 [11:16:10]line ФД: 119047 [11:16:10]line ФПД: 228537622917035 [11:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T111619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119047&fm=228537622917035&tin=02508201610067®Number=0000000000092660&sum=100000 [11:16:10]OFD Sender: Processing packet 119047 [packets to send 86, broken 85] [11:16:10]ProducePacketName [11:16:10]name=ofd_packets/00119047 [11:16:10]OFD Sender: To server: pG, [11:16:10]CommunicateWithHost lk.salyk.kg:30040 [11:16:10]ConnectInit lk.salyk.kg [11:16:10]written 0, free lines is 4095 [11:16:10]Connected sock=10 [11:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8C 03 07 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 35 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 AE 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 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 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 83 CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D1 01 00 35 04 06 00 CF DA 8F D4 EF AB 8E 98 FF 0C F0 79 38 B3 [11:16:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8B C1 47 00 80 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 07 D1 01 00 F4 03 04 00 0E 79 A8 66 B6 04 01 00 00 EB D5 58 F3 65 85 B7 4A [11:16:11]CommunicateWithHost err = 0 [11:16:11]CheckOFDResponse [11:16:11]1017 (14) - 77093643461234 [11:16:11]1041 (16) - 0000000000874939 [11:16:11]1040 (4) - 119047 [11:16:11]1012 (4) - 30.07.2024 05:24 [11:16:11]1206 (1) - 0 [11:16:11]OFD Sender: Remove packet 119047 [11:16:11]ProducePacketName [11:16:11]name=ofd_packets/00119047 [11:16:11]NVStorageDeleteData [11:16:11]Write to MH i2c: 01 00 00 2A AA D4 [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: 01 [11:16:11]MH_I2C_Read... [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 2A AA 00 00 00 00 00 F6 0C DD [11:16:11]RasterBufferAndPrint [11:16:11]line [11:16:11]line [11:16:11]line [11:16:11]line [11:16:11]line [11:16:11]written 0, free lines is 3323 [11:16:11]MH_Cut [11:16:11]Write to MH i2c: D1 01 00 31 AA 01 AD [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: D1 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: D1 01 00 [11:16:11]MH_I2C_Read... [11:16:11]Read from MH i2c: D1 01 00 31 AA 00 AC [11:16:11]Write to MH i2c: 01 00 00 32 AA DC [11:16:11]Write i2c OK [11:16:11]MH_I2C_Read... [11:16:11]OFD Sender: No OFD packet to send [11:16:11]*** Cut start [11:16:11]*** Partial cut [11:16:11]*** CUTSNS_PIN = 1 [11:16:12]*** CUTSNS_PIN = 0 [11:16:12]*** Brake cut motor [11:16:12]Read from MH i2c: 01 [11:16:12]MH_I2C_Read... [11:16:12]*** Stop cut motor [11:16:12]*** Cut end [11:16:12]Read from MH i2c: 01 07 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 32 AA 00 00 00 00 00 FF 0F F1 [11:16:12]process_action close_receipt done [11:16:12]requested_data is exist [11:16:12]produce_requested_data [11:16:12]requested_item fm.sn is exist - process it [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 11 00 00 [11:16:12]Write to MH i2c: E2 08 00 33 AA 80 11 00 00 00 00 00 00 57 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 17 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 17 00 33 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B2 [11:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:12]wFMCommunicate OK [11:16:12]requested_item fd.num is exist - process it [11:16:12]SAM_PROTO_GetFieldsCounters [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 13 00 00 [11:16:12]Write to MH i2c: E2 08 00 34 AA 80 13 00 00 00 00 00 00 5A [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 62 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 62 00 34 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 07 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:12]wFMCommunicate OK [11:16:12]SAM_PROTO_GetFieldsCounters done [11:16:12]requested_item shift.num is exist - process it [11:16:12]requested_item shift.opened is exist - process it [11:16:12]req_shift_opened [11:16:12]FM_GetShiftState [11:16:12]SAM_PROTO_GetShiftState [11:16:12]wFMCommunicate request_size=4 [11:16:12]MH_SAM_APDU [11:16:12]CAPDU: 80 13 01 00 [11:16:12]Write to MH i2c: E2 08 00 35 AA 80 13 01 00 00 00 00 00 5C [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:12]Read from MH i2c: E2 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 0E 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: E2 0E 00 35 AA 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 27 [11:16:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:16:12]wFMCommunicate OK [11:16:12]SAM_PROTO_GetShiftState done [11:16:12]FM_GetShiftState done [11:16:12]req_shift_opened done [11:16:12]requested_item shift.open_date is exist - process it [11:16:12]req_shift_open_date [11:16:12]req_shift_open_date done [11:16:12]produce_requested_data done [11:16:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119047,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:16:12]process_action_free close_receipt [11:16:12]json_value_free [11:16:12]json_value_free done [11:16:12]process_json_proto returns [11:16:12]Send response to host [11:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119047,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:16:12]free response buf [11:16:12]execute_script done [11:16:12]execute_script returns [11:16:12]free content buf [11:16:12]Sock 9.Close socket [11:16:12]Sock 9.Thread stoped [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:49]accept exits with 7 [11:16:49]New connection [11:16:49]New thread 3067383140 created [11:16:49]Thread 3067239780 joined [11:16:49]Waiting for new connection... [11:16:49] Sock 7.Parse request [11:16:49]Sock 7.Check first char [11:16:49]Sock 7.First char is OK [11:16:49]request: POST /json_proto HTTP/1.0 [11:16:49]Method: POST [11:16:49]URL: /json_proto [11:16:49]Method is POST - this is cgi request [11:16:49]url: /json_proto [11:16:49]query_string will be loaded in cgi processing [11:16:49]execute_cgi json_proto POST (null) [11:16:49]execute_cgi path=json_proto method=POST [11:16:49]POST find Content-Length [11:16:49]Host: 172.17.45.7:8080 [11:16:49]Content-Length: 677 [11:16:49]Content-Type: application/json [11:16:49] [11:16:49]POST finish read [11:16:49]Found Content-Length = 677 [11:16:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [11:16:49]execute_script... [11:16: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)949967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [11:16:49]POST & json_proto [11:16:49]process_json_proto [11:16:49]json parsed OK: [11:16:49]protocol is kg_v1.0 [11:16:49]action value=close_receipt [11:16:49]process_action close_receipt [11:16:49]cmd_close_receipt [11:16:49]MH_GetDate [11:16:49]Write to MH i2c: F0 00 00 36 AA CF [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: F0 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: F0 09 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: F0 09 00 36 AA 00 AC CB A8 66 90 0F 3E 66 A0 [11:16:49]GetLastDocTimeStamp 1722338179 [11:16:49]current date 1722338220 [11:16:49]FM_GetShiftState [11:16:49]SAM_PROTO_GetShiftState [11:16:49]wFMCommunicate request_size=4 [11:16:49]MH_SAM_APDU [11:16:49]CAPDU: 80 13 01 00 [11:16:49]Write to MH i2c: E2 08 00 37 AA 80 13 01 00 00 00 00 00 5E [11:16:49]Write i2c OK [11:16:49]MH_I2C_Read... [11:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:49]Read from MH i2c: E2 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 [11:16:49]MH_I2C_Read... [11:16:49]Read from MH i2c: E2 0E 00 37 AA 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 29 [11:16:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:16:49]wFMCommunicate OK [11:16:49]SAM_PROTO_GetShiftState done [11:16:49]FM_GetShiftState done [11:16:49]opened in 1722298242 [11:16:49]opened+sec_in_day 1722384642 [11:16:49]quantity*price = 25018 [11:16:49]sum+1 = 25019 [11:16:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 100 30.07.2024 11:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119048 ФПД: 253157303415333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T111700&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119048&fm=253157303415333&tin=02508201610067®Number=0000000000092660&sum=25000 [11:16:50]StoreToDocumentArchive [11:16:50]shift 435 fd 119048 [11:16:50]save to /storage/0435/doc_00119048 [11:16:50]save last doc name /storage/0435/doc_00119048 to /storage/kkm_last_doc_name [11:16:50]save OK [11:16:50]Clear old archive folders... [11:16:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:50]tlvbuf is 01EE7390 [11:16:50]SAM_PROTO_ClearQueue [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 09 00 00 [11:16:50]Write to MH i2c: E2 08 00 44 AA 80 09 00 00 00 00 00 00 60 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 44 AA 00 90 00 62 [11:16:50]RAPDU: 90 00 [11:16:50]wFMCommunicate OK [11:16:50]SAM_PROTO_ClearQueue done [11:16:50]KKMCreateOFDPacket [11:16:50]OFDProtocolAddRootSTLVToBuf [11:16:50]FM_MakeSignedData [11:16:50]FM_MakeSignedData [11:16:50]SAM_PROTO_SignData [11:16:50]wFMCommunicate request_size=4 [11:16:50]MH_SAM_APDU [11:16:50]CAPDU: 80 0D 01 02 [11:16:50]Write to MH i2c: E2 08 00 45 AA 80 0D 01 02 00 00 00 00 68 [11:16:50]Write i2c OK [11:16:50]MH_I2C_Read... [11:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:50]Read from MH i2c: E2 [11:16:50]MH_I2C_Read... [11:16:50]Read from MH i2c: E2 03 00 [11:16:50]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 45 AA 00 90 00 63 [11:16:51]RAPDU: 90 00 [11:16:51]wFMCommunicate OK [11:16:51]wFMCommunicate request_size=255 [11:16:51]MH_SAM_APDU [11:16: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 64 00 00 00 F4 03 04 00 AC CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D1 01 00 35 04 06 00 E6 [11:16:51]Write to MH i2c: E2 02 01 46 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 64 00 00 00 F4 03 04 00 AC CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D1 01 00 35 04 06 00 E6 00 00 57 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 46 AA 00 90 00 64 [11:16:51]RAPDU: 90 00 [11:16:51]wFMCommunicate OK [11:16:51]wFMCommunicate request_size=10 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 0D 02 02 05 3E C7 24 72 25 [11:16:51]Write to MH i2c: E2 0D 00 47 AA 80 0D 02 02 05 00 3E C7 24 72 25 00 00 35 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 03 00 47 AA 00 90 00 65 [11:16:51]RAPDU: 90 00 [11:16:51]wFMCommunicate OK [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 0D 03 02 [11:16:51]Write to MH i2c: E2 08 00 48 AA 80 0D 03 02 00 00 00 00 6D [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0B 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 0B 00 48 AA 00 C3 2B 1E D6 D0 CB CE F0 90 00 A9 [11:16:51]RAPDU: C3 2B 1E D6 D0 CB CE F0 90 00 [11:16:51]wFMCommunicate OK [11:16:51]SAM_PROTO_SignData done [11:16:51]FM_MakeSignedData done [11:16:51]CreateOFDProtocolMessage [11:16:51]wFMCommunicate request_size=4 [11:16:51]MH_SAM_APDU [11:16:51]CAPDU: 80 11 00 00 [11:16:51]Write to MH i2c: E2 08 00 49 AA 80 11 00 00 00 00 00 00 6D [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:51]Read from MH i2c: E2 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 17 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: E2 17 00 49 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [11:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:51]wFMCommunicate OK [11:16:51]CreateOFDProtocolMessage done [11:16:51]OFDSenderStorePacket 119048 [11:16:51]StoreOFDPacket docnum=119048 [11:16:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 85 07 01 38 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 64 00 00 00 F4 03 04 00 AC CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D1 01 00 35 04 06 00 E6 3E C7 24 72 25 C3 2B 1E D6 D0 CB CE F0 [11:16:51]CheckFolder [11:16:51]dirname=/storage/ofd_packets [11:16:51]CheckFolder done [11:16:51]ProducePacketName [11:16:51]name=ofd_packets/00119048 [11:16:51]NVStorageSaveData ofd_packets/00119048 [11:16:51]File name is /storage/ofd_packets/00119048 [11:16:51]Write 301 bytes [11:16:51]NVStorageSaveData done [11:16:51]OFDSenderStorePacket done [11:16:51]KKMCreateOFDPacket done [11:16:51]NVStorageSaveData kkm_last_timestamp [11:16:51]File name is /storage/kkm_last_timestamp [11:16:51]Write 4 bytes [11:16:51]NVStorageSaveData done [11:16:51]ExternCall_PrintAddStr [11:16:51]wPrintStart [11:16:51]Write to MH i2c: 01 00 00 4A AA F4 [11:16:51]Write i2c OK [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: 01 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: 01 07 00 [11:16:51]MH_I2C_Read... [11:16:51]Read from MH i2c: 01 07 00 4A AA 00 00 00 00 00 FF 0F 09 [11:16:51]RasterBufferAndPrint [11:16:51]line Счет N : (1)949967 [11:16:51]line ИНН: 02508201610067 [11:16:51]line Контрольно-Кассовый Чек [11:16:51]line ПРОДАЖА [11:16:51]line ТРК (МРК, ГНК) : 51 [11:16:51]line Товар: 2710124130 [11:16:51]line Аи-92-К-4 [11:16:51]line 3.690 * 67.80 [11:16:51]line = 250.18 [11:16:51]line НДС 12% НСП 1% [11:16:51]line > о реализуемом товаре [11:16:51]line ОКРУГЛЕНИЕ: -0.18 [11:16:51]line ИТОГО: 250.00 [11:16:51]line Внесено: 250.00 [11:16:51]line СДАЧА: 0.00 [11:16:51]line НСП 1% : 2.21 [11:16:51]line НДС 12% : 26.57 [11:16:51]line Наличными: 250.00 [11:16:51]line Безнал.: 0.00 [11:16:51]line Место: АЗС № 134 "Партнер Нефть" [11:16:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:16:51]line СНО: Общий режим [11:16:51]line Чек 100 30.07.2024 11:17 [11:16:51]line Смена: 435 ФФД: 1.0 [11:16:51]line ЗНМ: 0300000044 [11:16:51]line РНМ: 0000000000092660 [11:16:51]line Версия ККМ: 001 [11:16:51]line ФМ: 0000000000874939 [11:16:51]line ФД: 119048 [11:16:51]line ФПД: 253157303415333 [11:16:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T111700&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119048&fm=253157303415333&tin=02508201610067®Number=0000000000092660&sum=25000 [11:16:51]OFD Sender: Processing packet 119048 [packets to send 86, broken 85] [11:16:51]ProducePacketName [11:16:51]name=ofd_packets/00119048 [11:16:51]OFD Sender: To server: pG, [11:16:51]CommunicateWithHost lk.salyk.kg:30040 [11:16:51]ConnectInit lk.salyk.kg [11:16:51]written 0, free lines is 4095 [11:16:51]Connected sock=10 [11:16:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 85 07 01 38 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 64 00 00 00 F4 03 04 00 AC CB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 08 D1 01 00 35 04 06 00 E6 3E C7 24 72 25 C3 2B 1E D6 D0 CB CE F0 [11:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 33 EF 47 00 3E 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 34 39 33 39 10 04 04 00 08 D1 01 00 F4 03 04 00 37 79 A8 66 B6 04 01 00 00 6F AE 42 C8 D7 FE F1 32 [11:16:52]CommunicateWithHost err = 0 [11:16:52]CheckOFDResponse [11:16:52]1017 (14) - 77093643461234 [11:16:52]1041 (16) - 0000000000874939 [11:16:52]1040 (4) - 119048 [11:16:52]1012 (4) - 30.07.2024 05:25 [11:16:52]1206 (1) - 0 [11:16:52]OFD Sender: Remove packet 119048 [11:16:52]ProducePacketName [11:16:52]name=ofd_packets/00119048 [11:16:52]NVStorageDeleteData [11:16:52]Write to MH i2c: 01 00 00 74 AA 1E [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: 01 07 00 74 AA 00 00 00 00 00 ED 0C 1E [11:16:52]RasterBufferAndPrint [11:16:52]line [11:16:52]line [11:16:52]line [11:16:52]line [11:16:52]line [11:16:52]written 0, free lines is 3316 [11:16:52]MH_Cut [11:16:52]Write to MH i2c: D1 01 00 7B AA 01 F7 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: D1 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: D1 01 00 [11:16:52]MH_I2C_Read... [11:16:52]Read from MH i2c: D1 01 00 7B AA 00 F6 [11:16:52]Write to MH i2c: 01 00 00 7C AA 26 [11:16:52]Write i2c OK [11:16:52]MH_I2C_Read... [11:16:52]OFD Sender: No OFD packet to send [11:16:52]*** Cut start [11:16:52]*** Partial cut [11:16:52]*** CUTSNS_PIN = 1 [11:16:53]*** CUTSNS_PIN = 0 [11:16:53]*** Brake cut motor [11:16:53]Read from MH i2c: 01 [11:16:53]MH_I2C_Read... [11:16:53]*** Stop cut motor [11:16:53]*** Cut end [11:16:53]Read from MH i2c: 01 07 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 7C AA 00 00 00 00 00 FF 0F 3B [11:16:53]process_action close_receipt done [11:16:53]requested_data is exist [11:16:53]produce_requested_data [11:16:53]requested_item fm.sn is exist - process it [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 11 00 00 [11:16:53]Write to MH i2c: E2 08 00 7D AA 80 11 00 00 00 00 00 00 A1 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 17 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 17 00 7D AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FC [11:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:16:53]wFMCommunicate OK [11:16:53]requested_item fd.num is exist - process it [11:16:53]SAM_PROTO_GetFieldsCounters [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 13 00 00 [11:16:53]Write to MH i2c: E2 08 00 7E AA 80 13 00 00 00 00 00 00 A4 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 62 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 62 00 7E AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [11:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 08 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_GetFieldsCounters done [11:16:53]requested_item shift.num is exist - process it [11:16:53]requested_item shift.opened is exist - process it [11:16:53]req_shift_opened [11:16:53]FM_GetShiftState [11:16:53]SAM_PROTO_GetShiftState [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 13 01 00 [11:16:53]Write to MH i2c: E2 08 00 7F AA 80 13 01 00 00 00 00 00 A6 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 7F AA 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 71 [11:16:53]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_GetShiftState done [11:16:53]FM_GetShiftState done [11:16:53]req_shift_opened done [11:16:53]requested_item shift.open_date is exist - process it [11:16:53]req_shift_open_date [11:16:53]req_shift_open_date done [11:16:53]produce_requested_data done [11:16:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119048,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:16:53]process_action_free close_receipt [11:16:53]json_value_free [11:16:53]json_value_free done [11:16:53]process_json_proto returns [11:16:53]Send response to host [11:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119048,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:16:53]free response buf [11:16:53]execute_script done [11:16:53]execute_script returns [11:16:53]free content buf [11:16:53]Sock 7.Close socket [11:16:53]Sock 7.Thread stoped [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:42]accept exits with 9 [11:27:42]New connection [11:27:42]New thread 3067239780 created [11:27:42]Thread 3067383140 joined [11:27:42]Waiting for new connection... [11:27:42] Sock 9.Parse request [11:27:42]Sock 9.Check first char [11:27:42]Sock 9.First char is OK [11:27:42]request: POST /json_proto HTTP/1.0 [11:27:42]Method: POST [11:27:42]URL: /json_proto [11:27:42]Method is POST - this is cgi request [11:27:42]url: /json_proto [11:27:42]query_string will be loaded in cgi processing [11:27:42]execute_cgi json_proto POST (null) [11:27:42]execute_cgi path=json_proto method=POST [11:27:42]POST find Content-Length [11:27:42]Host: 172.17.45.7:8080 [11:27:42]Content-Length: 677 [11:27:42]Content-Type: application/json [11:27:42] [11:27:42]POST finish read [11:27:42]Found Content-Length = 677 [11:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [11:27:42]execute_script... [11:27: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)949968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [11:27:42]POST & json_proto [11:27:42]process_json_proto [11:27:42]json parsed OK: [11:27:42]protocol is kg_v1.0 [11:27:42]action value=close_receipt [11:27:42]process_action close_receipt [11:27:42]cmd_close_receipt [11:27:42]MH_GetDate [11:27:42]Write to MH i2c: F0 00 00 80 AA 19 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: F0 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: F0 09 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: F0 09 00 80 AA 00 39 CE A8 66 90 0F 3E 66 7A [11:27:42]GetLastDocTimeStamp 1722338220 [11:27:42]current date 1722338873 [11:27:42]FM_GetShiftState [11:27:42]SAM_PROTO_GetShiftState [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 13 01 00 [11:27:42]Write to MH i2c: E2 08 00 81 AA 80 13 01 00 00 00 00 00 A8 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0E 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 0E 00 81 AA 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 73 [11:27:42]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_GetShiftState done [11:27:42]FM_GetShiftState done [11:27:42]opened in 1722298242 [11:27:42]opened+sec_in_day 1722384642 [11:27:42]quantity*price = 30035 [11:27:42]sum+1 = 30036 [11:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 101 30.07.2024 11:27 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119049 ФПД: 39427381464035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T112753&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119049&fm=39427381464035&tin=02508201610067®Number=0000000000092660&sum=30000 [11:27:44]StoreToDocumentArchive [11:27:44]shift 435 fd 119049 [11:27:44]save to /storage/0435/doc_00119049 [11:27:44]save last doc name /storage/0435/doc_00119049 to /storage/kkm_last_doc_name [11:27:44]save OK [11:27:44]Clear old archive folders... [11:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:44]tlvbuf is 01FF8BC0 [11:27:44]SAM_PROTO_ClearQueue [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 09 00 00 [11:27:44]Write to MH i2c: E2 08 00 8E AA 80 09 00 00 00 00 00 00 AA [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 8E AA 00 90 00 AC [11:27:44]RAPDU: 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_ClearQueue done [11:27:44]KKMCreateOFDPacket [11:27:44]OFDProtocolAddRootSTLVToBuf [11:27:44]FM_MakeSignedData [11:27:44]FM_MakeSignedData [11:27:44]SAM_PROTO_SignData [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 0D 01 02 [11:27:44]Write to MH i2c: E2 08 00 8F AA 80 0D 01 02 00 00 00 00 B2 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 8F AA 00 90 00 AD [11:27:44]RAPDU: 90 00 [11:27:44]wFMCommunicate OK [11:27:44]wFMCommunicate request_size=255 [11:27:44]MH_SAM_APDU [11:27: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 65 00 00 00 F4 03 04 00 39 CE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D1 01 00 35 04 06 00 23 [11:27:44]Write to MH i2c: E2 02 01 90 AA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 65 00 00 00 F4 03 04 00 39 CE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D1 01 00 35 04 06 00 23 00 00 81 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 90 AA 00 90 00 AE [11:27:44]RAPDU: 90 00 [11:27:44]wFMCommunicate OK [11:27:44]wFMCommunicate request_size=10 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 0D 02 02 05 DB E7 11 0B E3 [11:27:44]Write to MH i2c: E2 0D 00 91 AA 80 0D 02 02 05 00 DB E7 11 0B E3 00 00 80 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 03 00 91 AA 00 90 00 AF [11:27:44]RAPDU: 90 00 [11:27:44]wFMCommunicate OK [11:27:44]wFMCommunicate request_size=4 [11:27:44]MH_SAM_APDU [11:27:44]CAPDU: 80 0D 03 02 [11:27:44]Write to MH i2c: E2 08 00 92 AA 80 0D 03 02 00 00 00 00 B7 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:44]Read from MH i2c: E2 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0B 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: E2 0B 00 92 AA 00 22 B5 E2 D7 F7 2E 93 34 90 00 34 [11:27:44]RAPDU: 22 B5 E2 D7 F7 2E 93 34 90 00 [11:27:44]wFMCommunicate OK [11:27:44]SAM_PROTO_SignData done [11:27:44]FM_MakeSignedData done [11:27:44]CreateOFDProtocolMessage [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 93 AA 80 11 00 00 00 00 00 00 B7 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [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 93 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 12 [11:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:27:44]wFMCommunicate OK [11:27:44]CreateOFDProtocolMessage done [11:27:44]OFDSenderStorePacket 119049 [11:27:44]StoreOFDPacket docnum=119049 [11:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AA 8A 07 01 70 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 65 00 00 00 F4 03 04 00 39 CE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D1 01 00 35 04 06 00 23 DB E7 11 0B E3 22 B5 E2 D7 F7 2E 93 34 [11:27:44]CheckFolder [11:27:44]dirname=/storage/ofd_packets [11:27:44]CheckFolder done [11:27:44]ProducePacketName [11:27:44]name=ofd_packets/00119049 [11:27:44]NVStorageSaveData ofd_packets/00119049 [11:27:44]File name is /storage/ofd_packets/00119049 [11:27:44]Write 301 bytes [11:27:44]NVStorageSaveData done [11:27:44]OFDSenderStorePacket done [11:27:44]KKMCreateOFDPacket done [11:27:44]NVStorageSaveData kkm_last_timestamp [11:27:44]File name is /storage/kkm_last_timestamp [11:27:44]Write 4 bytes [11:27:44]NVStorageSaveData done [11:27:44]ExternCall_PrintAddStr [11:27:44]wPrintStart [11:27:44]Write to MH i2c: 01 00 00 94 AA 3E [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 [11:27:44]MH_I2C_Read... [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 94 AA 00 00 00 00 00 FF 0F 53 [11:27:44]RasterBufferAndPrint [11:27:44]line Счет N : (1)949968 [11:27:44]line ИНН: 02508201610067 [11:27:44]line Контрольно-Кассовый Чек [11:27:44]line ПРОДАЖА [11:27:44]line ТРК (МРК, ГНК) : 31 [11:27:44]line Товар: 2710124130 [11:27:44]line Аи-92-К-4 [11:27:44]line 4.430 * 67.80 [11:27:44]line = 300.35 [11:27:44]line НДС 12% НСП 1% [11:27:44]line > о реализуемом товаре [11:27:44]line ОКРУГЛЕНИЕ: -0.35 [11:27:44]line ИТОГО: 300.00 [11:27:44]line Внесено: 300.00 [11:27:44]line СДАЧА: 0.00 [11:27:44]line НСП 1% : 2.66 [11:27:44]line НДС 12% : 31.90 [11:27:44]line Наличными: 300.00 [11:27:44]line Безнал.: 0.00 [11:27:44]line Место: АЗС № 134 "Партнер Нефть" [11:27:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:27:44]line СНО: Общий режим [11:27:44]line Чек 101 30.07.2024 11:27 [11:27:44]line Смена: 435 ФФД: 1.0 [11:27:44]line ЗНМ: 0300000044 [11:27:44]line РНМ: 0000000000092660 [11:27:44]line Версия ККМ: 001 [11:27:44]line ФМ: 0000000000874939 [11:27:44]line ФД: 119049 [11:27:44]line ФПД: 39427381464035 [11:27:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T112753&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119049&fm=39427381464035&tin=02508201610067®Number=0000000000092660&sum=30000 [11:27:44]written 0, free lines is 4095 [11:27:44]OFD Sender: Processing packet 119049 [packets to send 86, broken 85] [11:27:44]ProducePacketName [11:27:44]name=ofd_packets/00119049 [11:27:45]OFD Sender: To server: pG, [11:27:45]CommunicateWithHost lk.salyk.kg:30040 [11:27:45]ConnectInit lk.salyk.kg [11:27:45]Connected sock=10 [11:27:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AA 8A 07 01 70 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 65 00 00 00 F4 03 04 00 39 CE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D1 01 00 35 04 06 00 23 DB E7 11 0B E3 22 B5 E2 D7 F7 2E 93 34 [11:27:45]Write to MH i2c: 01 00 00 BE AA 68 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 BE AA 00 00 00 00 00 FC 0C 77 [11:27:45]RasterBufferAndPrint [11:27:45]line [11:27:45]line [11:27:45]line [11:27:45]line [11:27:45]line [11:27:45]written 0, free lines is 3332 [11:27:45]MH_Cut [11:27:45]Write to MH i2c: D1 01 00 C5 AA 01 41 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: D1 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: D1 01 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: D1 01 00 C5 AA 00 40 [11:27:45]Write to MH i2c: 01 00 00 C6 AA 70 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 29 D1 47 00 E3 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 09 D1 01 00 F4 03 04 00 C4 7B A8 66 B6 04 01 00 00 1A 25 EA EF 8F B1 A3 0F [11:27:45]CommunicateWithHost err = 0 [11:27:45]CheckOFDResponse [11:27:45]1017 (14) - 77093643461234 [11:27:45]1041 (16) - 0000000000874939 [11:27:45]1040 (4) - 119049 [11:27:45]1012 (4) - 30.07.2024 05:36 [11:27:45]1206 (1) - 0 [11:27:45]OFD Sender: Remove packet 119049 [11:27:45]ProducePacketName [11:27:45]name=ofd_packets/00119049 [11:27:45]NVStorageDeleteData [11:27:45]OFD Sender: No OFD packet to send [11:27:45]*** Cut start [11:27:45]*** Partial cut [11:27:45]*** CUTSNS_PIN = 1 [11:27:45]*** CUTSNS_PIN = 0 [11:27:46]*** Brake cut motor [11:27:46]Read from MH i2c: 01 [11:27:46]MH_I2C_Read... [11:27:46]*** Stop cut motor [11:27:46]*** Cut end [11:27:46]Read from MH i2c: 01 07 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: 01 07 00 C6 AA 00 00 00 00 00 FF 0F 85 [11:27:46]process_action close_receipt done [11:27:46]requested_data is exist [11:27:46]produce_requested_data [11:27:46]requested_item fm.sn is exist - process it [11:27:46]wFMCommunicate request_size=4 [11:27:46]MH_SAM_APDU [11:27:46]CAPDU: 80 11 00 00 [11:27:46]Write to MH i2c: E2 08 00 C7 AA 80 11 00 00 00 00 00 00 EB [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:46]Read from MH i2c: E2 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: E2 17 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: E2 17 00 C7 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 46 [11:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:27:46]wFMCommunicate OK [11:27:46]requested_item fd.num is exist - process it [11:27:46]SAM_PROTO_GetFieldsCounters [11:27:46]wFMCommunicate request_size=4 [11:27:46]MH_SAM_APDU [11:27:46]CAPDU: 80 13 00 00 [11:27:46]Write to MH i2c: E2 08 00 C8 AA 80 13 00 00 00 00 00 00 EE [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:46]Read from MH i2c: E2 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: E2 62 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: E2 62 00 C8 AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [11:27:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 09 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:46]wFMCommunicate OK [11:27:46]SAM_PROTO_GetFieldsCounters done [11:27:46]requested_item shift.num is exist - process it [11:27:46]requested_item shift.opened is exist - process it [11:27:46]req_shift_opened [11:27:46]FM_GetShiftState [11:27:46]SAM_PROTO_GetShiftState [11:27:46]wFMCommunicate request_size=4 [11:27:46]MH_SAM_APDU [11:27:46]CAPDU: 80 13 01 00 [11:27:46]Write to MH i2c: E2 08 00 C9 AA 80 13 01 00 00 00 00 00 F0 [11:27:46]Write i2c OK [11:27:46]MH_I2C_Read... [11:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:46]Read from MH i2c: E2 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: E2 0E 00 [11:27:46]MH_I2C_Read... [11:27:46]Read from MH i2c: E2 0E 00 C9 AA 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BB [11:27:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:27:46]wFMCommunicate OK [11:27:46]SAM_PROTO_GetShiftState done [11:27:46]FM_GetShiftState done [11:27:46]req_shift_opened done [11:27:46]requested_item shift.open_date is exist - process it [11:27:46]req_shift_open_date [11:27:46]req_shift_open_date done [11:27:46]produce_requested_data done [11:27:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119049,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:27:46]process_action_free close_receipt [11:27:46]json_value_free [11:27:46]json_value_free done [11:27:46]process_json_proto returns [11:27:46]Send response to host [11:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119049,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:27:46]free response buf [11:27:46]execute_script done [11:27:46]execute_script returns [11:27:46]free content buf [11:27:46]Sock 9.Close socket [11:27:46]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]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:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]accept exits with 7 [11:38:06]New connection [11:38:06]New thread 3067383140 created [11:38:06]Thread 3067239780 joined [11:38:06]Waiting for new connection... [11:38:06] Sock 7.Parse request [11:38:06]Sock 7.Check first char [11:38:06]Sock 7.First char is OK [11:38:06]request: POST /json_proto HTTP/1.0 [11:38:06]Method: POST [11:38:06]URL: /json_proto [11:38:06]Method is POST - this is cgi request [11:38:06]url: /json_proto [11:38:06]query_string will be loaded in cgi processing [11:38:06]execute_cgi json_proto POST (null) [11:38:06]execute_cgi path=json_proto method=POST [11:38:06]POST find Content-Length [11:38:06]Host: 172.17.45.7:8080 [11:38:06]Content-Length: 819 [11:38:06]Content-Type: application/json [11:38:06] [11:38:06]POST finish read [11:38:06]Found Content-Length = 819 [11:38:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:06]execute_script... [11: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)949969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:06]POST & json_proto [11:38:06]process_json_proto [11:38:06]json parsed OK: [11:38:06]protocol is kg_v1.0 [11:38:06]action value=close_receipt [11:38:06]process_action close_receipt [11:38:06]cmd_close_receipt [11:38:06]MH_GetDate [11:38:06]Write to MH i2c: F0 00 00 CA AA 63 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: F0 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: F0 09 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: F0 09 00 CA AA 00 A8 D0 A8 66 90 0F 3E 66 35 [11:38:06]GetLastDocTimeStamp 1722338873 [11:38:06]current date 1722339496 [11:38:06]FM_GetShiftState [11:38:06]SAM_PROTO_GetShiftState [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 01 00 [11:38:06]Write to MH i2c: E2 08 00 CB AA 80 13 01 00 00 00 00 00 F2 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 CB AA 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BD [11:38:06]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetShiftState done [11:38:06]FM_GetShiftState done [11:38:06]opened in 1722298242 [11:38:06]opened+sec_in_day 1722384642 [11:38:06]quantity*price = 250012 [11:38:06]sum+1 = 250013 [11:38:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 102 30.07.2024 11:38 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119050 ФПД: 157106548286471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T113816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119050&fm=157106548286471&tin=02508201610067®Number=0000000000092660&sum=250000 [11:38:07]StoreToDocumentArchive [11:38:07]shift 435 fd 119050 [11:38:07]save to /storage/0435/doc_00119050 [11:38:07]save last doc name /storage/0435/doc_00119050 to /storage/kkm_last_doc_name [11:38:07]save OK [11:38:07]Clear old archive folders... [11:38:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:38:07]tlvbuf is 01ED6A10 [11:38:07]SAM_PROTO_ClearQueue [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 09 00 00 [11:38:07]Write to MH i2c: E2 08 00 D8 AA 80 09 00 00 00 00 00 00 F4 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 D8 AA 00 90 00 F6 [11:38:07]RAPDU: 90 00 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_ClearQueue done [11:38:07]KKMCreateOFDPacket [11:38:07]OFDProtocolAddRootSTLVToBuf [11:38:07]FM_MakeSignedData [11:38:07]FM_MakeSignedData [11:38:07]SAM_PROTO_SignData [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 0D 01 02 [11:38:07]Write to MH i2c: E2 08 00 D9 AA 80 0D 01 02 00 00 00 00 FC [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 D9 AA 00 90 00 F7 [11:38:07]RAPDU: 90 00 [11:38:07]wFMCommunicate OK [11:38:07]wFMCommunicate request_size=255 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A8 D0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D1 01 00 35 04 06 00 8E E3 38 00 [11:38:07]Write to MH i2c: E2 02 01 DA AA 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A8 D0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D1 01 00 35 04 06 00 8E E3 38 00 00 00 12 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 DA AA 00 90 00 F8 [11:38:07]RAPDU: 90 00 [11:38:07]wFMCommunicate OK [11:38:07]wFMCommunicate request_size=7 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 0D 02 02 02 A4 07 [11:38:07]Write to MH i2c: E2 0A 00 DB AA 80 0D 02 02 02 00 A4 07 00 00 AE [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 03 00 DB AA 00 90 00 F9 [11:38:07]RAPDU: 90 00 [11:38:07]wFMCommunicate OK [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 0D 03 02 [11:38:07]Write to MH i2c: E2 08 00 DC AA 80 0D 03 02 00 00 00 00 01 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0B 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0B 00 DC AA 00 AB 1D 34 65 17 FC 48 14 90 00 D2 [11:38:07]RAPDU: AB 1D 34 65 17 FC 48 14 90 00 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_SignData done [11:38:07]FM_MakeSignedData done [11:38:07]CreateOFDProtocolMessage [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 11 00 00 [11:38:07]Write to MH i2c: E2 08 00 DD AA 80 11 00 00 00 00 00 00 01 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 17 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 17 00 DD AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [11:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:38:08]wFMCommunicate OK [11:38:08]CreateOFDProtocolMessage done [11:38:08]OFDSenderStorePacket 119050 [11:38:08]StoreOFDPacket docnum=119050 [11:38:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A B8 04 01 E7 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A8 D0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D1 01 00 35 04 06 00 8E E3 38 00 A4 07 AB 1D 34 65 17 FC 48 14 [11:38:08]CheckFolder [11:38:08]dirname=/storage/ofd_packets [11:38:08]CheckFolder done [11:38:08]ProducePacketName [11:38:08]name=ofd_packets/00119050 [11:38:08]NVStorageSaveData ofd_packets/00119050 [11:38:08]File name is /storage/ofd_packets/00119050 [11:38:08]Write 298 bytes [11:38:08]NVStorageSaveData done [11:38:08]OFDSenderStorePacket done [11:38:08]KKMCreateOFDPacket done [11:38:08]NVStorageSaveData kkm_last_timestamp [11:38:08]File name is /storage/kkm_last_timestamp [11:38:08]Write 4 bytes [11:38:08]NVStorageSaveData done [11:38:08]ExternCall_PrintAddStr [11:38:08]wPrintStart [11:38:08]Write to MH i2c: 01 00 00 DE AA 88 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 07 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 07 00 DE AA 00 00 00 00 00 FF 0F 9D [11:38:08]RasterBufferAndPrint [11:38:08]line Счет N : (1)949969 [11:38:08]line ИНН: 02508201610067 [11:38:08]line Контрольно-Кассовый Чек [11:38:08]line ПРОДАЖА [11:38:08]line ТРК (МРК, ГНК) : 44 [11:38:08]line Товар: 2710194800 [11:38:08]line ДТ-К-5 [11:38:08]line 32.810 * 76.20 [11:38:08]line = 2500.12 [11:38:08]line НДС 12% НСП 1% [11:38:08]line > о реализуемом товаре [11:38:08]line ОКРУГЛЕНИЕ: -0.12 [11:38:08]line ИТОГО: 2500.00 [11:38:08]line НСП 1% : 22.12 [11:38:08]line НДС 12% : 265.50 [11:38:08]line Наличными: 0.00 [11:38:08]line Безнал.: 2500.00 [11:38:08]line Место: АЗС № 134 "Партнер Нефть" [11:38:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:38:08]line СНО: Общий режим [11:38:08]line Чек 102 30.07.2024 11:38 [11:38:08]line Смена: 435 ФФД: 1.0 [11:38:08]line ЗНМ: 0300000044 [11:38:08]line РНМ: 0000000000092660 [11:38:08]line Версия ККМ: 001 [11:38:08]line Платежная система: O! деньги [11:38:08]line ФМ: 0000000000874939 [11:38:08]line ФД: 119050 [11:38:08]line ФПД: 157106548286471 [11:38:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T113816&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119050&fm=157106548286471&tin=02508201610067®Number=0000000000092660&sum=250000 [11:38:08]OFD Sender: Processing packet 119050 [packets to send 86, broken 85] [11:38:08]ProducePacketName [11:38:08]name=ofd_packets/00119050 [11:38:08]OFD Sender: To server: pG, [11:38:08]CommunicateWithHost lk.salyk.kg:30040 [11:38:08]ConnectInit lk.salyk.kg [11:38:08]written 0, free lines is 4095 [11:38:08]Connected sock=10 [11:38:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2A B8 04 01 E7 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 A8 D0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D1 01 00 35 04 06 00 8E E3 38 00 A4 07 AB 1D 34 65 17 FC 48 14 [11:38:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 B9 47 00 3C 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0A D1 01 00 F4 03 04 00 34 7E A8 66 B6 04 01 00 00 2A 85 10 98 43 4E E7 34 [11:38:08]CommunicateWithHost err = 0 [11:38:08]CheckOFDResponse [11:38:08]1017 (14) - 77093643461234 [11:38:08]1041 (16) - 0000000000874939 [11:38:08]1040 (4) - 119050 [11:38:08]1012 (4) - 30.07.2024 05:46 [11:38:08]1206 (1) - 0 [11:38:08]OFD Sender: Remove packet 119050 [11:38:08]ProducePacketName [11:38:08]name=ofd_packets/00119050 [11:38:08]NVStorageDeleteData [11:38:08]Write to MH i2c: 01 00 00 08 AB B3 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 07 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 07 00 08 AB 00 00 00 00 00 02 0D C9 [11:38:08]RasterBufferAndPrint [11:38:08]line [11:38:08]line [11:38:08]line [11:38:08]line [11:38:08]line [11:38:08]written 0, free lines is 3336 [11:38:08]MH_Cut [11:38:08]Write to MH i2c: D1 01 00 0F AB 01 8C [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: D1 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: D1 01 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: D1 01 00 0F AB 00 8B [11:38:08]Write to MH i2c: 01 00 00 10 AB BB [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:09]OFD Sender: No OFD packet to send [11:38:09]*** Cut start [11:38:09]*** Partial cut [11:38:09]*** CUTSNS_PIN = 1 [11:38:09]*** CUTSNS_PIN = 0 [11:38:09]*** Brake cut motor [11:38:10]Read from MH i2c: 01 [11:38:10]MH_I2C_Read... [11:38:10]*** Stop cut motor [11:38:10]*** Cut end [11:38:10]Read from MH i2c: 01 07 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: 01 07 00 10 AB 00 00 00 00 00 FF 0F D0 [11:38:10]process_action close_receipt done [11:38:10]requested_data is exist [11:38:10]produce_requested_data [11:38:10]requested_item fm.sn is exist - process it [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 11 00 00 [11:38:10]Write to MH i2c: E2 08 00 11 AB 80 11 00 00 00 00 00 00 36 [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 17 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 17 00 11 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 91 [11:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:38:10]wFMCommunicate OK [11:38:10]requested_item fd.num is exist - process it [11:38:10]SAM_PROTO_GetFieldsCounters [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 13 00 00 [11:38:10]Write to MH i2c: E2 08 00 12 AB 80 13 00 00 00 00 00 00 39 [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 62 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 62 00 12 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:10]wFMCommunicate OK [11:38:10]SAM_PROTO_GetFieldsCounters done [11:38:10]requested_item shift.num is exist - process it [11:38:10]requested_item shift.opened is exist - process it [11:38:10]req_shift_opened [11:38:10]FM_GetShiftState [11:38:10]SAM_PROTO_GetShiftState [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 13 01 00 [11:38:10]Write to MH i2c: E2 08 00 13 AB 80 13 01 00 00 00 00 00 3B [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 0E 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 0E 00 13 AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 06 [11:38:10]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:38:10]wFMCommunicate OK [11:38:10]SAM_PROTO_GetShiftState done [11:38:10]FM_GetShiftState done [11:38:10]req_shift_opened done [11:38:10]requested_item shift.open_date is exist - process it [11:38:10]req_shift_open_date [11:38:10]req_shift_open_date done [11:38:10]produce_requested_data done [11:38:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119050,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:38:10]process_action_free close_receipt [11:38:10]json_value_free [11:38:10]json_value_free done [11:38:10]process_json_proto returns [11:38:10]Send response to host [11:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119050,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:38:10]free response buf [11:38:10]execute_script done [11:38:10]execute_script returns [11:38:10]free content buf [11:38:10]Sock 7.Close socket [11:38:10]Sock 7.Thread stoped [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:15]accept exits with 9 [11:42:15]New connection [11:42:15]New thread 3067239780 created [11:42:15]Thread 3067383140 joined [11:42:15]Waiting for new connection... [11:42:15] Sock 9.Parse request [11:42:15]Sock 9.Check first char [11:42:15]Sock 9.First char is OK [11:42:15]request: POST /json_proto HTTP/1.0 [11:42:15]Method: POST [11:42:15]URL: /json_proto [11:42:15]Method is POST - this is cgi request [11:42:15]url: /json_proto [11:42:15]query_string will be loaded in cgi processing [11:42:15]execute_cgi json_proto POST (null) [11:42:15]execute_cgi path=json_proto method=POST [11:42:15]POST find Content-Length [11:42:15]Host: 172.17.45.7:8080 [11:42:15]Content-Length: 679 [11:42:15]Content-Type: application/json [11:42:15] [11:42:15]POST finish read [11:42:15]Found Content-Length = 679 [11:42:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:15]execute_script... [11: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)949970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:15]POST & json_proto [11:42:15]process_json_proto [11:42:15]json parsed OK: [11:42:15]protocol is kg_v1.0 [11:42:15]action value=close_receipt [11:42:15]process_action close_receipt [11:42:15]cmd_close_receipt [11:42:15]MH_GetDate [11:42:15]Write to MH i2c: F0 00 00 14 AB AE [11:42:15]Write i2c OK [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: F0 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: F0 09 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: F0 09 00 14 AB 00 A2 D1 A8 66 90 0F 3E 66 7B [11:42:15]GetLastDocTimeStamp 1722339496 [11:42:15]current date 1722339746 [11:42:15]FM_GetShiftState [11:42:15]SAM_PROTO_GetShiftState [11:42:15]wFMCommunicate request_size=4 [11:42:15]MH_SAM_APDU [11:42:15]CAPDU: 80 13 01 00 [11:42:15]Write to MH i2c: E2 08 00 15 AB 80 13 01 00 00 00 00 00 3D [11:42:15]Write i2c OK [11:42:15]MH_I2C_Read... [11:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:15]Read from MH i2c: E2 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 0E 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: E2 0E 00 15 AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 08 [11:42:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:42:15]wFMCommunicate OK [11:42:15]SAM_PROTO_GetShiftState done [11:42:15]FM_GetShiftState done [11:42:15]opened in 1722298242 [11:42:15]opened+sec_in_day 1722384642 [11:42:15]quantity*price = 100050 [11:42:15]sum+1 = 100052 [11:42:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 103 30.07.2024 11:42 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119051 ФПД: 86542040023186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T114226&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119051&fm=86542040023186&tin=02508201610067®Number=0000000000092660&sum=100000 [11:42:16]StoreToDocumentArchive [11:42:16]shift 435 fd 119051 [11:42:16]save to /storage/0435/doc_00119051 [11:42:16]save last doc name /storage/0435/doc_00119051 to /storage/kkm_last_doc_name [11:42:16]save OK [11:42:16]Clear old archive folders... [11:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:42:16]tlvbuf is 02080F80 [11:42:16]SAM_PROTO_ClearQueue [11:42:16]wFMCommunicate request_size=4 [11:42:16]MH_SAM_APDU [11:42:16]CAPDU: 80 09 00 00 [11:42:16]Write to MH i2c: E2 08 00 22 AB 80 09 00 00 00 00 00 00 3F [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:16]Read from MH i2c: E2 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 03 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 03 00 22 AB 00 90 00 41 [11:42:16]RAPDU: 90 00 [11:42:16]wFMCommunicate OK [11:42:16]SAM_PROTO_ClearQueue done [11:42:16]KKMCreateOFDPacket [11:42:16]OFDProtocolAddRootSTLVToBuf [11:42:16]FM_MakeSignedData [11:42:16]FM_MakeSignedData [11:42:16]SAM_PROTO_SignData [11:42:16]wFMCommunicate request_size=4 [11:42:16]MH_SAM_APDU [11:42:16]CAPDU: 80 0D 01 02 [11:42:16]Write to MH i2c: E2 08 00 23 AB 80 0D 01 02 00 00 00 00 47 [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:16]Read from MH i2c: E2 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 03 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 03 00 23 AB 00 90 00 42 [11:42:16]RAPDU: 90 00 [11:42:16]wFMCommunicate OK [11:42:16]wFMCommunicate request_size=255 [11:42:16]MH_SAM_APDU [11:42:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A2 D1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D1 01 00 35 04 06 00 4E B5 A3 8D [11:42:16]Write to MH i2c: E2 02 01 24 AB 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A2 D1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D1 01 00 35 04 06 00 4E B5 A3 8D 00 00 83 [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:17]Read from MH i2c: E2 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 03 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 03 00 24 AB 00 90 00 43 [11:42:17]RAPDU: 90 00 [11:42:17]wFMCommunicate OK [11:42:17]wFMCommunicate request_size=7 [11:42:17]MH_SAM_APDU [11:42:17]CAPDU: 80 0D 02 02 02 C0 92 [11:42:17]Write to MH i2c: E2 0A 00 25 AB 80 0D 02 02 02 00 C0 92 00 00 A0 [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:17]Read from MH i2c: E2 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 03 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 03 00 25 AB 00 90 00 44 [11:42:17]RAPDU: 90 00 [11:42:17]wFMCommunicate OK [11:42:17]wFMCommunicate request_size=4 [11:42:17]MH_SAM_APDU [11:42:17]CAPDU: 80 0D 03 02 [11:42:17]Write to MH i2c: E2 08 00 26 AB 80 0D 03 02 00 00 00 00 4C [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:17]Read from MH i2c: E2 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 0B 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 0B 00 26 AB 00 C2 81 B1 41 CB F8 C8 29 90 00 36 [11:42:17]RAPDU: C2 81 B1 41 CB F8 C8 29 90 00 [11:42:17]wFMCommunicate OK [11:42:17]SAM_PROTO_SignData done [11:42:17]FM_MakeSignedData done [11:42:17]CreateOFDProtocolMessage [11:42:17]wFMCommunicate request_size=4 [11:42:17]MH_SAM_APDU [11:42:17]CAPDU: 80 11 00 00 [11:42:17]Write to MH i2c: E2 08 00 27 AB 80 11 00 00 00 00 00 00 4C [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:17]Read from MH i2c: E2 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 17 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: E2 17 00 27 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A7 [11:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:42:17]wFMCommunicate OK [11:42:17]CreateOFDProtocolMessage done [11:42:17]OFDSenderStorePacket 119051 [11:42:17]StoreOFDPacket docnum=119051 [11:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 16 8B 04 01 7E 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A2 D1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D1 01 00 35 04 06 00 4E B5 A3 8D C0 92 C2 81 B1 41 CB F8 C8 29 [11:42:17]CheckFolder [11:42:17]dirname=/storage/ofd_packets [11:42:17]CheckFolder done [11:42:17]ProducePacketName [11:42:17]name=ofd_packets/00119051 [11:42:17]NVStorageSaveData ofd_packets/00119051 [11:42:17]File name is /storage/ofd_packets/00119051 [11:42:17]Write 298 bytes [11:42:17]NVStorageSaveData done [11:42:17]OFDSenderStorePacket done [11:42:17]KKMCreateOFDPacket done [11:42:17]NVStorageSaveData kkm_last_timestamp [11:42:17]File name is /storage/kkm_last_timestamp [11:42:17]Write 4 bytes [11:42:17]NVStorageSaveData done [11:42:17]ExternCall_PrintAddStr [11:42:17]wPrintStart [11:42:17]Write to MH i2c: 01 00 00 28 AB D3 [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: 01 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: 01 07 00 [11:42:17]MH_I2C_Read... [11:42:17]Read from MH i2c: 01 07 00 28 AB 00 00 00 00 00 FF 0F E8 [11:42:17]RasterBufferAndPrint [11:42:17]line Счет N : (1)949970 [11:42:17]line ИНН: 02508201610067 [11:42:17]line Контрольно-Кассовый Чек [11:42:17]line ПРОДАЖА [11:42:17]line ТРК (МРК, ГНК) : 44 [11:42:17]line Товар: 2710194800 [11:42:17]line ДТ-К-5 [11:42:17]line 13.130 * 76.20 [11:42:17]line = 1000.51 [11:42:17]line НДС 12% НСП 1% [11:42:17]line > о реализуемом товаре [11:42:17]line ОКРУГЛЕНИЕ: -0.51 [11:42:17]line ИТОГО: 1000.00 [11:42:17]line Внесено: 1000.00 [11:42:17]line СДАЧА: 0.00 [11:42:17]line НСП 1% : 8.85 [11:42:17]line НДС 12% : 106.25 [11:42:17]line Наличными: 1000.00 [11:42:17]line Безнал.: 0.00 [11:42:17]line Место: АЗС № 134 "Партнер Нефть" [11:42:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:42:17]line СНО: Общий режим [11:42:17]line Чек 103 30.07.2024 11:42 [11:42:17]line Смена: 435 ФФД: 1.0 [11:42:17]line ЗНМ: 0300000044 [11:42:17]line РНМ: 0000000000092660 [11:42:17]line Версия ККМ: 001 [11:42:17]line ФМ: 0000000000874939 [11:42:17]line ФД: 119051 [11:42:17]line ФПД: 86542040023186 [11:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T114226&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119051&fm=86542040023186&tin=02508201610067®Number=0000000000092660&sum=100000 [11:42:17]OFD Sender: Processing packet 119051 [packets to send 86, broken 85] [11:42:17]ProducePacketName [11:42:17]name=ofd_packets/00119051 [11:42:17]OFD Sender: To server: pG, [11:42:17]CommunicateWithHost lk.salyk.kg:30040 [11:42:17]ConnectInit lk.salyk.kg [11:42:17]written 0, free lines is 4095 [11:42:17]Connected sock=10 [11:42:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 16 8B 04 01 7E 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A2 D1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D1 01 00 35 04 06 00 4E B5 A3 8D C0 92 C2 81 B1 41 CB F8 C8 29 [11:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6A D3 47 00 F4 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0B D1 01 00 F4 03 04 00 2D 7F A8 66 B6 04 01 00 00 B9 0E CD B7 A0 C6 1B 10 [11:42:17]CommunicateWithHost err = 0 [11:42:17]CheckOFDResponse [11:42:17]1017 (14) - 77093643461234 [11:42:17]1041 (16) - 0000000000874939 [11:42:17]1040 (4) - 119051 [11:42:17]1012 (4) - 30.07.2024 05:50 [11:42:17]1206 (1) - 0 [11:42:17]OFD Sender: Remove packet 119051 [11:42:17]ProducePacketName [11:42:17]name=ofd_packets/00119051 [11:42:17]NVStorageDeleteData [11:42:18]Write to MH i2c: 01 00 00 52 AB FD [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: 01 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: 01 07 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: 01 07 00 52 AB 00 00 00 00 00 EB 0C FB [11:42:18]RasterBufferAndPrint [11:42:18]line [11:42:18]line [11:42:18]line [11:42:18]line [11:42:18]line [11:42:18]written 0, free lines is 3314 [11:42:18]MH_Cut [11:42:18]Write to MH i2c: D1 01 00 59 AB 01 D6 [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: D1 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: D1 01 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: D1 01 00 59 AB 00 D5 [11:42:18]Write to MH i2c: 01 00 00 5A AB 05 [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]OFD Sender: No OFD packet to send [11:42:18]*** Cut start [11:42:18]*** Partial cut [11:42:18]*** CUTSNS_PIN = 1 [11:42:18]*** CUTSNS_PIN = 0 [11:42:19]*** Brake cut motor [11:42:19]Read from MH i2c: 01 [11:42:19]MH_I2C_Read... [11:42:19]*** Stop cut motor [11:42:19]*** Cut end [11:42:19]Read from MH i2c: 01 07 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 5A AB 00 00 00 00 00 FF 0F 1A [11:42:19]process_action close_receipt done [11:42:19]requested_data is exist [11:42:19]produce_requested_data [11:42:19]requested_item fm.sn is exist - process it [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 11 00 00 [11:42:19]Write to MH i2c: E2 08 00 5B AB 80 11 00 00 00 00 00 00 80 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 5B AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DB [11:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:42:19]wFMCommunicate OK [11:42:19]requested_item fd.num is exist - process it [11:42:19]SAM_PROTO_GetFieldsCounters [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 13 00 00 [11:42:19]Write to MH i2c: E2 08 00 5C AB 80 13 00 00 00 00 00 00 83 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 62 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 62 00 5C AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [11: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_GetFieldsCounters done [11:42:19]requested_item shift.num is exist - process it [11:42:19]requested_item shift.opened is exist - process it [11:42:19]req_shift_opened [11:42:19]FM_GetShiftState [11:42:19]SAM_PROTO_GetShiftState [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 13 01 00 [11:42:19]Write to MH i2c: E2 08 00 5D AB 80 13 01 00 00 00 00 00 85 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0E 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0E 00 5D AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 50 [11:42:19]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_GetShiftState done [11:42:19]FM_GetShiftState done [11:42:19]req_shift_opened done [11:42:19]requested_item shift.open_date is exist - process it [11:42:19]req_shift_open_date [11:42:19]req_shift_open_date done [11:42:19]produce_requested_data done [11:42:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119051,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:42:19]process_action_free close_receipt [11:42:19]json_value_free [11:42:19]json_value_free done [11:42:19]process_json_proto returns [11:42:19]Send response to host [11:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119051,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:42:19]free response buf [11:42:19]execute_script done [11:42:19]execute_script returns [11:42:19]free content buf [11:42:19]Sock 9.Close socket [11:42:19]Sock 9.Thread stoped [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:50]accept exits with 7 [11:46:50]New connection [11:46:50]New thread 3067383140 created [11:46:50]Thread 3067239780 joined [11:46:50]Waiting for new connection... [11:46:50] Sock 7.Parse request [11:46:50]Sock 7.Check first char [11:46:50]Sock 7.First char is OK [11:46:50]request: POST /json_proto HTTP/1.0 [11:46:50]Method: POST [11:46:50]URL: /json_proto [11:46:50]Method is POST - this is cgi request [11:46:50]url: /json_proto [11:46:50]query_string will be loaded in cgi processing [11:46:50]execute_cgi json_proto POST (null) [11:46:50]execute_cgi path=json_proto method=POST [11:46:50]POST find Content-Length [11:46:50]Host: 172.17.45.7:8080 [11:46:50]Content-Length: 677 [11:46:50]Content-Type: application/json [11:46:50] [11:46:50]POST finish read [11:46:50]Found Content-Length = 677 [11:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:50]execute_script... [11:46: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)949971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:50]POST & json_proto [11:46:50]process_json_proto [11:46:50]json parsed OK: [11:46:50]protocol is kg_v1.0 [11:46:50]action value=close_receipt [11:46:50]process_action close_receipt [11:46:50]cmd_close_receipt [11:46:50]MH_GetDate [11:46:50]Write to MH i2c: F0 00 00 5E AB F8 [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: F0 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: F0 09 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: F0 09 00 5E AB 00 B5 D2 A8 66 90 0F 3E 66 D9 [11:46:50]GetLastDocTimeStamp 1722339746 [11:46:50]current date 1722340021 [11:46:50]FM_GetShiftState [11:46:50]SAM_PROTO_GetShiftState [11:46:50]wFMCommunicate request_size=4 [11:46:50]MH_SAM_APDU [11:46:50]CAPDU: 80 13 01 00 [11:46:50]Write to MH i2c: E2 08 00 5F AB 80 13 01 00 00 00 00 00 87 [11:46:50]Write i2c OK [11:46:50]MH_I2C_Read... [11:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:50]Read from MH i2c: E2 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 0E 00 [11:46:50]MH_I2C_Read... [11:46:50]Read from MH i2c: E2 0E 00 5F AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 52 [11:46:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:46:50]wFMCommunicate OK [11:46:50]SAM_PROTO_GetShiftState done [11:46:50]FM_GetShiftState done [11:46:50]opened in 1722298242 [11:46:50]opened+sec_in_day 1722384642 [11:46:50]quantity*price = 60003 [11:46:50]sum+1 = 60004 [11:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 104 30.07.2024 11:47 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119052 ФПД: 21200296059887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T114701&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119052&fm=21200296059887&tin=02508201610067®Number=0000000000092660&sum=60000 [11:46:52]StoreToDocumentArchive [11:46:52]shift 435 fd 119052 [11:46:52]save to /storage/0435/doc_00119052 [11:46:52]save last doc name /storage/0435/doc_00119052 to /storage/kkm_last_doc_name [11:46:52]save OK [11:46:52]Clear old archive folders... [11:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:52]tlvbuf is 01E56D30 [11:46:52]SAM_PROTO_ClearQueue [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 09 00 00 [11:46:52]Write to MH i2c: E2 08 00 6C AB 80 09 00 00 00 00 00 00 89 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:52]Read from MH i2c: E2 03 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 6C AB 00 90 00 8B [11:46:52]RAPDU: 90 00 [11:46:52]wFMCommunicate OK [11:46:52]SAM_PROTO_ClearQueue done [11:46:52]KKMCreateOFDPacket [11:46:52]OFDProtocolAddRootSTLVToBuf [11:46:52]FM_MakeSignedData [11:46:52]FM_MakeSignedData [11:46:52]SAM_PROTO_SignData [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 0D 01 02 [11:46:52]Write to MH i2c: E2 08 00 6D AB 80 0D 01 02 00 00 00 00 91 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 6D AB 00 90 00 8C [11:46:52]RAPDU: 90 00 [11:46:52]wFMCommunicate OK [11:46:52]wFMCommunicate request_size=255 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B5 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D1 01 00 35 04 06 00 13 [11:46:52]Write to MH i2c: E2 02 01 6E AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B5 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D1 01 00 35 04 06 00 13 00 00 7E [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 6E AB 00 90 00 8D [11:46:52]RAPDU: 90 00 [11:46:52]wFMCommunicate OK [11:46:52]wFMCommunicate request_size=10 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 0D 02 02 05 48 14 1D A3 EF [11:46:52]Write to MH i2c: E2 0D 00 6F AB 80 0D 02 02 05 00 48 14 1D A3 EF 00 00 A9 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 6F AB 00 90 00 8E [11:46:52]RAPDU: 90 00 [11:46:52]wFMCommunicate OK [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 0D 03 02 [11:46:52]Write to MH i2c: E2 08 00 70 AB 80 0D 03 02 00 00 00 00 96 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 0B 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 0B 00 70 AB 00 E4 13 F6 E6 A2 0D 90 49 90 00 F2 [11:46:52]RAPDU: E4 13 F6 E6 A2 0D 90 49 90 00 [11:46:52]wFMCommunicate OK [11:46:52]SAM_PROTO_SignData done [11:46:52]FM_MakeSignedData done [11:46:52]CreateOFDProtocolMessage [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 11 00 00 [11:46:52]Write to MH i2c: E2 08 00 71 AB 80 11 00 00 00 00 00 00 96 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 17 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 17 00 71 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F1 [11:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:46:52]wFMCommunicate OK [11:46:52]CreateOFDProtocolMessage done [11:46:52]OFDSenderStorePacket 119052 [11:46:52]StoreOFDPacket docnum=119052 [11:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A3 86 07 01 5E 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B5 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D1 01 00 35 04 06 00 13 48 14 1D A3 EF E4 13 F6 E6 A2 0D 90 49 [11:46:52]CheckFolder [11:46:52]dirname=/storage/ofd_packets [11:46:52]CheckFolder done [11:46:52]ProducePacketName [11:46:52]name=ofd_packets/00119052 [11:46:52]NVStorageSaveData ofd_packets/00119052 [11:46:52]File name is /storage/ofd_packets/00119052 [11:46:52]Write 301 bytes [11:46:52]NVStorageSaveData done [11:46:52]OFDSenderStorePacket done [11:46:52]KKMCreateOFDPacket done [11:46:52]NVStorageSaveData kkm_last_timestamp [11:46:52]File name is /storage/kkm_last_timestamp [11:46:52]Write 4 bytes [11:46:52]NVStorageSaveData done [11:46:52]ExternCall_PrintAddStr [11:46:52]wPrintStart [11:46:52]Write to MH i2c: 01 00 00 72 AB 1D [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: 01 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: 01 07 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: 01 07 00 72 AB 00 00 00 00 00 FF 0F 32 [11:46:52]RasterBufferAndPrint [11:46:52]line Счет N : (1)949971 [11:46:52]line ИНН: 02508201610067 [11:46:52]line Контрольно-Кассовый Чек [11:46:52]line ПРОДАЖА [11:46:52]line ТРК (МРК, ГНК) : 61 [11:46:52]line Товар: 2710124130 [11:46:52]line Аи-92-К-4 [11:46:52]line 8.850 * 67.80 [11:46:52]line = 600.03 [11:46:52]line НДС 12% НСП 1% [11:46:52]line > о реализуемом товаре [11:46:52]line ОКРУГЛЕНИЕ: -0.03 [11:46:52]line ИТОГО: 600.00 [11:46:52]line Внесено: 600.00 [11:46:52]line СДАЧА: 0.00 [11:46:52]line НСП 1% : 5.31 [11:46:52]line НДС 12% : 63.72 [11:46:52]line Наличными: 600.00 [11:46:52]line Безнал.: 0.00 [11:46:52]line Место: АЗС № 134 "Партнер Нефть" [11:46:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:46:52]line СНО: Общий режим [11:46:52]line Чек 104 30.07.2024 11:47 [11:46:52]line Смена: 435 ФФД: 1.0 [11:46:52]line ЗНМ: 0300000044 [11:46:52]line РНМ: 0000000000092660 [11:46:52]line Версия ККМ: 001 [11:46:52]line ФМ: 0000000000874939 [11:46:52]line ФД: 119052 [11:46:52]line ФПД: 21200296059887 [11:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T114701&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119052&fm=21200296059887&tin=02508201610067®Number=0000000000092660&sum=60000 [11:46:52]OFD Sender: Processing packet 119052 [packets to send 86, broken 85] [11:46:52]ProducePacketName [11:46:52]name=ofd_packets/00119052 [11:46:52]OFD Sender: To server: pG, [11:46:52]CommunicateWithHost lk.salyk.kg:30040 [11:46:52]ConnectInit lk.salyk.kg [11:46:52]written 0, free lines is 4095 [11:46:52]Connected sock=10 [11:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A3 86 07 01 5E 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 B5 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D1 01 00 35 04 06 00 13 48 14 1D A3 EF E4 13 F6 E6 A2 0D 90 49 [11:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 47 A7 47 00 1C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0C D1 01 00 F4 03 04 00 40 80 A8 66 B6 04 01 00 00 A2 0E 19 3F 9C 52 B2 A8 [11:46:53]CommunicateWithHost err = 0 [11:46:53]CheckOFDResponse [11:46:53]1017 (14) - 77093643461234 [11:46:53]1041 (16) - 0000000000874939 [11:46:53]1040 (4) - 119052 [11:46:53]1012 (4) - 30.07.2024 05:55 [11:46:53]1206 (1) - 0 [11:46:53]OFD Sender: Remove packet 119052 [11:46:53]ProducePacketName [11:46:53]name=ofd_packets/00119052 [11:46:53]NVStorageDeleteData [11:46:53]Write to MH i2c: 01 00 00 9C AB 47 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 07 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 07 00 9C AB 00 00 00 00 00 EB 0C 45 [11:46:53]RasterBufferAndPrint [11:46:53]line [11:46:53]line [11:46:53]line [11:46:53]line [11:46:53]line [11:46:53]written 0, free lines is 3313 [11:46:53]MH_Cut [11:46:53]Write to MH i2c: D1 01 00 A3 AB 01 20 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: D1 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: D1 01 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: D1 01 00 A3 AB 00 1F [11:46:53]Write to MH i2c: 01 00 00 A4 AB 4F [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]OFD Sender: No OFD packet to send [11:46:54]*** Cut start [11:46:54]*** Partial cut [11:46:54]*** CUTSNS_PIN = 1 [11:46:54]*** CUTSNS_PIN = 0 [11:46:54]*** Brake cut motor [11:46:54]Read from MH i2c: 01 [11:46:54]MH_I2C_Read... [11:46:54]*** Stop cut motor [11:46:54]*** Cut end [11:46:54]Read from MH i2c: 01 07 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: 01 07 00 A4 AB 00 00 00 00 00 FF 0F 64 [11:46:54]process_action close_receipt done [11:46:54]requested_data is exist [11:46:54]produce_requested_data [11:46:54]requested_item fm.sn is exist - process it [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 11 00 00 [11:46:54]Write to MH i2c: E2 08 00 A5 AB 80 11 00 00 00 00 00 00 CA [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 17 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 17 00 A5 AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [11:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:46:54]wFMCommunicate OK [11:46:54]requested_item fd.num is exist - process it [11:46:54]SAM_PROTO_GetFieldsCounters [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 13 00 00 [11:46:54]Write to MH i2c: E2 08 00 A6 AB 80 13 00 00 00 00 00 00 CD [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 62 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 62 00 A6 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [11:46:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:54]wFMCommunicate OK [11:46:54]SAM_PROTO_GetFieldsCounters done [11:46:54]requested_item shift.num is exist - process it [11:46:54]requested_item shift.opened is exist - process it [11:46:54]req_shift_opened [11:46:54]FM_GetShiftState [11:46:54]SAM_PROTO_GetShiftState [11:46:54]wFMCommunicate request_size=4 [11:46:54]MH_SAM_APDU [11:46:54]CAPDU: 80 13 01 00 [11:46:54]Write to MH i2c: E2 08 00 A7 AB 80 13 01 00 00 00 00 00 CF [11:46:54]Write i2c OK [11:46:54]MH_I2C_Read... [11:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:54]Read from MH i2c: E2 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0E 00 [11:46:54]MH_I2C_Read... [11:46:54]Read from MH i2c: E2 0E 00 A7 AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9A [11:46:54]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:46:54]wFMCommunicate OK [11:46:54]SAM_PROTO_GetShiftState done [11:46:54]FM_GetShiftState done [11:46:54]req_shift_opened done [11:46:54]requested_item shift.open_date is exist - process it [11:46:54]req_shift_open_date [11:46:54]req_shift_open_date done [11:46:54]produce_requested_data done [11:46:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119052,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:46:54]process_action_free close_receipt [11:46:54]json_value_free [11:46:54]json_value_free done [11:46:54]process_json_proto returns [11:46:54]Send response to host [11:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119052,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:46:54]free response buf [11:46:54]execute_script done [11:46:54]execute_script returns [11:46:54]free content buf [11:46:54]Sock 7.Close socket [11:46:54]Sock 7.Thread stoped [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:34]accept exits with 9 [11:47:34]New connection [11:47:34]New thread 3067239780 created [11:47:34]Thread 3067383140 joined [11:47:34]Waiting for new connection... [11:47:34] Sock 9.Parse request [11:47:34]Sock 9.Check first char [11:47:34]Sock 9.First char is OK [11:47:34]request: POST /json_proto HTTP/1.0 [11:47:34]Method: POST [11:47:34]URL: /json_proto [11:47:34]Method is POST - this is cgi request [11:47:34]url: /json_proto [11:47:34]query_string will be loaded in cgi processing [11:47:34]execute_cgi json_proto POST (null) [11:47:34]execute_cgi path=json_proto method=POST [11:47:34]POST find Content-Length [11:47:34]Host: 172.17.45.7:8080 [11:47:34]Content-Length: 682 [11:47:34]Content-Type: application/json [11:47:34] [11:47:34]POST finish read [11:47:34]Found Content-Length = 682 [11:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:47:34]execute_script... [11:47:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:47:34]POST & json_proto [11:47:34]process_json_proto [11:47:34]json parsed OK: [11:47:34]protocol is kg_v1.0 [11:47:34]action value=close_receipt [11:47:34]process_action close_receipt [11:47:34]cmd_close_receipt [11:47:34]MH_GetDate [11:47:34]Write to MH i2c: F0 00 00 A8 AB 42 [11:47:34]Write i2c OK [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: F0 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: F0 09 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: F0 09 00 A8 AB 00 E0 D2 A8 66 90 0F 3E 66 4E [11:47:34]GetLastDocTimeStamp 1722340021 [11:47:34]current date 1722340064 [11:47:34]FM_GetShiftState [11:47:34]SAM_PROTO_GetShiftState [11:47:34]wFMCommunicate request_size=4 [11:47:34]MH_SAM_APDU [11:47:34]CAPDU: 80 13 01 00 [11:47:34]Write to MH i2c: E2 08 00 A9 AB 80 13 01 00 00 00 00 00 D1 [11:47:34]Write i2c OK [11:47:34]MH_I2C_Read... [11:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:34]Read from MH i2c: E2 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 0E 00 [11:47:34]MH_I2C_Read... [11:47:34]Read from MH i2c: E2 0E 00 A9 AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9C [11:47:34]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:47:34]wFMCommunicate OK [11:47:34]SAM_PROTO_GetShiftState done [11:47:34]FM_GetShiftState done [11:47:34]opened in 1722298242 [11:47:34]opened+sec_in_day 1722384642 [11:47:34]quantity*price = 100005 [11:47:34]sum+1 = 100006 [11:47:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 105 30.07.2024 11:47 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119053 ФПД: 146725163536106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T114745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119053&fm=146725163536106&tin=02508201610067®Number=0000000000092660&sum=100000 [11:47:35]StoreToDocumentArchive [11:47:35]shift 435 fd 119053 [11:47:35]save to /storage/0435/doc_00119053 [11:47:35]save last doc name /storage/0435/doc_00119053 to /storage/kkm_last_doc_name [11:47:35]save OK [11:47:35]Clear old archive folders... [11:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:35]tlvbuf is 01E9A190 [11:47:35]SAM_PROTO_ClearQueue [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 09 00 00 [11:47:35]Write to MH i2c: E2 08 00 B6 AB 80 09 00 00 00 00 00 00 D3 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 B6 AB 00 90 00 D5 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_ClearQueue done [11:47:35]KKMCreateOFDPacket [11:47:35]OFDProtocolAddRootSTLVToBuf [11:47:35]FM_MakeSignedData [11:47:35]FM_MakeSignedData [11:47:35]SAM_PROTO_SignData [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 0D 01 02 [11:47:35]Write to MH i2c: E2 08 00 B7 AB 80 0D 01 02 00 00 00 00 DB [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 03 00 B7 AB 00 90 00 D6 [11:47:35]RAPDU: 90 00 [11:47:35]wFMCommunicate OK [11:47:35]wFMCommunicate request_size=255 [11:47:35]MH_SAM_APDU [11:47: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D1 01 00 35 04 06 00 85 [11:47:35]Write to MH i2c: E2 02 01 B8 AB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D1 01 00 35 04 06 00 85 00 00 30 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 B8 AB 00 90 00 D7 [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=10 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 02 02 05 72 1D 40 8E EA [11:47:36]Write to MH i2c: E2 0D 00 B9 AB 80 0D 02 02 05 00 72 1D 40 8E EA 00 00 2F [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 B9 AB 00 90 00 D8 [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 03 02 [11:47:36]Write to MH i2c: E2 08 00 BA AB 80 0D 03 02 00 00 00 00 E0 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 0B 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 0B 00 BA AB 00 34 9E 82 2A C7 4A 6F 1D 90 00 FC [11:47:36]RAPDU: 34 9E 82 2A C7 4A 6F 1D 90 00 [11:47:36]wFMCommunicate OK [11:47:36]SAM_PROTO_SignData done [11:47:36]FM_MakeSignedData done [11:47:36]CreateOFDProtocolMessage [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 11 00 00 [11:47:36]Write to MH i2c: E2 08 00 BB AB 80 11 00 00 00 00 00 00 E0 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 17 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 17 00 BB AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3B [11:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:47:36]wFMCommunicate OK [11:47:36]CreateOFDProtocolMessage done [11:47:36]OFDSenderStorePacket 119053 [11:47:36]StoreOFDPacket docnum=119053 [11:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 87 07 01 B8 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D1 01 00 35 04 06 00 85 72 1D 40 8E EA 34 9E 82 2A C7 4A 6F 1D [11:47:36]CheckFolder [11:47:36]dirname=/storage/ofd_packets [11:47:36]CheckFolder done [11:47:36]ProducePacketName [11:47:36]name=ofd_packets/00119053 [11:47:36]NVStorageSaveData ofd_packets/00119053 [11:47:36]File name is /storage/ofd_packets/00119053 [11:47:36]Write 301 bytes [11:47:36]NVStorageSaveData done [11:47:36]OFDSenderStorePacket done [11:47:36]KKMCreateOFDPacket done [11:47:36]NVStorageSaveData kkm_last_timestamp [11:47:36]File name is /storage/kkm_last_timestamp [11:47:36]Write 4 bytes [11:47:36]NVStorageSaveData done [11:47:36]ExternCall_PrintAddStr [11:47:36]wPrintStart [11:47:36]Write to MH i2c: 01 00 00 BC AB 67 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: 01 07 00 BC AB 00 00 00 00 00 FF 0F 7C [11:47:36]RasterBufferAndPrint [11:47:36]line Счет N : (1)949972 [11:47:36]line ИНН: 02508201610067 [11:47:36]line Контрольно-Кассовый Чек [11:47:36]line ПРОДАЖА [11:47:36]line ТРК (МРК, ГНК) : 31 [11:47:36]line Товар: 2710124130 [11:47:36]line Аи-92-К-4 [11:47:36]line 14.750 * 67.80 [11:47:36]line = 1000.05 [11:47:36]line НДС 12% НСП 1% [11:47:36]line > о реализуемом товаре [11:47:36]line ОКРУГЛЕНИЕ: -0.05 [11:47:36]line ИТОГО: 1000.00 [11:47:36]line Внесено: 1000.00 [11:47:36]line СДАЧА: 0.00 [11:47:36]line НСП 1% : 8.85 [11:47:36]line НДС 12% : 106.20 [11:47:36]line Наличными: 1000.00 [11:47:36]line Безнал.: 0.00 [11:47:36]line Место: АЗС № 134 "Партнер Нефть" [11:47:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:47:36]line СНО: Общий режим [11:47:36]line Чек 105 30.07.2024 11:47 [11:47:36]line Смена: 435 ФФД: 1.0 [11:47:36]line ЗНМ: 0300000044 [11:47:36]line РНМ: 0000000000092660 [11:47:36]line Версия ККМ: 001 [11:47:36]line ФМ: 0000000000874939 [11:47:36]line ФД: 119053 [11:47:36]line ФПД: 146725163536106 [11:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T114745&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119053&fm=146725163536106&tin=02508201610067®Number=0000000000092660&sum=100000 [11:47:36]written 0, free lines is 4095 [11:47:36]OFD Sender: Processing packet 119053 [packets to send 86, broken 85] [11:47:36]ProducePacketName [11:47:36]name=ofd_packets/00119053 [11:47:36]OFD Sender: To server: pG, [11:47:36]CommunicateWithHost lk.salyk.kg:30040 [11:47:36]ConnectInit lk.salyk.kg [11:47:36]Connected sock=7 [11:47:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 79 87 07 01 B8 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 D2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D1 01 00 35 04 06 00 85 72 1D 40 8E EA 34 9E 82 2A C7 4A 6F 1D [11:47:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 82 1C 47 00 21 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0D D1 01 00 F4 03 04 00 6C 80 A8 66 B6 04 01 00 00 4F 57 2E 42 CD C7 DE 25 [11:47:36]CommunicateWithHost err = 0 [11:47:36]CheckOFDResponse [11:47:36]1017 (14) - 77093643461234 [11:47:36]1041 (16) - 0000000000874939 [11:47:36]1040 (4) - 119053 [11:47:36]1012 (4) - 30.07.2024 05:55 [11:47:36]1206 (1) - 0 [11:47:36]OFD Sender: Remove packet 119053 [11:47:36]ProducePacketName [11:47:36]name=ofd_packets/00119053 [11:47:36]NVStorageDeleteData [11:47:37]Write to MH i2c: 01 00 00 E6 AB 91 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 E6 AB 00 00 00 00 00 E3 0C 87 [11:47:37]RasterBufferAndPrint [11:47:37]line [11:47:37]line [11:47:37]line [11:47:37]line [11:47:37]line [11:47:37]written 0, free lines is 3306 [11:47:37]MH_Cut [11:47:37]Write to MH i2c: D1 01 00 ED AB 01 6A [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 01 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 01 00 ED AB 00 69 [11:47:37]Write to MH i2c: 01 00 00 EE AB 99 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]OFD Sender: No OFD packet to send [11:47:37]*** Cut start [11:47:37]*** Partial cut [11:47:37]*** CUTSNS_PIN = 1 [11:47:37]*** CUTSNS_PIN = 0 [11:47:38]*** Brake cut motor [11:47:38]Read from MH i2c: 01 [11:47:38]MH_I2C_Read... [11:47:38]*** Stop cut motor [11:47:38]*** Cut end [11:47:38]Read from MH i2c: 01 07 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: 01 07 00 EE AB 00 00 00 00 00 FF 0F AE [11:47:38]process_action close_receipt done [11:47:38]requested_data is exist [11:47:38]produce_requested_data [11:47:38]requested_item fm.sn is exist - process it [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 11 00 00 [11:47:38]Write to MH i2c: E2 08 00 EF AB 80 11 00 00 00 00 00 00 14 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 17 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 17 00 EF AB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6F [11:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:47:38]wFMCommunicate OK [11:47:38]requested_item fd.num is exist - process it [11:47:38]SAM_PROTO_GetFieldsCounters [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 13 00 00 [11:47:38]Write to MH i2c: E2 08 00 F0 AB 80 13 00 00 00 00 00 00 17 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 62 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 62 00 F0 AB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_GetFieldsCounters done [11:47:38]requested_item shift.num is exist - process it [11:47:38]requested_item shift.opened is exist - process it [11:47:38]req_shift_opened [11:47:38]FM_GetShiftState [11:47:38]SAM_PROTO_GetShiftState [11:47:38]wFMCommunicate request_size=4 [11:47:38]MH_SAM_APDU [11:47:38]CAPDU: 80 13 01 00 [11:47:38]Write to MH i2c: E2 08 00 F1 AB 80 13 01 00 00 00 00 00 19 [11:47:38]Write i2c OK [11:47:38]MH_I2C_Read... [11:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:38]Read from MH i2c: E2 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 [11:47:38]MH_I2C_Read... [11:47:38]Read from MH i2c: E2 0E 00 F1 AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E4 [11:47:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:47:38]wFMCommunicate OK [11:47:38]SAM_PROTO_GetShiftState done [11:47:38]FM_GetShiftState done [11:47:38]req_shift_opened done [11:47:38]requested_item shift.open_date is exist - process it [11:47:38]req_shift_open_date [11:47:38]req_shift_open_date done [11:47:38]produce_requested_data done [11:47:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119053,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:47:38]process_action_free close_receipt [11:47:38]json_value_free [11:47:38]json_value_free done [11:47:38]process_json_proto returns [11:47:38]Send response to host [11:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119053,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:47:38]free response buf [11:47:38]execute_script done [11:47:38]execute_script returns [11:47:38]free content buf [11:47:38]Sock 9.Close socket [11:47:38]Sock 9.Thread stoped [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:17]OFD Sender: No OFD packet to send [11:49:22]OFD Sender: No OFD packet to send [11:49:27]OFD Sender: No OFD packet to send [11:49:32]OFD Sender: No OFD packet to send [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:55]accept exits with 10 [11:49:55]New connection [11:49:55]New thread 3067383140 created [11:49:55]Thread 3067239780 joined [11:49:55]Waiting for new connection... [11:49:55] Sock 10.Parse request [11:49:55]Sock 10.Check first char [11:49:55]Sock 10.First char is OK [11:49:55]request: POST /json_proto HTTP/1.0 [11:49:55]Method: POST [11:49:55]URL: /json_proto [11:49:55]Method is POST - this is cgi request [11:49:55]url: /json_proto [11:49:55]query_string will be loaded in cgi processing [11:49:55]execute_cgi json_proto POST (null) [11:49:55]execute_cgi path=json_proto method=POST [11:49:55]POST find Content-Length [11:49:55]Host: 172.17.45.7:8080 [11:49:55]Content-Length: 682 [11:49:55]Content-Type: application/json [11:49:55] [11:49:55]POST finish read [11:49:55]Found Content-Length = 682 [11:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:55]execute_script... [11:49:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 29.500, "sum" : 2000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:55]POST & json_proto [11:49:55]process_json_proto [11:49:55]json parsed OK: [11:49:55]protocol is kg_v1.0 [11:49:55]action value=close_receipt [11:49:55]process_action close_receipt [11:49:55]cmd_close_receipt [11:49:55]MH_GetDate [11:49:55]Write to MH i2c: F0 00 00 F2 AB 8C [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: F0 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: F0 09 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: F0 09 00 F2 AB 00 6D D3 A8 66 90 0F 3E 66 26 [11:49:55]GetLastDocTimeStamp 1722340065 [11:49:55]current date 1722340205 [11:49:55]FM_GetShiftState [11:49:55]SAM_PROTO_GetShiftState [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 13 01 00 [11:49:55]Write to MH i2c: E2 08 00 F3 AB 80 13 01 00 00 00 00 00 1B [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0E 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 0E 00 F3 AB 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E6 [11:49:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_GetShiftState done [11:49:55]FM_GetShiftState done [11:49:55]opened in 1722298242 [11:49:55]opened+sec_in_day 1722384642 [11:49:55]quantity*price = 200010 [11:49:55]sum+1 = 200011 [11:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 106 30.07.2024 11:50 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119054 ФПД: 78186073099542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115005&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119054&fm=78186073099542&tin=02508201610067®Number=0000000000092660&sum=200000 [11:49:56]StoreToDocumentArchive [11:49:56]shift 435 fd 119054 [11:49:56]save to /storage/0435/doc_00119054 [11:49:56]save last doc name /storage/0435/doc_00119054 to /storage/kkm_last_doc_name [11:49:56]save OK [11:49:56]Clear old archive folders... [11:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:56]tlvbuf is 01FB5BA0 [11:49:56]SAM_PROTO_ClearQueue [11:49:56]wFMCommunicate request_size=4 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 09 00 00 [11:49:56]Write to MH i2c: E2 08 00 00 AC 80 09 00 00 00 00 00 00 1E [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 00 AC 00 90 00 20 [11:49:56]RAPDU: 90 00 [11:49:56]wFMCommunicate OK [11:49:56]SAM_PROTO_ClearQueue done [11:49:56]KKMCreateOFDPacket [11:49:56]OFDProtocolAddRootSTLVToBuf [11:49:56]FM_MakeSignedData [11:49:56]FM_MakeSignedData [11:49:56]SAM_PROTO_SignData [11:49:56]wFMCommunicate request_size=4 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 0D 01 02 [11:49:56]Write to MH i2c: E2 08 00 01 AC 80 0D 01 02 00 00 00 00 26 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 01 AC 00 90 00 21 [11:49:56]RAPDU: 90 00 [11:49:56]wFMCommunicate OK [11:49:56]wFMCommunicate request_size=255 [11:49:56]MH_SAM_APDU [11:49: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 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6D D3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D1 01 00 35 04 06 00 47 [11:49:56]Write to MH i2c: E2 02 01 02 AC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6D D3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D1 01 00 35 04 06 00 47 00 00 41 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 02 AC 00 90 00 22 [11:49:56]RAPDU: 90 00 [11:49:56]wFMCommunicate OK [11:49:56]wFMCommunicate request_size=10 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 0D 02 02 05 1C 1D 1D 0D 16 [11:49:56]Write to MH i2c: E2 0D 00 03 AC 80 0D 02 02 05 00 1C 1D 1D 0D 16 00 00 AC [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:57]Read from MH i2c: E2 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 03 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 03 00 03 AC 00 90 00 23 [11:49:57]RAPDU: 90 00 [11:49:57]wFMCommunicate OK [11:49:57]wFMCommunicate request_size=4 [11:49:57]MH_SAM_APDU [11:49:57]CAPDU: 80 0D 03 02 [11:49:57]Write to MH i2c: E2 08 00 04 AC 80 0D 03 02 00 00 00 00 2B [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:57]Read from MH i2c: E2 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 0B 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 0B 00 04 AC 00 64 A1 B4 7D AC 6F C4 F0 90 00 31 [11:49:57]RAPDU: 64 A1 B4 7D AC 6F C4 F0 90 00 [11:49:57]wFMCommunicate OK [11:49:57]SAM_PROTO_SignData done [11:49:57]FM_MakeSignedData done [11:49:57]CreateOFDProtocolMessage [11:49:57]wFMCommunicate request_size=4 [11:49:57]MH_SAM_APDU [11:49:57]CAPDU: 80 11 00 00 [11:49:57]Write to MH i2c: E2 08 00 05 AC 80 11 00 00 00 00 00 00 2B [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:57]Read from MH i2c: E2 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 17 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: E2 17 00 05 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 86 [11:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:49:57]wFMCommunicate OK [11:49:57]CreateOFDProtocolMessage done [11:49:57]OFDSenderStorePacket 119054 [11:49:57]StoreOFDPacket docnum=119054 [11:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 97 53 07 01 EF EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6D D3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D1 01 00 35 04 06 00 47 1C 1D 1D 0D 16 64 A1 B4 7D AC 6F C4 F0 [11:49:57]CheckFolder [11:49:57]dirname=/storage/ofd_packets [11:49:57]CheckFolder done [11:49:57]ProducePacketName [11:49:57]name=ofd_packets/00119054 [11:49:57]NVStorageSaveData ofd_packets/00119054 [11:49:57]File name is /storage/ofd_packets/00119054 [11:49:57]Write 301 bytes [11:49:57]NVStorageSaveData done [11:49:57]OFDSenderStorePacket done [11:49:57]KKMCreateOFDPacket done [11:49:57]NVStorageSaveData kkm_last_timestamp [11:49:57]File name is /storage/kkm_last_timestamp [11:49:57]Write 4 bytes [11:49:57]NVStorageSaveData done [11:49:57]ExternCall_PrintAddStr [11:49:57]wPrintStart [11:49:57]Write to MH i2c: 01 00 00 06 AC B2 [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 07 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 07 00 06 AC 00 00 00 00 00 FF 0F C7 [11:49:57]RasterBufferAndPrint [11:49:57]line Счет N : (1)949973 [11:49:57]line ИНН: 02508201610067 [11:49:57]line Контрольно-Кассовый Чек [11:49:57]line ПРОДАЖА [11:49:57]line ТРК (МРК, ГНК) : 51 [11:49:57]line Товар: 2710124130 [11:49:57]line Аи-92-К-4 [11:49:57]line 29.500 * 67.80 [11:49:57]line = 2000.10 [11:49:57]line НДС 12% НСП 1% [11:49:57]line > о реализуемом товаре [11:49:57]line ОКРУГЛЕНИЕ: -0.10 [11:49:57]line ИТОГО: 2000.00 [11:49:57]line Внесено: 2000.00 [11:49:57]line СДАЧА: 0.00 [11:49:57]line НСП 1% : 17.70 [11:49:57]line НДС 12% : 212.40 [11:49:57]line Наличными: 2000.00 [11:49:57]line Безнал.: 0.00 [11:49:57]line Место: АЗС № 134 "Партнер Нефть" [11:49:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:49:57]line СНО: Общий режим [11:49:57]line Чек 106 30.07.2024 11:50 [11:49:57]line Смена: 435 ФФД: 1.0 [11:49:57]line ЗНМ: 0300000044 [11:49:57]line РНМ: 0000000000092660 [11:49:57]line Версия ККМ: 001 [11:49:57]line ФМ: 0000000000874939 [11:49:57]line ФД: 119054 [11:49:57]line ФПД: 78186073099542 [11:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115005&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119054&fm=78186073099542&tin=02508201610067®Number=0000000000092660&sum=200000 [11:49:57]OFD Sender: Processing packet 119054 [packets to send 86, broken 85] [11:49:57]ProducePacketName [11:49:57]name=ofd_packets/00119054 [11:49:57]OFD Sender: To server: pG, [11:49:57]CommunicateWithHost lk.salyk.kg:30040 [11:49:57]ConnectInit lk.salyk.kg [11:49:57]written 0, free lines is 4095 [11:49:57]Connected sock=9 [11:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 97 53 07 01 EF EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 3C 73 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 4A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6D D3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D1 01 00 35 04 06 00 47 1C 1D 1D 0D 16 64 A1 B4 7D AC 6F C4 F0 [11:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8A 6A 47 00 4E DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0E D1 01 00 F4 03 04 00 F9 80 A8 66 B6 04 01 00 00 17 1A 1D D0 2A B8 C9 33 [11:49:57]CommunicateWithHost err = 0 [11:49:57]CheckOFDResponse [11:49:57]1017 (14) - 77093643461234 [11:49:57]1041 (16) - 0000000000874939 [11:49:57]1040 (4) - 119054 [11:49:57]1012 (4) - 30.07.2024 05:58 [11:49:57]1206 (1) - 0 [11:49:57]OFD Sender: Remove packet 119054 [11:49:57]ProducePacketName [11:49:57]name=ofd_packets/00119054 [11:49:57]NVStorageDeleteData [11:49:57]Write to MH i2c: 01 00 00 30 AC DC [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 07 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: 01 07 00 30 AC 00 00 00 00 00 EB 0C DA [11:49:57]RasterBufferAndPrint [11:49:57]line [11:49:57]line [11:49:57]line [11:49:57]line [11:49:57]line [11:49:57]written 0, free lines is 3314 [11:49:57]MH_Cut [11:49:57]Write to MH i2c: D1 01 00 37 AC 01 B5 [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: D1 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: D1 01 00 [11:49:57]MH_I2C_Read... [11:49:57]Read from MH i2c: D1 01 00 37 AC 00 B4 [11:49:57]Write to MH i2c: 01 00 00 38 AC E4 [11:49:57]Write i2c OK [11:49:57]MH_I2C_Read... [11:49:58]OFD Sender: No OFD packet to send [11:49:58]*** Cut start [11:49:58]*** Partial cut [11:49:58]*** CUTSNS_PIN = 1 [11:49:58]*** CUTSNS_PIN = 0 [11:49:58]*** Brake cut motor [11:49:59]Read from MH i2c: 01 [11:49:59]MH_I2C_Read... [11:49:59]*** Stop cut motor [11:49:59]*** Cut end [11:49:59]Read from MH i2c: 01 07 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 07 00 38 AC 00 00 00 00 00 FF 0F F9 [11:49:59]process_action close_receipt done [11:49:59]requested_data is exist [11:49:59]produce_requested_data [11:49:59]requested_item fm.sn is exist - process it [11:49:59]wFMCommunicate request_size=4 [11:49:59]MH_SAM_APDU [11:49:59]CAPDU: 80 11 00 00 [11:49:59]Write to MH i2c: E2 08 00 39 AC 80 11 00 00 00 00 00 00 5F [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:59]Read from MH i2c: E2 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 17 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 17 00 39 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BA [11:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:49:59]wFMCommunicate OK [11:49:59]requested_item fd.num is exist - process it [11:49:59]SAM_PROTO_GetFieldsCounters [11:49:59]wFMCommunicate request_size=4 [11:49:59]MH_SAM_APDU [11:49:59]CAPDU: 80 13 00 00 [11:49:59]Write to MH i2c: E2 08 00 3A AC 80 13 00 00 00 00 00 00 62 [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:59]Read from MH i2c: E2 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 62 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 62 00 3A AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [11:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:59]wFMCommunicate OK [11:49:59]SAM_PROTO_GetFieldsCounters done [11:49:59]requested_item shift.num is exist - process it [11:49:59]requested_item shift.opened is exist - process it [11:49:59]req_shift_opened [11:49:59]FM_GetShiftState [11:49:59]SAM_PROTO_GetShiftState [11:49:59]wFMCommunicate request_size=4 [11:49:59]MH_SAM_APDU [11:49:59]CAPDU: 80 13 01 00 [11:49:59]Write to MH i2c: E2 08 00 3B AC 80 13 01 00 00 00 00 00 64 [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:59]Read from MH i2c: E2 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 0E 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 0E 00 3B AC 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2F [11:49:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:49:59]wFMCommunicate OK [11:49:59]SAM_PROTO_GetShiftState done [11:49:59]FM_GetShiftState done [11:49:59]req_shift_opened done [11:49:59]requested_item shift.open_date is exist - process it [11:49:59]req_shift_open_date [11:49:59]req_shift_open_date done [11:49:59]produce_requested_data done [11:49:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119054,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:49:59]process_action_free close_receipt [11:49:59]json_value_free [11:49:59]json_value_free done [11:49:59]process_json_proto returns [11:49:59]Send response to host [11:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119054,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:49:59]free response buf [11:49:59]execute_script done [11:49:59]execute_script returns [11:49:59]free content buf [11:49:59]Sock 10.Close socket [11:49:59]Sock 10.Thread stoped [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:47]recv_with_timeout no data received [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:14]recv_with_timeout no data received [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:19]accept exits with 7 [11:54:19]New connection [11:54:19]New thread 3067239780 created [11:54:19]Thread 3067383140 joined [11:54:19]Waiting for new connection... [11:54:19] Sock 7.Parse request [11:54:19]Sock 7.Check first char [11:54:19]Sock 7.First char is OK [11:54:19]request: POST /json_proto HTTP/1.0 [11:54:19]Method: POST [11:54:19]URL: /json_proto [11:54:19]Method is POST - this is cgi request [11:54:19]url: /json_proto [11:54:19]query_string will be loaded in cgi processing [11:54:19]execute_cgi json_proto POST (null) [11:54:19]execute_cgi path=json_proto method=POST [11:54:19]POST find Content-Length [11:54:19]Host: 172.17.45.7:8080 [11:54:19]Content-Length: 820 [11:54:19]Content-Type: application/json [11:54:19] [11:54:19]POST finish read [11:54:19]Found Content-Length = 820 [11:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:19]execute_script... [11:54: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)949974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:19]POST & json_proto [11:54:19]process_json_proto [11:54:19]json parsed OK: [11:54:19]protocol is kg_v1.0 [11:54:19]action value=close_receipt [11:54:19]process_action close_receipt [11:54:19]cmd_close_receipt [11:54:19]MH_GetDate [11:54:19]Write to MH i2c: F0 00 00 3C AC D7 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: F0 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: F0 09 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: F0 09 00 3C AC 00 75 D4 A8 66 90 0F 3E 66 7A [11:54:19]GetLastDocTimeStamp 1722340205 [11:54:19]current date 1722340469 [11:54:19]FM_GetShiftState [11:54:19]SAM_PROTO_GetShiftState [11:54:19]wFMCommunicate request_size=4 [11:54:19]MH_SAM_APDU [11:54:19]CAPDU: 80 13 01 00 [11:54:19]Write to MH i2c: E2 08 00 3D AC 80 13 01 00 00 00 00 00 66 [11:54:19]Write i2c OK [11:54:19]MH_I2C_Read... [11:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:19]Read from MH i2c: E2 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 0E 00 [11:54:19]MH_I2C_Read... [11:54:19]Read from MH i2c: E2 0E 00 3D AC 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 31 [11:54:19]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:54:19]wFMCommunicate OK [11:54:19]SAM_PROTO_GetShiftState done [11:54:19]FM_GetShiftState done [11:54:19]opened in 1722298242 [11:54:19]opened+sec_in_day 1722384642 [11:54:19]quantity*price = 998982 [11:54:19]sum+1 = 998983 [11:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 107 30.07.2024 11:54 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119055 ФПД: 101453644091092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119055&fm=101453644091092&tin=02508201610067®Number=0000000000092660&sum=998900 [11:54:20]StoreToDocumentArchive [11:54:20]shift 435 fd 119055 [11:54:20]save to /storage/0435/doc_00119055 [11:54:20]save last doc name /storage/0435/doc_00119055 to /storage/kkm_last_doc_name [11:54:20]save OK [11:54:20]Clear old archive folders... [11:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:20]tlvbuf is 01ED6B20 [11:54:20]SAM_PROTO_ClearQueue [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 09 00 00 [11:54:20]Write to MH i2c: E2 08 00 4A AC 80 09 00 00 00 00 00 00 68 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 4A AC 00 90 00 6A [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_ClearQueue done [11:54:20]KKMCreateOFDPacket [11:54:20]OFDProtocolAddRootSTLVToBuf [11:54:20]FM_MakeSignedData [11:54:20]FM_MakeSignedData [11:54:20]SAM_PROTO_SignData [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 01 02 [11:54:20]Write to MH i2c: E2 08 00 4B AC 80 0D 01 02 00 00 00 00 70 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 4B AC 00 90 00 6B [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]wFMCommunicate request_size=255 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D1 01 00 35 04 06 00 5C 45 84 6A [11:54:20]Write to MH i2c: E2 02 01 4C AC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D1 01 00 35 04 06 00 5C 45 84 6A 00 00 80 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 4C AC 00 90 00 6C [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]wFMCommunicate request_size=7 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 02 02 02 CE D4 [11:54:20]Write to MH i2c: E2 0A 00 4D AC 80 0D 02 02 02 00 CE D4 00 00 19 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 03 00 4D AC 00 90 00 6D [11:54:20]RAPDU: 90 00 [11:54:20]wFMCommunicate OK [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 0D 03 02 [11:54:20]Write to MH i2c: E2 08 00 4E AC 80 0D 03 02 00 00 00 00 75 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:20]Read from MH i2c: E2 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0B 00 [11:54:20]MH_I2C_Read... [11:54:20]Read from MH i2c: E2 0B 00 4E AC 00 44 5A 8D AF B2 BD 31 EF 90 00 DF [11:54:20]RAPDU: 44 5A 8D AF B2 BD 31 EF 90 00 [11:54:20]wFMCommunicate OK [11:54:20]SAM_PROTO_SignData done [11:54:20]FM_MakeSignedData done [11:54:20]CreateOFDProtocolMessage [11:54:20]wFMCommunicate request_size=4 [11:54:20]MH_SAM_APDU [11:54:20]CAPDU: 80 11 00 00 [11:54:20]Write to MH i2c: E2 08 00 4F AC 80 11 00 00 00 00 00 00 75 [11:54:20]Write i2c OK [11:54:20]MH_I2C_Read... [11:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:21]Read from MH i2c: E2 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: E2 17 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: E2 17 00 4F AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D0 [11:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:54:21]wFMCommunicate OK [11:54:21]CreateOFDProtocolMessage done [11:54:21]OFDSenderStorePacket 119055 [11:54:21]StoreOFDPacket docnum=119055 [11:54:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 09 16 04 01 FE 72 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 0F D1 01 00 35 04 06 00 5C 45 84 6A CE D4 44 5A 8D AF B2 BD 31 EF [11:54:21]CheckFolder [11:54:21]dirname=/storage/ofd_packets [11:54:21]CheckFolder done [11:54:21]ProducePacketName [11:54:21]name=ofd_packets/00119055 [11:54:21]NVStorageSaveData ofd_packets/00119055 [11:54:21]File name is /storage/ofd_packets/00119055 [11:54:21]Write 298 bytes [11:54:21]NVStorageSaveData done [11:54:21]OFDSenderStorePacket done [11:54:21]KKMCreateOFDPacket done [11:54:21]NVStorageSaveData kkm_last_timestamp [11:54:21]File name is /storage/kkm_last_timestamp [11:54:21]Write 4 bytes [11:54:21]NVStorageSaveData done [11:54:21]ExternCall_PrintAddStr [11:54:21]wPrintStart [11:54:21]Write to MH i2c: 01 00 00 50 AC FC [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 07 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 07 00 50 AC 00 00 00 00 00 FF 0F 11 [11:54:21]RasterBufferAndPrint [11:54:21]line Счет N : (1)949974 [11:54:21]line ИНН: 02508201610067 [11:54:21]line Контрольно-Кассовый Чек [11:54:21]line ПРОДАЖА [11:54:21]line ТРК (МРК, ГНК) : 21 [11:54:21]line Товар: 2710194800 [11:54:21]line ДТ-К-5 [11:54:21]line 131.100 * 76.20 [11:54:21]line = 9989.82 [11:54:21]line НДС 12% НСП 1% [11:54:21]line > о реализуемом товаре [11:54:21]line ОКРУГЛЕНИЕ: -0.82 [11:54:21]line ИТОГО: 9989.00 [11:54:21]line НСП 1% : 88.40 [11:54:21]line НДС 12% : 1060.87 [11:54:21]line Наличными: 0.00 [11:54:21]line Безнал.: 9989.00 [11:54:21]line Место: АЗС № 134 "Партнер Нефть" [11:54:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:54:21]line СНО: Общий режим [11:54:21]line Чек 107 30.07.2024 11:54 [11:54:21]line Смена: 435 ФФД: 1.0 [11:54:21]line ЗНМ: 0300000044 [11:54:21]line РНМ: 0000000000092660 [11:54:21]line Версия ККМ: 001 [11:54:21]line Платежная система: O! деньги [11:54:21]line ФМ: 0000000000874939 [11:54:21]line ФД: 119055 [11:54:21]line ФПД: 101453644091092 [11:54:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115429&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119055&fm=101453644091092&tin=02508201610067®Number=0000000000092660&sum=998900 [11:54:21]OFD Sender: Processing packet 119055 [packets to send 86, broken 85] [11:54:21]ProducePacketName [11:54:21]name=ofd_packets/00119055 [11:54:21]OFD Sender: To server: pG, [11:54:21]CommunicateWithHost lk.salyk.kg:30040 [11:54:21]ConnectInit lk.salyk.kg [11:54:21]written 0, free lines is 4095 [11:54:21]Write to MH i2c: 01 00 00 7A AC 26 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 07 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: 01 07 00 7A AC 00 00 00 00 00 E4 0C 1D [11:54:21]RasterBufferAndPrint [11:54:21]line [11:54:21]line [11:54:21]line [11:54:21]line [11:54:21]line [11:54:21]written 0, free lines is 3307 [11:54:21]MH_Cut [11:54:21]Write to MH i2c: D1 01 00 81 AC 01 FF [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: D1 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: D1 01 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: D1 01 00 81 AC 00 FE [11:54:21]Write to MH i2c: 01 00 00 82 AC 2E [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:22]*** Cut start [11:54:22]*** Partial cut [11:54:22]*** CUTSNS_PIN = 1 [11:54:22]*** CUTSNS_PIN = 0 [11:54:22]*** Brake cut motor [11:54:23]Read from MH i2c: 01 [11:54:23]MH_I2C_Read... [11:54:23]*** Stop cut motor [11:54:23]*** Cut end [11:54:23]Read from MH i2c: 01 07 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 82 AC 00 00 00 00 00 FF 0F 43 [11:54:23]process_action close_receipt done [11:54:23]requested_data is exist [11:54:23]produce_requested_data [11:54:23]requested_item fm.sn is exist - process it [11:54:23]wFMCommunicate request_size=4 [11:54:23]MH_SAM_APDU [11:54:23]CAPDU: 80 11 00 00 [11:54:23]Write to MH i2c: E2 08 00 83 AC 80 11 00 00 00 00 00 00 A9 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 17 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 17 00 83 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [11:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:54:23]wFMCommunicate OK [11:54:23]requested_item fd.num is exist - process it [11:54:23]SAM_PROTO_GetFieldsCounters [11:54:23]wFMCommunicate request_size=4 [11:54:23]MH_SAM_APDU [11:54:23]CAPDU: 80 13 00 00 [11:54:23]Write to MH i2c: E2 08 00 84 AC 80 13 00 00 00 00 00 00 AC [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 62 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 62 00 84 AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:54:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 0F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:23]wFMCommunicate OK [11:54:23]SAM_PROTO_GetFieldsCounters done [11:54:23]requested_item shift.num is exist - process it [11:54:23]requested_item shift.opened is exist - process it [11:54:23]req_shift_opened [11:54:23]FM_GetShiftState [11:54:23]SAM_PROTO_GetShiftState [11:54:23]wFMCommunicate request_size=4 [11:54:23]MH_SAM_APDU [11:54:23]CAPDU: 80 13 01 00 [11:54:23]Write to MH i2c: E2 08 00 85 AC 80 13 01 00 00 00 00 00 AE [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:23]Read from MH i2c: E2 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 0E 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: E2 0E 00 85 AC 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 79 [11:54:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:54:23]wFMCommunicate OK [11:54:23]SAM_PROTO_GetShiftState done [11:54:23]FM_GetShiftState done [11:54:23]req_shift_opened done [11:54:23]requested_item shift.open_date is exist - process it [11:54:23]req_shift_open_date [11:54:23]req_shift_open_date done [11:54:23]produce_requested_data done [11:54:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119055,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:54:23]process_action_free close_receipt [11:54:23]json_value_free [11:54:23]json_value_free done [11:54:23]process_json_proto returns [11:54:23]Send response to host [11:54:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119055,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:54:23]free response buf [11:54:23]execute_script done [11:54:23]execute_script returns [11:54:23]free content buf [11:54:23]Sock 7.Close socket [11:54:23]Sock 7.Thread stoped [11:54:26]ConnectInit Can't take IP for lk.salyk.kg [11:54:26]CommunicateWithHost connect error [11:54:26]CommunicateWithHost err = -1 [11:54:26]OFD Sender: Server communicate error [11:54:31]OFD Sender: Processing packet 119055 [packets to send 86, broken 85] [11:54:31]ProducePacketName [11:54:31]name=ofd_packets/00119055 [11:54:31]OFD Sender: To server: pG, [11:54:31]CommunicateWithHost lk.salyk.kg:30040 [11:54:31]ConnectInit lk.salyk.kg [11:54:36]ConnectInit Can't take IP for lk.salyk.kg [11:54:36]CommunicateWithHost connect error [11:54:36]CommunicateWithHost err = -1 [11:54:36]OFD Sender: Server communicate error [11:54:41]OFD Sender: Processing packet 119055 [packets to send 86, broken 85] [11:54:41]ProducePacketName [11:54:41]name=ofd_packets/00119055 [11:54:41]OFD Sender: To server: pG, [11:54:41]CommunicateWithHost lk.salyk.kg:30040 [11:54:41]ConnectInit lk.salyk.kg [11:54:46]ConnectInit Can't take IP for lk.salyk.kg [11:54:46]CommunicateWithHost connect error [11:54:46]CommunicateWithHost err = -1 [11:54:46]OFD Sender: Server communicate error [11:54:51]OFD Sender: Processing packet 119055 [packets to send 86, broken 85] [11:55:50]Read from MH i2c: E2 03 00 89 AC 00 90 00 A9 [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=10 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 05 1E 04 01 00 01 [11:55:50]Write to MH i2c: E2 0D 00 8A AC 80 15 02 00 05 00 1E 04 01 00 01 00 00 E4 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 8A AC 00 90 00 AA [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=15 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 0A FC 03 06 00 50 C3 00 00 00 00 [11:55:50]Write to MH i2c: E2 12 00 8B AC 80 15 02 00 0A 00 FC 03 06 00 50 C3 00 00 00 00 00 00 E3 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 8B AC 00 90 00 AB [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=47 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 2A EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 [11:55:50]Write to MH i2c: E2 32 00 8C AC 80 15 02 00 2A 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 A3 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 8C AC 00 90 00 AC [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=15 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 0A 07 04 06 00 50 C3 00 00 00 00 [11:55:50]Write to MH i2c: E2 12 00 8D AC 80 15 02 00 0A 00 07 04 06 00 50 C3 00 00 00 00 00 00 F1 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 8D AC 00 90 00 AD [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=15 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 0A 39 04 06 00 00 00 00 00 00 00 [11:55:50]Write to MH i2c: E2 12 00 8E AC 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 11 [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 8E AC 00 90 00 AE [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=11 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [11:55:50]Write to MH i2c: E2 0E 00 8F AC 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 ED [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:50]Read from MH i2c: E2 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 [11:55:50]MH_I2C_Read... [11:55:50]Read from MH i2c: E2 03 00 8F AC 00 90 00 AF [11:55:50]RAPDU: 90 00 [11:55:50]wFMCommunicate OK [11:55:50]wFMCommunicate request_size=13 [11:55:50]MH_SAM_APDU [11:55:50]CAPDU: 80 15 02 00 08 F4 03 04 00 D1 D4 A8 66 [11:55:50]Write to MH i2c: E2 10 00 90 AC 80 15 02 00 08 00 F4 03 04 00 D1 D4 A8 66 00 00 7A [11:55:50]Write i2c OK [11:55:50]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 90 AC 00 90 00 B0 [11:55:51]RAPDU: 90 00 [11:55:51]wFMCommunicate OK [11:55:51]wFMCommunicate request_size=25 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [11:55:51]Write to MH i2c: E2 1C 00 91 AC 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 1D [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 91 AC 00 90 00 B1 [11:55:51]RAPDU: 90 00 [11:55:51]wFMCommunicate OK [11:55:51]wFMCommunicate request_size=4 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 15 03 00 [11:55:51]Write to MH i2c: E2 08 00 92 AC 80 15 03 00 00 00 00 00 BF [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [11:55:51]Read from MH i2c: E2 40 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 40 00 92 AC 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6C 00 00 00 35 04 06 00 3A FE 46 13 C9 A2 90 00 BB [11:55: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 34 39 33 39 10 04 04 00 10 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6C 00 00 00 35 04 06 00 3A FE 46 13 C9 A2 90 00 [11:55:51]wFMCommunicate OK [11:55:51]SAM_PROTO_ProcessDocument answer len = 59 [11:55:51]SAM_PROTO_ProcessDocument done [11:55:51]SetTLVBufToDocument [11:55:51]Processing tag 1209 (04B9) [11:55:51]Malloc new data [11:55:51]Processing tag 1041 (0411) [11:55:51]Processing tag 1040 (0410) [11:55:51]Malloc new data [11:55:51]Processing tag 1038 (040E) [11:55:51]Malloc new data [11:55:51]Processing tag 1042 (0412) [11:55:51]Malloc new data [11:55:51]Processing tag 1077 (0435) [11:55:51]Malloc new data [11:55:51]SetTLVBufToDocument err=0 [11:55:51]KKMLoadAndSignReceiptData store KKM data [11:55:51]KKMLoadAndSignReceiptData err=0 [11:55:51]wFMCommunicate request_size=4 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 11 00 00 [11:55:51]Write to MH i2c: E2 08 00 93 AC 80 11 00 00 00 00 00 00 B9 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 17 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 17 00 93 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [11:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:55:51]wFMCommunicate OK [11:55:51]Счет N : (1)949977 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 64 Товар: 2710194800 ДТ-К-5 6.570 * 76.20 = 500.63 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 108 30.07.2024 11:56 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119056 ФПД: 64863771806114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115601&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119056&fm=64863771806114&tin=02508201610067®Number=0000000000092660&sum=50000 [11:55:51]StoreToDocumentArchive [11:55:51]shift 435 fd 119056 [11:55:51]save to /storage/0435/doc_00119056 [11:55:51]save last doc name /storage/0435/doc_00119056 to /storage/kkm_last_doc_name [11:55:51]save OK [11:55:51]Clear old archive folders... [11:55:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:51]tlvbuf is 01ED6740 [11:55:51]SAM_PROTO_ClearQueue [11:55:51]wFMCommunicate request_size=4 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 09 00 00 [11:55:51]Write to MH i2c: E2 08 00 94 AC 80 09 00 00 00 00 00 00 B2 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 94 AC 00 90 00 B4 [11:55:51]RAPDU: 90 00 [11:55:51]wFMCommunicate OK [11:55:51]SAM_PROTO_ClearQueue done [11:55:51]KKMCreateOFDPacket [11:55:51]OFDProtocolAddRootSTLVToBuf [11:55:51]FM_MakeSignedData [11:55:51]FM_MakeSignedData [11:55:51]SAM_PROTO_SignData [11:55:51]wFMCommunicate request_size=4 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 0D 01 02 [11:55:51]Write to MH i2c: E2 08 00 95 AC 80 0D 01 02 00 00 00 00 BA [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:51]Read from MH i2c: E2 03 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 95 AC 00 90 00 B5 [11:55:51]RAPDU: 90 00 [11:55:51]wFMCommunicate OK [11:55:51]wFMCommunicate request_size=255 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D1 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D1 01 00 35 04 06 00 3A FE 46 13 [11:55:51]Write to MH i2c: E2 02 01 96 AC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D1 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D1 01 00 35 04 06 00 3A FE 46 13 00 00 18 [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 96 AC 00 90 00 B6 [11:55:51]RAPDU: 90 00 [11:55:51]wFMCommunicate OK [11:55:51]wFMCommunicate request_size=7 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 0D 02 02 02 C9 A2 [11:55:51]Write to MH i2c: E2 0A 00 97 AC 80 0D 02 02 02 00 C9 A2 00 00 2C [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:51]Read from MH i2c: E2 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 [11:55:51]MH_I2C_Read... [11:55:51]Read from MH i2c: E2 03 00 97 AC 00 90 00 B7 [11:55:51]RAPDU: 90 00 [11:55:51]wFMCommunicate OK [11:55:51]wFMCommunicate request_size=4 [11:55:51]MH_SAM_APDU [11:55:51]CAPDU: 80 0D 03 02 [11:55:51]Write to MH i2c: E2 08 00 98 AC 80 0D 03 02 00 00 00 00 BF [11:55:51]Write i2c OK [11:55:51]MH_I2C_Read... [11:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:52]Read from MH i2c: E2 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: E2 0B 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: E2 0B 00 98 AC 00 E3 BF 3F BE 7B F0 70 CE 90 00 08 [11:55:52]RAPDU: E3 BF 3F BE 7B F0 70 CE 90 00 [11:55:52]wFMCommunicate OK [11:55:52]SAM_PROTO_SignData done [11:55:52]FM_MakeSignedData done [11:55:52]CreateOFDProtocolMessage [11:55:52]wFMCommunicate request_size=4 [11:55:52]MH_SAM_APDU [11:55:52]CAPDU: 80 11 00 00 [11:55:52]Write to MH i2c: E2 08 00 99 AC 80 11 00 00 00 00 00 00 BF [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:52]Read from MH i2c: E2 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: E2 17 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: E2 17 00 99 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1A [11:55:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:55:52]wFMCommunicate OK [11:55:52]CreateOFDProtocolMessage done [11:55:52]OFDSenderStorePacket 119056 [11:55:52]StoreOFDPacket docnum=119056 [11:55:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B7 3E 04 01 67 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D1 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D1 01 00 35 04 06 00 3A FE 46 13 C9 A2 E3 BF 3F BE 7B F0 70 CE [11:55:52]CheckFolder [11:55:52]dirname=/storage/ofd_packets [11:55:52]CheckFolder done [11:55:52]ProducePacketName [11:55:52]name=ofd_packets/00119056 [11:55:52]NVStorageSaveData ofd_packets/00119056 [11:55:52]File name is /storage/ofd_packets/00119056 [11:55:52]Write 298 bytes [11:55:52]NVStorageSaveData done [11:55:52]OFDSenderStorePacket done [11:55:52]KKMCreateOFDPacket done [11:55:52]NVStorageSaveData kkm_last_timestamp [11:55:52]File name is /storage/kkm_last_timestamp [11:55:52]Write 4 bytes [11:55:52]NVStorageSaveData done [11:55:52]ExternCall_PrintAddStr [11:55:52]wPrintStart [11:55:52]Write to MH i2c: 01 00 00 9A AC 46 [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: 01 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: 01 07 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: 01 07 00 9A AC 00 00 00 00 00 FF 0F 5B [11:55:52]RasterBufferAndPrint [11:55:52]line Счет N : (1)949977 [11:55:52]line ИНН: 02508201610067 [11:55:52]line Контрольно-Кассовый Чек [11:55:52]line ПРОДАЖА [11:55:52]line ТРК (МРК, ГНК) : 64 [11:55:52]line Товар: 2710194800 [11:55:52]line ДТ-К-5 [11:55:52]line 6.570 * 76.20 [11:55:52]line = 500.63 [11:55:52]line НДС 12% НСП 1% [11:55:52]line > о реализуемом товаре [11:55:52]line ОКРУГЛЕНИЕ: -0.63 [11:55:52]line ИТОГО: 500.00 [11:55:52]line Внесено: 500.00 [11:55:52]line СДАЧА: 0.00 [11:55:52]line НСП 1% : 4.43 [11:55:52]line НДС 12% : 53.16 [11:55:52]line Наличными: 500.00 [11:55:52]line Безнал.: 0.00 [11:55:52]line Место: АЗС № 134 "Партнер Нефть" [11:55:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:55:52]OFD Sender: Processing packet 119056 [packets to send 86, broken 85] [11:55:52]ProducePacketName [11:55:52]name=ofd_packets/00119056 [11:55:52]OFD Sender: To server: pG, [11:55:52]CommunicateWithHost lk.salyk.kg:30040 [11:55:52]ConnectInit lk.salyk.kg [11:55:52]line СНО: Общий режим [11:55:52]line Чек 108 30.07.2024 11:56 [11:55:52]line Смена: 435 ФФД: 1.0 [11:55:52]line ЗНМ: 0300000044 [11:55:52]line РНМ: 0000000000092660 [11:55:52]line Версия ККМ: 001 [11:55:52]line ФМ: 0000000000874939 [11:55:52]line ФД: 119056 [11:55:52]line ФПД: 64863771806114 [11:55:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115601&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119056&fm=64863771806114&tin=02508201610067®Number=0000000000092660&sum=50000 [11:55:52]written 0, free lines is 4095 [11:55:52]Write to MH i2c: 01 00 00 C4 AC 70 [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: 01 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: 01 07 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: 01 07 00 C4 AC 00 00 00 00 00 D9 0C 5C [11:55:52]RasterBufferAndPrint [11:55:52]line [11:55:52]line [11:55:52]line [11:55:52]line [11:55:52]line [11:55:52]written 0, free lines is 3305 [11:55:52]MH_Cut [11:55:52]Write to MH i2c: D1 01 00 CB AC 01 49 [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: D1 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: D1 01 00 [11:55:52]MH_I2C_Read... [11:55:52]Read from MH i2c: D1 01 00 CB AC 00 48 [11:55:52]Write to MH i2c: 01 00 00 CC AC 78 [11:55:52]Write i2c OK [11:55:52]MH_I2C_Read... [11:55:53]*** Cut start [11:55:53]*** Partial cut [11:55:53]*** CUTSNS_PIN = 1 [11:55:53]*** CUTSNS_PIN = 0 [11:55:53]*** Brake cut motor [11:55:53]Read from MH i2c: 01 [11:55:53]MH_I2C_Read... [11:55:53]*** Stop cut motor [11:55:53]*** Cut end [11:55:53]Read from MH i2c: 01 07 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: 01 07 00 CC AC 00 00 00 00 00 FF 0F 8D [11:55:53]process_action close_receipt done [11:55:53]requested_data is exist [11:55:53]produce_requested_data [11:55:53]requested_item fm.sn is exist - process it [11:55:53]wFMCommunicate request_size=4 [11:55:53]MH_SAM_APDU [11:55:53]CAPDU: 80 11 00 00 [11:55:53]Write to MH i2c: E2 08 00 CD AC 80 11 00 00 00 00 00 00 F3 [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:53]Read from MH i2c: E2 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 17 00 [11:55:53]MH_I2C_Read... [11:55:53]Read from MH i2c: E2 17 00 CD AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [11:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:55:53]wFMCommunicate OK [11:55:53]requested_item fd.num is exist - process it [11:55:53]SAM_PROTO_GetFieldsCounters [11:55:53]wFMCommunicate request_size=4 [11:55:53]MH_SAM_APDU [11:55:53]CAPDU: 80 13 00 00 [11:55:53]Write to MH i2c: E2 08 00 CE AC 80 13 00 00 00 00 00 00 F6 [11:55:53]Write i2c OK [11:55:53]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 62 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 62 00 CE AC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [11:55:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 10 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:54]wFMCommunicate OK [11:55:54]SAM_PROTO_GetFieldsCounters done [11:55:54]requested_item shift.num is exist - process it [11:55:54]requested_item shift.opened is exist - process it [11:55:54]req_shift_opened [11:55:54]FM_GetShiftState [11:55:54]SAM_PROTO_GetShiftState [11:55:54]wFMCommunicate request_size=4 [11:55:54]MH_SAM_APDU [11:55:54]CAPDU: 80 13 01 00 [11:55:54]Write to MH i2c: E2 08 00 CF AC 80 13 01 00 00 00 00 00 F8 [11:55:54]Write i2c OK [11:55:54]MH_I2C_Read... [11:55:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:54]Read from MH i2c: E2 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 0E 00 [11:55:54]MH_I2C_Read... [11:55:54]Read from MH i2c: E2 0E 00 CF AC 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C3 [11:55:54]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:55:54]wFMCommunicate OK [11:55:54]SAM_PROTO_GetShiftState done [11:55:54]FM_GetShiftState done [11:55:54]req_shift_opened done [11:55:54]requested_item shift.open_date is exist - process it [11:55:54]req_shift_open_date [11:55:54]req_shift_open_date done [11:55:54]produce_requested_data done [11:55:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119056,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:55:54]process_action_free close_receipt [11:55:54]json_value_free [11:55:54]json_value_free done [11:55:54]process_json_proto returns [11:55:54]Send response to host [11:55:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119056,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:55:54]free response buf [11:55:54]execute_script done [11:55:54]execute_script returns [11:55:54]free content buf [11:55:54]Sock 10.Close socket [11:55:54]Sock 10.Thread stoped [11:55:57]ConnectInit Can't take IP for lk.salyk.kg [11:55:57]CommunicateWithHost connect error [11:55:57]CommunicateWithHost err = -1 [11:55:57]OFD Sender: Server communicate error [11:56:02]OFD Sender: Processing packet 119056 [packets to send 86, broken 85] [11:56:02]ProducePacketName [11:56:02]name=ofd_packets/00119056 [11:56:02]OFD Sender: To server: pG, [11:56:02]CommunicateWithHost lk.salyk.kg:30040 [11:56:02]ConnectInit lk.salyk.kg [11:56:03]ConnectInit Can't connect to host [11:56:03]Connected sock=10 [11:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B7 3E 04 01 67 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D1 D4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D1 01 00 35 04 06 00 3A FE 46 13 C9 A2 E3 BF 3F BE 7B F0 70 CE [11:56:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 D3 47 00 7D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 10 D1 01 00 F4 03 04 00 68 82 A8 66 B6 04 01 00 00 24 4E 8B DF 1E 4D 0C 45 [11:56:04]CommunicateWithHost err = 0 [11:56:04]CheckOFDResponse [11:56:04]1017 (14) - 77093643461234 [11:56:04]1041 (16) - 0000000000874939 [11:56:04]1040 (4) - 119056 [11:56:04]1012 (4) - 30.07.2024 06:04 [11:56:04]1206 (1) - 0 [11:56:04]OFD Sender: Remove packet 119056 [11:56:04]ProducePacketName [11:56:04]name=ofd_packets/00119056 [11:56:04]NVStorageDeleteData [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:53]accept exits with 7 [11:56:53]New connection [11:56:53]New thread 3067239780 created [11:56:53]Thread 3067383140 joined [11:56:53]Waiting for new connection... [11:56:53] Sock 7.Parse request [11:56:53]Sock 7.Check first char [11:56:53]Sock 7.First char is OK [11:56:53]request: POST /json_proto HTTP/1.0 [11:56:53]Method: POST [11:56:53]URL: /json_proto [11:56:53]Method is POST - this is cgi request [11:56:53]url: /json_proto [11:56:53]query_string will be loaded in cgi processing [11:56:53]execute_cgi json_proto POST (null) [11:56:53]execute_cgi path=json_proto method=POST [11:56:53]POST find Content-Length [11:56:53]Host: 172.17.45.7:8080 [11:56:53]Content-Length: 819 [11:56:53]Content-Type: application/json [11:56:53] [11:56:53]POST finish read [11:56:53]Found Content-Length = 819 [11:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 1700.00, "payments": [ { "type": 1, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:53]execute_script... [11:56: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)949976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 1700.00, "payments": [ { "type": 1, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:53]POST & json_proto [11:56:53]process_json_proto [11:56:53]json parsed OK: [11:56:53]protocol is kg_v1.0 [11:56:53]action value=close_receipt [11:56:53]process_action close_receipt [11:56:53]cmd_close_receipt [11:56:53]MH_GetDate [11:56:53]Write to MH i2c: F0 00 00 D0 AC 6B [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: F0 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: F0 09 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: F0 09 00 D0 AC 00 10 D5 A8 66 90 0F 3E 66 AA [11:56:53]GetLastDocTimeStamp 1722340561 [11:56:53]current date 1722340624 [11:56:53]FM_GetShiftState [11:56:53]SAM_PROTO_GetShiftState [11:56:53]wFMCommunicate request_size=4 [11:56:53]MH_SAM_APDU [11:56:53]CAPDU: 80 13 01 00 [11:56:53]Write to MH i2c: E2 08 00 D1 AC 80 13 01 00 00 00 00 00 FA [11:56:53]Write i2c OK [11:56:53]MH_I2C_Read... [11:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:53]Read from MH i2c: E2 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0E 00 [11:56:53]MH_I2C_Read... [11:56:53]Read from MH i2c: E2 0E 00 D1 AC 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C5 [11:56:53]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:56:53]wFMCommunicate OK [11:56:53]SAM_PROTO_GetShiftState done [11:56:53]FM_GetShiftState done [11:56:53]opened in 1722298242 [11:56:53]opened+sec_in_day 1722384642 [11:56:53]quantity*price = 170002 [11:56:53]sum+1 = 170003 [11:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 0.00 Безнал.: 1700.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 109 30.07.2024 11:57 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119057 ФПД: 123731929372301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115704&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119057&fm=123731929372301&tin=02508201610067®Number=0000000000092660&sum=170000 [11:56:54]StoreToDocumentArchive [11:56:54]shift 435 fd 119057 [11:56:54]save to /storage/0435/doc_00119057 [11:56:54]save last doc name /storage/0435/doc_00119057 to /storage/kkm_last_doc_name [11:56:54]save OK [11:56:54]Clear old archive folders... [11:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:56:54]tlvbuf is 02075460 [11:56:54]SAM_PROTO_ClearQueue [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 09 00 00 [11:56:54]Write to MH i2c: E2 08 00 DE AC 80 09 00 00 00 00 00 00 FC [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 DE AC 00 90 00 FE [11:56:54]RAPDU: 90 00 [11:56:54]wFMCommunicate OK [11:56:54]SAM_PROTO_ClearQueue done [11:56:54]KKMCreateOFDPacket [11:56:54]OFDProtocolAddRootSTLVToBuf [11:56:54]FM_MakeSignedData [11:56:54]FM_MakeSignedData [11:56:54]SAM_PROTO_SignData [11:56:54]wFMCommunicate request_size=4 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 0D 01 02 [11:56:54]Write to MH i2c: E2 08 00 DF AC 80 0D 01 02 00 00 00 00 04 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:54]Read from MH i2c: E2 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 [11:56:54]MH_I2C_Read... [11:56:54]Read from MH i2c: E2 03 00 DF AC 00 90 00 FF [11:56:54]RAPDU: 90 00 [11:56:54]wFMCommunicate OK [11:56:54]wFMCommunicate request_size=255 [11:56:54]MH_SAM_APDU [11:56:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D1 01 00 35 04 06 00 70 88 95 B2 [11:56:54]Write to MH i2c: E2 02 01 E0 AC 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D1 01 00 35 04 06 00 70 88 95 B2 00 00 B0 [11:56:54]Write i2c OK [11:56:54]MH_I2C_Read... [11:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:55]Read from MH i2c: E2 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 03 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 03 00 E0 AC 00 90 00 00 [11:56:55]RAPDU: 90 00 [11:56:55]wFMCommunicate OK [11:56:55]wFMCommunicate request_size=7 [11:56:55]MH_SAM_APDU [11:56:55]CAPDU: 80 0D 02 02 02 96 8D [11:56:55]Write to MH i2c: E2 0A 00 E1 AC 80 0D 02 02 02 00 96 8D 00 00 2E [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:55]OFD Sender: No OFD packet to send [11:56:55]Read from MH i2c: E2 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 03 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 03 00 E1 AC 00 90 00 01 [11:56:55]RAPDU: 90 00 [11:56:55]wFMCommunicate OK [11:56:55]wFMCommunicate request_size=4 [11:56:55]MH_SAM_APDU [11:56:55]CAPDU: 80 0D 03 02 [11:56:55]Write to MH i2c: E2 08 00 E2 AC 80 0D 03 02 00 00 00 00 09 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:55]Read from MH i2c: E2 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 0B 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 0B 00 E2 AC 00 24 A4 DD F7 8D 5F E2 73 90 00 E7 [11:56:55]RAPDU: 24 A4 DD F7 8D 5F E2 73 90 00 [11:56:55]wFMCommunicate OK [11:56:55]SAM_PROTO_SignData done [11:56:55]FM_MakeSignedData done [11:56:55]CreateOFDProtocolMessage [11:56:55]wFMCommunicate request_size=4 [11:56:55]MH_SAM_APDU [11:56:55]CAPDU: 80 11 00 00 [11:56:55]Write to MH i2c: E2 08 00 E3 AC 80 11 00 00 00 00 00 00 09 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:55]Read from MH i2c: E2 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 17 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: E2 17 00 E3 AC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 64 [11:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:56:55]wFMCommunicate OK [11:56:55]CreateOFDProtocolMessage done [11:56:55]OFDSenderStorePacket 119057 [11:56:55]StoreOFDPacket docnum=119057 [11:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B AE 04 01 0B 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D1 01 00 35 04 06 00 70 88 95 B2 96 8D 24 A4 DD F7 8D 5F E2 73 [11:56:55]CheckFolder [11:56:55]dirname=/storage/ofd_packets [11:56:55]CheckFolder done [11:56:55]ProducePacketName [11:56:55]name=ofd_packets/00119057 [11:56:55]NVStorageSaveData ofd_packets/00119057 [11:56:55]File name is /storage/ofd_packets/00119057 [11:56:55]Write 298 bytes [11:56:55]NVStorageSaveData done [11:56:55]OFDSenderStorePacket done [11:56:55]KKMCreateOFDPacket done [11:56:55]NVStorageSaveData kkm_last_timestamp [11:56:55]File name is /storage/kkm_last_timestamp [11:56:55]Write 4 bytes [11:56:55]NVStorageSaveData done [11:56:55]ExternCall_PrintAddStr [11:56:55]wPrintStart [11:56:55]Write to MH i2c: 01 00 00 E4 AC 90 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 07 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 07 00 E4 AC 00 00 00 00 00 FF 0F A5 [11:56:55]RasterBufferAndPrint [11:56:55]line Счет N : (1)949976 [11:56:55]line ИНН: 02508201610067 [11:56:55]line Контрольно-Кассовый Чек [11:56:55]line ПРОДАЖА [11:56:55]line ТРК (МРК, ГНК) : 44 [11:56:55]line Товар: 2710194800 [11:56:55]line ДТ-К-5 [11:56:55]line 22.310 * 76.20 [11:56:55]line = 1700.02 [11:56:55]line НДС 12% НСП 1% [11:56:55]line > о реализуемом товаре [11:56:55]line ОКРУГЛЕНИЕ: -0.02 [11:56:55]line ИТОГО: 1700.00 [11:56:55]line НСП 1% : 15.04 [11:56:55]line НДС 12% : 180.53 [11:56:55]line Наличными: 0.00 [11:56:55]line Безнал.: 1700.00 [11:56:55]line Место: АЗС № 134 "Партнер Нефть" [11:56:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:56:55]line СНО: Общий режим [11:56:55]line Чек 109 30.07.2024 11:57 [11:56:55]line Смена: 435 ФФД: 1.0 [11:56:55]line ЗНМ: 0300000044 [11:56:55]line РНМ: 0000000000092660 [11:56:55]line Версия ККМ: 001 [11:56:55]line Платежная система: O! деньги [11:56:55]line ФМ: 0000000000874939 [11:56:55]line ФД: 119057 [11:56:55]line ФПД: 123731929372301 [11:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115704&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119057&fm=123731929372301&tin=02508201610067®Number=0000000000092660&sum=170000 [11:56:55]written 0, free lines is 4095 [11:56:55]OFD Sender: Processing packet 119057 [packets to send 86, broken 85] [11:56:55]ProducePacketName [11:56:55]name=ofd_packets/00119057 [11:56:55]OFD Sender: To server: pG, [11:56:55]CommunicateWithHost lk.salyk.kg:30040 [11:56:55]ConnectInit lk.salyk.kg [11:56:55]Write to MH i2c: 01 00 00 0E AD BB [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 07 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: 01 07 00 0E AD 00 00 00 00 00 E6 0C B4 [11:56:55]RasterBufferAndPrint [11:56:55]line [11:56:55]line [11:56:55]line [11:56:55]line [11:56:55]line [11:56:55]written 0, free lines is 3318 [11:56:55]MH_Cut [11:56:55]Write to MH i2c: D1 01 00 15 AD 01 94 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: D1 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: D1 01 00 [11:56:55]MH_I2C_Read... [11:56:55]Read from MH i2c: D1 01 00 15 AD 00 93 [11:56:55]Write to MH i2c: 01 00 00 16 AD C3 [11:56:55]Write i2c OK [11:56:55]MH_I2C_Read... [11:56:56]*** Cut start [11:56:56]*** Partial cut [11:56:56]*** CUTSNS_PIN = 1 [11:56:56]*** CUTSNS_PIN = 0 [11:56:56]*** Brake cut motor [11:56:57]Read from MH i2c: 01 [11:56:57]MH_I2C_Read... [11:56:57]*** Stop cut motor [11:56:57]*** Cut end [11:56:57]Read from MH i2c: 01 07 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: 01 07 00 16 AD 00 00 00 00 00 FF 0F D8 [11:56:57]process_action close_receipt done [11:56:57]requested_data is exist [11:56:57]produce_requested_data [11:56:57]requested_item fm.sn is exist - process it [11:56:57]wFMCommunicate request_size=4 [11:56:57]MH_SAM_APDU [11:56:57]CAPDU: 80 11 00 00 [11:56:57]Write to MH i2c: E2 08 00 17 AD 80 11 00 00 00 00 00 00 3E [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 17 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 17 00 17 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 99 [11:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:56:57]wFMCommunicate OK [11:56:57]requested_item fd.num is exist - process it [11:56:57]SAM_PROTO_GetFieldsCounters [11:56:57]wFMCommunicate request_size=4 [11:56:57]MH_SAM_APDU [11:56:57]CAPDU: 80 13 00 00 [11:56:57]Write to MH i2c: E2 08 00 18 AD 80 13 00 00 00 00 00 00 41 [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 62 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 62 00 18 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11:56: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 11 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:57]wFMCommunicate OK [11:56:57]SAM_PROTO_GetFieldsCounters done [11:56:57]requested_item shift.num is exist - process it [11:56:57]requested_item shift.opened is exist - process it [11:56:57]req_shift_opened [11:56:57]FM_GetShiftState [11:56:57]SAM_PROTO_GetShiftState [11:56:57]wFMCommunicate request_size=4 [11:56:57]MH_SAM_APDU [11:56:57]CAPDU: 80 13 01 00 [11:56:57]Write to MH i2c: E2 08 00 19 AD 80 13 01 00 00 00 00 00 43 [11:56:57]Write i2c OK [11:56:57]MH_I2C_Read... [11:56:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:57]Read from MH i2c: E2 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 0E 00 [11:56:57]MH_I2C_Read... [11:56:57]Read from MH i2c: E2 0E 00 19 AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0E [11:56:57]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:56:57]wFMCommunicate OK [11:56:57]SAM_PROTO_GetShiftState done [11:56:57]FM_GetShiftState done [11:56:57]req_shift_opened done [11:56:57]requested_item shift.open_date is exist - process it [11:56:57]req_shift_open_date [11:56:57]req_shift_open_date done [11:56:57]produce_requested_data done [11:56:57]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119057,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:56:57]process_action_free close_receipt [11:56:57]json_value_free [11:56:57]json_value_free done [11:56:57]process_json_proto returns [11:56:57]Send response to host [11:56:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119057,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:56:57]free response buf [11:56:57]execute_script done [11:56:57]execute_script returns [11:56:57]free content buf [11:56:57]Sock 7.Close socket [11:56:57]Sock 7.Thread stoped [11:57:00]ConnectInit Can't take IP for lk.salyk.kg [11:57:00]CommunicateWithHost connect error [11:57:00]CommunicateWithHost err = -1 [11:57:00]OFD Sender: Server communicate error [11:57:05]OFD Sender: Processing packet 119057 [packets to send 86, broken 85] [11:57:05]ProducePacketName [11:57:05]name=ofd_packets/00119057 [11:57:05]OFD Sender: To server: pG, [11:57:05]CommunicateWithHost lk.salyk.kg:30040 [11:57:05]ConnectInit lk.salyk.kg [11:57:10]ConnectInit Can't take IP for lk.salyk.kg [11:57:10]CommunicateWithHost connect error [11:57:10]CommunicateWithHost err = -1 [11:57:10]OFD Sender: Server communicate error [11:57:15]OFD Sender: Processing packet 119057 [packets to send 86, broken 85] [11:57:15]ProducePacketName [11:57:15]name=ofd_packets/00119057 [11:57:15]OFD Sender: To server: pG, [11:57:15]CommunicateWithHost lk.salyk.kg:30040 [11:57:15]ConnectInit lk.salyk.kg [11:57:20]ConnectInit Can't take IP for lk.salyk.kg [11:57:20]CommunicateWithHost connect error [11:57:20]CommunicateWithHost err = -1 [11:57:20]OFD Sender: Server communicate error [11:57:25]OFD Sender: Processing packet 119057 [packets to send 86, broken 85] [11:57:25]ProducePacketName [11:57:25]name=ofd_packets/00119057 [11:57:25]OFD Sender: To server: pG, [11:57:25]CommunicateWithHost lk.salyk.kg:30040 [11:57:25]ConnectInit lk.salyk.kg [11:57:30]ConnectInit Can't take IP for lk.salyk.kg [11:57:30]CommunicateWithHost connect error [11:57:30]CommunicateWithHost err = -1 [11:57:30]OFD Sender: Server communicate error [11:57:35]OFD Sender: Processing packet 119057 [packets to send 86, broken 85] [11:57:35]ProducePacketName [11:57:35]name=ofd_packets/00119057 [11:57:35]OFD Sender: To server: pG, [11:57:35]CommunicateWithHost lk.salyk.kg:30040 [11:57:35]ConnectInit lk.salyk.kg [11:57:40]accept exits with 10 [11:57:40]New connection [11:57:40]New thread 3067383140 created [11:57:40]Thread 3067239780 joined [11:57:40]Waiting for new connection... [11:57:40] Sock 10.Parse request [11:57:40]Sock 10.Check first char [11:57:40]Sock 10.First char is OK [11:57:40]request: POST /json_proto HTTP/1.0 [11:57:40]Method: POST [11:57:40]URL: /json_proto [11:57:40]Method is POST - this is cgi request [11:57:40]url: /json_proto [11:57:40]query_string will be loaded in cgi processing [11:57:40]execute_cgi json_proto POST (null) [11:57:40]execute_cgi path=json_proto method=POST [11:57:40]POST find Content-Length [11:57:40]Host: 172.17.45.7:8080 [11:57:40]Content-Length: 819 [11:57:40]Content-Type: application/json [11:57:40] [11:57:40]POST finish read [11:57:40]Found Content-Length = 819 [11:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.870, "sum" : 3419.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3419.00, "payments": [ { "type": 1, "sum" : 3419.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:40]execute_script... [11:57: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)949975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 44.870, "sum" : 3419.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 3419.00, "payments": [ { "type": 1, "sum" : 3419.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:40]POST & json_proto [11:57:40]process_json_proto [11:57:40]json parsed OK: [11:57:40]protocol is kg_v1.0 [11:57:40]action value=close_receipt [11:57:40]process_action close_receipt [11:57:40]cmd_close_receipt [11:57:40]MH_GetDate [11:57:40]Write to MH i2c: F0 00 00 1A AD B6 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: F0 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: F0 09 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: F0 09 00 1A AD 00 3E D5 A8 66 90 0F 3E 66 23 [11:57:40]GetLastDocTimeStamp 1722340624 [11:57:40]current date 1722340670 [11:57:40]FM_GetShiftState [11:57:40]SAM_PROTO_GetShiftState [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 13 01 00 [11:57:40]Write to MH i2c: E2 08 00 1B AD 80 13 01 00 00 00 00 00 45 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0E 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0E 00 1B AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 10 [11:57:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:57:40]wFMCommunicate OK [11:57:40]SAM_PROTO_GetShiftState done [11:57:40]FM_GetShiftState done [11:57:40]opened in 1722298242 [11:57:40]opened+sec_in_day 1722384642 [11:57:40]quantity*price = 341909 [11:57:40]sum+1 = 341910 [11:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 3419.00 НСП 1% : 30.26 НДС 12% : 363.09 Наличными: 0.00 Безнал.: 3419.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 110 30.07.2024 11:57 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119058 ФПД: 17391613457427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115750&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119058&fm=17391613457427&tin=02508201610067®Number=0000000000092660&sum=341900 [11:57:41]StoreToDocumentArchive [11:57:41]shift 435 fd 119058 [11:57:41]save to /storage/0435/doc_00119058 [11:57:41]save last doc name /storage/0435/doc_00119058 to /storage/kkm_last_doc_name [11:57:41]save OK [11:57:41]Clear old archive folders... [11:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:41]tlvbuf is 0206FB20 [11:57:41]SAM_PROTO_ClearQueue [11:57:41]wFMCommunicate request_size=4 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 09 00 00 [11:57:41]Write to MH i2c: E2 08 00 28 AD 80 09 00 00 00 00 00 00 47 [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:41]Read from MH i2c: E2 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 03 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 03 00 28 AD 00 90 00 49 [11:57:41]RAPDU: 90 00 [11:57:41]wFMCommunicate OK [11:57:41]SAM_PROTO_ClearQueue done [11:57:41]KKMCreateOFDPacket [11:57:41]OFDProtocolAddRootSTLVToBuf [11:57:41]FM_MakeSignedData [11:57:41]FM_MakeSignedData [11:57:41]SAM_PROTO_SignData [11:57:41]wFMCommunicate request_size=4 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 0D 01 02 [11:57:41]Write to MH i2c: E2 08 00 29 AD 80 0D 01 02 00 00 00 00 4F [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:41]Read from MH i2c: E2 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 03 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: E2 03 00 29 AD 00 90 00 4A [11:57:41]RAPDU: 90 00 [11:57:41]wFMCommunicate OK [11:57:41]wFMCommunicate request_size=255 [11:57:41]MH_SAM_APDU [11:57:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 37 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 37 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 37 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3E D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D1 01 00 35 04 06 00 0F D1 4C F1 [11:57:41]Write to MH i2c: E2 02 01 2A AD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 37 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 37 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 37 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3E D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D1 01 00 35 04 06 00 0F D1 4C F1 00 00 71 [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 2A AD 00 90 00 4B [11:57:42]RAPDU: 90 00 [11:57:42]wFMCommunicate OK [11:57:42]wFMCommunicate request_size=7 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 0D 02 02 02 34 13 [11:57:42]Write to MH i2c: E2 0A 00 2B AD 80 0D 02 02 02 00 34 13 00 00 9D [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 03 00 2B AD 00 90 00 4C [11:57:42]RAPDU: 90 00 [11:57:42]wFMCommunicate OK [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 0D 03 02 [11:57:42]Write to MH i2c: E2 08 00 2C AD 80 0D 03 02 00 00 00 00 54 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0B 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0B 00 2C AD 00 8A E7 CC 81 7D F3 F2 BD 90 00 32 [11:57:42]RAPDU: 8A E7 CC 81 7D F3 F2 BD 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_SignData done [11:57:42]FM_MakeSignedData done [11:57:42]CreateOFDProtocolMessage [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 11 00 00 [11:57:42]Write to MH i2c: E2 08 00 2D AD 80 11 00 00 00 00 00 00 54 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 2D AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [11:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:57:42]wFMCommunicate OK [11:57:42]CreateOFDProtocolMessage done [11:57:42]OFDSenderStorePacket 119058 [11:57:42]StoreOFDPacket docnum=119058 [11:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 1E 04 01 FE ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 37 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 37 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 37 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3E D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D1 01 00 35 04 06 00 0F D1 4C F1 34 13 8A E7 CC 81 7D F3 F2 BD [11:57:42]CheckFolder [11:57:42]dirname=/storage/ofd_packets [11:57:42]CheckFolder done [11:57:42]ProducePacketName [11:57:42]name=ofd_packets/00119058 [11:57:42]NVStorageSaveData ofd_packets/00119058 [11:57:42]File name is /storage/ofd_packets/00119058 [11:57:42]Write 298 bytes [11:57:42]NVStorageSaveData done [11:57:42]OFDSenderStorePacket done [11:57:42]KKMCreateOFDPacket done [11:57:42]NVStorageSaveData kkm_last_timestamp [11:57:42]File name is /storage/kkm_last_timestamp [11:57:42]Write 4 bytes [11:57:42]NVStorageSaveData done [11:57:42]ExternCall_PrintAddStr [11:57:42]wPrintStart [11:57:42]Write to MH i2c: 01 00 00 2E AD DB [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 2E AD 00 00 00 00 00 FF 0F F0 [11:57:42]RasterBufferAndPrint [11:57:42]line Счет N : (1)949975 [11:57:42]line ИНН: 02508201610067 [11:57:42]line Контрольно-Кассовый Чек [11:57:42]line ПРОДАЖА [11:57:42]line ТРК (МРК, ГНК) : 21 [11:57:42]line Товар: 2710194800 [11:57:42]line ДТ-К-5 [11:57:42]line 44.870 * 76.20 [11:57:42]line = 3419.09 [11:57:42]line НДС 12% НСП 1% [11:57:42]line > о реализуемом товаре [11:57:42]line ОКРУГЛЕНИЕ: -0.09 [11:57:42]line ИТОГО: 3419.00 [11:57:42]line НСП 1% : 30.26 [11:57:42]line НДС 12% : 363.09 [11:57:42]line Наличными: 0.00 [11:57:42]line Безнал.: 3419.00 [11:57:42]line Место: АЗС № 134 "Партнер Нефть" [11:57:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:57:42]line СНО: Общий режим [11:57:42]line Чек 110 30.07.2024 11:57 [11:57:42]line Смена: 435 ФФД: 1.0 [11:57:42]line ЗНМ: 0300000044 [11:57:42]line РНМ: 0000000000092660 [11:57:42]line Версия ККМ: 001 [11:57:42]line Платежная система: O! деньги [11:57:42]line ФМ: 0000000000874939 [11:57:42]line ФД: 119058 [11:57:42]line ФПД: 17391613457427 [11:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T115750&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119058&fm=17391613457427&tin=02508201610067®Number=0000000000092660&sum=341900 [11:57:42]written 0, free lines is 4095 [11:57:42]OFD Sender: Processing packet 119057 [packets to send 87, broken 85] [11:57:42]ProducePacketName [11:57:42]name=ofd_packets/00119057 [11:57:42]OFD Sender: To server: pG, [11:57:42]CommunicateWithHost lk.salyk.kg:30040 [11:57:42]ConnectInit lk.salyk.kg [11:57:42]Write to MH i2c: 01 00 00 58 AD 05 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 58 AD 00 00 00 00 00 EB 0C 03 [11:57:42]RasterBufferAndPrint [11:57:42]line [11:57:42]line [11:57:42]line [11:57:42]line [11:57:42]line [11:57:42]written 0, free lines is 3331 [11:57:42]MH_Cut [11:57:42]Write to MH i2c: D1 01 00 5F AD 01 DE [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: D1 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: D1 01 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: D1 01 00 5F AD 00 DD [11:57:42]Write to MH i2c: 01 00 00 60 AD 0D [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:43]*** Cut start [11:57:43]*** Partial cut [11:57:43]*** CUTSNS_PIN = 1 [11:57:43]*** CUTSNS_PIN = 0 [11:57:43]*** Brake cut motor [11:57:44]Read from MH i2c: 01 [11:57:44]MH_I2C_Read... [11:57:44]*** Stop cut motor [11:57:44]*** Cut end [11:57:44]Read from MH i2c: 01 07 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: 01 07 00 60 AD 00 00 00 00 00 FF 0F 22 [11:57:44]process_action close_receipt done [11:57:44]requested_data is exist [11:57:44]produce_requested_data [11:57:44]requested_item fm.sn is exist - process it [11:57:44]wFMCommunicate request_size=4 [11:57:44]MH_SAM_APDU [11:57:44]CAPDU: 80 11 00 00 [11:57:44]Write to MH i2c: E2 08 00 61 AD 80 11 00 00 00 00 00 00 88 [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:44]Read from MH i2c: E2 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 17 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 17 00 61 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E3 [11:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [11:57:44]wFMCommunicate OK [11:57:44]requested_item fd.num is exist - process it [11:57:44]SAM_PROTO_GetFieldsCounters [11:57:44]wFMCommunicate request_size=4 [11:57:44]MH_SAM_APDU [11:57:44]CAPDU: 80 13 00 00 [11:57:44]Write to MH i2c: E2 08 00 62 AD 80 13 00 00 00 00 00 00 8B [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:44]Read from MH i2c: E2 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 62 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 62 00 62 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:57:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 12 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:44]wFMCommunicate OK [11:57:44]SAM_PROTO_GetFieldsCounters done [11:57:44]requested_item shift.num is exist - process it [11:57:44]requested_item shift.opened is exist - process it [11:57:44]req_shift_opened [11:57:44]FM_GetShiftState [11:57:44]SAM_PROTO_GetShiftState [11:57:44]wFMCommunicate request_size=4 [11:57:44]MH_SAM_APDU [11:57:44]CAPDU: 80 13 01 00 [11:57:44]Write to MH i2c: E2 08 00 63 AD 80 13 01 00 00 00 00 00 8D [11:57:44]Write i2c OK [11:57:44]MH_I2C_Read... [11:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:44]Read from MH i2c: E2 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 0E 00 [11:57:44]MH_I2C_Read... [11:57:44]Read from MH i2c: E2 0E 00 63 AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 58 [11:57:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [11:57:44]wFMCommunicate OK [11:57:44]SAM_PROTO_GetShiftState done [11:57:44]FM_GetShiftState done [11:57:44]req_shift_opened done [11:57:44]requested_item shift.open_date is exist - process it [11:57:44]req_shift_open_date [11:57:44]req_shift_open_date done [11:57:44]produce_requested_data done [11:57:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119058,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [11:57:44]process_action_free close_receipt [11:57:44]json_value_free [11:57:44]json_value_free done [11:57:44]process_json_proto returns [11:57:44]Send response to host [11:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119058,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [11:57:44]free response buf [11:57:44]execute_script done [11:57:44]execute_script returns [11:57:44]free content buf [11:57:44]Sock 10.Close socket [11:57:44]Sock 10.Thread stoped [11:57:47]ConnectInit Can't take IP for lk.salyk.kg [11:57:47]CommunicateWithHost connect error [11:57:47]CommunicateWithHost err = -1 [11:57:47]OFD Sender: Server communicate error [11:57:52]OFD Sender: Processing packet 119057 [packets to send 87, broken 85] [11:57:52]ProducePacketName [11:57:52]name=ofd_packets/00119057 [11:57:52]OFD Sender: To server: pG, [11:57:52]CommunicateWithHost lk.salyk.kg:30040 [11:57:52]ConnectInit lk.salyk.kg [11:57:57]ConnectInit Can't take IP for lk.salyk.kg [11:57:57]CommunicateWithHost connect error [11:57:57]CommunicateWithHost err = -1 [11:57:57]OFD Sender: Server communicate error [11:58:02]OFD Sender: Processing packet 119057 [packets to send 87, broken 85] [11:58:02]ProducePacketName [11:58:02]name=ofd_packets/00119057 [11:58:02]OFD Sender: To server: pG, [11:58:02]CommunicateWithHost lk.salyk.kg:30040 [11:58:02]ConnectInit lk.salyk.kg [11:58:07]ConnectInit Can't take IP for lk.salyk.kg [11:58:07]CommunicateWithHost connect error [11:58:07]CommunicateWithHost err = -1 [11:58:07]OFD Sender: Server communicate error [11:58:12]OFD Sender: Processing packet 119057 [packets to send 87, broken 85] [11:58:12]ProducePacketName [11:58:12]name=ofd_packets/00119057 [11:58:12]OFD Sender: To server: pG, [11:58:12]CommunicateWithHost lk.salyk.kg:30040 [11:58:12]ConnectInit lk.salyk.kg [11:58:17]ConnectInit Can't take IP for lk.salyk.kg [11:58:17]CommunicateWithHost connect error [11:58:17]CommunicateWithHost err = -1 [11:58:17]OFD Sender: Server communicate error [11:58:22]OFD Sender: Processing packet 119057 [packets to send 87, broken 85] [11:58:22]ProducePacketName [11:58:22]name=ofd_packets/00119057 [11:58:22]OFD Sender: To server: pG, [11:58:22]CommunicateWithHost lk.salyk.kg:30040 [11:58:22]ConnectInit lk.salyk.kg [11:58:27]ConnectInit Can't take IP for lk.salyk.kg [11:58:27]CommunicateWithHost connect error [11:58:27]CommunicateWithHost err = -1 [11:58:27]OFD Sender: Server communicate error [11:58:32]OFD Sender: Processing packet 119057 [packets to send 87, broken 85] [11:58:32]ProducePacketName [11:58:32]name=ofd_packets/00119057 [11:58:32]OFD Sender: To server: pG, [11:58:32]CommunicateWithHost lk.salyk.kg:30040 [11:58:32]ConnectInit lk.salyk.kg [11:58:34]Connected sock=7 [11:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B AE 04 01 0B 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 10 D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D1 01 00 35 04 06 00 70 88 95 B2 96 8D 24 A4 DD F7 8D 5F E2 73 [11:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 ED 6B 47 00 A8 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 11 D1 01 00 F4 03 04 00 FE 82 A8 66 B6 04 01 00 00 71 D7 4B 03 BA CC 00 A2 [11:58:35]CommunicateWithHost err = 0 [11:58:35]CheckOFDResponse [11:58:35]1017 (14) - 77093643461234 [11:58:35]1041 (16) - 0000000000874939 [11:58:35]1040 (4) - 119057 [11:58:35]1012 (4) - 30.07.2024 06:06 [11:58:35]1206 (1) - 0 [11:58:35]OFD Sender: Remove packet 119057 [11:58:35]ProducePacketName [11:58:35]name=ofd_packets/00119057 [11:58:35]NVStorageDeleteData [11:58:35]OFD Sender: Processing packet 119058 [packets to send 86, broken 85] [11:58:35]ProducePacketName [11:58:35]name=ofd_packets/00119058 [11:58:35]OFD Sender: To server: pG, [11:58:35]CommunicateWithHost lk.salyk.kg:30040 [11:58:35]ConnectInit lk.salyk.kg [11:58:37]Connected sock=7 [11:58:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B9 1E 04 01 FE ED 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 AF 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 95 37 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 37 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 8D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 37 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3E D5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D1 01 00 35 04 06 00 0F D1 4C F1 34 13 8A E7 CC 81 7D F3 F2 BD [11:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4A F0 47 00 C2 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 12 D1 01 00 F4 03 04 00 00 83 A8 66 B6 04 01 00 00 46 EB 90 F8 C6 B3 AE 92 [11:58:37]CommunicateWithHost err = 0 [11:58:37]CheckOFDResponse [11:58:37]1017 (14) - 77093643461234 [11:58:37]1041 (16) - 0000000000874939 [11:58:37]1040 (4) - 119058 [11:58:37]1012 (4) - 30.07.2024 06:06 [11:58:37]1206 (1) - 0 [11:58:37]OFD Sender: Remove packet 119058 [11:58:37]ProducePacketName [11:58:37]name=ofd_packets/00119058 [11:58:37]NVStorageDeleteData [11:58:38]OFD Sender: No OFD packet to send [11:58:41]ConnectInit Can't connect to host [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:44]recv_with_timeout no data received [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:15]accept exits with 12 [12:04:15]New connection [12:04:15]New thread 3067239780 created [12:04:15]Thread 3067383140 joined [12:04:15]Waiting for new connection... [12:04:15] Sock 12.Parse request [12:04:15]Sock 12.Check first char [12:04:15]Sock 12.First char is OK [12:04:15]request: POST /json_proto HTTP/1.0 [12:04:15]Method: POST [12:04:15]URL: /json_proto [12:04:15]Method is POST - this is cgi request [12:04:15]url: /json_proto [12:04:15]query_string will be loaded in cgi processing [12:04:15]execute_cgi json_proto POST (null) [12:04:15]execute_cgi path=json_proto method=POST [12:04:15]POST find Content-Length [12:04:15]Host: 172.17.45.7:8080 [12:04:15]Content-Length: 819 [12:04:15]Content-Type: application/json [12:04:15] [12:04:15]POST finish read [12:04:15]Found Content-Length = 819 [12:04:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 83.430, "sum" : 6357.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 6357.00, "payments": [ { "type": 1, "sum" : 6357.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:15]execute_script... [12:04: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)949978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 83.430, "sum" : 6357.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 6357.00, "payments": [ { "type": 1, "sum" : 6357.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:15]POST & json_proto [12:04:15]process_json_proto [12:04:15]json parsed OK: [12:04:15]protocol is kg_v1.0 [12:04:15]action value=close_receipt [12:04:15]process_action close_receipt [12:04:15]cmd_close_receipt [12:04:15]MH_GetDate [12:04:15]Write to MH i2c: F0 00 00 64 AD 00 [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: F0 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: F0 09 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: F0 09 00 64 AD 00 CA D6 A8 66 90 0F 3E 66 FA [12:04:15]GetLastDocTimeStamp 1722340670 [12:04:15]current date 1722341066 [12:04:15]FM_GetShiftState [12:04:15]SAM_PROTO_GetShiftState [12:04:15]wFMCommunicate request_size=4 [12:04:15]MH_SAM_APDU [12:04:15]CAPDU: 80 13 01 00 [12:04:15]Write to MH i2c: E2 08 00 65 AD 80 13 01 00 00 00 00 00 8F [12:04:15]Write i2c OK [12:04:15]MH_I2C_Read... [12:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:15]Read from MH i2c: E2 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 0E 00 [12:04:15]MH_I2C_Read... [12:04:15]Read from MH i2c: E2 0E 00 65 AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5A [12:04:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:04:15]wFMCommunicate OK [12:04:15]SAM_PROTO_GetShiftState done [12:04:15]FM_GetShiftState done [12:04:15]opened in 1722298242 [12:04:15]opened+sec_in_day 1722384642 [12:04:15]quantity*price = 635736 [12:04:15]sum+1 = 635738 [12:04:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 6357.00 НСП 1% : 56.26 НДС 12% : 675.12 Наличными: 0.00 Безнал.: 6357.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 111 30.07.2024 12:04 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119059 ФПД: 11214404177300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T120426&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119059&fm=11214404177300&tin=02508201610067®Number=0000000000092660&sum=635700 [12:04:17]StoreToDocumentArchive [12:04:17]shift 435 fd 119059 [12:04:17]save to /storage/0435/doc_00119059 [12:04:17]save last doc name /storage/0435/doc_00119059 to /storage/kkm_last_doc_name [12:04:17]save OK [12:04:17]Clear old archive folders... [12:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:04:17]tlvbuf is B6FBE9B0 [12:04:17]SAM_PROTO_ClearQueue [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 09 00 00 [12:04:17]Write to MH i2c: E2 08 00 72 AD 80 09 00 00 00 00 00 00 91 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 72 AD 00 90 00 93 [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_ClearQueue done [12:04:17]KKMCreateOFDPacket [12:04:17]OFDProtocolAddRootSTLVToBuf [12:04:17]FM_MakeSignedData [12:04:17]FM_MakeSignedData [12:04:17]SAM_PROTO_SignData [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 01 02 [12:04:17]Write to MH i2c: E2 08 00 73 AD 80 0D 01 02 00 00 00 00 99 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 73 AD 00 90 00 94 [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=255 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 45 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 B3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 07 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 B3 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 CA D6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D1 01 00 35 04 06 00 0A 33 0E 93 [12:04:17]Write to MH i2c: E2 02 01 74 AD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 45 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 B3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 07 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 B3 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 CA D6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D1 01 00 35 04 06 00 0A 33 0E 93 00 00 66 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 74 AD 00 90 00 95 [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=7 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 02 02 02 CD 94 [12:04:17]Write to MH i2c: E2 0A 00 75 AD 80 0D 02 02 02 00 CD 94 00 00 01 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 03 00 75 AD 00 90 00 96 [12:04:17]RAPDU: 90 00 [12:04:17]wFMCommunicate OK [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 0D 03 02 [12:04:17]Write to MH i2c: E2 08 00 76 AD 80 0D 03 02 00 00 00 00 9E [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0B 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 0B 00 76 AD 00 4A C3 37 2A 68 ED 0F 21 90 00 92 [12:04:17]RAPDU: 4A C3 37 2A 68 ED 0F 21 90 00 [12:04:17]wFMCommunicate OK [12:04:17]SAM_PROTO_SignData done [12:04:17]FM_MakeSignedData done [12:04:17]CreateOFDProtocolMessage [12:04:17]wFMCommunicate request_size=4 [12:04:17]MH_SAM_APDU [12:04:17]CAPDU: 80 11 00 00 [12:04:17]Write to MH i2c: E2 08 00 77 AD 80 11 00 00 00 00 00 00 9E [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:17]Read from MH i2c: E2 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 17 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: E2 17 00 77 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F9 [12:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:04:17]wFMCommunicate OK [12:04:17]CreateOFDProtocolMessage done [12:04:17]OFDSenderStorePacket 119059 [12:04:17]StoreOFDPacket docnum=119059 [12:04:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 82 04 01 3D 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 45 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 B3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 07 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 B3 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 CA D6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D1 01 00 35 04 06 00 0A 33 0E 93 CD 94 4A C3 37 2A 68 ED 0F 21 [12:04:17]CheckFolder [12:04:17]dirname=/storage/ofd_packets [12:04:17]CheckFolder done [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00119059 [12:04:17]NVStorageSaveData ofd_packets/00119059 [12:04:17]File name is /storage/ofd_packets/00119059 [12:04:17]Write 298 bytes [12:04:17]NVStorageSaveData done [12:04:17]OFDSenderStorePacket done [12:04:17]KKMCreateOFDPacket done [12:04:17]NVStorageSaveData kkm_last_timestamp [12:04:17]File name is /storage/kkm_last_timestamp [12:04:17]Write 4 bytes [12:04:17]NVStorageSaveData done [12:04:17]ExternCall_PrintAddStr [12:04:17]wPrintStart [12:04:17]Write to MH i2c: 01 00 00 78 AD 25 [12:04:17]Write i2c OK [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 [12:04:17]MH_I2C_Read... [12:04:17]Read from MH i2c: 01 07 00 78 AD 00 00 00 00 00 FF 0F 3A [12:04:17]RasterBufferAndPrint [12:04:17]line Счет N : (1)949978 [12:04:17]line ИНН: 02508201610067 [12:04:17]line Контрольно-Кассовый Чек [12:04:17]line ПРОДАЖА [12:04:17]line ТРК (МРК, ГНК) : 21 [12:04:17]line Товар: 2710194800 [12:04:17]line ДТ-К-5 [12:04:17]line 83.430 * 76.20 [12:04:17]line = 6357.37 [12:04:17]line НДС 12% НСП 1% [12:04:17]line > о реализуемом товаре [12:04:17]line ОКРУГЛЕНИЕ: -0.37 [12:04:17]line ИТОГО: 6357.00 [12:04:17]line НСП 1% : 56.26 [12:04:17]line НДС 12% : 675.12 [12:04:17]line Наличными: 0.00 [12:04:17]line Безнал.: 6357.00 [12:04:17]line Место: АЗС № 134 "Партнер Нефть" [12:04:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:04:17]line СНО: Общий режим [12:04:17]line Чек 111 30.07.2024 12:04 [12:04:17]line Смена: 435 ФФД: 1.0 [12:04:17]line ЗНМ: 0300000044 [12:04:17]line РНМ: 0000000000092660 [12:04:17]line Версия ККМ: 001 [12:04:17]line Платежная система: O! деньги [12:04:17]line ФМ: 0000000000874939 [12:04:17]line ФД: 119059 [12:04:17]line ФПД: 11214404177300 [12:04:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T120426&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119059&fm=11214404177300&tin=02508201610067®Number=0000000000092660&sum=635700 [12:04:17]OFD Sender: Processing packet 119059 [packets to send 86, broken 85] [12:04:17]ProducePacketName [12:04:17]name=ofd_packets/00119059 [12:04:17]OFD Sender: To server: pG, [12:04:17]CommunicateWithHost lk.salyk.kg:30040 [12:04:17]ConnectInit lk.salyk.kg [12:04:17]written 0, free lines is 4095 [12:04:18]Write to MH i2c: 01 00 00 A2 AD 4F [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: 01 07 00 A2 AD 00 00 00 00 00 E0 0C 42 [12:04:18]RasterBufferAndPrint [12:04:18]line [12:04:18]line [12:04:18]line [12:04:18]line [12:04:18]line [12:04:18]written 0, free lines is 3302 [12:04:18]MH_Cut [12:04:18]Write to MH i2c: D1 01 00 A9 AD 01 28 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: D1 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: D1 01 00 [12:04:18]MH_I2C_Read... [12:04:18]Read from MH i2c: D1 01 00 A9 AD 00 27 [12:04:18]Write to MH i2c: 01 00 00 AA AD 57 [12:04:18]Write i2c OK [12:04:18]MH_I2C_Read... [12:04:19]*** Cut start [12:04:19]*** Partial cut [12:04:19]*** CUTSNS_PIN = 1 [12:04:19]*** CUTSNS_PIN = 0 [12:04:19]*** Brake cut motor [12:04:19]Read from MH i2c: 01 [12:04:19]MH_I2C_Read... [12:04:19]*** Stop cut motor [12:04:19]*** Cut end [12:04:19]Read from MH i2c: 01 07 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: 01 07 00 AA AD 00 00 00 00 00 FF 0F 6C [12:04:19]process_action close_receipt done [12:04:19]requested_data is exist [12:04:19]produce_requested_data [12:04:19]requested_item fm.sn is exist - process it [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 11 00 00 [12:04:19]Write to MH i2c: E2 08 00 AB AD 80 11 00 00 00 00 00 00 D2 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 17 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 17 00 AB AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [12:04:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:04:19]wFMCommunicate OK [12:04:19]requested_item fd.num is exist - process it [12:04:19]SAM_PROTO_GetFieldsCounters [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 13 00 00 [12:04:19]Write to MH i2c: E2 08 00 AC AD 80 13 00 00 00 00 00 00 D5 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Connected sock=7 [12:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 49 82 04 01 3D 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 45 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 B3 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 B3 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 07 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 B3 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 CA D6 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D1 01 00 35 04 06 00 0A 33 0E 93 CD 94 4A C3 37 2A 68 ED 0F 21 [12:04:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 62 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 62 00 AC AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [12:04:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 13 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:19]wFMCommunicate OK [12:04:19]SAM_PROTO_GetFieldsCounters done [12:04:19]requested_item shift.num is exist - process it [12:04:19]requested_item shift.opened is exist - process it [12:04:19]req_shift_opened [12:04:19]FM_GetShiftState [12:04:19]SAM_PROTO_GetShiftState [12:04:19]wFMCommunicate request_size=4 [12:04:19]MH_SAM_APDU [12:04:19]CAPDU: 80 13 01 00 [12:04:19]Write to MH i2c: E2 08 00 AD AD 80 13 01 00 00 00 00 00 D7 [12:04:19]Write i2c OK [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 [12:04:19]MH_I2C_Read... [12:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:19]Read from MH i2c: E2 0E 00 [12:04:19]MH_I2C_Read... [12:04:19]Read from MH i2c: E2 0E 00 AD AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A2 [12:04:19]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:04:19]wFMCommunicate OK [12:04:19]SAM_PROTO_GetShiftState done [12:04:19]FM_GetShiftState done [12:04:19]req_shift_opened done [12:04:19]requested_item shift.open_date is exist - process it [12:04:19]req_shift_open_date [12:04:19]req_shift_open_date done [12:04:19]produce_requested_data done [12:04:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119059,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:04:19]process_action_free close_receipt [12:04:19]json_value_free [12:04:19]json_value_free done [12:04:19]process_json_proto returns [12:04:19]Send response to host [12:04:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119059,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:04:19]free response buf [12:04:19]execute_script done [12:04:19]execute_script returns [12:04:19]free content buf [12:04:19]Sock 12.Close socket [12:04:19]Sock 12.Thread stoped [12:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 94 C5 47 00 0D 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 13 D1 01 00 F4 03 04 00 57 84 A8 66 B6 04 01 00 00 63 A4 C0 92 D9 BE 08 67 [12:04:20]CommunicateWithHost err = 0 [12:04:20]CheckOFDResponse [12:04:20]1017 (14) - 77093643461234 [12:04:20]1041 (16) - 0000000000874939 [12:04:20]1040 (4) - 119059 [12:04:20]1012 (4) - 30.07.2024 06:12 [12:04:20]1206 (1) - 0 [12:04:20]OFD Sender: Remove packet 119059 [12:04:20]ProducePacketName [12:04:20]name=ofd_packets/00119059 [12:04:20]NVStorageDeleteData [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:22]accept exits with 9 [12:05:22]New connection [12:05:22]New thread 3067383140 created [12:05:22]Thread 3067239780 joined [12:05:22]Waiting for new connection... [12:05:22] Sock 9.Parse request [12:05:22]Sock 9.Check first char [12:05:22]Sock 9.First char is OK [12:05:22]request: POST /json_proto HTTP/1.0 [12:05:22]Method: POST [12:05:22]URL: /json_proto [12:05:22]Method is POST - this is cgi request [12:05:22]url: /json_proto [12:05:22]query_string will be loaded in cgi processing [12:05:22]execute_cgi json_proto POST (null) [12:05:22]execute_cgi path=json_proto method=POST [12:05:22]POST find Content-Length [12:05:22]Host: 172.17.45.7:8080 [12:05:22]Content-Length: 674 [12:05:22]Content-Type: application/json [12:05:22] [12:05:22]POST finish read [12:05:22]Found Content-Length = 674 [12:05:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:22]execute_script... [12:05: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)949980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:22]POST & json_proto [12:05:22]process_json_proto [12:05:22]json parsed OK: [12:05:22]protocol is kg_v1.0 [12:05:22]action value=close_receipt [12:05:22]process_action close_receipt [12:05:22]cmd_close_receipt [12:05:22]MH_GetDate [12:05:22]Write to MH i2c: F0 00 00 AE AD 4A [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: F0 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: F0 09 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: F0 09 00 AE AD 00 0C D7 A8 66 90 0F 3E 66 87 [12:05:22]GetLastDocTimeStamp 1722341066 [12:05:22]current date 1722341132 [12:05:22]FM_GetShiftState [12:05:22]SAM_PROTO_GetShiftState [12:05:22]wFMCommunicate request_size=4 [12:05:22]MH_SAM_APDU [12:05:22]CAPDU: 80 13 01 00 [12:05:22]Write to MH i2c: E2 08 00 AF AD 80 13 01 00 00 00 00 00 D9 [12:05:22]Write i2c OK [12:05:22]MH_I2C_Read... [12:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:22]Read from MH i2c: E2 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 0E 00 [12:05:22]MH_I2C_Read... [12:05:22]Read from MH i2c: E2 0E 00 AF AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A4 [12:05:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:05:22]wFMCommunicate OK [12:05:22]SAM_PROTO_GetShiftState done [12:05:22]FM_GetShiftState done [12:05:22]opened in 1722298242 [12:05:22]opened+sec_in_day 1722384642 [12:05:22]quantity*price = 40005 [12:05:22]sum+1 = 40006 [12:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 112 30.07.2024 12:05 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119060 ФПД: 147745046689657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T120533&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119060&fm=147745046689657&tin=02508201610067®Number=0000000000092660&sum=40000 [12:05:23]StoreToDocumentArchive [12:05:23]shift 435 fd 119060 [12:05:23]save to /storage/0435/doc_00119060 [12:05:23]save last doc name /storage/0435/doc_00119060 to /storage/kkm_last_doc_name [12:05:23]save OK [12:05:23]Clear old archive folders... [12:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:23]tlvbuf is 02086090 [12:05:23]SAM_PROTO_ClearQueue [12:05:23]wFMCommunicate request_size=4 [12:05:23]MH_SAM_APDU [12:05:23]CAPDU: 80 09 00 00 [12:05:23]Write to MH i2c: E2 08 00 BC AD 80 09 00 00 00 00 00 00 DB [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:23]Read from MH i2c: E2 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 03 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 03 00 BC AD 00 90 00 DD [12:05:23]RAPDU: 90 00 [12:05:23]wFMCommunicate OK [12:05:23]SAM_PROTO_ClearQueue done [12:05:23]KKMCreateOFDPacket [12:05:23]OFDProtocolAddRootSTLVToBuf [12:05:23]FM_MakeSignedData [12:05:23]FM_MakeSignedData [12:05:23]SAM_PROTO_SignData [12:05:23]wFMCommunicate request_size=4 [12:05:23]MH_SAM_APDU [12:05:23]CAPDU: 80 0D 01 02 [12:05:23]Write to MH i2c: E2 08 00 BD AD 80 0D 01 02 00 00 00 00 E3 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:23]Read from MH i2c: E2 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 03 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 03 00 BD AD 00 90 00 DE [12:05:23]RAPDU: 90 00 [12:05:23]wFMCommunicate OK [12:05:23]wFMCommunicate request_size=255 [12:05:23]MH_SAM_APDU [12:05:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 70 00 00 00 F4 03 04 00 0D D7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D1 01 00 35 04 06 00 86 5F 93 06 [12:05:23]Write to MH i2c: E2 02 01 BE AD 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 70 00 00 00 F4 03 04 00 0D D7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D1 01 00 35 04 06 00 86 5F 93 06 00 00 E0 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 BE AD 00 90 00 DF [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]wFMCommunicate request_size=7 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 02 02 02 77 79 [12:05:24]Write to MH i2c: E2 0A 00 BF AD 80 0D 02 02 02 00 77 79 00 00 DA [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 BF AD 00 90 00 E0 [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 03 02 [12:05:24]Write to MH i2c: E2 08 00 C0 AD 80 0D 03 02 00 00 00 00 E8 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 0B 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 0B 00 C0 AD 00 74 64 A6 E9 29 26 20 39 90 00 F8 [12:05:24]RAPDU: 74 64 A6 E9 29 26 20 39 90 00 [12:05:24]wFMCommunicate OK [12:05:24]SAM_PROTO_SignData done [12:05:24]FM_MakeSignedData done [12:05:24]CreateOFDProtocolMessage [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 11 00 00 [12:05:24]Write to MH i2c: E2 08 00 C1 AD 80 11 00 00 00 00 00 00 E8 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 17 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 17 00 C1 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [12:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:05:24]wFMCommunicate OK [12:05:24]CreateOFDProtocolMessage done [12:05:24]OFDSenderStorePacket 119060 [12:05:24]StoreOFDPacket docnum=119060 [12:05:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7A 7E 04 01 7C 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 70 00 00 00 F4 03 04 00 0D D7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D1 01 00 35 04 06 00 86 5F 93 06 77 79 74 64 A6 E9 29 26 20 39 [12:05:24]CheckFolder [12:05:24]dirname=/storage/ofd_packets [12:05:24]CheckFolder done [12:05:24]ProducePacketName [12:05:24]name=ofd_packets/00119060 [12:05:24]NVStorageSaveData ofd_packets/00119060 [12:05:24]File name is /storage/ofd_packets/00119060 [12:05:24]Write 298 bytes [12:05:24]NVStorageSaveData done [12:05:24]OFDSenderStorePacket done [12:05:24]KKMCreateOFDPacket done [12:05:24]NVStorageSaveData kkm_last_timestamp [12:05:24]File name is /storage/kkm_last_timestamp [12:05:24]Write 4 bytes [12:05:24]NVStorageSaveData done [12:05:24]ExternCall_PrintAddStr [12:05:24]wPrintStart [12:05:24]Write to MH i2c: 01 00 00 C2 AD 6F [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 07 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 07 00 C2 AD 00 00 00 00 00 FF 0F 84 [12:05:24]RasterBufferAndPrint [12:05:24]line Счет N : (1)949980 [12:05:24]line ИНН: 02508201610067 [12:05:24]line Контрольно-Кассовый Чек [12:05:24]line ПРОДАЖА [12:05:24]line ТРК (МРК, ГНК) : 44 [12:05:24]line Товар: 2710194800 [12:05:24]line ДТ-К-5 [12:05:24]line 5.250 * 76.20 [12:05:24]line = 400.05 [12:05:24]line НДС 12% НСП 1% [12:05:24]line > о реализуемом товаре [12:05:24]line ОКРУГЛЕНИЕ: -0.05 [12:05:24]line ИТОГО: 400.00 [12:05:24]line Внесено: 400.00 [12:05:24]line СДАЧА: 0.00 [12:05:24]line НСП 1% : 3.54 [12:05:24]line НДС 12% : 42.48 [12:05:24]line Наличными: 400.00 [12:05:24]line Безнал.: 0.00 [12:05:24]line Место: АЗС № 134 "Партнер Нефть" [12:05:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:05:24]line СНО: Общий режим [12:05:24]line Чек 112 30.07.2024 12:05 [12:05:24]line Смена: 435 ФФД: 1.0 [12:05:24]line ЗНМ: 0300000044 [12:05:24]line РНМ: 0000000000092660 [12:05:24]line Версия ККМ: 001 [12:05:24]line ФМ: 0000000000874939 [12:05:24]line ФД: 119060 [12:05:24]line ФПД: 147745046689657 [12:05:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T120533&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119060&fm=147745046689657&tin=02508201610067®Number=0000000000092660&sum=40000 [12:05:24]OFD Sender: Processing packet 119060 [packets to send 86, broken 85] [12:05:24]ProducePacketName [12:05:24]name=ofd_packets/00119060 [12:05:24]OFD Sender: To server: pG, [12:05:24]CommunicateWithHost lk.salyk.kg:30040 [12:05:24]ConnectInit lk.salyk.kg [12:05:24]written 0, free lines is 4095 [12:05:24]Write to MH i2c: 01 00 00 EC AD 99 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 07 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: 01 07 00 EC AD 00 00 00 00 00 D8 0C 84 [12:05:24]RasterBufferAndPrint [12:05:24]line [12:05:24]line [12:05:24]line [12:05:24]line [12:05:24]line [12:05:24]written 0, free lines is 3295 [12:05:24]MH_Cut [12:05:24]Write to MH i2c: D1 01 00 F3 AD 01 72 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: D1 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: D1 01 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: D1 01 00 F3 AD 00 71 [12:05:24]Write to MH i2c: 01 00 00 F4 AD A1 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:25]*** Cut start [12:05:25]*** Partial cut [12:05:25]*** CUTSNS_PIN = 1 [12:05:25]*** CUTSNS_PIN = 0 [12:05:25]*** Brake cut motor [12:05:26]Read from MH i2c: 01 [12:05:26]MH_I2C_Read... [12:05:26]*** Stop cut motor [12:05:26]*** Cut end [12:05:26]Read from MH i2c: 01 07 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 F4 AD 00 00 00 00 00 FF 0F B6 [12:05:26]process_action close_receipt done [12:05:26]requested_data is exist [12:05:26]produce_requested_data [12:05:26]requested_item fm.sn is exist - process it [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 11 00 00 [12:05:26]Write to MH i2c: E2 08 00 F5 AD 80 11 00 00 00 00 00 00 1C [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 17 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 17 00 F5 AD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [12:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:05:26]wFMCommunicate OK [12:05:26]requested_item fd.num is exist - process it [12:05:26]SAM_PROTO_GetFieldsCounters [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 13 00 00 [12:05:26]Write to MH i2c: E2 08 00 F6 AD 80 13 00 00 00 00 00 00 1F [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:26]Read from MH i2c: E2 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 62 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 62 00 F6 AD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [12:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 14 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:26]wFMCommunicate OK [12:05:26]SAM_PROTO_GetFieldsCounters done [12:05:26]requested_item shift.num is exist - process it [12:05:26]requested_item shift.opened is exist - process it [12:05:26]req_shift_opened [12:05:26]FM_GetShiftState [12:05:26]SAM_PROTO_GetShiftState [12:05:26]wFMCommunicate request_size=4 [12:05:26]MH_SAM_APDU [12:05:26]CAPDU: 80 13 01 00 [12:05:26]Write to MH i2c: E2 08 00 F7 AD 80 13 01 00 00 00 00 00 21 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:26] [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 0E 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: E2 0E 00 F7 AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EC [12:05:26]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:05:26]wFMCommunicate OK [12:05:26]SAM_PROTO_GetShiftState done [12:05:26]FM_GetShiftState done [12:05:26]req_shift_opened done [12:05:26]requested_item shift.open_date is exist - process it [12:05:26]req_shift_open_date [12:05:26]req_shift_open_date done [12:05:26]produce_requested_data done [12:05:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119060,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:05:26]process_action_free close_receipt [12:05:26]json_value_free [12:05:26]json_value_free done [12:05:26]process_json_proto returns [12:05:26]Send response to host [12:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119060,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:05:26]free response buf [12:05:26]execute_script done [12:05:26]execute_script returns [12:05:26]free content buf [12:05:26]Sock 9.Close socket [12:05:26]Sock 9.Thread stoped [12:05:28]Connected sock=11 [12:05:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7A 7E 04 01 7C 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 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 70 00 00 00 F4 03 04 00 0D D7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D1 01 00 35 04 06 00 86 5F 93 06 77 79 74 64 A6 E9 29 26 20 39 [12:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 48 54 47 00 64 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 14 D1 01 00 F4 03 04 00 9B 84 A8 66 B6 04 01 00 00 A0 A6 7F 3F 02 53 64 59 [12:05:28]CommunicateWithHost err = 0 [12:05:28]CheckOFDResponse [12:05:28]1017 (14) - 77093643461234 [12:05:28]1041 (16) - 0000000000874939 [12:05:28]1040 (4) - 119060 [12:05:28]1012 (4) - 30.07.2024 06:13 [12:05:28]1206 (1) - 0 [12:05:28]OFD Sender: Remove packet 119060 [12:05:28]ProducePacketName [12:05:28]name=ofd_packets/00119060 [12:05:28]NVStorageDeleteData [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:35]recv_with_timeout no data received [12:07:37]accept exits with 10 [12:07:37]New connection [12:07:37]New thread 3067239780 created [12:07:37]Thread 3067383140 joined [12:07:37]Waiting for new connection... [12:07:37] Sock 10.Parse request [12:07:37]Sock 10.Check first char [12:07:37]Sock 10.First char is OK [12:07:37]request: POST /json_proto HTTP/1.0 [12:07:37]Method: POST [12:07:37]URL: /json_proto [12:07:37]Method is POST - this is cgi request [12:07:37]url: /json_proto [12:07:37]query_string will be loaded in cgi processing [12:07:37]execute_cgi json_proto POST (null) [12:07:37]execute_cgi path=json_proto method=POST [12:07:37]POST find Content-Length [12:07:37]Host: 172.17.45.7:8080 [12:07:37]Content-Length: 677 [12:07:37]Content-Type: application/json [12:07:37] [12:07:37]POST finish read [12:07:37]Found Content-Length = 677 [12:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:37]execute_script... [12:07: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)949981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:37]POST & json_proto [12:07:37]process_json_proto [12:07:37]json parsed OK: [12:07:37]protocol is kg_v1.0 [12:07:37]action value=close_receipt [12:07:37]process_action close_receipt [12:07:37]cmd_close_receipt [12:07:37]MH_GetDate [12:07:37]Write to MH i2c: F0 00 00 F8 AD 94 [12:07:37]Write i2c OK [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: F0 [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: F0 09 00 [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: F0 09 00 F8 AD 00 94 D7 A8 66 90 0F 3E 66 59 [12:07:37]GetLastDocTimeStamp 1722341133 [12:07:37]current date 1722341268 [12:07:37]FM_GetShiftState [12:07:37]SAM_PROTO_GetShiftState [12:07:37]wFMCommunicate request_size=4 [12:07:37]MH_SAM_APDU [12:07:37]CAPDU: 80 13 01 00 [12:07:37]Write to MH i2c: E2 08 00 F9 AD 80 13 01 00 00 00 00 00 23 [12:07:37]Write i2c OK [12:07:37]MH_I2C_Read... [12:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:37]Read from MH i2c: E2 [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: E2 0E 00 [12:07:37]MH_I2C_Read... [12:07:37]Read from MH i2c: E2 0E 00 F9 AD 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EE [12:07:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:07:37]wFMCommunicate OK [12:07:37]SAM_PROTO_GetShiftState done [12:07:37]FM_GetShiftState done [12:07:37]opened in 1722298242 [12:07:37]opened+sec_in_day 1722384642 [12:07:37]quantity*price = 50036 [12:07:37]sum+1 = 50037 [12:07:37]Check (price>sum+1) || (price+1 о реализуемом товаре [12:10:15]line ОКРУГЛЕНИЕ: -0.36 [12:10:15]line ИТОГО: 500.00 [12:10:15]line Внесено: 500.00 [12:10:15]line СДАЧА: 0.00 [12:10:15]line НСП 1% : 4.43 [12:10:15]line НДС 12% : 53.14 [12:10:15]line Наличными: 500.00 [12:10:15]line Безнал.: 0.00 [12:10:15]line Место: АЗС № 134 "Партнер Нефть" [12:10:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:10:15]line СНО: Общий режим [12:10:15]line Чек 113 30.07.2024 12:07 [12:10:15]line Смена: 435 ФФД: 1.0 [12:10:15]line ЗНМ: 0300000044 [12:10:15]line РНМ: 0000000000092660 [12:10:15]line Версия ККМ: 001 [12:10:15]line ФМ: 0000000000874939 [12:10:15]line ФД: 119061 [12:10:15]line ФПД: 168397375504601 [12:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T120748&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119061&fm=168397375504601&tin=02508201610067®Number=0000000000092660&sum=50000 [12:10:15]written 0, free lines is 4095 [12:10:15]Write to MH i2c: 01 00 00 47 00 47 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 07 00 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 E7 0C 41 [12:10:15]RasterBufferAndPrint [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]written 0, free lines is 3315 [12:10:15]MH_Cut [12:10:15]Write to MH i2c: D1 01 00 4E 00 01 20 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 01 00 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 01 00 4E 00 00 1F [12:10:15]Write to MH i2c: 01 00 00 4F 00 4F [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:16]*** Cut start [12:10:16]*** Partial cut [12:10:16]*** CUTSNS_PIN = 1 [12:10:16]*** CUTSNS_PIN = 0 [12:10:16]OFD Sender: No OFD packet to send [12:10:16]*** Brake cut motor [12:10:16]Read from MH i2c: 01 [12:10:16]MH_I2C_Read... [12:10:16]*** Stop cut motor [12:10:16]*** Cut end [12:10:16]Read from MH i2c: 01 07 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [12:10:16]process_action print_doc done [12:10:16]requested_data is exist [12:10:16]produce_requested_data [12:10:16]produce_requested_data return (null) [12:10:16]process_action_free print_doc [12:10:16]json_value_free [12:10:16]json_value_free done [12:10:16]process_json_proto returns [12:10:16]Send response to host [12:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [12:10:16]free response buf [12:10:16]execute_script done [12:10:16]execute_script returns [12:10:16]free content buf [12:10:16]Sock 9.Close socket [12:10:16]Sock 9.Thread stoped [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:09]recv_with_timeout no data received [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:19]recv_with_timeout no data received [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:14]recv_with_timeout no data received [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:16:41]ConnectInit Can't connect to host [12:16:42]ConnectInit Can't take IP for lk.salyk.kg [12:16:42]CommunicateWithHost connect error [12:16:42]CommunicateWithHost err = -1 [12:16:42]OFD Sender: Server communicate error [12:16:47]OFD Sender: Processing packet 119062 [packets to send 86, broken 85] [12:16:47]ProducePacketName [12:16:47]name=ofd_packets/00119062 [12:16:47]OFD Sender: To server: pG, [12:16:47]CommunicateWithHost lk.salyk.kg:30040 [12:16:47]ConnectInit lk.salyk.kg [12:16:49]Connected sock=7 [12:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C 22 07 01 25 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5E D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D1 01 00 35 04 06 00 61 C6 D8 70 1B 24 DF 3C AF BA 1F C3 98 CF [12:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E 4B 47 00 10 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 16 D1 01 00 F4 03 04 00 3B 87 A8 66 B6 04 01 00 00 AB 5F 0F FD 3C 92 2C 82 [12:16:50]CommunicateWithHost err = 0 [12:16:50]CheckOFDResponse [12:16:50]1017 (14) - 77093643461234 [12:16:50]1041 (16) - 0000000000874939 [12:16:50]1040 (4) - 119062 [12:16:50]1012 (4) - 30.07.2024 06:24 [12:16:50]1206 (1) - 0 [12:16:50]OFD Sender: Remove packet 119062 [12:16:50]ProducePacketName [12:16:50]name=ofd_packets/00119062 [12:16:50]NVStorageDeleteData [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]accept exits with 9 [12:17:05]New connection [12:17:05]New thread 3066989924 created [12:17:05]Thread 3066846564 joined [12:17:05]Waiting for new connection... [12:17:05] Sock 9.Parse request [12:17:05]Sock 9.Check first char [12:17:05]Sock 9.First char is OK [12:17:05]request: POST /json_proto HTTP/1.0 [12:17:05]Method: POST [12:17:05]URL: /json_proto [12:17:05]Method is POST - this is cgi request [12:17:05]url: /json_proto [12:17:05]query_string will be loaded in cgi processing [12:17:05]execute_cgi json_proto POST (null) [12:17:05]execute_cgi path=json_proto method=POST [12:17:05]POST find Content-Length [12:17:05]Host: 172.17.45.7:8080 [12:17:05]Content-Length: 678 [12:17:05]Content-Type: application/json [12:17:05] [12:17:05]POST finish read [12:17:05]Found Content-Length = 678 [12:17:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [12:17:05]execute_script... [12:17: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)949983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [12:17:05]POST & json_proto [12:17:05]process_json_proto [12:17:05]json parsed OK: [12:17:05]protocol is kg_v1.0 [12:17:05]action value=close_receipt [12:17:05]process_action close_receipt [12:17:05]cmd_close_receipt [12:17:05]MH_GetDate [12:17:05]Write to MH i2c: F0 00 00 9A 00 89 [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: F0 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: F0 09 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: F0 09 00 9A 00 00 C1 D9 A8 66 90 0F 3E 66 7D [12:17:05]GetLastDocTimeStamp 1722341726 [12:17:05]current date 1722341825 [12:17:05]FM_GetShiftState [12:17:05]SAM_PROTO_GetShiftState [12:17:05]wFMCommunicate request_size=4 [12:17:05]MH_SAM_APDU [12:17:05]CAPDU: 80 13 01 00 [12:17:05]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [12:17:05]Write i2c OK [12:17:05]MH_I2C_Read... [12:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:05]Read from MH i2c: E2 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 0E 00 [12:17:05]MH_I2C_Read... [12:17:05]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [12:17:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:17:05]wFMCommunicate OK [12:17:05]SAM_PROTO_GetShiftState done [12:17:05]FM_GetShiftState done [12:17:05]opened in 1722298242 [12:17:05]opened+sec_in_day 1722384642 [12:17:05]quantity*price = 70037 [12:17:05]sum+1 = 70038 [12:17:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 115 30.07.2024 12:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119063 ФПД: 218472170441079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T121705&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119063&fm=218472170441079&tin=02508201610067®Number=0000000000092660&sum=70000 [12:17:06]StoreToDocumentArchive [12:17:06]shift 435 fd 119063 [12:17:06]save to /storage/0435/doc_00119063 [12:17:06]save last doc name /storage/0435/doc_00119063 to /storage/kkm_last_doc_name [12:17:06]save OK [12:17:06]Clear old archive folders... [12:17:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:06]tlvbuf is 014CD4B0 [12:17:06]SAM_PROTO_ClearQueue [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 09 00 00 [12:17:06]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]SAM_PROTO_ClearQueue done [12:17:06]KKMCreateOFDPacket [12:17:06]OFDProtocolAddRootSTLVToBuf [12:17:06]FM_MakeSignedData [12:17:06]FM_MakeSignedData [12:17:06]SAM_PROTO_SignData [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 01 02 [12:17:06]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]wFMCommunicate request_size=255 [12:17:06]MH_SAM_APDU [12:17: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 00 00 00 F4 03 04 00 C1 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D1 01 00 35 04 06 00 C6 [12:17:06]Write to MH i2c: E2 02 01 AA 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 00 00 00 F4 03 04 00 C1 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D1 01 00 35 04 06 00 C6 00 00 0B [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]wFMCommunicate request_size=10 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 02 02 05 B3 04 1C C9 77 [12:17:06]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 B3 04 1C C9 77 00 00 42 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [12:17:06]RAPDU: 90 00 [12:17:06]wFMCommunicate OK [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 0D 03 02 [12:17:06]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0B 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0B 00 AC 00 00 32 34 90 5C CF 11 C5 32 90 00 51 [12:17:06]RAPDU: 32 34 90 5C CF 11 C5 32 90 00 [12:17:06]wFMCommunicate OK [12:17:06]SAM_PROTO_SignData done [12:17:06]FM_MakeSignedData done [12:17:06]CreateOFDProtocolMessage [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 11 00 00 [12:17:06]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 17 00 [12:17:06]MH_I2C_Read... [12:17:06]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 34 39 33 39 90 00 82 [12:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:17:06]wFMCommunicate OK [12:17:06]CreateOFDProtocolMessage done [12:17:06]OFDSenderStorePacket 119063 [12:17:06]StoreOFDPacket docnum=119063 [12:17:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0F C1 07 01 83 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 00 00 00 F4 03 04 00 C1 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D1 01 00 35 04 06 00 C6 B3 04 1C C9 77 32 34 90 5C CF 11 C5 32 [12:17:06]CheckFolder [12:17:06]dirname=/storage/ofd_packets [12:17:06]CheckFolder done [12:17:06]ProducePacketName [12:17:06]name=ofd_packets/00119063 [12:17:06]NVStorageSaveData ofd_packets/00119063 [12:17:06]File name is /storage/ofd_packets/00119063 [12:17:07]Write 301 bytes [12:17:07]NVStorageSaveData done [12:17:07]OFDSenderStorePacket done [12:17:07]KKMCreateOFDPacket done [12:17:07]NVStorageSaveData kkm_last_timestamp [12:17:07]File name is /storage/kkm_last_timestamp [12:17:07]Write 4 bytes [12:17:07]NVStorageSaveData done [12:17:07]ExternCall_PrintAddStr [12:17:07]wPrintStart [12:17:07]Write to MH i2c: 01 00 00 AE 00 AE [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [12:17:07]RasterBufferAndPrint [12:17:07]line Счет N : (1)949983 [12:17:07]line ИНН: 02508201610067 [12:17:07]line Контрольно-Кассовый Чек [12:17:07]line ПРОДАЖА [12:17:07]line ТРК (МРК, ГНК) : 31 [12:17:07]line Товар: 2710124130 [12:17:07]line Аи-92-К-4 [12:17:07]line 10.330 * 67.80 [12:17:07]line = 700.37 [12:17:07]line НДС 12% НСП 1% [12:17:07]line > о реализуемом товаре [12:17:07]line ОКРУГЛЕНИЕ: -0.37 [12:17:07]line ИТОГО: 700.00 [12:17:07]line Внесено: 700.00 [12:17:07]line СДАЧА: 0.00 [12:17:07]line НСП 1% : 6.20 [12:17:07]line НДС 12% : 74.38 [12:17:07]line Наличными: 700.00 [12:17:07]line Безнал.: 0.00 [12:17:07]line Место: АЗС № 134 "Партнер Нефть" [12:17:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:17:07]line СНО: Общий режим [12:17:07]line Чек 115 30.07.2024 12:17 [12:17:07]line Смена: 435 ФФД: 1.0 [12:17:07]line ЗНМ: 0300000044 [12:17:07]line РНМ: 0000000000092660 [12:17:07]line Версия ККМ: 001 [12:17:07]line ФМ: 0000000000874939 [12:17:07]line ФД: 119063 [12:17:07]line ФПД: 218472170441079 [12:17:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T121705&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119063&fm=218472170441079&tin=02508201610067®Number=0000000000092660&sum=70000 [12:17:07]OFD Sender: Processing packet 119063 [packets to send 86, broken 85] [12:17:07]ProducePacketName [12:17:07]name=ofd_packets/00119063 [12:17:07]OFD Sender: To server: pG, [12:17:07]CommunicateWithHost lk.salyk.kg:30040 [12:17:07]ConnectInit lk.salyk.kg [12:17:07]written 0, free lines is 4095 [12:17:07]Write to MH i2c: 01 00 00 D8 00 D8 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 DC 0C C7 [12:17:07]RasterBufferAndPrint [12:17:07]line [12:17:07]line [12:17:07]line [12:17:07]line [12:17:07]line [12:17:07]written 0, free lines is 3299 [12:17:07]MH_Cut [12:17:07]Write to MH i2c: D1 01 00 DF 00 01 B1 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: D1 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: D1 01 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: D1 01 00 DF 00 00 B0 [12:17:07]Write to MH i2c: 01 00 00 E0 00 E0 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]Connected sock=10 [12:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0F C1 07 01 83 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 73 00 00 00 F4 03 04 00 C1 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D1 01 00 35 04 06 00 C6 B3 04 1C C9 77 32 34 90 5C CF 11 C5 32 [12:17:08]*** Cut start [12:17:08]*** Partial cut [12:17:08]*** CUTSNS_PIN = 1 [12:17:08]*** CUTSNS_PIN = 0 [12:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B2 5E 47 00 2D D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 17 D1 01 00 F4 03 04 00 4E 87 A8 66 B6 04 01 00 00 44 E2 73 D9 55 3F 69 DA [12:17:08]CommunicateWithHost err = 0 [12:17:08]CheckOFDResponse [12:17:08]1017 (14) - 77093643461234 [12:17:08]1041 (16) - 0000000000874939 [12:17:08]1040 (4) - 119063 [12:17:08]1012 (4) - 30.07.2024 06:25 [12:17:08]1206 (1) - 0 [12:17:08]OFD Sender: Remove packet 119063 [12:17:08]ProducePacketName [12:17:08]name=ofd_packets/00119063 [12:17:08]NVStorageDeleteData [12:17:08]*** Brake cut motor [12:17:09]Read from MH i2c: 01 [12:17:09]MH_I2C_Read... [12:17:09]*** Stop cut motor [12:17:09]*** Cut end [12:17:09]Read from MH i2c: 01 07 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [12:17:09]process_action close_receipt done [12:17:09]requested_data is exist [12:17:09]produce_requested_data [12:17:09]requested_item fm.sn is exist - process it [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 11 00 00 [12:17:09]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 17 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [12:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:17:09]wFMCommunicate OK [12:17:09]requested_item fd.num is exist - process it [12:17:09]SAM_PROTO_GetFieldsCounters [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 00 00 [12:17:09]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]OFD Sender: No OFD packet to send [12:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 62 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 62 00 E2 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [12:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 17 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_GetFieldsCounters done [12:17:09]requested_item shift.num is exist - process it [12:17:09]requested_item shift.opened is exist - process it [12:17:09]req_shift_opened [12:17:09]FM_GetShiftState [12:17:09]SAM_PROTO_GetShiftState [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 01 00 [12:17:09]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2B [12:17:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_GetShiftState done [12:17:09]FM_GetShiftState done [12:17:09]req_shift_opened done [12:17:09]requested_item shift.open_date is exist - process it [12:17:09]req_shift_open_date [12:17:09]req_shift_open_date done [12:17:09]produce_requested_data done [12:17:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119063,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:17:09]process_action_free close_receipt [12:17:09]json_value_free [12:17:09]json_value_free done [12:17:09]process_json_proto returns [12:17:09]Send response to host [12:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119063,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:17:09]free response buf [12:17:09]execute_script done [12:17:09]execute_script returns [12:17:09]free content buf [12:17:09]Sock 9.Close socket [12:17:09]Sock 9.Thread stoped [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:55]accept exits with 7 [12:17:55]New connection [12:17:55]New thread 3066846564 created [12:17:55]Thread 3066989924 joined [12:17:55]Waiting for new connection... [12:17:55] Sock 7.Parse request [12:17:55]Sock 7.Check first char [12:17:55]Sock 7.First char is OK [12:17:55]request: POST /json_proto HTTP/1.0 [12:17:55]Method: POST [12:17:55]URL: /json_proto [12:17:55]Method is POST - this is cgi request [12:17:55]url: /json_proto [12:17:55]query_string will be loaded in cgi processing [12:17:55]execute_cgi json_proto POST (null) [12:17:55]execute_cgi path=json_proto method=POST [12:17:55]POST find Content-Length [12:17:55]Host: 172.17.45.7:8080 [12:17:55]Content-Length: 677 [12:17:55]Content-Type: application/json [12:17:55] [12:17:55]POST finish read [12:17:55]Found Content-Length = 677 [12:17:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:55]execute_script... [12:17: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)949984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:55]POST & json_proto [12:17:55]process_json_proto [12:17:55]json parsed OK: [12:17:55]protocol is kg_v1.0 [12:17:55]action value=close_receipt [12:17:55]process_action close_receipt [12:17:55]cmd_close_receipt [12:17:55]MH_GetDate [12:17:55]Write to MH i2c: F0 00 00 E4 00 D3 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 09 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: F0 09 00 E4 00 00 F4 D9 A8 66 90 0F 3E 66 FA [12:17:55]GetLastDocTimeStamp 1722341825 [12:17:55]current date 1722341876 [12:17:55]FM_GetShiftState [12:17:55]SAM_PROTO_GetShiftState [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 13 01 00 [12:17:55]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2D [12:17:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_GetShiftState done [12:17:55]FM_GetShiftState done [12:17:55]opened in 1722298242 [12:17:55]opened+sec_in_day 1722384642 [12:17:55]quantity*price = 40068 [12:17:55]sum+1 = 40069 [12:17:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 116 30.07.2024 12:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119064 ФПД: 49315879489917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T121756&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119064&fm=49315879489917&tin=02508201610067®Number=0000000000092660&sum=40000 [12:17:57]StoreToDocumentArchive [12:17:57]shift 435 fd 119064 [12:17:57]save to /storage/0435/doc_00119064 [12:17:57]save last doc name /storage/0435/doc_00119064 to /storage/kkm_last_doc_name [12:17:57]save OK [12:17:57]Clear old archive folders... [12:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:57]tlvbuf is 014CE950 [12:17:57]SAM_PROTO_ClearQueue [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 09 00 00 [12:17:57]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]SAM_PROTO_ClearQueue done [12:17:57]KKMCreateOFDPacket [12:17:57]OFDProtocolAddRootSTLVToBuf [12:17:57]FM_MakeSignedData [12:17:57]FM_MakeSignedData [12:17:57]SAM_PROTO_SignData [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 01 02 [12:17:57]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=255 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F4 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D1 01 00 35 04 06 00 2C [12:17:57]Write to MH i2c: E2 02 01 F4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F4 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D1 01 00 35 04 06 00 2C 00 00 C7 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=10 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 02 02 05 DA 3F 7A 91 7D [12:17:57]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 DA 3F 7A 91 7D 00 00 1A [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [12:17:57]RAPDU: 90 00 [12:17:57]wFMCommunicate OK [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 0D 03 02 [12:17:57]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0B 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 0B 00 F6 00 00 2F EA 37 D7 2D 5E F2 14 90 00 2A [12:17:57]RAPDU: 2F EA 37 D7 2D 5E F2 14 90 00 [12:17:57]wFMCommunicate OK [12:17:57]SAM_PROTO_SignData done [12:17:57]FM_MakeSignedData done [12:17:57]CreateOFDProtocolMessage [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 11 00 00 [12:17:57]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 [12:17:57]MH_I2C_Read... [12:17:57]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 34 39 33 39 90 00 CC [12:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:17:57]wFMCommunicate OK [12:17:57]CreateOFDProtocolMessage done [12:17:57]OFDSenderStorePacket 119064 [12:17:57]StoreOFDPacket docnum=119064 [12:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8B 2C 07 01 FF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F4 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D1 01 00 35 04 06 00 2C DA 3F 7A 91 7D 2F EA 37 D7 2D 5E F2 14 [12:17:57]CheckFolder [12:17:57]dirname=/storage/ofd_packets [12:17:57]CheckFolder done [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00119064 [12:17:57]NVStorageSaveData ofd_packets/00119064 [12:17:57]File name is /storage/ofd_packets/00119064 [12:17:57]Write 301 bytes [12:17:57]NVStorageSaveData done [12:17:57]OFDSenderStorePacket done [12:17:57]KKMCreateOFDPacket done [12:17:57]NVStorageSaveData kkm_last_timestamp [12:17:57]File name is /storage/kkm_last_timestamp [12:17:57]Write 4 bytes [12:17:57]NVStorageSaveData done [12:17:57]ExternCall_PrintAddStr [12:17:57]wPrintStart [12:17:57]Write to MH i2c: 01 00 00 F8 00 F8 [12:17:57]OFD Sender: Processing packet 119064 [packets to send 86, broken 85] [12:17:57]ProducePacketName [12:17:57]name=ofd_packets/00119064 [12:17:57]OFD Sender: To server: pG, [12:17:57]CommunicateWithHost lk.salyk.kg:30040 [12:17:57]ConnectInit lk.salyk.kg [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [12:17:57]RasterBufferAndPrint [12:17:57]line Счет N : (1)949984 [12:17:57]line ИНН: 02508201610067 [12:17:57]line Контрольно-Кассовый Чек [12:17:57]line ПРОДАЖА [12:17:57]line ТРК (МРК, ГНК) : 33 [12:17:57]line Товар: 2710124500 [12:17:57]line Аи-95-К-3 [12:17:57]line 5.400 * 74.20 [12:17:57]line = 400.68 [12:17:57]line НДС 12% НСП 1% [12:17:57]line > о реализуемом товаре [12:17:57]line ОКРУГЛЕНИЕ: -0.68 [12:17:57]line ИТОГО: 400.00 [12:17:57]line Внесено: 400.00 [12:17:57]line СДАЧА: 0.00 [12:17:57]line НСП 1% : 3.55 [12:17:57]line НДС 12% : 42.55 [12:17:57]line Наличными: 400.00 [12:17:57]line Безнал.: 0.00 [12:17:57]line Место: АЗС № 134 "Партнер Нефть" [12:17:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:17:57]line СНО: Общий режим [12:17:57]line Чек 116 30.07.2024 12:17 [12:17:57]line Смена: 435 ФФД: 1.0 [12:17:57]line ЗНМ: 0300000044 [12:17:57]line РНМ: 0000000000092660 [12:17:57]line Версия ККМ: 001 [12:17:57]line ФМ: 0000000000874939 [12:17:57]line ФД: 119064 [12:17:57]line ФПД: 49315879489917 [12:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T121756&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119064&fm=49315879489917&tin=02508201610067®Number=0000000000092660&sum=40000 [12:17:57]written 0, free lines is 4095 [12:17:58]Write to MH i2c: 01 00 00 22 01 23 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 DD 0C 13 [12:17:58]RasterBufferAndPrint [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]line [12:17:58]written 0, free lines is 3300 [12:17:58]MH_Cut [12:17:58]Write to MH i2c: D1 01 00 29 01 01 FC [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 01 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: D1 01 00 29 01 00 FB [12:17:58]Write to MH i2c: 01 00 00 2A 01 2B [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** Cut start [12:17:58]*** Partial cut [12:17:58]*** CUTSNS_PIN = 1 [12:17:58]*** CUTSNS_PIN = 0 [12:17:59]*** Brake cut motor [12:17:59]Read from MH i2c: 01 [12:17:59]MH_I2C_Read... [12:17:59]*** Stop cut motor [12:17:59]*** Cut end [12:17:59]Read from MH i2c: 01 07 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: 01 07 00 2A 01 00 00 00 00 00 FF 0F 40 [12:17:59]process_action close_receipt done [12:17:59]requested_data is exist [12:17:59]produce_requested_data [12:17:59]requested_item fm.sn is exist - process it [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 11 00 00 [12:17:59]Write to MH i2c: E2 08 00 2B 01 80 11 00 00 00 00 00 00 A6 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 17 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 17 00 2B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [12:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:17:59]wFMCommunicate OK [12:17:59]requested_item fd.num is exist - process it [12:17:59]SAM_PROTO_GetFieldsCounters [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 13 00 00 [12:17:59]Write to MH i2c: E2 08 00 2C 01 80 13 00 00 00 00 00 00 A9 [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 62 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 62 00 2C 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:17:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 18 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_GetFieldsCounters done [12:17:59]requested_item shift.num is exist - process it [12:17:59]requested_item shift.opened is exist - process it [12:17:59]req_shift_opened [12:17:59]FM_GetShiftState [12:17:59]SAM_PROTO_GetShiftState [12:17:59]wFMCommunicate request_size=4 [12:17:59]MH_SAM_APDU [12:17:59]CAPDU: 80 13 01 00 [12:17:59]Write to MH i2c: E2 08 00 2D 01 80 13 01 00 00 00 00 00 AB [12:17:59]Write i2c OK [12:17:59]MH_I2C_Read... [12:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:59]Read from MH i2c: E2 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0E 00 [12:17:59]MH_I2C_Read... [12:17:59]Read from MH i2c: E2 0E 00 2D 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 76 [12:17:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:17:59]wFMCommunicate OK [12:17:59]SAM_PROTO_GetShiftState done [12:17:59]FM_GetShiftState done [12:17:59]req_shift_opened done [12:17:59]requested_item shift.open_date is exist - process it [12:17:59]req_shift_open_date [12:17:59]req_shift_open_date done [12:17:59]produce_requested_data done [12:17:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119064,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:17:59]process_action_free close_receipt [12:17:59]json_value_free [12:17:59]json_value_free done [12:17:59]process_json_proto returns [12:17:59]Send response to host [12:17:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119064,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:17:59]free response buf [12:17:59]execute_script done [12:17:59]execute_script returns [12:17:59]free content buf [12:17:59]Sock 7.Close socket [12:17:59]Sock 7.Thread stoped [12:18:00]Connected sock=9 [12:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 8B 2C 07 01 FF 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 F4 D9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D1 01 00 35 04 06 00 2C DA 3F 7A 91 7D 2F EA 37 D7 2D 5E F2 14 [12:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C 51 47 00 1E 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 18 D1 01 00 F4 03 04 00 82 87 A8 66 B6 04 01 00 00 FB 24 4D 31 DD F2 80 A3 [12:18:01]CommunicateWithHost err = 0 [12:18:01]CheckOFDResponse [12:18:01]1017 (14) - 77093643461234 [12:18:01]1041 (16) - 0000000000874939 [12:18:01]1040 (4) - 119064 [12:18:01]1012 (4) - 30.07.2024 06:26 [12:18:01]1206 (1) - 0 [12:18:01]OFD Sender: Remove packet 119064 [12:18:01]ProducePacketName [12:18:01]name=ofd_packets/00119064 [12:18:01]NVStorageDeleteData [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:34]recv_with_timeout no data received [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:37]accept exits with 10 [12:23:37]New connection [12:23:37]New thread 3066989924 created [12:23:37]Thread 3066846564 joined [12:23:37]Waiting for new connection... [12:23:37] Sock 10.Parse request [12:23:37]Sock 10.Check first char [12:23:37]Sock 10.First char is OK [12:23:37]request: POST /json_proto HTTP/1.0 [12:23:37]Method: POST [12:23:37]URL: /json_proto [12:23:37]Method is POST - this is cgi request [12:23:37]url: /json_proto [12:23:37]query_string will be loaded in cgi processing [12:23:37]execute_cgi json_proto POST (null) [12:23:37]execute_cgi path=json_proto method=POST [12:23:37]POST find Content-Length [12:23:37]Host: 172.17.45.7:8080 [12:23:37]Content-Length: 682 [12:23:37]Content-Type: application/json [12:23:37] [12:23:37]POST finish read [12:23:37]Found Content-Length = 682 [12:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37]execute_script... [12:23: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)949985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37]POST & json_proto [12:23:37]process_json_proto [12:23:37]json parsed OK: [12:23:37]protocol is kg_v1.0 [12:23:37]action value=close_receipt [12:23:37]process_action close_receipt [12:23:37]cmd_close_receipt [12:23:37]MH_GetDate [12:23:37]Write to MH i2c: F0 00 00 2E 01 1E [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: F0 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: F0 09 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: F0 09 00 2E 01 00 49 DB A8 66 90 0F 3E 66 9C [12:23:37]GetLastDocTimeStamp 1722341876 [12:23:37]current date 1722342217 [12:23:37]FM_GetShiftState [12:23:37]SAM_PROTO_GetShiftState [12:23:37]wFMCommunicate request_size=4 [12:23:37]MH_SAM_APDU [12:23:37]CAPDU: 80 13 01 00 [12:23:37]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:37]Read from MH i2c: E2 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 0E 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 78 [12:23:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:23:37]wFMCommunicate OK [12:23:37]SAM_PROTO_GetShiftState done [12:23:37]FM_GetShiftState done [12:23:37]opened in 1722298242 [12:23:37]opened+sec_in_day 1722384642 [12:23:37]quantity*price = 100005 [12:23:37]sum+1 = 100006 [12:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 117 30.07.2024 12:23 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119065 ФПД: 179953938906918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119065&fm=179953938906918&tin=02508201610067®Number=0000000000092660&sum=100000 [12:23:38]StoreToDocumentArchive [12:23:38]shift 435 fd 119065 [12:23:38]save to /storage/0435/doc_00119065 [12:23:38]save last doc name /storage/0435/doc_00119065 to /storage/kkm_last_doc_name [12:23:38]save OK [12:23:38]Clear old archive folders... [12:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:38]tlvbuf is 014CE390 [12:23:38]SAM_PROTO_ClearQueue [12:23:38]wFMCommunicate request_size=4 [12:23:38]MH_SAM_APDU [12:23:38]CAPDU: 80 09 00 00 [12:23:38]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [12:23:38]Write i2c OK [12:23:38]MH_I2C_Read... [12:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:38]Read from MH i2c: E2 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 03 00 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [12:23:38]RAPDU: 90 00 [12:23:38]wFMCommunicate OK [12:23:38]SAM_PROTO_ClearQueue done [12:23:38]KKMCreateOFDPacket [12:23:38]OFDProtocolAddRootSTLVToBuf [12:23:38]FM_MakeSignedData [12:23:38]FM_MakeSignedData [12:23:38]SAM_PROTO_SignData [12:23:38]wFMCommunicate request_size=4 [12:23:38]MH_SAM_APDU [12:23:38]CAPDU: 80 0D 01 02 [12:23:38]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [12:23:38]Write i2c OK [12:23:38]MH_I2C_Read... [12:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:38]Read from MH i2c: E2 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 03 00 [12:23:38]MH_I2C_Read... [12:23:38]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [12:23:38]RAPDU: 90 00 [12:23:38]wFMCommunicate OK [12:23:38]wFMCommunicate request_size=255 [12:23:38]MH_SAM_APDU [12:23: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D1 01 00 35 04 06 00 A3 [12:23:38]Write to MH i2c: E2 02 01 3E 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D1 01 00 35 04 06 00 A3 00 00 B3 [12:23:38]Write i2c OK [12:23:38]MH_I2C_Read... [12:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:39]Read from MH i2c: E2 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 03 00 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [12:23:39]RAPDU: 90 00 [12:23:39]wFMCommunicate OK [12:23:39]wFMCommunicate request_size=10 [12:23:39]MH_SAM_APDU [12:23:39]CAPDU: 80 0D 02 02 05 AA CA 9A BF 26 [12:23:39]Write to MH i2c: E2 0D 00 3F 01 80 0D 02 02 05 00 AA CA 9A BF 26 00 00 B7 [12:23:39]Write i2c OK [12:23:39]MH_I2C_Read... [12:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:39]Read from MH i2c: E2 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 03 00 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [12:23:39]RAPDU: 90 00 [12:23:39]wFMCommunicate OK [12:23:39]wFMCommunicate request_size=4 [12:23:39]MH_SAM_APDU [12:23:39]CAPDU: 80 0D 03 02 [12:23:39]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [12:23:39]Write i2c OK [12:23:39]MH_I2C_Read... [12:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:39]Read from MH i2c: E2 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 0B 00 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 0B 00 40 01 00 6B DF B6 B8 8F 46 C6 26 90 00 36 [12:23:39]RAPDU: 6B DF B6 B8 8F 46 C6 26 90 00 [12:23:39]wFMCommunicate OK [12:23:39]SAM_PROTO_SignData done [12:23:39]FM_MakeSignedData done [12:23:39]CreateOFDProtocolMessage [12:23:39]wFMCommunicate request_size=4 [12:23:39]MH_SAM_APDU [12:23:39]CAPDU: 80 11 00 00 [12:23:39]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [12:23:39]Write i2c OK [12:23:39]MH_I2C_Read... [12:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:39]Read from MH i2c: E2 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: E2 17 00 [12:23:39]MH_I2C_Read... [12:23:39]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 34 39 33 39 90 00 17 [12:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:23:39]wFMCommunicate OK [12:23:39]CreateOFDProtocolMessage done [12:23:39]OFDSenderStorePacket 119065 [12:23:39]StoreOFDPacket docnum=119065 [12:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD 7D 07 01 A1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D1 01 00 35 04 06 00 A3 AA CA 9A BF 26 6B DF B6 B8 8F 46 C6 26 [12:23:39]CheckFolder [12:23:39]dirname=/storage/ofd_packets [12:23:39]CheckFolder done [12:23:39]ProducePacketName [12:23:39]name=ofd_packets/00119065 [12:23:39]NVStorageSaveData ofd_packets/00119065 [12:23:39]File name is /storage/ofd_packets/00119065 [12:23:39]Write 301 bytes [12:23:39]NVStorageSaveData done [12:23:39]OFDSenderStorePacket done [12:23:39]KKMCreateOFDPacket done [12:23:39]NVStorageSaveData kkm_last_timestamp [12:23:39]File name is /storage/kkm_last_timestamp [12:23:39]Write 4 bytes [12:23:39]NVStorageSaveData done [12:23:39]ExternCall_PrintAddStr [12:23:39]wPrintStart [12:23:39]Write to MH i2c: 01 00 00 42 01 43 [12:23:39]Write i2c OK [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: 01 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: 01 07 00 [12:23:39]MH_I2C_Read... [12:23:39]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [12:23:39]RasterBufferAndPrint [12:23:39]line Счет N : (1)949985 [12:23:39]line ИНН: 02508201610067 [12:23:39]line Контрольно-Кассовый Чек [12:23:39]line ПРОДАЖА [12:23:39]line ТРК (МРК, ГНК) : 51 [12:23:39]line Товар: 2710124130 [12:23:39]line Аи-92-К-4 [12:23:39]line 14.750 * 67.80 [12:23:39]line = 1000.05 [12:23:39]line НДС 12% НСП 1% [12:23:39]line > о реализуемом товаре [12:23:39]line ОКРУГЛЕНИЕ: -0.05 [12:23:39]line ИТОГО: 1000.00 [12:23:39]line Внесено: 1000.00 [12:23:39]line СДАЧА: 0.00 [12:23:39]line НСП 1% : 8.85 [12:23:39]line НДС 12% : 106.20 [12:23:39]line Наличными: 1000.00 [12:23:39]line Безнал.: 0.00 [12:23:39]line Место: АЗС № 134 "Партнер Нефть" [12:23:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:23:39]line СНО: Общий режим [12:23:39]line Чек 117 30.07.2024 12:23 [12:23:39]line Смена: 435 ФФД: 1.0 [12:23:39]line ЗНМ: 0300000044 [12:23:39]line РНМ: 0000000000092660 [12:23:39]line Версия ККМ: 001 [12:23:39]line ФМ: 0000000000874939 [12:23:39]line ФД: 119065 [12:23:39]line ФПД: 179953938906918 [12:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122337&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119065&fm=179953938906918&tin=02508201610067®Number=0000000000092660&sum=100000 [12:23:39]OFD Sender: Processing packet 119065 [packets to send 86, broken 85] [12:23:39]ProducePacketName [12:23:39]name=ofd_packets/00119065 [12:23:39]OFD Sender: To server: pG, [12:23:39]CommunicateWithHost lk.salyk.kg:30040 [12:23:39]ConnectInit lk.salyk.kg [12:23:39]written 0, free lines is 4095 [12:23:40]Write to MH i2c: 01 00 00 6C 01 6D [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: 01 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: 01 07 00 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 E3 0C 63 [12:23:40]RasterBufferAndPrint [12:23:40]line [12:23:40]line [12:23:40]line [12:23:40]line [12:23:40]line [12:23:40]written 0, free lines is 3305 [12:23:40]MH_Cut [12:23:40]Write to MH i2c: D1 01 00 73 01 01 46 [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: D1 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: D1 01 00 [12:23:40]MH_I2C_Read... [12:23:40]Read from MH i2c: D1 01 00 73 01 00 45 [12:23:40]Write to MH i2c: 01 00 00 74 01 75 [12:23:40]Write i2c OK [12:23:40]MH_I2C_Read... [12:23:40]*** Cut start [12:23:40]*** Partial cut [12:23:40]*** CUTSNS_PIN = 1 [12:23:40]*** CUTSNS_PIN = 0 [12:23:41]*** Brake cut motor [12:23:41]Read from MH i2c: 01 [12:23:41]MH_I2C_Read... [12:23:41]*** Stop cut motor [12:23:41]*** Cut end [12:23:41]Connected sock=9 [12:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FD 7D 07 01 A1 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 19 D1 01 00 35 04 06 00 A3 AA CA 9A BF 26 6B DF B6 B8 8F 46 C6 26 [12:23:41]Read from MH i2c: 01 07 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [12:23:41]process_action close_receipt done [12:23:41]requested_data is exist [12:23:41]produce_requested_data [12:23:41]requested_item fm.sn is exist - process it [12:23:41]wFMCommunicate request_size=4 [12:23:41]MH_SAM_APDU [12:23:41]CAPDU: 80 11 00 00 [12:23:41]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 17 00 [12:23:41]MH_I2C_Read... [12:23:41]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 34 39 33 39 90 00 4B [12:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:23:41]wFMCommunicate OK [12:23:41]requested_item fd.num is exist - process it [12:23:41]SAM_PROTO_GetFieldsCounters [12:23:41]wFMCommunicate request_size=4 [12:23:41]MH_SAM_APDU [12:23:41]CAPDU: 80 13 00 00 [12:23:41]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 62 00 [12:23:41]MH_I2C_Read... [12:23:41]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [12:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 19 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:41]wFMCommunicate OK [12:23:41]SAM_PROTO_GetFieldsCounters done [12:23:41]requested_item shift.num is exist - process it [12:23:41]requested_item shift.opened is exist - process it [12:23:41]req_shift_opened [12:23:41]FM_GetShiftState [12:23:41]SAM_PROTO_GetShiftState [12:23:41]wFMCommunicate request_size=4 [12:23:41]MH_SAM_APDU [12:23:41]CAPDU: 80 13 01 00 [12:23:41]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [12:23:41]Write i2c OK [12:23:41]MH_I2C_Read... [12:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:41]Read from MH i2c: E2 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 0E 00 [12:23:41]MH_I2C_Read... [12:23:41]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C0 [12:23:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:23:41]wFMCommunicate OK [12:23:41]SAM_PROTO_GetShiftState done [12:23:41]FM_GetShiftState done [12:23:41]req_shift_opened done [12:23:41]requested_item shift.open_date is exist - process it [12:23:41]req_shift_open_date [12:23:41]req_shift_open_date done [12:23:41]produce_requested_data done [12:23:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119065,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:23:41]process_action_free close_receipt [12:23:41]json_value_free [12:23:41]json_value_free done [12:23:41]process_json_proto returns [12:23:41]Send response to host [12:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119065,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:23:41]free response buf [12:23:41]execute_script done [12:23:41]execute_script returns [12:23:41]free content buf [12:23:41]Sock 10.Close socket [12:23:41]Sock 10.Thread stoped [12:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 35 70 47 00 BE 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 34 39 33 39 10 04 04 00 19 D1 01 00 F4 03 04 00 D6 88 A8 66 B6 04 01 00 00 14 BD C9 78 9B FF B7 F3 [12:23:41]CommunicateWithHost err = 0 [12:23:41]CheckOFDResponse [12:23:41]1017 (14) - 77093643461234 [12:23:41]1041 (16) - 0000000000874939 [12:23:41]1040 (4) - 119065 [12:23:41]1012 (4) - 30.07.2024 06:31 [12:23:41]1206 (1) - 0 [12:23:41]OFD Sender: Remove packet 119065 [12:23:41]ProducePacketName [12:23:41]name=ofd_packets/00119065 [12:23:41]NVStorageDeleteData [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:23:59]accept exits with 7 [12:23:59]New connection [12:23:59]New thread 3066846564 created [12:23:59]Thread 3066989924 joined [12:23:59]Waiting for new connection... [12:23:59] Sock 7.Parse request [12:23:59]Sock 7.Check first char [12:23:59]Sock 7.First char is OK [12:23:59]request: POST /json_proto HTTP/1.0 [12:23:59]Method: POST [12:23:59]URL: /json_proto [12:23:59]Method is POST - this is cgi request [12:23:59]url: /json_proto [12:23:59]query_string will be loaded in cgi processing [12:23:59]execute_cgi json_proto POST (null) [12:23:59]execute_cgi path=json_proto method=POST [12:23:59]POST find Content-Length [12:23:59]Host: 172.17.45.7:8080 [12:23:59]Content-Length: 739 [12:23:59]Content-Type: application/json [12:23:59] [12:23:59]POST finish read [12:23:59]Found Content-Length = 739 [12:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119065, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:59]execute_script... [12:23:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119065, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:59]POST & json_proto [12:23:59]process_json_proto [12:23:59]json parsed OK: [12:23:59]protocol is kg_v1.0 [12:23:59]action value=close_receipt [12:23:59]process_action close_receipt [12:23:59]cmd_close_receipt [12:23:59]MH_GetDate [12:23:59]Write to MH i2c: F0 00 00 78 01 68 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 09 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: F0 09 00 78 01 00 5F DB A8 66 90 0F 3E 66 FC [12:23:59]GetLastDocTimeStamp 1722342217 [12:23:59]current date 1722342239 [12:23:59]FM_GetShiftState [12:23:59]SAM_PROTO_GetShiftState [12:23:59]wFMCommunicate request_size=4 [12:23:59]MH_SAM_APDU [12:23:59]CAPDU: 80 13 01 00 [12:23:59]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [12:23:59]Write i2c OK [12:23:59]MH_I2C_Read... [12:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:59]Read from MH i2c: E2 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 [12:23:59]MH_I2C_Read... [12:23:59]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C2 [12:23:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:23:59]wFMCommunicate OK [12:23:59]SAM_PROTO_GetShiftState done [12:23:59]FM_GetShiftState done [12:23:59]opened in 1722298242 [12:23:59]opened+sec_in_day 1722384642 [12:23:59]quantity*price = 100005 [12:23:59]sum+1 = 100006 [12:23:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 118 30.07.2024 12:24 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119065 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119066 ФПД: 22389717294464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122400&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119066&fm=22389717294464&tin=02508201610067®Number=0000000000092660&sum=100000 [12:24:00]StoreToDocumentArchive [12:24:00]shift 435 fd 119066 [12:24:00]save to /storage/0435/doc_00119066 [12:24:00]save last doc name /storage/0435/doc_00119066 to /storage/kkm_last_doc_name [12:24:00]save OK [12:24:00]Clear old archive folders... [12:24:00]ProcessDocumentItem done err = 0, tmpTLVsize=279 [12:24:00]tlvbuf is 014CD6C0 [12:24:00]SAM_PROTO_ClearQueue [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 09 00 00 [12:24:00]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]SAM_PROTO_ClearQueue done [12:24:00]KKMCreateOFDPacket [12:24:00]OFDProtocolAddRootSTLVToBuf [12:24:00]FM_MakeSignedData [12:24:00]FM_MakeSignedData [12:24:00]SAM_PROTO_SignData [12:24:00]wFMCommunicate request_size=4 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 0D 01 02 [12:24:00]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [12:24:00]Write i2c OK [12:24:00]MH_I2C_Read... [12:24:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:00]Read from MH i2c: E2 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 [12:24:00]MH_I2C_Read... [12:24:00]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [12:24:00]RAPDU: 90 00 [12:24:00]wFMCommunicate OK [12:24:00]wFMCommunicate request_size=255 [12:24:00]MH_SAM_APDU [12:24:00]CAPDU: 80 0D 02 02 FA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 60 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 19 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [12:24:00]Write to MH i2c: E2 02 01 8A 01 80 0D 02 02 FA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 60 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 19 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 D6 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [12:24:01]RAPDU: 90 00 [12:24:01]wFMCommunicate OK [12:24:01]wFMCommunicate request_size=38 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D1 01 00 35 04 06 00 14 5D 03 25 5D 80 [12:24:01]Write to MH i2c: E2 29 00 8B 01 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D1 01 00 35 04 06 00 14 5D 03 25 5D 80 00 00 F9 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [12:24:01]RAPDU: 90 00 [12:24:01]wFMCommunicate OK [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 0D 03 02 [12:24:01]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0B 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0B 00 8C 01 00 94 C0 77 CC F9 34 30 D3 90 00 D0 [12:24:01]RAPDU: 94 C0 77 CC F9 34 30 D3 90 00 [12:24:01]wFMCommunicate OK [12:24:01]SAM_PROTO_SignData done [12:24:01]FM_MakeSignedData done [12:24:01]CreateOFDProtocolMessage [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 11 00 00 [12:24:01]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 17 00 [12:24:01]MH_I2C_Read... [12:24:01]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 34 39 33 39 90 00 63 [12:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:01]wFMCommunicate OK [12:24:01]CreateOFDProtocolMessage done [12:24:01]OFDSenderStorePacket 119066 [12:24:01]StoreOFDPacket docnum=119066 [12:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 BB 31 23 01 E4 0E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 60 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 19 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D1 01 00 35 04 06 00 14 5D 03 25 5D 80 94 C0 77 CC F9 34 30 D3 [12:24:01]CheckFolder [12:24:01]dirname=/storage/ofd_packets [12:24:01]CheckFolder done [12:24:01]ProducePacketName [12:24:01]name=ofd_packets/00119066 [12:24:01]NVStorageSaveData ofd_packets/00119066 [12:24:01]File name is /storage/ofd_packets/00119066 [12:24:01]Write 329 bytes [12:24:01]NVStorageSaveData done [12:24:01]OFDSenderStorePacket done [12:24:01]KKMCreateOFDPacket done [12:24:01]NVStorageSaveData kkm_last_timestamp [12:24:01]File name is /storage/kkm_last_timestamp [12:24:01]Write 4 bytes [12:24:01]NVStorageSaveData done [12:24:01]ExternCall_PrintAddStr [12:24:01]wPrintStart [12:24:01]Write to MH i2c: 01 00 00 8E 01 8F [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [12:24:01]RasterBufferAndPrint [12:24:01]line Счет N : (1)949985 [12:24:01]line ИНН: 02508201610067 [12:24:01]line Контрольно-Кассовый Чек [12:24:01]line ВОЗВРАТ ПРОДАЖИ [12:24:01]line ТРК (МРК, ГНК) : 51 [12:24:01]line Товар: 2710124130 [12:24:01]line Аи-92-К-4 [12:24:01]line 14.750 * 67.80 [12:24:01]line = 1000.05 [12:24:01]line НДС 12% НСП 1% [12:24:01]line > о реализуемом товаре [12:24:01]line ОКРУГЛЕНИЕ: -0.05 [12:24:01]line ИТОГО: 1000.00 [12:24:01]line НСП 1% : 8.85 [12:24:01]line НДС 12% : 106.20 [12:24:01]line Наличными: 1000.00 [12:24:01]line Безнал.: 0.00 [12:24:01]line Место: АЗС № 134 "Партнер Нефть" [12:24:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:24:01]line СНО: Общий режим [12:24:01]line Чек 118 30.07.2024 12:24 [12:24:01]line Смена: 435 ФФД: 1.0 [12:24:01]line ЗНМ: 0300000044 [12:24:01]line РНМ: 0000000000092660 [12:24:01]line Версия ККМ: 001 [12:24:01]line ФД осн.: 119065 [12:24:01]line ФМ осн.: 0000000000874939 [12:24:01]line ФМ: 0000000000874939 [12:24:01]line ФД: 119066 [12:24:01]line ФПД: 22389717294464 [12:24:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122400&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119066&fm=22389717294464&tin=02508201610067®Number=0000000000092660&sum=100000 [12:24:01]OFD Sender: Processing packet 119066 [packets to send 86, broken 85] [12:24:01]ProducePacketName [12:24:01]name=ofd_packets/00119066 [12:24:01]OFD Sender: To server: pG, [12:24:01]CommunicateWithHost lk.salyk.kg:30040 [12:24:01]ConnectInit lk.salyk.kg [12:24:01]written 0, free lines is 4095 [12:24:02]Write to MH i2c: 01 00 00 B8 01 B9 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 B8 01 00 00 00 00 00 F0 0C BC [12:24:02]RasterBufferAndPrint [12:24:02]line [12:24:02]line [12:24:02]line [12:24:02]line [12:24:02]line [12:24:02]written 0, free lines is 3318 [12:24:02]MH_Cut [12:24:02]Write to MH i2c: D1 01 00 BF 01 01 92 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: D1 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: D1 01 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: D1 01 00 BF 01 00 91 [12:24:02]Write to MH i2c: 01 00 00 C0 01 C1 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** Cut start [12:24:02]*** Partial cut [12:24:02]*** CUTSNS_PIN = 1 [12:24:03]*** CUTSNS_PIN = 0 [12:24:03]*** Brake cut motor [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]*** Stop cut motor [12:24:03]*** Cut end [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 FF 0F D6 [12:24:03]process_action close_receipt done [12:24:03]requested_data is exist [12:24:03]produce_requested_data [12:24:03]requested_item fm.sn is exist - process it [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 11 00 00 [12:24:03]Write to MH i2c: E2 08 00 C1 01 80 11 00 00 00 00 00 00 3C [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 17 00 C1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 97 [12:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:03]wFMCommunicate OK [12:24:03]requested_item fd.num is exist - process it [12:24:03]SAM_PROTO_GetFieldsCounters [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 13 00 00 [12:24:03]Write to MH i2c: E2 08 00 C2 01 80 13 00 00 00 00 00 00 3F [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 62 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 62 00 C2 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [12:24:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_GetFieldsCounters done [12:24:03]requested_item shift.num is exist - process it [12:24:03]requested_item shift.opened is exist - process it [12:24:03]req_shift_opened [12:24:03]FM_GetShiftState [12:24:03]SAM_PROTO_GetShiftState [12:24:03]wFMCommunicate request_size=4 [12:24:03]MH_SAM_APDU [12:24:03]CAPDU: 80 13 01 00 [12:24:03]Write to MH i2c: E2 08 00 C3 01 80 13 01 00 00 00 00 00 41 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:03]Read from MH i2c: E2 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0E 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: E2 0E 00 C3 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0C [12:24:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:24:03]wFMCommunicate OK [12:24:03]SAM_PROTO_GetShiftState done [12:24:03]FM_GetShiftState done [12:24:03]req_shift_opened done [12:24:03]requested_item shift.open_date is exist - process it [12:24:03]req_shift_open_date [12:24:03]req_shift_open_date done [12:24:03]produce_requested_data done [12:24:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119066,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:24:03]process_action_free close_receipt [12:24:03]json_value_free [12:24:03]json_value_free done [12:24:03]process_json_proto returns [12:24:03]Send response to host [12:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119066,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:24:03]free response buf [12:24:03]execute_script done [12:24:03]execute_script returns [12:24:03]free content buf [12:24:03]Sock 7.Close socket [12:24:03]Sock 7.Thread stoped [12:24:03]Connected sock=11 [12:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 BB 31 23 01 E4 0E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 60 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 19 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D1 01 00 35 04 06 00 14 5D 03 25 5D 80 94 C0 77 CC F9 34 30 D3 [12:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 21 F8 47 00 D7 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1A D1 01 00 F4 03 04 00 ED 88 A8 66 B6 04 01 00 00 2B 27 FB 53 0E 07 FD 61 [12:24:07]CommunicateWithHost err = 0 [12:24:07]CheckOFDResponse [12:24:07]1017 (14) - 77093643461234 [12:24:07]1041 (16) - 0000000000874939 [12:24:07]1040 (4) - 119066 [12:24:07]1012 (4) - 30.07.2024 06:32 [12:24:07]1206 (1) - 0 [12:24:07]OFD Sender: Remove packet 119066 [12:24:07]ProducePacketName [12:24:07]name=ofd_packets/00119066 [12:24:07]NVStorageDeleteData [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]accept exits with 10 [12:24:17]New connection [12:24:17]New thread 3066989924 created [12:24:17]Thread 3066846564 joined [12:24:17]Waiting for new connection... [12:24:17] Sock 10.Parse request [12:24:17]Sock 10.Check first char [12:24:17]Sock 10.First char is OK [12:24:17]request: POST /json_proto HTTP/1.0 [12:24:17]Method: POST [12:24:17]URL: /json_proto [12:24:17]Method is POST - this is cgi request [12:24:17]url: /json_proto [12:24:17]query_string will be loaded in cgi processing [12:24:17]execute_cgi json_proto POST (null) [12:24:17]execute_cgi path=json_proto method=POST [12:24:17]POST find Content-Length [12:24:17]Host: 172.17.45.7:8080 [12:24:17]Content-Length: 682 [12:24:17]Content-Type: application/json [12:24:17] [12:24:17]POST finish read [12:24:17]Found Content-Length = 682 [12:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:24:17]execute_script... [12:24: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)949986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:24:17]POST & json_proto [12:24:17]process_json_proto [12:24:17]json parsed OK: [12:24:17]protocol is kg_v1.0 [12:24:17]action value=close_receipt [12:24:17]process_action close_receipt [12:24:17]cmd_close_receipt [12:24:17]MH_GetDate [12:24:17]Write to MH i2c: F0 00 00 C4 01 B4 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 09 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 09 00 C4 01 00 71 DB A8 66 90 0F 3E 66 5A [12:24:17]GetLastDocTimeStamp 1722342240 [12:24:17]current date 1722342257 [12:24:17]FM_GetShiftState [12:24:17]SAM_PROTO_GetShiftState [12:24:17]wFMCommunicate request_size=4 [12:24:17]MH_SAM_APDU [12:24:17]CAPDU: 80 13 01 00 [12:24:17]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 [12:24:17]MH_I2C_Read... [12:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:17]Read from MH i2c: E2 0E 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0E [12:24:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:24:17]wFMCommunicate OK [12:24:17]SAM_PROTO_GetShiftState done [12:24:17]FM_GetShiftState done [12:24:17]opened in 1722298242 [12:24:17]opened+sec_in_day 1722384642 [12:24:17]quantity*price = 100005 [12:24:17]sum+1 = 100006 [12:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 119 30.07.2024 12:24 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119067 ФПД: 245437826891306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122417&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119067&fm=245437826891306&tin=02508201610067®Number=0000000000092660&sum=100000 [12:24:18]StoreToDocumentArchive [12:24:18]shift 435 fd 119067 [12:24:18]save to /storage/0435/doc_00119067 [12:24:18]save last doc name /storage/0435/doc_00119067 to /storage/kkm_last_doc_name [12:24:18]save OK [12:24:18]Clear old archive folders... [12:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:18]tlvbuf is 0149FA20 [12:24:18]SAM_PROTO_ClearQueue [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 09 00 00 [12:24:18]Write to MH i2c: E2 08 00 D2 01 80 09 00 00 00 00 00 00 45 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]SAM_PROTO_ClearQueue done [12:24:18]KKMCreateOFDPacket [12:24:18]OFDProtocolAddRootSTLVToBuf [12:24:18]FM_MakeSignedData [12:24:18]FM_MakeSignedData [12:24:18]SAM_PROTO_SignData [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 0D 01 02 [12:24:18]Write to MH i2c: E2 08 00 D3 01 80 0D 01 02 00 00 00 00 4D [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]wFMCommunicate request_size=255 [12:24:18]MH_SAM_APDU [12:24: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 71 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D1 01 00 35 04 06 00 DF [12:24:18]Write to MH i2c: E2 02 01 D4 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 71 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D1 01 00 35 04 06 00 DF 00 00 B1 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 03 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [12:24:19]RAPDU: 90 00 [12:24:19]wFMCommunicate OK [12:24:19]wFMCommunicate request_size=10 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 0D 02 02 05 39 72 7C 7E 2A [12:24:19]Write to MH i2c: E2 0D 00 D5 01 80 0D 02 02 05 00 39 72 7C 7E 2A 00 00 29 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 03 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [12:24:19]RAPDU: 90 00 [12:24:19]wFMCommunicate OK [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 0D 03 02 [12:24:19]Write to MH i2c: E2 08 00 D6 01 80 0D 03 02 00 00 00 00 52 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0B 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0B 00 D6 01 00 97 14 0B 2E 55 63 86 CA 90 00 3F [12:24:19]RAPDU: 97 14 0B 2E 55 63 86 CA 90 00 [12:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_SignData done [12:24:19]FM_MakeSignedData done [12:24:19]CreateOFDProtocolMessage [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 11 00 00 [12:24:19]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 17 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [12:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:19]wFMCommunicate OK [12:24:19]CreateOFDProtocolMessage done [12:24:19]OFDSenderStorePacket 119067 [12:24:19]StoreOFDPacket docnum=119067 [12:24:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A A0 07 01 D3 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 71 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D1 01 00 35 04 06 00 DF 39 72 7C 7E 2A 97 14 0B 2E 55 63 86 CA [12:24:19]CheckFolder [12:24:19]dirname=/storage/ofd_packets [12:24:19]CheckFolder done [12:24:19]ProducePacketName [12:24:19]name=ofd_packets/00119067 [12:24:19]NVStorageSaveData ofd_packets/00119067 [12:24:19]File name is /storage/ofd_packets/00119067 [12:24:19]Write 301 bytes [12:24:19]NVStorageSaveData done [12:24:19]OFDSenderStorePacket done [12:24:19]KKMCreateOFDPacket done [12:24:19]NVStorageSaveData kkm_last_timestamp [12:24:19]File name is /storage/kkm_last_timestamp [12:24:19]Write 4 bytes [12:24:19]NVStorageSaveData done [12:24:19]ExternCall_PrintAddStr [12:24:19]wPrintStart [12:24:19]Write to MH i2c: 01 00 00 D8 01 D9 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [12:24:19]RasterBufferAndPrint [12:24:19]line Счет N : (1)949986 [12:24:19]line ИНН: 02508201610067 [12:24:19]line Контрольно-Кассовый Чек [12:24:19]line ПРОДАЖА [12:24:19]line ТРК (МРК, ГНК) : 41 [12:24:19]line Товар: 2710124130 [12:24:19]line Аи-92-К-4 [12:24:19]line 14.750 * 67.80 [12:24:19]line = 1000.05 [12:24:19]line НДС 12% НСП 1% [12:24:19]line > о реализуемом товаре [12:24:19]line ОКРУГЛЕНИЕ: -0.05 [12:24:19]line ИТОГО: 1000.00 [12:24:19]line Внесено: 1000.00 [12:24:19]line СДАЧА: 0.00 [12:24:19]line НСП 1% : 8.85 [12:24:19]line НДС 12% : 106.20 [12:24:19]line Наличными: 1000.00 [12:24:19]line Безнал.: 0.00 [12:24:19]line Место: АЗС № 134 "Партнер Нефть" [12:24:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:24:19]line СНО: Общий режим [12:24:19]line Чек 119 30.07.2024 12:24 [12:24:19]line Смена: 435 ФФД: 1.0 [12:24:19]line ЗНМ: 0300000044 [12:24:19]line РНМ: 0000000000092660 [12:24:19]line Версия ККМ: 001 [12:24:19]line ФМ: 0000000000874939 [12:24:19]line ФД: 119067 [12:24:19]line ФПД: 245437826891306 [12:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122417&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119067&fm=245437826891306&tin=02508201610067®Number=0000000000092660&sum=100000 [12:24:19]written 0, free lines is 4095 [12:24:19]OFD Sender: Processing packet 119067 [packets to send 86, broken 85] [12:24:19]ProducePacketName [12:24:19]name=ofd_packets/00119067 [12:24:19]OFD Sender: To server: pG, [12:24:19]CommunicateWithHost lk.salyk.kg:30040 [12:24:19]ConnectInit lk.salyk.kg [12:24:19]Write to MH i2c: 01 00 00 02 02 04 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 02 02 00 00 00 00 00 E3 0C FA [12:24:19]RasterBufferAndPrint [12:24:19]line [12:24:19]line [12:24:19]line [12:24:19]line [12:24:19]line [12:24:19]written 0, free lines is 3307 [12:24:19]MH_Cut [12:24:19]Write to MH i2c: D1 01 00 09 02 01 DD [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: D1 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: D1 01 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: D1 01 00 09 02 00 DC [12:24:19]Write to MH i2c: 01 00 00 0A 02 0C [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:20]*** Cut start [12:24:20]*** Partial cut [12:24:20]*** CUTSNS_PIN = 1 [12:24:20]*** CUTSNS_PIN = 0 [12:24:20]*** Brake cut motor [12:24:20]Read from MH i2c: 01 [12:24:20]MH_I2C_Read... [12:24:20]*** Stop cut motor [12:24:20]*** Cut end [12:24:20]Read from MH i2c: 01 07 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 FF 0F 21 [12:24:20]process_action close_receipt done [12:24:20]requested_data is exist [12:24:20]produce_requested_data [12:24:20]requested_item fm.sn is exist - process it [12:24:20]wFMCommunicate request_size=4 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 11 00 00 [12:24:20]Write to MH i2c: E2 08 00 0B 02 80 11 00 00 00 00 00 00 87 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:21]Read from MH i2c: E2 17 00 [12:24:21]MH_I2C_Read... [12:24:21]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 34 39 33 39 90 00 E2 [12:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:21]wFMCommunicate OK [12:24:21]requested_item fd.num is exist - process it [12:24:21]SAM_PROTO_GetFieldsCounters [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 13 00 00 [12:24:21]Write to MH i2c: E2 08 00 0C 02 80 13 00 00 00 00 00 00 8A [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 62 00 [12:24:21]MH_I2C_Read... [12:24:21]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [12: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_GetFieldsCounters done [12:24:21]requested_item shift.num is exist - process it [12:24:21]requested_item shift.opened is exist - process it [12:24:21]req_shift_opened [12:24:21]FM_GetShiftState [12:24:21]SAM_PROTO_GetShiftState [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 13 01 00 [12:24:21]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0E 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 57 [12:24:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_GetShiftState done [12:24:21]FM_GetShiftState done [12:24:21]req_shift_opened done [12:24:21]requested_item shift.open_date is exist - process it [12:24:21]req_shift_open_date [12:24:21]req_shift_open_date done [12:24:21]produce_requested_data done [12:24:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119067,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:24:21]process_action_free close_receipt [12:24:21]json_value_free [12:24:21]json_value_free done [12:24:21]process_json_proto returns [12:24:21]Send response to host [12:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119067,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:24:21]free response buf [12:24:21]execute_script done [12:24:21]execute_script returns [12:24:21]free content buf [12:24:21]Sock 10.Close socket [12:24:21]Sock 10.Thread stoped [12:24:22]Connected sock=9 [12:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A A0 07 01 D3 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 71 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D1 01 00 35 04 06 00 DF 39 72 7C 7E 2A 97 14 0B 2E 55 63 86 CA [12:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 17 47 00 52 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1B D1 01 00 F4 03 04 00 01 89 A8 66 B6 04 01 00 00 2E 9D 4B 9B 92 1C B6 BB [12:24:24]CommunicateWithHost err = 0 [12:24:24]CheckOFDResponse [12:24:24]1017 (14) - 77093643461234 [12:24:24]1041 (16) - 0000000000874939 [12:24:24]1040 (4) - 119067 [12:24:24]1012 (4) - 30.07.2024 06:32 [12:24:24]1206 (1) - 0 [12:24:24]OFD Sender: Remove packet 119067 [12:24:24]ProducePacketName [12:24:24]name=ofd_packets/00119067 [12:24:24]NVStorageDeleteData [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:52]accept exits with 7 [12:24:52]New connection [12:24:52]New thread 3066846564 created [12:24:52]Thread 3066989924 joined [12:24:52]Waiting for new connection... [12:24:52] Sock 7.Parse request [12:24:52]Sock 7.Check first char [12:24:52]Sock 7.First char is OK [12:24:52]request: POST /json_proto HTTP/1.0 [12:24:52]Method: POST [12:24:52]URL: /json_proto [12:24:52]Method is POST - this is cgi request [12:24:52]url: /json_proto [12:24:52]query_string will be loaded in cgi processing [12:24:52]execute_cgi json_proto POST (null) [12:24:52]execute_cgi path=json_proto method=POST [12:24:52]POST find Content-Length [12:24:52]Host: 172.17.45.7:8080 [12:24:52]Content-Length: 677 [12:24:52]Content-Type: application/json [12:24:52] [12:24:52]POST finish read [12:24:52]Found Content-Length = 677 [12:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:52]execute_script... [12:24: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)949987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:52]POST & json_proto [12:24:52]process_json_proto [12:24:52]json parsed OK: [12:24:52]protocol is kg_v1.0 [12:24:52]action value=close_receipt [12:24:52]process_action close_receipt [12:24:52]cmd_close_receipt [12:24:52]MH_GetDate [12:24:52]Write to MH i2c: F0 00 00 0E 02 FF [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: F0 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: F0 09 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: F0 09 00 0E 02 00 95 DB A8 66 90 0F 3E 66 C9 [12:24:52]GetLastDocTimeStamp 1722342257 [12:24:52]current date 1722342293 [12:24:52]FM_GetShiftState [12:24:52]SAM_PROTO_GetShiftState [12:24:52]wFMCommunicate request_size=4 [12:24:52]MH_SAM_APDU [12:24:52]CAPDU: 80 13 01 00 [12:24:52]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:52]Read from MH i2c: E2 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 0E 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 59 [12:24:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:24:52]wFMCommunicate OK [12:24:52]SAM_PROTO_GetShiftState done [12:24:52]FM_GetShiftState done [12:24:52]opened in 1722298242 [12:24:52]opened+sec_in_day 1722384642 [12:24:52]quantity*price = 60003 [12:24:52]sum+1 = 60004 [12:24:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 120 30.07.2024 12:24 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119068 ФПД: 81520675797420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122453&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119068&fm=81520675797420&tin=02508201610067®Number=0000000000092660&sum=60000 [12:24:54]StoreToDocumentArchive [12:24:54]shift 435 fd 119068 [12:24:54]save to /storage/0435/doc_00119068 [12:24:54]save last doc name /storage/0435/doc_00119068 to /storage/kkm_last_doc_name [12:24:54]save OK [12:24:54]Clear old archive folders... [12:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:54]tlvbuf is 0145BA20 [12:24:54]SAM_PROTO_ClearQueue [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 09 00 00 [12:24:54]Write to MH i2c: E2 08 00 1C 02 80 09 00 00 00 00 00 00 90 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_ClearQueue done [12:24:54]KKMCreateOFDPacket [12:24:54]OFDProtocolAddRootSTLVToBuf [12:24:54]FM_MakeSignedData [12:24:54]FM_MakeSignedData [12:24:54]SAM_PROTO_SignData [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 01 02 [12:24:54]Write to MH i2c: E2 08 00 1D 02 80 0D 01 02 00 00 00 00 98 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=255 [12:24:54]MH_SAM_APDU [12:24: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 95 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D1 01 00 35 04 06 00 4A [12:24:54]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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 95 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D1 01 00 35 04 06 00 4A 00 00 C5 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=10 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 02 02 05 24 82 EC 39 AC [12:24:54]Write to MH i2c: E2 0D 00 1F 02 80 0D 02 02 05 00 24 82 EC 39 AC 00 00 1C [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [12:24:54]RAPDU: 90 00 [12:24:54]wFMCommunicate OK [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 0D 03 02 [12:24:54]Write to MH i2c: E2 08 00 20 02 80 0D 03 02 00 00 00 00 9D [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0B 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0B 00 20 02 00 DD 58 85 27 20 4B AB 50 90 00 E5 [12:24:54]RAPDU: DD 58 85 27 20 4B AB 50 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_SignData done [12:24:54]FM_MakeSignedData done [12:24:54]CreateOFDProtocolMessage [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 11 00 00 [12:24:54]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 [12:24:54]MH_I2C_Read... [12:24:54]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 34 39 33 39 90 00 F8 [12:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:24:54]wFMCommunicate OK [12:24:54]CreateOFDProtocolMessage done [12:24:54]OFDSenderStorePacket 119068 [12:24:54]StoreOFDPacket docnum=119068 [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 6999165+1715343248=1722342413 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 0E DC A8 66 90 0F 3E 66 3A [12:26:54]Current date/time: 30.07.2024 12:26 [12:26:54]FM_Init [12:26:54]wFMConnect [12:26:54]MH_SAM_On [12:26:54]Write to MH i2c: E0 00 00 08 00 E7 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_init finished! [12:26:54]*** atr: [12:26:54]*** 0F 3B D5 18 FF 81 91 FE [12:26:54]*** 1F C3 80 73 C8 21 10 0A [12:26:54]*** 00 00 00 00 00 00 00 00 [12:26:54]*** 00 00 00 00 00 00 00 00 [12:26:54]*** 00 00 00 00 00 00 00 00 [12:26:54]*** 00 00 00 00 00 00 00 00 [12:26:54]*** 00 00 00 00 00 00 00 00 [12:26:54]*** 00 00 00 00 00 00 00 00 [12:26:54]Read from MH i2c: E0 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E0 10 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:26:54]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:26:54]wFMCommunicate request_size=10 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:26:54]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 00 A4 04 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 09 00 00 90 00 7D [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 11 00 00 [12:26:54]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 17 00 [12:26:54]MH_I2C_Read... [12:26:54]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 34 39 33 39 90 00 DF [12:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:26:54]wFMCommunicate OK [12:26:54]Detected FM SN is 0000000000874939 [12:26:54]Stored FM SN is 0000000000874939 [12:26:54]wFMCommunicate request_size=9 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 16 00 00 04 38 32 00 00 [12:26:54]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 16 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 0B 00 00 90 00 7F [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]FM PIN OK [12:26:54]wFMCommunicate request_size=8 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 14 04 00 03 02 00 01 [12:26:54]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 14 04 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 0C 00 00 90 00 80 [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=13 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:26:54]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 14 04 01... 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 0D 00 00 90 00 81 [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 11 00 00 [12:26:54]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 17 00 [12:26:54]MH_I2C_Read... [12:26:54]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 34 39 33 39 90 00 E3 [12:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:26:54]wFMCommunicate OK [12:26:54]DocumentArchiveInit [12:26:54]Start Httpd... [12:26:54]Httpd thread 3067067748 created [12:26:54]Write to MH i2c: 01 00 00 0F 00 0F [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 07 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:26:54]MH Int Process started [12:26:54]Allocated Socket 8 [12:26:54]Bind OK [12:26:54]Listen OK [12:26:54]httpd running on port 8080 [12:26:54]Waiting for new connection... [12:26:54]OFD Sender: Processing packet 119068 [packets to send 86, broken 85] [12:26:54]ProducePacketName [12:26:54]name=ofd_packets/00119068 [12:26:54]OFD Sender: To server: pG, [12:26:54]CommunicateWithHost lk.salyk.kg:30040 [12:26:54]ConnectInit lk.salyk.kg [12:26:57]Connected sock=7 [12:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A4 A9 07 01 FD 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 95 DB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1C D1 01 00 35 04 06 00 4A 24 82 EC 39 AC DD 58 85 27 20 4B AB 50 [12:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A 89 47 00 B5 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 34 39 33 39 10 04 04 00 1C D1 01 00 F4 03 04 00 9B 89 A8 66 B6 04 01 00 00 C9 40 0F D7 9A 4F 1B 87 [12:26:59]CommunicateWithHost err = 0 [12:26:59]CheckOFDResponse [12:26:59]1017 (14) - 77093643461234 [12:26:59]1041 (16) - 0000000000874939 [12:26:59]1040 (4) - 119068 [12:26:59]1012 (4) - 30.07.2024 06:35 [12:26:59]1206 (1) - 0 [12:26:59]OFD Sender: Remove packet 119068 [12:26:59]ProducePacketName [12:26:59]name=ofd_packets/00119068 [12:26:59]NVStorageDeleteData [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A9 [12:27:21]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [12:27:21]wFMCommunicate OK [12:27:21]wFMCommunicate request_size=4 [12:27:21]MH_SAM_APDU [12:27:21]CAPDU: 80 17 00 00 [12:27:21]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:27:21]Write i2c OK [12:27:21]MH_I2C_Read... [12:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:22]Read from MH i2c: E2 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 FD 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [12:27:22]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [12:27:22]wFMCommunicate OK [12:27:22]wFMCommunicate request_size=4 [12:27:22]MH_SAM_APDU [12:27:22]CAPDU: 80 17 00 00 [12:27:22]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:22]Read from MH i2c: E2 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 FD 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [12:27:22]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [12:27:22]wFMCommunicate OK [12:27:22]wFMCommunicate request_size=4 [12:27:22]MH_SAM_APDU [12:27:22]CAPDU: 80 17 00 00 [12:27:22]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [12:27:22]Read from MH i2c: E2 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 E2 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [12:27:22]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:27:22]wFMCommunicate OK [12:27:22]SAM_PROTO_GetFMData done [12:27:22]requested_item fm.sale_refund.total is exist - process it [12:27:22]requested_item fm.buy.total is exist - process it [12:27:22]requested_item shift.sale.total is exist - process it [12:27:22]SAM_PROTO_GetShiftData [12:27:22]wFMCommunicate request_size=4 [12:27:22]MH_SAM_APDU [12:27:22]CAPDU: 80 13 02 00 [12:27:22]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 FD 00 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 78 00 00 00 69 04 9D 00 6F 04 04 00 75 00 00 00 B1 04 04 00 6C 17 21 01 70 04 03 00 94 94 63 72 04 03 00 D8 82 BD 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 D0 B4 1E 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 0D 8F 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C0 [12:27:23]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 78 00 00 00 69 04 9D 00 6F 04 04 00 75 00 00 00 B1 04 04 00 6C 17 21 01 70 04 03 00 94 94 63 72 04 03 00 D8 82 BD 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 D0 B4 1E 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 0D 8F 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [12:27:23]wFMCommunicate OK [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 17 00 00 [12:27:23]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 FD 00 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 F7 [12:27:23]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 [12:27:23]wFMCommunicate OK [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 17 00 00 [12:27:23]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 FD 00 [12:27:23]MH_I2C_Read... [12:27:23]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 [12:27:23]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 [12:27:23]wFMCommunicate OK [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 17 00 00 [12:27:23]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 FD 00 [12:27:23]MH_I2C_Read... [12:27:23]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 [12:27:23]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 [12:27:23]wFMCommunicate OK [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 17 00 00 [12:27:23]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 D7 00 [12:27:24]MH_I2C_Read... [12:27: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 [12:27: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 [12:27:24]wFMCommunicate OK [12:27:24]SAM_PROTO_GetShiftData done [12:27:24]requested_item shift.sale.total_cash is exist - process it [12:27:24]requested_item shift.sale_refund.total is exist - process it [12:27:24]requested_item shift.sale_refund.total_cash is exist - process it [12:27:24]requested_item shift.buy.total is exist - process it [12:27:24]requested_item shift.buy.total_cash is exist - process it [12:27:24]produce_requested_data done [12:27:24]produce_requested_data return {"fm.sale.total":149175991.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":189459.00,"shift.sale.total_cash":65261.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:27:24]process_action_free get_value [12:27:24]json_value_free [12:27:24]json_value_free done [12:27:24]process_json_proto returns [12:27:24]Send response to host [12:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149175991.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":189459.00,"shift.sale.total_cash":65261.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:27:24]free response buf [12:27:24]execute_script done [12:27:24]execute_script returns [12:27:24]free content buf [12:27:24]Sock 7.Close socket [12:27:24]Sock 7.Thread stoped [12:27:24]accept exits with 9 [12:27:24]New connection [12:27:24]New thread 3066781028 created [12:27:24]Thread 3066637668 joined [12:27:24]Waiting for new connection... [12:27:24] Sock 9.Parse request [12:27:24]Sock 9.Check first char [12:27:24]Sock 9.First char is OK [12:27:24]request: POST /json_proto HTTP/1.0 [12:27:24]Method: POST [12:27:24]URL: /json_proto [12:27:24]Method is POST - this is cgi request [12:27:24]url: /json_proto [12:27:24]query_string will be loaded in cgi processing [12:27:24]execute_cgi json_proto POST (null) [12:27:24]execute_cgi path=json_proto method=POST [12:27:24]POST find Content-Length [12:27:24]Host: 172.17.45.7:8080 [12:27:24]Content-Length: 677 [12:27:24]Content-Type: application/json [12:27:24] [12:27:24]POST finish read [12:27:24]Found Content-Length = 677 [12:27:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:24]execute_script... [12:27: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)949988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:24]POST & json_proto [12:27:24]process_json_proto [12:27:24]json parsed OK: [12:27:24]protocol is kg_v1.0 [12:27:24]action value=close_receipt [12:27:24]process_action close_receipt [12:27:24]cmd_close_receipt [12:27:24]MH_GetDate [12:27:24]Write to MH i2c: F0 00 00 1D 00 0C [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: F0 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: F0 09 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: F0 09 00 1D 00 00 2C DC A8 66 90 0F 3E 66 6E [12:27:24]GetLastDocTimeStamp 1722342293 [12:27:24]current date 1722342444 [12:27:24]FM_GetShiftState [12:27:24]SAM_PROTO_GetShiftState [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 13 01 00 [12:27:24]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 0E 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 66 [12:27:24]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:27:24]wFMCommunicate OK [12:27:24]SAM_PROTO_GetShiftState done [12:27:24]FM_GetShiftState done [12:27:24]opened in 1722298242 [12:27:24]opened+sec_in_day 1722384642 [12:27:24]quantity*price = 60003 [12:27:24]sum+1 = 60004 [12:27:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 121 30.07.2024 12:27 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119069 ФПД: 121515201786663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122724&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119069&fm=121515201786663&tin=02508201610067®Number=0000000000092660&sum=60000 [12:27:26]StoreToDocumentArchive [12:27:26]shift 435 fd 119069 [12:27:26]save to /storage/0435/doc_00119069 [12:27:26]save last doc name /storage/0435/doc_00119069 to /storage/kkm_last_doc_name [12:27:26]save OK [12:27:26]Clear old archive folders... [12:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:26]tlvbuf is 00E63CA0 [12:27:26]SAM_PROTO_ClearQueue [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 09 00 00 [12:27:26]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:27:26]RAPDU: 90 00 [12:27:26]wFMCommunicate OK [12:27:26]SAM_PROTO_ClearQueue done [12:27:26]KKMCreateOFDPacket [12:27:26]OFDProtocolAddRootSTLVToBuf [12:27:26]FM_MakeSignedData [12:27:26]FM_MakeSignedData [12:27:26]SAM_PROTO_SignData [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 0D 01 02 [12:27:26]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:27:26]RAPDU: 90 00 [12:27:26]wFMCommunicate OK [12:27:26]wFMCommunicate request_size=255 [12:27:26]MH_SAM_APDU [12:27: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 2C DC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D1 01 00 35 04 06 00 6E [12:27: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 2C DC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D1 01 00 35 04 06 00 6E 00 00 90 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:27:26]RAPDU: 90 00 [12:27:26]wFMCommunicate OK [12:27:26]wFMCommunicate request_size=10 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 0D 02 02 05 84 76 6F F3 27 [12:27:26]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 84 76 6F F3 27 00 00 35 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:27:26]RAPDU: 90 00 [12:27:26]wFMCommunicate OK [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 0D 03 02 [12:27:26]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 0B 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 0B 00 2F 00 00 75 BC 3B 65 A6 48 69 A4 90 00 77 [12:27:26]RAPDU: 75 BC 3B 65 A6 48 69 A4 90 00 [12:27:26]wFMCommunicate OK [12:27:26]SAM_PROTO_SignData done [12:27:26]FM_MakeSignedData done [12:27:26]CreateOFDProtocolMessage [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 11 00 00 [12:27:26]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 17 00 [12:27:26]MH_I2C_Read... [12:27:26]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 34 39 33 39 90 00 05 [12:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:27:26]wFMCommunicate OK [12:27:26]CreateOFDProtocolMessage done [12:27:26]OFDSenderStorePacket 119069 [12:27:26]StoreOFDPacket docnum=119069 [12:27:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 3D 07 01 6A 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 2C DC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D1 01 00 35 04 06 00 6E 84 76 6F F3 27 75 BC 3B 65 A6 48 69 A4 [12:27:26]CheckFolder [12:27:26]dirname=/storage/ofd_packets [12:27:26]CheckFolder done [12:27:26]ProducePacketName [12:27:26]name=ofd_packets/00119069 [12:27:26]NVStorageSaveData ofd_packets/00119069 [12:27:26]File name is /storage/ofd_packets/00119069 [12:27:26]Write 301 bytes [12:27:26]NVStorageSaveData done [12:27:26]OFDSenderStorePacket done [12:27:26]KKMCreateOFDPacket done [12:27:26]NVStorageSaveData kkm_last_timestamp [12:27:26]File name is /storage/kkm_last_timestamp [12:27:26]Write 4 bytes [12:27:26]NVStorageSaveData done [12:27:26]ExternCall_PrintAddStr [12:27:26]wPrintStart [12:27:26]Write to MH i2c: 01 00 00 31 00 31 [12:27:26]OFD Sender: Processing packet 119069 [packets to send 86, broken 85] [12:27:26]ProducePacketName [12:27:26]name=ofd_packets/00119069 [12:27:26]OFD Sender: To server: pG, [12:27:26]CommunicateWithHost lk.salyk.kg:30040 [12:27:26]ConnectInit lk.salyk.kg [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: 01 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: 01 07 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:27:26]RasterBufferAndPrint [12:27:26]line Счет N : (1)949988 [12:27:26]line ИНН: 02508201610067 [12:27:26]line Контрольно-Кассовый Чек [12:27:26]line ПРОДАЖА [12:27:26]line ТРК (МРК, ГНК) : 51 [12:27:26]line Товар: 2710124130 [12:27:26]line Аи-92-К-4 [12:27:26]line 8.850 * 67.80 [12:27:26]line = 600.03 [12:27:26]line НДС 12% НСП 1% [12:27:26]line > о реализуемом товаре [12:27:26]line ОКРУГЛЕНИЕ: -0.03 [12:27:26]line ИТОГО: 600.00 [12:27:26]line Внесено: 600.00 [12:27:26]line СДАЧА: 0.00 [12:27:26]line НСП 1% : 5.31 [12:27:26]line НДС 12% : 63.72 [12:27:26]line Наличными: 600.00 [12:27:26]line Безнал.: 0.00 [12:27:26]line Место: АЗС № 134 "Партнер Нефть" [12:27:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:27:26]line СНО: Общий режим [12:27:26]line Чек 121 30.07.2024 12:27 [12:27:26]line Смена: 435 ФФД: 1.0 [12:27:26]line ЗНМ: 0300000044 [12:27:26]line РНМ: 0000000000092660 [12:27:26]line Версия ККМ: 001 [12:27:26]line ФМ: 0000000000874939 [12:27:26]line ФД: 119069 [12:27:26]line ФПД: 121515201786663 [12:27:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122724&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119069&fm=121515201786663&tin=02508201610067®Number=0000000000092660&sum=60000 [12:27:26]written 0, free lines is 4095 [12:27:27]Write to MH i2c: 01 00 00 5B 00 5B [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: 01 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: 01 07 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E6 0C 54 [12:27:27]RasterBufferAndPrint [12:27:27]line [12:27:27]line [12:27:27]line [12:27:27]line [12:27:27]line [12:27:27]written 0, free lines is 3322 [12:27:27]MH_Cut [12:27:27]Write to MH i2c: D1 01 00 62 00 01 34 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: D1 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: D1 01 00 [12:27:27]MH_I2C_Read... [12:27:27]Read from MH i2c: D1 01 00 62 00 00 33 [12:27:27]Write to MH i2c: 01 00 00 63 00 63 [12:27:27]Write i2c OK [12:27:27]MH_I2C_Read... [12:27:28]*** Cut start [12:27:28]*** Partial cut [12:27:28]*** CUTSNS_PIN = 1 [12:27:28]*** CUTSNS_PIN = 0 [12:27:28]*** Brake cut motor [12:27:28]Read from MH i2c: 01 [12:27:28]MH_I2C_Read... [12:27:28]*** Stop cut motor [12:27:28]*** Cut end [12:27:28]Read from MH i2c: 01 07 00 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [12:27:28]process_action close_receipt done [12:27:28]requested_data is exist [12:27:28]produce_requested_data [12:27:28]requested_item fm.sn is exist - process it [12:27:28]wFMCommunicate request_size=4 [12:27:28]MH_SAM_APDU [12:27:28]CAPDU: 80 11 00 00 [12:27:28]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 17 00 [12:27:28]MH_I2C_Read... [12:27: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 34 39 33 39 90 00 39 [12:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:27:28]wFMCommunicate OK [12:27:28]requested_item fd.num is exist - process it [12:27:28]SAM_PROTO_GetFieldsCounters [12:27:28]wFMCommunicate request_size=4 [12:27:28]MH_SAM_APDU [12:27:28]CAPDU: 80 13 00 00 [12:27:28]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [12:27:28]Write i2c OK [12:27:28]MH_I2C_Read... [12:27:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:28]Read from MH i2c: E2 [12:27:28]MH_I2C_Read... [12:27:28]Read from MH i2c: E2 62 00 [12:27:28]MH_I2C_Read... [12:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [12:27:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 1D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:28]wFMCommunicate OK [12:27:28]SAM_PROTO_GetFieldsCounters done [12:27:28]requested_item shift.num is exist - process it [12:27:28]requested_item shift.opened is exist - process it [12:27:28]req_shift_opened [12:27:28]FM_GetShiftState [12:27:28]SAM_PROTO_GetShiftState [12:27:28]wFMCommunicate request_size=4 [12:27:29]MH_SAM_APDU [12:27:29]CAPDU: 80 13 01 00 [12:27:29]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [12:27:29]Write i2c OK [12:27:29]MH_I2C_Read... [12:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:29]Read from MH i2c: E2 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 0E 00 [12:27:29]MH_I2C_Read... [12:27:29]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AE [12:27:29]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:27:29]wFMCommunicate OK [12:27:29]SAM_PROTO_GetShiftState done [12:27:29]FM_GetShiftState done [12:27:29]req_shift_opened done [12:27:29]requested_item shift.open_date is exist - process it [12:27:29]req_shift_open_date [12:27:29]req_shift_open_date done [12:27:29]produce_requested_data done [12:27:29]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119069,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:27:29]process_action_free close_receipt [12:27:29]json_value_free [12:27:29]json_value_free done [12:27:29]process_json_proto returns [12:27:29]Send response to host [12:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119069,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:27:29]free response buf [12:27:29]execute_script done [12:27:29]execute_script returns [12:27:29]free content buf [12:27:29]Sock 9.Close socket [12:27:29]Sock 9.Thread stoped [12:27:31]ConnectInit Can't take IP for lk.salyk.kg [12:27:31]CommunicateWithHost connect error [12:27:31]CommunicateWithHost err = -1 [12:27:31]OFD Sender: Server communicate error [12:27:36]OFD Sender: Processing packet 119069 [packets to send 86, broken 85] [12:27:36]ProducePacketName [12:27:36]name=ofd_packets/00119069 [12:27:36]OFD Sender: To server: pG, [12:27:36]CommunicateWithHost lk.salyk.kg:30040 [12:27:36]ConnectInit lk.salyk.kg [12:27:41]ConnectInit Can't take IP for lk.salyk.kg [12:27:41]CommunicateWithHost connect error [12:27:41]CommunicateWithHost err = -1 [12:27:41]OFD Sender: Server communicate error [12:27:46]OFD Sender: Processing packet 119069 [packets to send 86, broken 85] [12:27:46]ProducePacketName [12:27:46]name=ofd_packets/00119069 [12:27:46]OFD Sender: To server: pG, [12:27:46]CommunicateWithHost lk.salyk.kg:30040 [12:27:46]ConnectInit lk.salyk.kg [12:27:51]ConnectInit Can't take IP for lk.salyk.kg [12:27:51]CommunicateWithHost connect error [12:27:51]CommunicateWithHost err = -1 [12:27:51]OFD Sender: Server communicate error [12:27:56]OFD Sender: Processing packet 119069 [packets to send 86, broken 85] [12:27:56]ProducePacketName [12:27:56]name=ofd_packets/00119069 [12:27:56]OFD Sender: To server: pG, [12:27:56]CommunicateWithHost lk.salyk.kg:30040 [12:27:56]ConnectInit lk.salyk.kg [12:28:04]Connected sock=9 [12:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 A5 3D 07 01 6A 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 2C DC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D1 01 00 35 04 06 00 6E 84 76 6F F3 27 75 BC 3B 65 A6 48 69 A4 [12:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 C5 47 00 C0 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1D D1 01 00 F4 03 04 00 DD 89 A8 66 B6 04 01 00 00 0B B0 E2 6E 7C 8D 78 85 [12:28:05]CommunicateWithHost err = 0 [12:28:05]CheckOFDResponse [12:28:05]1017 (14) - 77093643461234 [12:28:05]1041 (16) - 0000000000874939 [12:28:05]1040 (4) - 119069 [12:28:05]1012 (4) - 30.07.2024 06:36 [12:28:05]1206 (1) - 0 [12:28:05]OFD Sender: Remove packet 119069 [12:28:05]ProducePacketName [12:28:05]name=ofd_packets/00119069 [12:28:05]NVStorageDeleteData [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:49]accept exits with 7 [12:28:49]New connection [12:28:49]New thread 3066637668 created [12:28:49]Thread 3066781028 joined [12:28:49]Waiting for new connection... [12:28:49] Sock 7.Parse request [12:28:49]Sock 7.Check first char [12:28:49]Sock 7.First char is OK [12:28:49]request: POST /json_proto HTTP/1.0 [12:28:49]Method: POST [12:28:49]URL: /json_proto [12:28:49]Method is POST - this is cgi request [12:28:49]url: /json_proto [12:28:49]query_string will be loaded in cgi processing [12:28:49]execute_cgi json_proto POST (null) [12:28:49]execute_cgi path=json_proto method=POST [12:28:49]POST find Content-Length [12:28:49]Host: 172.17.45.7:8080 [12:28:49]Content-Length: 674 [12:28:49]Content-Type: application/json [12:28:49] [12:28:49]POST finish read [12:28:49]Found Content-Length = 674 [12:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:49]execute_script... [12:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:28:49]POST & json_proto [12:28:49]process_json_proto [12:28:49]json parsed OK: [12:28:49]protocol is kg_v1.0 [12:28:49]action value=close_receipt [12:28:49]process_action close_receipt [12:28:49]cmd_close_receipt [12:28:49]MH_GetDate [12:28:49]Write to MH i2c: F0 00 00 67 00 56 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: F0 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: F0 09 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: F0 09 00 67 00 00 81 DC A8 66 90 0F 3E 66 0D [12:28:49]GetLastDocTimeStamp 1722342444 [12:28:49]current date 1722342529 [12:28:49]FM_GetShiftState [12:28:49]SAM_PROTO_GetShiftState [12:28:49]wFMCommunicate request_size=4 [12:28:49]MH_SAM_APDU [12:28:49]CAPDU: 80 13 01 00 [12:28:49]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 0E 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B0 [12:28:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:28:49]wFMCommunicate OK [12:28:49]SAM_PROTO_GetShiftState done [12:28:49]FM_GetShiftState done [12:28:49]opened in 1722298242 [12:28:49]opened+sec_in_day 1722384642 [12:28:49]quantity*price = 60045 [12:28:49]sum+1 = 60047 [12:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 122 30.07.2024 12:28 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119070 ФПД: 75138356326027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T122849&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119070&fm=75138356326027&tin=02508201610067®Number=0000000000092660&sum=60000 [12:28:50]StoreToDocumentArchive [12:28:50]shift 435 fd 119070 [12:28:50]save to /storage/0435/doc_00119070 [12:28:50]save last doc name /storage/0435/doc_00119070 to /storage/kkm_last_doc_name [12:28:50]save OK [12:28:50]Clear old archive folders... [12:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:28:50]tlvbuf is 00E63B70 [12:28:50]SAM_PROTO_ClearQueue [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 09 00 00 [12:28:50]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [12:28:50]RAPDU: 90 00 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_ClearQueue done [12:28:50]KKMCreateOFDPacket [12:28:50]OFDProtocolAddRootSTLVToBuf [12:28:50]FM_MakeSignedData [12:28:50]FM_MakeSignedData [12:28:50]SAM_PROTO_SignData [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 0D 01 02 [12:28:50]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:28:50]RAPDU: 90 00 [12:28:50]wFMCommunicate OK [12:28:50]wFMCommunicate request_size=255 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 81 DC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D1 01 00 35 04 06 00 44 56 83 09 [12:28:50]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 81 DC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 1E D1 01 00 35 04 06 00 44 56 83 09 00 00 EF [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:51]Read from MH i2c: E2 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 03 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:28:51]RAPDU: 90 00 [12:28:51]wFMCommunicate OK [12:28:51]wFMCommunicate request_size=7 [12:28:51]MH_SAM_APDU [12:28:51]CAPDU: 80 0D 02 02 02 AE 8B [12:28:51]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 AE 8B 00 00 2F [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:51]Read from MH i2c: E2 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 03 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [12:28:51]RAPDU: 90 00 [12:28:51]wFMCommunicate OK [12:28:51]wFMCommunicate request_size=4 [12:28:51]MH_SAM_APDU [12:28:51]CAPDU: 80 0D 03 02 [12:28:51]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [12:28:51]Write i2c OK [12:28:51]MH_I2C_Read... [12:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:51]Read from MH i2c: E2 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 0B 00 [12:28:51]MH_I2C_Read... [12:28:51]Read from MH i2c: E2 0B 00 79 00 00 AD E9 B8 5C 28 95 CE 93 90 00 BD [12:28:51]RAPDU: AD E9 B8 5C 28 95 CE 93 90 00 [12:28:51]wFMCommunicate OK [12:28:51]SAM_PROTO_SignData done [12:28:51]FM_MakeSignedData done [12:43:28]ConnectInit Can't connect to host [12:43:29]ConnectInit Can't take IP for lk.salyk.kg [12:43:29]CommunicateWithHost connect error [12:43:29]CommunicateWithHost err = -1 [12:43:29]OFD Sender: Server communicate error [12:43:34]OFD Sender: Processing packet 119072 [packets to send 89, broken 85] [12:43:34]ProducePacketName [12:43:34]name=ofd_packets/00119072 [12:43:34]OFD Sender: To server: pG, [12:43:34]CommunicateWithHost lk.salyk.kg:30040 [12:43:34]ConnectInit lk.salyk.kg [12:43:36]Connected sock=7 [12:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 00 F2 04 01 A6 A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 4D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 51 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 51 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 3F 00 00 00 00 07 04 06 00 C0 51 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 3B DD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D1 01 00 35 04 06 00 DD 21 6D 6A EE 41 0C C8 E2 8B B0 57 DB E9 [12:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 16 A5 47 00 5E 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 20 D1 01 00 F4 03 04 00 82 8D A8 66 B6 04 01 00 00 8B 1F C8 42 86 54 3C 2A [12:43:37]CommunicateWithHost err = 0 [12:43:37]CheckOFDResponse [12:43:37]1017 (14) - 77093643461234 [12:43:37]1041 (16) - 0000000000874939 [12:43:37]1040 (4) - 119072 [12:43:37]1012 (4) - 30.07.2024 06:51 [12:43:37]1206 (1) - 0 [12:43:37]OFD Sender: Remove packet 119072 [12:43:37]ProducePacketName [12:43:37]name=ofd_packets/00119072 [12:43:37]NVStorageDeleteData [12:43:38]OFD Sender: Processing packet 119073 [packets to send 88, broken 85] [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00119073 [12:43:38]OFD Sender: To server: pG, [12:43:38]CommunicateWithHost lk.salyk.kg:30040 [12:43:38]ConnectInit lk.salyk.kg [12:43:45]Connected sock=7 [12:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D1 75 07 01 5D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 59 DD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 21 D1 01 00 35 04 06 00 58 08 09 8C 7E 92 30 76 91 43 DA 4E 49 9B [12:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 08 39 47 00 85 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 34 39 33 39 10 04 04 00 21 D1 01 00 F4 03 04 00 8A 8D A8 66 B6 04 01 00 00 93 CB 89 7D A2 B5 B8 51 [12:43:45]CommunicateWithHost err = 0 [12:43:45]CheckOFDResponse [12:43:45]1017 (14) - 77093643461234 [12:43:45]1041 (16) - 0000000000874939 [12:43:45]1040 (4) - 119073 [12:43:45]1012 (4) - 30.07.2024 06:51 [12:43:45]1206 (1) - 0 [12:43:45]OFD Sender: Remove packet 119073 [12:43:45]ProducePacketName [12:43:45]name=ofd_packets/00119073 [12:43:45]NVStorageDeleteData [12:43:46]OFD Sender: Processing packet 119074 [packets to send 87, broken 85] [12:43:46]ProducePacketName [12:43:46]name=ofd_packets/00119074 [12:43:46]OFD Sender: To server: pG, [12:43:46]CommunicateWithHost lk.salyk.kg:30040 [12:43:46]ConnectInit lk.salyk.kg [12:43:47]Connected sock=7 [12:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3C D5 07 01 42 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 7F DD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D1 01 00 35 04 06 00 4B 48 49 62 8E F0 93 AA 67 37 BB 68 7B 12 [12:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E CF 47 00 02 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 22 D1 01 00 F4 03 04 00 8C 8D A8 66 B6 04 01 00 00 2C 45 5A 04 D3 70 4A 24 [12:43:49]CommunicateWithHost err = 0 [12:43:49]CheckOFDResponse [12:43:49]1017 (14) - 77093643461234 [12:43:49]1041 (16) - 0000000000874939 [12:43:49]1040 (4) - 119074 [12:43:49]1012 (4) - 30.07.2024 06:51 [12:43:49]1206 (1) - 0 [12:43:49]OFD Sender: Remove packet 119074 [12:43:49]ProducePacketName [12:43:49]name=ofd_packets/00119074 [12:43:49]NVStorageDeleteData [12:43:49]OFD Sender: Processing packet 119075 [packets to send 86, broken 85] [12:43:49]ProducePacketName [12:43:49]name=ofd_packets/00119075 [12:43:49]OFD Sender: To server: pG, [12:43:49]CommunicateWithHost lk.salyk.kg:30040 [12:43:49]ConnectInit lk.salyk.kg [12:43:51]Connected sock=7 [12:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 34 07 01 3E 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B0 DD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D1 01 00 35 04 06 00 2C BF 5C C3 99 CB 76 B4 6A 2A 9F EE EC 72 [12:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D C4 47 00 AF C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 23 D1 01 00 F4 03 04 00 90 8D A8 66 B6 04 01 00 00 BC 68 22 57 6A 81 C3 FA [12:43:51]CommunicateWithHost err = 0 [12:43:51]CheckOFDResponse [12:43:51]1017 (14) - 77093643461234 [12:43:51]1041 (16) - 0000000000874939 [12:43:51]1040 (4) - 119075 [12:43:51]1012 (4) - 30.07.2024 06:52 [12:43:51]1206 (1) - 0 [12:43:51]OFD Sender: Remove packet 119075 [12:43:51]ProducePacketName [12:43:51]name=ofd_packets/00119075 [12:43:51]NVStorageDeleteData [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:37]accept exits with 9 [12:44:37]New connection [12:44:37]New thread 3066637668 created [12:44:37]Thread 3066781028 joined [12:44:37]Waiting for new connection... [12:44:37] Sock 9.Parse request [12:44:37]Sock 9.Check first char [12:44:37]Sock 9.First char is OK [12:44:37]request: POST /json_proto HTTP/1.0 [12:44:37]Method: POST [12:44:37]URL: /json_proto [12:44:37]Method is POST - this is cgi request [12:44:37]url: /json_proto [12:44:37]query_string will be loaded in cgi processing [12:44:37]execute_cgi json_proto POST (null) [12:44:37]execute_cgi path=json_proto method=POST [12:44:37]POST find Content-Length [12:44:37]Host: 172.17.45.7:8080 [12:44:37]Content-Length: 677 [12:44:37]Content-Type: application/json [12:44:37] [12:44:37]POST finish read [12:44:37]Found Content-Length = 677 [12:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:44:37]execute_script... [12:44:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:44:37]POST & json_proto [12:44:37]process_json_proto [12:44:37]json parsed OK: [12:44:37]protocol is kg_v1.0 [12:44:37]action value=close_receipt [12:44:37]process_action close_receipt [12:44:37]cmd_close_receipt [12:44:37]MH_GetDate [12:44:37]Write to MH i2c: F0 00 00 23 02 14 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: F0 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: F0 09 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: F0 09 00 23 02 00 35 E0 A8 66 90 0F 3E 66 83 [12:44:37]GetLastDocTimeStamp 1722342832 [12:44:37]current date 1722343477 [12:44:37]FM_GetShiftState [12:44:37]SAM_PROTO_GetShiftState [12:44:37]wFMCommunicate request_size=4 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 13 01 00 [12:44:37]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 0E 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6E [12:44:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:44:37]wFMCommunicate OK [12:44:37]SAM_PROTO_GetShiftState done [12:44:37]FM_GetShiftState done [12:44:37]opened in 1722298242 [12:44:37]opened+sec_in_day 1722384642 [12:44:37]quantity*price = 30035 [12:44:37]sum+1 = 30036 [12:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 128 30.07.2024 12:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119076 ФПД: 57609158478418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T124437&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119076&fm=57609158478418&tin=02508201610067®Number=0000000000092660&sum=30000 [12:44:38]StoreToDocumentArchive [12:44:38]shift 435 fd 119076 [12:44:38]save to /storage/0435/doc_00119076 [12:44:38]save last doc name /storage/0435/doc_00119076 to /storage/kkm_last_doc_name [12:44:38]save OK [12:44:38]Clear old archive folders... [12:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:38]tlvbuf is 00E0E680 [12:44:38]SAM_PROTO_ClearQueue [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 09 00 00 [12:44:38]Write to MH i2c: E2 08 00 31 02 80 09 00 00 00 00 00 00 A5 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]SAM_PROTO_ClearQueue done [12:44:38]KKMCreateOFDPacket [12:44:38]OFDProtocolAddRootSTLVToBuf [12:44:38]FM_MakeSignedData [12:44:38]FM_MakeSignedData [12:44:38]SAM_PROTO_SignData [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 0D 01 02 [12:44:38]Write to MH i2c: E2 08 00 32 02 80 0D 01 02 00 00 00 00 AD [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]wFMCommunicate request_size=255 [12:44:38]MH_SAM_APDU [12: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 80 00 00 00 F4 03 04 00 35 E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D1 01 00 35 04 06 00 34 [12:44:38]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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 80 00 00 00 F4 03 04 00 35 E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D1 01 00 35 04 06 00 34 00 00 D1 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]wFMCommunicate request_size=10 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 0D 02 02 05 65 2D 6D 4A 52 [12:44:38]Write to MH i2c: E2 0D 00 34 02 80 0D 02 02 05 00 65 2D 6D 4A 52 00 00 55 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [12:44:38]RAPDU: 90 00 [12:44:38]wFMCommunicate OK [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 0D 03 02 [12:44:38]Write to MH i2c: E2 08 00 35 02 80 0D 03 02 00 00 00 00 B2 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 0B 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 0B 00 35 02 00 88 87 E6 94 3E 87 C5 AB 90 00 71 [12:44:38]RAPDU: 88 87 E6 94 3E 87 C5 AB 90 00 [12:44:38]wFMCommunicate OK [12:44:38]SAM_PROTO_SignData done [12:44:38]FM_MakeSignedData done [12:44:38]CreateOFDProtocolMessage [12:44:38]wFMCommunicate request_size=4 [12:44:38]MH_SAM_APDU [12:44:38]CAPDU: 80 11 00 00 [12:44:38]Write to MH i2c: E2 08 00 36 02 80 11 00 00 00 00 00 00 B2 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 17 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 17 00 36 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0D [12:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:38]wFMCommunicate OK [12:44:38]CreateOFDProtocolMessage done [12:44:38]OFDSenderStorePacket 119076 [12:44:38]StoreOFDPacket docnum=119076 [12:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 01 47 07 01 D1 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 80 00 00 00 F4 03 04 00 35 E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D1 01 00 35 04 06 00 34 65 2D 6D 4A 52 88 87 E6 94 3E 87 C5 AB [12:44:38]CheckFolder [12:44:38]dirname=/storage/ofd_packets [12:44:38]CheckFolder done [12:44:38]ProducePacketName [12:44:38]name=ofd_packets/00119076 [12:44:38]NVStorageSaveData ofd_packets/00119076 [12:44:38]File name is /storage/ofd_packets/00119076 [12:44:38]Write 301 bytes [12:44:38]NVStorageSaveData done [12:44:38]OFDSenderStorePacket done [12:44:38]KKMCreateOFDPacket done [12:44:38]NVStorageSaveData kkm_last_timestamp [12:44:38]File name is /storage/kkm_last_timestamp [12:44:38]Write 4 bytes [12:44:38]NVStorageSaveData done [12:44:38]ExternCall_PrintAddStr [12:44:38]wPrintStart [12:44:38]Write to MH i2c: 01 00 00 37 02 39 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [12:44:38]RasterBufferAndPrint [12:44:38]line Счет N : (1)949995 [12:44:38]line ИНН: 02508201610067 [12:44:38]line Контрольно-Кассовый Чек [12:44:38]line ПРОДАЖА [12:44:38]line ТРК (МРК, ГНК) : 31 [12:44:38]line Товар: 2710124130 [12:44:38]line Аи-92-К-4 [12:44:38]line 4.430 * 67.80 [12:44:38]line = 300.35 [12:44:38]line НДС 12% НСП 1% [12:44:38]line > о реализуемом товаре [12:44:38]line ОКРУГЛЕНИЕ: -0.35 [12:44:38]line ИТОГО: 300.00 [12:44:38]line Внесено: 300.00 [12:44:38]line СДАЧА: 0.00 [12:44:38]line НСП 1% : 2.66 [12:44:38]line НДС 12% : 31.90 [12:44:38]line Наличными: 300.00 [12:44:38]line Безнал.: 0.00 [12:44:38]line Место: АЗС № 134 "Партнер Нефть" [12:44:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:44:38]line СНО: Общий режим [12:44:38]line Чек 128 30.07.2024 12:44 [12:44:38]line Смена: 435 ФФД: 1.0 [12:44:38]line ЗНМ: 0300000044 [12:44:38]line РНМ: 0000000000092660 [12:44:38]line Версия ККМ: 001 [12:44:38]line ФМ: 0000000000874939 [12:44:38]line ФД: 119076 [12:44:38]line ФПД: 57609158478418 [12:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T124437&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119076&fm=57609158478418&tin=02508201610067®Number=0000000000092660&sum=30000 [12:44:38]written 0, free lines is 4095 [12:44:39]OFD Sender: Processing packet 119076 [packets to send 86, broken 85] [12:44:39]ProducePacketName [12:44:39]name=ofd_packets/00119076 [12:44:39]OFD Sender: To server: pG, [12:44:39]CommunicateWithHost lk.salyk.kg:30040 [12:44:39]ConnectInit lk.salyk.kg [12:44:39]Write to MH i2c: 01 00 00 61 02 63 [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 07 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 DC 0C 52 [12:44:39]RasterBufferAndPrint [12:44:39]line [12:44:39]line [12:44:39]line [12:44:39]line [12:44:39]line [12:44:39]written 0, free lines is 3298 [12:44:39]MH_Cut [12:44:39]Write to MH i2c: D1 01 00 68 02 01 3C [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: D1 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: D1 01 00 [12:44:39]MH_I2C_Read... [12:44:39]Read from MH i2c: D1 01 00 68 02 00 3B [12:44:39]Write to MH i2c: 01 00 00 69 02 6B [12:44:39]Write i2c OK [12:44:39]MH_I2C_Read... [12:44:40]*** Cut start [12:44:40]*** Partial cut [12:44:40]*** CUTSNS_PIN = 1 [12:44:40]*** CUTSNS_PIN = 0 [12:44:40]*** Brake cut motor [12:44:40]Read from MH i2c: 01 [12:44:40]MH_I2C_Read... [12:44:40]*** Stop cut motor [12:44:40]*** Cut end [12:44:40]Read from MH i2c: 01 07 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [12:44:40]process_action close_receipt done [12:44:40]requested_data is exist [12:44:40]produce_requested_data [12:44:40]requested_item fm.sn is exist - process it [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 11 00 00 [12:44:40]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:40]Read from MH i2c: E2 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 17 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 41 [12:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:44:40]wFMCommunicate OK [12:44:40]requested_item fd.num is exist - process it [12:44:40]SAM_PROTO_GetFieldsCounters [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 13 00 00 [12:44:40]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:40]Read from MH i2c: E2 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 62 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 62 00 6B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 24 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:40]wFMCommunicate OK [12:44:40]SAM_PROTO_GetFieldsCounters done [12:44:40]requested_item shift.num is exist - process it [12:44:40]requested_item shift.opened is exist - process it [12:44:40]req_shift_opened [12:44:40]FM_GetShiftState [12:44:40]SAM_PROTO_GetShiftState [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 13 01 00 [12:44:40]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:41]Read from MH i2c: E2 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 0E 00 [12:44:41]MH_I2C_Read... [12:44:41]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B6 [12:44:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:44:41]wFMCommunicate OK [12:44:41]SAM_PROTO_GetShiftState done [12:44:41]FM_GetShiftState done [12:44:41]req_shift_opened done [12:44:41]requested_item shift.open_date is exist - process it [12:44:41]req_shift_open_date [12:44:41]req_shift_open_date done [12:44:41]produce_requested_data done [12:44:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119076,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:44:41]process_action_free close_receipt [12:44:41]json_value_free [12:44:41]json_value_free done [12:44:41]process_json_proto returns [12:44:41]Send response to host [12:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119076,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:44:41]free response buf [12:44:41]execute_script done [12:44:41]execute_script returns [12:44:41]free content buf [12:44:41]Sock 9.Close socket [12:44:41]Sock 9.Thread stoped [12:44:41]Connected sock=10 [12:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 01 47 07 01 D1 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 80 00 00 00 F4 03 04 00 35 E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D1 01 00 35 04 06 00 34 65 2D 6D 4A 52 88 87 E6 94 3E 87 C5 AB [12:44:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 1A 47 00 9C 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 24 D1 01 00 F4 03 04 00 C3 8D A8 66 B6 04 01 00 00 16 F8 25 39 3C B1 B2 8D [12:44:42]CommunicateWithHost err = 0 [12:44:42]CheckOFDResponse [12:44:42]1017 (14) - 77093643461234 [12:44:42]1041 (16) - 0000000000874939 [12:44:42]1040 (4) - 119076 [12:44:42]1012 (4) - 30.07.2024 06:52 [12:44:42]1206 (1) - 0 [12:44:42]OFD Sender: Remove packet 119076 [12:44:42]ProducePacketName [12:44:42]name=ofd_packets/00119076 [12:44:42]NVStorageDeleteData [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:05]recv_with_timeout no data received [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:05]accept exits with 7 [12:46:05]New connection [12:46:05]New thread 3066781028 created [12:46:05]Thread 3066637668 joined [12:46:05]Waiting for new connection... [12:46:05] Sock 7.Parse request [12:46:05]Sock 7.Check first char [12:46:05]Sock 7.First char is OK [12:46:05]request: POST /json_proto HTTP/1.0 [12:46:05]Method: POST [12:46:05]URL: /json_proto [12:46:05]Method is POST - this is cgi request [12:46:05]url: /json_proto [12:46:05]query_string will be loaded in cgi processing [12:46:05]execute_cgi json_proto POST (null) [12:46:05]execute_cgi path=json_proto method=POST [12:46:05]POST find Content-Length [12:46:05]Host: 172.17.45.7:8080 [12:46:05]Content-Length: 677 [12:46:05]Content-Type: application/json [12:46:05] [12:46:05]POST finish read [12:46:05]Found Content-Length = 677 [12:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:05]execute_script... [12:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:05]POST & json_proto [12:46:05]process_json_proto [12:46:05]json parsed OK: [12:46:05]protocol is kg_v1.0 [12:46:05]action value=close_receipt [12:46:05]process_action close_receipt [12:46:05]cmd_close_receipt [12:46:05]MH_GetDate [12:46:05]Write to MH i2c: F0 00 00 6D 02 5E [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: F0 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: F0 09 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: F0 09 00 6D 02 00 8D E0 A8 66 90 0F 3E 66 25 [12:46:05]GetLastDocTimeStamp 1722343477 [12:46:05]current date 1722343565 [12:46:05]FM_GetShiftState [12:46:05]SAM_PROTO_GetShiftState [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 13 01 00 [12:46:05]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 0E 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B8 [12:46:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:46:05]wFMCommunicate OK [12:46:05]SAM_PROTO_GetShiftState done [12:46:05]FM_GetShiftState done [12:46:05]opened in 1722298242 [12:46:05]opened+sec_in_day 1722384642 [12:46:05]quantity*price = 40002 [12:46:05]sum+1 = 40003 [12:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 129 30.07.2024 12:46 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119077 ФПД: 58577956614087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T124605&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119077&fm=58577956614087&tin=02508201610067®Number=0000000000092660&sum=40000 [12:46:06]StoreToDocumentArchive [12:46:06]shift 435 fd 119077 [12:46:06]save to /storage/0435/doc_00119077 [12:46:06]save last doc name /storage/0435/doc_00119077 to /storage/kkm_last_doc_name [12:46:06]save OK [12:46:06]Clear old archive folders... [12:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:06]tlvbuf is 00EB6FD0 [12:46:06]SAM_PROTO_ClearQueue [12:46:06]wFMCommunicate request_size=4 [12:46:06]MH_SAM_APDU [12:46:06]CAPDU: 80 09 00 00 [12:46:06]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:06]Read from MH i2c: E2 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 03 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [12:46:06]RAPDU: 90 00 [12:46:06]wFMCommunicate OK [12:46:06]SAM_PROTO_ClearQueue done [12:46:06]KKMCreateOFDPacket [12:46:06]OFDProtocolAddRootSTLVToBuf [12:46:06]FM_MakeSignedData [12:46:06]FM_MakeSignedData [12:46:06]SAM_PROTO_SignData [12:46:06]wFMCommunicate request_size=4 [12:46:06]MH_SAM_APDU [12:46:06]CAPDU: 80 0D 01 02 [12:46:06]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:06]Read from MH i2c: E2 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 03 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [12:46:06]RAPDU: 90 00 [12:46:06]wFMCommunicate OK [12:46:06]wFMCommunicate request_size=255 [12:46:06]MH_SAM_APDU [12:46:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 81 00 00 00 F4 03 04 00 8D E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D1 01 00 35 04 06 00 35 [12:46:06]Write to MH i2c: E2 02 01 7D 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 81 00 00 00 F4 03 04 00 8D E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D1 01 00 35 04 06 00 35 00 00 3C [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:07]Read from MH i2c: E2 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 03 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [12:46:07]RAPDU: 90 00 [12:46:07]wFMCommunicate OK [12:46:07]wFMCommunicate request_size=10 [12:46:07]MH_SAM_APDU [12:46:07]CAPDU: 80 0D 02 02 05 46 BE 4B AF C7 [12:46:07]Write to MH i2c: E2 0D 00 7E 02 80 0D 02 02 05 00 46 BE 4B AF C7 00 00 C9 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:07]Read from MH i2c: E2 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 03 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [12:46:07]RAPDU: 90 00 [12:46:07]wFMCommunicate OK [12:46:07]wFMCommunicate request_size=4 [12:46:07]MH_SAM_APDU [12:46:07]CAPDU: 80 0D 03 02 [12:46:07]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:07]Read from MH i2c: E2 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 0B 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 0B 00 7F 02 00 DA A5 E9 49 4C 77 3B C3 90 00 6F [12:46:07]RAPDU: DA A5 E9 49 4C 77 3B C3 90 00 [12:46:07]wFMCommunicate OK [12:46:07]SAM_PROTO_SignData done [12:46:07]FM_MakeSignedData done [12:46:07]CreateOFDProtocolMessage [12:46:07]wFMCommunicate request_size=4 [12:46:07]MH_SAM_APDU [12:46:07]CAPDU: 80 11 00 00 [12:46:07]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:07]Read from MH i2c: E2 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 17 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 57 [12:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:46:07]wFMCommunicate OK [12:46:07]CreateOFDProtocolMessage done [12:46:07]OFDSenderStorePacket 119077 [12:46:07]StoreOFDPacket docnum=119077 [12:46:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 B3 07 01 01 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 81 00 00 00 F4 03 04 00 8D E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D1 01 00 35 04 06 00 35 46 BE 4B AF C7 DA A5 E9 49 4C 77 3B C3 [12:46:07]CheckFolder [12:46:07]dirname=/storage/ofd_packets [12:46:07]CheckFolder done [12:46:07]ProducePacketName [12:46:07]name=ofd_packets/00119077 [12:46:07]NVStorageSaveData ofd_packets/00119077 [12:46:07]File name is /storage/ofd_packets/00119077 [12:46:07]Write 301 bytes [12:46:07]NVStorageSaveData done [12:46:07]OFDSenderStorePacket done [12:46:07]KKMCreateOFDPacket done [12:46:07]NVStorageSaveData kkm_last_timestamp [12:46:07]File name is /storage/kkm_last_timestamp [12:46:07]Write 4 bytes [12:46:07]NVStorageSaveData done [12:46:07]ExternCall_PrintAddStr [12:46:07]wPrintStart [12:46:07]Write to MH i2c: 01 00 00 81 02 83 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [12:46:07]RasterBufferAndPrint [12:46:07]line Счет N : (1)949996 [12:46:07]line ИНН: 02508201610067 [12:46:07]line Контрольно-Кассовый Чек [12:46:07]line ПРОДАЖА [12:46:07]line ТРК (МРК, ГНК) : 41 [12:46:07]line Товар: 2710124130 [12:46:07]line Аи-92-К-4 [12:46:07]line 5.900 * 67.80 [12:46:07]line = 400.02 [12:46:07]line НДС 12% НСП 1% [12:46:07]line > о реализуемом товаре [12:46:07]line ОКРУГЛЕНИЕ: -0.02 [12:46:07]line ИТОГО: 400.00 [12:46:07]line Внесено: 400.00 [12:46:07]line СДАЧА: 0.00 [12:46:07]line НСП 1% : 3.54 [12:46:07]line НДС 12% : 42.48 [12:46:07]line Наличными: 400.00 [12:46:07]line Безнал.: 0.00 [12:46:07]line Место: АЗС № 134 "Партнер Нефть" [12:46:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:46:07]line СНО: Общий режим [12:46:07]line Чек 129 30.07.2024 12:46 [12:46:07]line Смена: 435 ФФД: 1.0 [12:46:07]line ЗНМ: 0300000044 [12:46:07]line РНМ: 0000000000092660 [12:46:07]line Версия ККМ: 001 [12:46:07]line ФМ: 0000000000874939 [12:46:07]line ФД: 119077 [12:46:07]line ФПД: 58577956614087 [12:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T124605&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119077&fm=58577956614087&tin=02508201610067®Number=0000000000092660&sum=40000 [12:46:07]written 0, free lines is 4095 [12:46:07]OFD Sender: Processing packet 119077 [packets to send 86, broken 85] [12:46:07]ProducePacketName [12:46:07]name=ofd_packets/00119077 [12:46:07]OFD Sender: To server: pG, [12:46:07]CommunicateWithHost lk.salyk.kg:30040 [12:46:07]ConnectInit lk.salyk.kg [12:46:07]Write to MH i2c: 01 00 00 AB 02 AD [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 D7 0C 97 [12:46:07]RasterBufferAndPrint [12:46:07]line [12:46:07]line [12:46:07]line [12:46:07]line [12:46:07]line [12:46:07]written 0, free lines is 3293 [12:46:07]MH_Cut [12:46:07]Write to MH i2c: D1 01 00 B2 02 01 86 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: D1 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: D1 01 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: D1 01 00 B2 02 00 85 [12:46:07]Write to MH i2c: 01 00 00 B3 02 B5 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:08]*** Cut start [12:46:08]*** Partial cut [12:46:08]*** CUTSNS_PIN = 1 [12:46:08]*** CUTSNS_PIN = 0 [12:46:08]*** Brake cut motor [12:46:09]Read from MH i2c: 01 [12:46:09]MH_I2C_Read... [12:46:09]*** Stop cut motor [12:46:09]*** Cut end [12:46:09]Read from MH i2c: 01 07 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [12:46:09]process_action close_receipt done [12:46:09]requested_data is exist [12:46:09]produce_requested_data [12:46:09]requested_item fm.sn is exist - process it [12:46:09]wFMCommunicate request_size=4 [12:46:09]MH_SAM_APDU [12:46:09]CAPDU: 80 11 00 00 [12:46:09]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 17 00 [12:46:09]MH_I2C_Read... [12:46:09]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 34 39 33 39 90 00 8B [12:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:46:09]wFMCommunicate OK [12:46:09]requested_item fd.num is exist - process it [12:46:09]SAM_PROTO_GetFieldsCounters [12:46:09]wFMCommunicate request_size=4 [12:46:09]MH_SAM_APDU [12:46:09]CAPDU: 80 13 00 00 [12:46:09]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 62 00 [12:46:09]MH_I2C_Read... [12:46:09]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [12:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 25 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:09]wFMCommunicate OK [12:46:09]SAM_PROTO_GetFieldsCounters done [12:46:09]requested_item shift.num is exist - process it [12:46:09]requested_item shift.opened is exist - process it [12:46:09]req_shift_opened [12:46:09]FM_GetShiftState [12:46:09]SAM_PROTO_GetShiftState [12:46:09]wFMCommunicate request_size=4 [12:46:09]MH_SAM_APDU [12:46:09]CAPDU: 80 13 01 00 [12:46:09]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [12:46:09]Write i2c OK [12:46:09]MH_I2C_Read... [12:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:09]Read from MH i2c: E2 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 0E 00 [12:46:09]MH_I2C_Read... [12:46:09]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 00 [12:46:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:46:09]wFMCommunicate OK [12:46:09]SAM_PROTO_GetShiftState done [12:46:09]FM_GetShiftState done [12:46:09]req_shift_opened done [12:46:09]requested_item shift.open_date is exist - process it [12:46:09]req_shift_open_date [12:46:09]req_shift_open_date done [12:46:09]produce_requested_data done [12:46:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119077,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [12:46:09]process_action_free close_receipt [12:46:09]json_value_free [12:46:09]json_value_free done [12:46:09]process_json_proto returns [12:46:09]Send response to host [12:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119077,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [12:46:09]free response buf [12:46:09]execute_script done [12:46:09]execute_script returns [12:46:09]free content buf [12:46:09]Sock 7.Close socket [12:46:09]Sock 7.Thread stoped [12:46:09]Connected sock=11 [12:46:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 B3 07 01 01 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 81 00 00 00 F4 03 04 00 8D E0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D1 01 00 35 04 06 00 35 46 BE 4B AF C7 DA A5 E9 49 4C 77 3B C3 [12:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 22 6D 47 00 2D 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 25 D1 01 00 F4 03 04 00 1A 8E A8 66 B6 04 01 00 00 3D 63 99 FA EB A7 95 67 [12:46:09]CommunicateWithHost err = 0 [12:46:09]CheckOFDResponse [12:46:09]1017 (14) - 77093643461234 [12:46:09]1041 (16) - 0000000000874939 [12:46:09]1040 (4) - 119077 [12:46:09]1012 (4) - 30.07.2024 06:54 [12:46:09]1206 (1) - 0 [12:46:09]OFD Sender: Remove packet 119077 [12:46:09]ProducePacketName [12:46:09]name=ofd_packets/00119077 [12:46:09]NVStorageDeleteData [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:55:13]ConnectInit Can't connect to host [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:23]accept exits with 10 [12:56:23]New connection [12:56:23]New thread 3066637668 created [12:56:23]Thread 3066781028 joined [12:56:23]Waiting for new connection... [12:56:23] Sock 10.Parse request [12:56:23]Sock 10.Check first char [12:56:23]Sock 10.First char is OK [12:56:23]request: POST /json_proto HTTP/1.0 [12:56:23]Method: POST [12:56:23]URL: /json_proto [12:56:23]Method is POST - this is cgi request [12:56:23]url: /json_proto [12:56:23]query_string will be loaded in cgi processing [12:56:23]execute_cgi json_proto POST (null) [12:56:23]execute_cgi path=json_proto method=POST [12:56:23]POST find Content-Length [12:56:23]Host: 172.17.45.7:8080 [12:56:23]Content-Length: 819 [12:56:23]Content-Type: application/json [12:56:23] [12:56:23]POST finish read [12:56:23]Found Content-Length = 819 [12:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:23]execute_script... [12:56: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)949997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:23]POST & json_proto [12:56:23]process_json_proto [12:56:23]json parsed OK: [12:56:23]protocol is kg_v1.0 [12:56:23]action value=close_receipt [12:56:23]process_action close_receipt [12:56:23]cmd_close_receipt [12:56:23]MH_GetDate [12:56:23]Write to MH i2c: F0 00 00 B7 02 A8 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: F0 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: F0 09 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: F0 09 00 B7 02 00 F7 E2 A8 66 90 0F 3E 66 DB [12:56:23]GetLastDocTimeStamp 1722343565 [12:56:23]current date 1722344183 [12:56:23]FM_GetShiftState [12:56:23]SAM_PROTO_GetShiftState [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 13 01 00 [12:56:23]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0E 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 02 [12:56:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [12:56:23]wFMCommunicate OK [12:56:23]SAM_PROTO_GetShiftState done [12:56:23]FM_GetShiftState done [12:56:23]opened in 1722298242 [12:56:23]opened+sec_in_day 1722384642 [12:56:23]quantity*price = 300075 [12:56:23]sum+1 = 300077 [12:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 130 30.07.2024 12:56 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119078 ФПД: 222086992977922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T125623&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119078&fm=222086992977922&tin=02508201610067®Number=0000000000092660&sum=300000 [12:56:24]StoreToDocumentArchive [12:56:24]shift 435 fd 119078 [12:56:24]save to /storage/0435/doc_00119078 [12:56:24]save last doc name /storage/0435/doc_00119078 to /storage/kkm_last_doc_name [12:56:24]save OK [12:56:24]Clear old archive folders... [12:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:56:24]tlvbuf is 00E0FEF0 [12:56:24]SAM_PROTO_ClearQueue [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 09 00 00 [12:56:24]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]SAM_PROTO_ClearQueue done [12:56:24]KKMCreateOFDPacket [12:56:24]OFDProtocolAddRootSTLVToBuf [12:56:24]FM_MakeSignedData [12:56:24]FM_MakeSignedData [12:56:24]SAM_PROTO_SignData [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 01 02 [12:56:24]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]wFMCommunicate request_size=255 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 E2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D1 01 00 35 04 06 00 C9 FC A8 53 [12:56:24]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 E2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D1 01 00 35 04 06 00 C9 FC A8 53 00 00 DD [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]wFMCommunicate request_size=7 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 02 02 02 60 02 [12:56:24]Write to MH i2c: E2 0A 00 C8 02 80 0D 02 02 02 00 60 02 00 00 AA [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 03 02 [12:56:24]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 0B 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 0B 00 C9 02 00 71 CA FB 57 24 3B 13 32 90 00 78 [12:56:24]RAPDU: 71 CA FB 57 24 3B 13 32 90 00 [12:56:24]wFMCommunicate OK [12:56:24]SAM_PROTO_SignData done [12:56:24]FM_MakeSignedData done [12:56:24]CreateOFDProtocolMessage [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 11 00 00 [12:56:24]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 17 00 [12:56:24]MH_I2C_Read... [12:56:24]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 34 39 33 39 90 00 A1 [12:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [12:56:24]wFMCommunicate OK [12:56:24]CreateOFDProtocolMessage done [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572538 (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: 7001240+1715343248=1722344488 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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:11]Write to MH i2c: D6 06 00 05 00 41 00 38 00 FF FF 57 [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 28 E4 A8 66 90 0F 3E 66 5C [13:01:28]Current date/time: 30.07.2024 13:01 [13:01:28]FM_Init [13:01:28]wFMConnect [13:01:28]MH_SAM_On [13:01:28]Write to MH i2c: E0 00 00 08 00 E7 [13:01:28]Write i2c OK [13:01:28]MH_I2C_Read... [13:01:28]*** iso7816_init finished! [13:01:28]*** atr: [13:01:28]*** 0F 3B D5 18 FF 81 91 FE [13:01:28]*** 1F C3 80 73 C8 21 10 0A [13:01:28]*** 00 00 00 00 00 00 00 00 [13:01:28]*** 00 00 00 00 00 00 00 00 [13:01:28]*** 00 00 00 00 00 00 00 00 [13:01:28]*** 00 00 00 00 00 00 00 00 [13:01:28]*** 00 00 00 00 00 00 00 00 [13:01:28]*** 00 00 00 00 00 00 00 00 [13:01:28]Read from MH i2c: E0 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E0 10 00 [13:01:28]MH_I2C_Read... [13:01:28]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 [13:01:28]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:01:28]wFMCommunicate request_size=10 [13:01:28]MH_SAM_APDU [13:01:28]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:01:28]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:09] *** EcrCore started. Build 196 *** [00:00:09]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]/dev/ttyS4 opened [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 7001303+1715343248=1722344551 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 68 E4 A8 66 90 0F 3E 66 9C [13:02:32]Current date/time: 30.07.2024 13:02 [13:02:32]FM_Init [13:02:32]wFMConnect [13:02:32]MH_SAM_On [13:02:32]Write to MH i2c: E0 00 00 08 00 E7 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_init finished! [13:02:32]*** atr: [13:02:32]*** 0F 3B D5 18 FF 81 91 FE [13:02:32]*** 1F C3 80 73 C8 21 10 0A [13:02:32]*** 00 00 00 00 00 00 00 00 [13:02:32]*** 00 00 00 00 00 00 00 00 [13:02:32]*** 00 00 00 00 00 00 00 00 [13:02:32]*** 00 00 00 00 00 00 00 00 [13:02:32]*** 00 00 00 00 00 00 00 00 [13:02:32]*** 00 00 00 00 00 00 00 00 [13:02:32]Read from MH i2c: E0 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E0 10 00 [13:02:32]MH_I2C_Read... [13:02:32]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 [13:02:32]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:02:32]wFMCommunicate request_size=10 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:02:32]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:02:32]RAPDU: 90 00 [13:02:32]wFMCommunicate OK [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 11 00 00 [13:02:32]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 17 00 [13:02:32]MH_I2C_Read... [13:02:32]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 34 39 33 39 90 00 DF [13:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:32]wFMCommunicate OK [13:02:32]Detected FM SN is 0000000000874939 [13:02:32]Stored FM SN is 0000000000874939 [13:02:32]wFMCommunicate request_size=9 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 16 00 00 04 38 32 00 00 [13:02:32]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:02:32]RAPDU: 90 00 [13:02:32]wFMCommunicate OK [13:02:32]FM PIN OK [13:02:32]wFMCommunicate request_size=8 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 14 04 00 03 02 00 01 [13:02:32]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:02:32]RAPDU: 90 00 [13:02:32]wFMCommunicate OK [13:02:32]wFMCommunicate request_size=13 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:02:32]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 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:02:32]RAPDU: 90 00 [13:02:32]wFMCommunicate OK [13:02:32]wFMCommunicate request_size=4 [13:02:32]MH_SAM_APDU [13:02:32]CAPDU: 80 11 00 00 [13:02:32]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:32]Read from MH i2c: E2 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: E2 17 00 [13:02:32]MH_I2C_Read... [13:02:32]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 34 39 33 39 90 00 E3 [13:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:32]wFMCommunicate OK [13:02:32]DocumentArchiveInit [13:02:32]Start Httpd... [13:02:32]Httpd thread 3067424100 created [13:02:32]Write to MH i2c: 01 00 00 0F 00 0F [13:02:32]Write i2c OK [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 07 00 [13:02:32]MH_I2C_Read... [13:02:32]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:02:32]Allocated Socket 5 [13:02:32]Bind OK [13:02:32]Listen OK [13:02:32]httpd running on port 8080 [13:02:32]Waiting for new connection... [13:02:32]MH Int Process started [13:02:32]OFD Sender: Processing packet 119078 [packets to send 86, broken 85] [13:02:32]ProducePacketName [13:02:32]name=ofd_packets/00119078 [13:02:32]OFD Sender: To server: pG, [13:02:32]CommunicateWithHost lk.salyk.kg:30040 [13:02:32]ConnectInit lk.salyk.kg [13:02:34]Connected sock=7 [13:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 99 16 04 01 6B 04 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F7 E2 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D1 01 00 35 04 06 00 C9 FC A8 53 60 02 71 CA FB 57 24 3B 13 32 [13:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 D7 47 00 9B 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 26 D1 01 00 F4 03 04 00 F3 91 A8 66 B6 04 01 00 00 49 37 73 37 F2 F4 48 7D [13:02:35]CommunicateWithHost err = 0 [13:02:35]CheckOFDResponse [13:02:35]1017 (14) - 77093643461234 [13:02:35]1041 (16) - 0000000000874939 [13:02:35]1040 (4) - 119078 [13:02:35]1012 (4) - 30.07.2024 07:10 [13:02:35]1206 (1) - 0 [13:02:35]OFD Sender: Remove packet 119078 [13:02:35]ProducePacketName [13:02:35]name=ofd_packets/00119078 [13:02:35]NVStorageDeleteData [13:02:35]OFD Sender: No OFD packet to send [13:02:39]accept exits with 6 [13:02:39]New connection [13:02:39]New thread 3067137380 created [13:02:39]Waiting for new connection... [13:02:39] Sock 6.Parse request [13:02:39]Sock 6.Check first char [13:02:39]Sock 6.First char is OK [13:02:39]request: POST /json_proto HTTP/1.0 [13:02:39]Method: POST [13:02:39]URL: /json_proto [13:02:39]Method is POST - this is cgi request [13:02:39]url: /json_proto [13:02:39]query_string will be loaded in cgi processing [13:02:39]execute_cgi json_proto POST (null) [13:02:39]execute_cgi path=json_proto method=POST [13:02:39]POST find Content-Length [13:02:39]Host: 172.17.45.7:8080 [13:02:39]Content-Length: 215 [13:02:39]Content-Type: application/json [13:02:39] [13:02:39]POST finish read [13:02:39]Found Content-Length = 215 [13:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:39]execute_script... [13:02:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:39]POST & json_proto [13:02:39]process_json_proto [13:02:39]json parsed OK: [13:02:39]protocol is kg_v1.0 [13:02:39]action value=get_value [13:02:39]process_action get_value [13:02:39]cmd_get_value [13:02:39]process_action get_value done [13:02:39]requested_data is exist [13:02:39]produce_requested_data [13:02:39]requested_item kkm.sn is exist - process it [13:02:39]requested_item kkm.ver is exist - process it [13:02:39]requested_item fm.sn is exist - process it [13:02:39]wFMCommunicate request_size=4 [13:02:39]MH_SAM_APDU [13:02:39]CAPDU: 80 11 00 00 [13:02:39]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:39]Read from MH i2c: E2 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 17 00 [13:02:39]MH_I2C_Read... [13:02:39]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 34 39 33 39 90 00 E5 [13:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:39]wFMCommunicate OK [13:02:39]requested_item fd.num is exist - process it [13:02:39]SAM_PROTO_GetFieldsCounters [13:02:39]wFMCommunicate request_size=4 [13:02:39]MH_SAM_APDU [13:02:39]CAPDU: 80 13 00 00 [13:02:39]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:39]Read from MH i2c: E2 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 62 00 [13:02:39]MH_I2C_Read... [13:02:39]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [13:02:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:39]wFMCommunicate OK [13:02:39]SAM_PROTO_GetFieldsCounters done [13:02:39]requested_item shift.num is exist - process it [13:02:39]requested_item shift.opened is exist - process it [13:02:39]req_shift_opened [13:02:39]FM_GetShiftState [13:02:39]SAM_PROTO_GetShiftState [13:02:39]wFMCommunicate request_size=4 [13:02:39]MH_SAM_APDU [13:02:39]CAPDU: 80 13 01 00 [13:02:39]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:02:39]Write i2c OK [13:02:39]MH_I2C_Read... [13:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:39]Read from MH i2c: E2 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 0E 00 [13:02:39]MH_I2C_Read... [13:02:39]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5A [13:02:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:02:39]wFMCommunicate OK [13:02:39]SAM_PROTO_GetShiftState done [13:02:39]FM_GetShiftState done [13:02:39]req_shift_opened done [13:02:39]requested_item shift.open_date is exist - process it [13:02:39]req_shift_open_date [13:02:39]req_shift_open_date done [13:02:39]produce_requested_data done [13:02:39]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119078,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:02:39]process_action_free get_value [13:02:39]json_value_free [13:02:39]json_value_free done [13:02:39]process_json_proto returns [13:02:39]Send response to host [13:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119078,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:02:39]free response buf [13:02:39]execute_script done [13:02:39]execute_script returns [13:02:40]free content buf [13:02:40]Sock 6.Close socket [13:02:40]Sock 6.Thread stoped [13:02:40]accept exits with 9 [13:02:40]New connection [13:02:40]New thread 3066994020 created [13:02:40]Thread 3067137380 joined [13:02:40]Waiting for new connection... [13:02:40] Sock 9.Parse request [13:02:40]Sock 9.Check first char [13:02:40]Sock 9.First char is OK [13:02:40]request: POST /json_proto HTTP/1.0 [13:02:40]Method: POST [13:02:40]URL: /json_proto [13:02:40]Method is POST - this is cgi request [13:02:40]url: /json_proto [13:02:40]query_string will be loaded in cgi processing [13:02:40]execute_cgi json_proto POST (null) [13:02:40]execute_cgi path=json_proto method=POST [13:02:40]POST find Content-Length [13:02:40]Host: 172.17.45.7:8080 [13:02:40]Content-Length: 331 [13:02:40]Content-Type: application/json [13:02:40] [13:02:40]POST finish read [13:02:40]Found Content-Length = 331 [13:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:02:40]execute_script... [13:02:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:02:40]POST & json_proto [13:02:40]process_json_proto [13:02:40]json parsed OK: [13:02:40]protocol is kg_v1.0 [13:02:40]action value=get_value [13:02:40]process_action get_value [13:02:40]cmd_get_value [13:02:40]process_action get_value done [13:02:40]requested_data is exist [13:02:40]produce_requested_data [13:02:40]requested_item fm.sale.total is exist - process it [13:02:40]SAM_PROTO_GetFMData [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 13 03 00 [13:02:40]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:02:40]Read from MH i2c: E2 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 FD 00 [13:02:40]MH_I2C_Read... [13:02:40]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 C0 CD 01 00 69 04 A3 00 6F 04 04 00 2A C0 01 00 B1 04 05 00 8C 58 35 79 03 70 04 05 00 DC DE 84 A9 02 72 04 04 00 B0 79 B0 CF 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F8 23 74 5E 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 A9 E1 DE 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 96 0D 00 00 B1 04 04 00 08 51 43 3B 70 04 04 00 08 51 43 3B 72 04 00 00 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 98 4D 4B 06 EF 03 09 90 00 38 [13:02:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C0 CD 01 00 69 04 A3 00 6F 04 04 00 2A C0 01 00 B1 04 05 00 8C 58 35 79 03 70 04 05 00 DC DE 84 A9 02 72 04 04 00 B0 79 B0 CF 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F8 23 74 5E 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 A9 E1 DE 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 96 0D 00 00 B1 04 04 00 08 51 43 3B 70 04 04 00 08 51 43 3B 72 04 00 00 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 98 4D 4B 06 EF 03 09 90 00 [13:02:40]wFMCommunicate OK [13:02:40]wFMCommunicate request_size=4 [13:02:40]MH_SAM_APDU [13:02:40]CAPDU: 80 17 00 00 [13:02:40]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:02:40]Write i2c OK [13:02:40]MH_I2C_Read... [13:02:40]OFD Sender: No OFD packet to send [13:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 FD 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A9 [13:02:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 17 00 00 [13:02:41]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 FD 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [13:02:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 17 00 00 [13:02:41]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 FD 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [13:02:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 17 00 00 [13:02:41]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:02:41]Read from MH i2c: E2 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 E2 00 [13:02:41]MH_I2C_Read... [13:02:41]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [13:02:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:02:41]wFMCommunicate OK [13:02:41]SAM_PROTO_GetFMData done [13:02:41]requested_item fm.sale_refund.total is exist - process it [13:02:41]requested_item fm.buy.total is exist - process it [13:02:41]requested_item shift.sale.total is exist - process it [13:02:41]SAM_PROTO_GetShiftData [13:02:41]wFMCommunicate request_size=4 [13:02:41]MH_SAM_APDU [13:02:41]CAPDU: 80 13 02 00 [13:02:41]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:02:41]Write i2c OK [13:02:41]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 FD 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 82 00 00 00 69 04 9D 00 6F 04 04 00 7F 00 00 00 B1 04 04 00 7C F0 2D 01 70 04 03 00 C4 D9 6B 72 04 03 00 B8 16 C2 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 12 20 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 2A AC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BB [13:02:42]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 82 00 00 00 69 04 9D 00 6F 04 04 00 7F 00 00 00 B1 04 04 00 7C F0 2D 01 70 04 03 00 C4 D9 6B 72 04 03 00 B8 16 C2 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 12 20 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 2A AC 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:02:42]wFMCommunicate OK [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 17 00 00 [13:02:42]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 FD 00 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 F7 [13:02:42]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 [13:02:42]wFMCommunicate OK [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 17 00 00 [13:02:42]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:42]Read from MH i2c: E2 [13:02:42]MH_I2C_Read... [13:02:42]Read from MH i2c: E2 FD 00 [13:02:42]MH_I2C_Read... [13:02:42]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 [13:02:42]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 [13:02:42]wFMCommunicate OK [13:02:42]wFMCommunicate request_size=4 [13:02:42]MH_SAM_APDU [13:02:42]CAPDU: 80 17 00 00 [13:02:42]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:02:42]Write i2c OK [13:02:42]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 FD 00 [13:02:43]MH_I2C_Read... [13:02:43]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 [13:02:43]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 [13:02:43]wFMCommunicate OK [13:02:43]wFMCommunicate request_size=4 [13:02:43]MH_SAM_APDU [13:02:43]CAPDU: 80 17 00 00 [13:02:43]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [13:02:43]Read from MH i2c: E2 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: E2 D7 00 [13:02:43]MH_I2C_Read... [13:02:43]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 [13:02:43]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 [13:02:43]wFMCommunicate OK [13:02:43]SAM_PROTO_GetShiftData done [13:02:43]requested_item shift.sale.total_cash is exist - process it [13:02:43]requested_item shift.sale_refund.total is exist - process it [13:02:43]requested_item shift.sale_refund.total_cash is exist - process it [13:02:43]requested_item shift.buy.total is exist - process it [13:02:43]requested_item shift.buy.total_cash is exist - process it [13:02:43]produce_requested_data done [13:02:43]produce_requested_data return {"fm.sale.total":149184411.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":197879.00,"shift.sale.total_cash":70681.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:02:43]process_action_free get_value [13:02:43]json_value_free [13:02:43]json_value_free done [13:02:43]process_json_proto returns [13:02:43]Send response to host [13:02:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149184411.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":197879.00,"shift.sale.total_cash":70681.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:02:43]free response buf [13:02:43]execute_script done [13:02:43]execute_script returns [13:02:43]free content buf [13:02:43]Sock 9.Close socket [13:02:43]Sock 9.Thread stoped [13:02:43]accept exits with 6 [13:02:43]New connection [13:02:43]New thread 3067137380 created [13:02:43]Thread 3066994020 joined [13:02:43]Waiting for new connection... [13:02:43] Sock 6.Parse request [13:02:43]Sock 6.Check first char [13:02:43]Sock 6.First char is OK [13:02:43]request: POST /json_proto HTTP/1.0 [13:02:43]Method: POST [13:02:43]URL: /json_proto [13:02:43]Method is POST - this is cgi request [13:02:43]url: /json_proto [13:02:43]query_string will be loaded in cgi processing [13:02:43]execute_cgi json_proto POST (null) [13:02:43]execute_cgi path=json_proto method=POST [13:02:43]POST find Content-Length [13:02:43]Host: 172.17.45.7:8080 [13:02:43]Content-Length: 1210 [13:02:43]Content-Type: application/json [13:02:43] [13:02:43]POST finish read [13:02:43]Found Content-Length = 1210 [13:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949998\u000A30.07.2024 13:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3940805\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:43]execute_script... [13:02:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)949998\u000A30.07.2024 13:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3940805\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:43]POST & json_proto [13:02:43]process_json_proto [13:02:43]json parsed OK: [13:02:43]protocol is kg_v1.0 [13:02:43]action value=print_text [13:02:43]process_action print_text [13:02:43]cmd_print_text [13:02:43]ExternCall_PrintAddStr [13:02:43]wPrintStart [13:02:43]Write to MH i2c: 01 00 00 1D 00 1D [13:02:43]Write i2c OK [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 07 00 [13:02:43]MH_I2C_Read... [13:02:43]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [13:02:43]RasterBufferAndPrint [13:02:43]line *****ТОВАРНЫЙ ЧЕК***** [13:02:43]line АЗС-134 [13:02:43]line Партнер нефть [13:02:43]line 02508201610067 [13:02:43]line Кассир : Айдарали у Б. [13:02:43]line Счет N : (1)949998 [13:02:43]line 30.07.2024 13:00 [13:02:43]line ПРОДАЖА [13:02:43]line ТРК (МРК, ГНК): 41 [13:02:43]line Вид ГСМ : 2710124130 [13:02:43]line Аи-92-К-4 [13:02:43]line 20.000 x 67.80 [13:02:43]line ИТОГ: 1356.00 [13:02:43]line Тип оплаты: Талоны: Топливные Талоны [13:02:43]line 3940805 [13:02:43]line ______________________ [13:02:43]line (подпись) [13:02:43]written 0, free lines is 4095 [13:02:44]Write to MH i2c: 01 00 00 31 00 31 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 16 0E 5C [13:02:44]RasterBufferAndPrint [13:02:44]line [13:02:44]line [13:02:44]line [13:02:44]line [13:02:44]line [13:02:44]written 0, free lines is 3614 [13:02:44]MH_Cut [13:02:44]Write to MH i2c: D1 01 00 38 00 01 0A [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: D1 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: D1 01 00 [13:02:44]MH_I2C_Read... [13:02:44]Read from MH i2c: D1 01 00 38 00 00 09 [13:02:44]Write to MH i2c: 01 00 00 39 00 39 [13:02:44]Write i2c OK [13:02:44]MH_I2C_Read... [13:02:44]*** Cut start [13:02:44]*** Partial cut [13:02:44]*** CUTSNS_PIN = 1 [13:02:44]*** CUTSNS_PIN = 0 [13:02:44]*** Brake cut motor [13:02:45]Read from MH i2c: 01 [13:02:45]MH_I2C_Read... [13:02:45]*** Stop cut motor [13:02:45]*** Cut end [13:02:45]Read from MH i2c: 01 07 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: 01 07 00 39 00 00 00 00 00 00 FF 0F 4E [13:02:45]process_action print_text done [13:02:45]requested_data is exist [13:02:45]produce_requested_data [13:02:45]requested_item fm.sn is exist - process it [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 11 00 00 [13:02:45]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 17 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0F [13:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:45]wFMCommunicate OK [13:02:45]requested_item fd.num is exist - process it [13:02:45]SAM_PROTO_GetFieldsCounters [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 13 00 00 [13:02:45]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 62 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 62 00 3B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [13:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 26 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:45]wFMCommunicate OK [13:02:45]SAM_PROTO_GetFieldsCounters done [13:02:45]requested_item shift.num is exist - process it [13:02:45]requested_item shift.opened is exist - process it [13:02:45]req_shift_opened [13:02:45]FM_GetShiftState [13:02:45]SAM_PROTO_GetShiftState [13:02:45]wFMCommunicate request_size=4 [13:02:45]MH_SAM_APDU [13:02:45]CAPDU: 80 13 01 00 [13:02:45]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [13:02:45]Write i2c OK [13:02:45]MH_I2C_Read... [13:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:45]Read from MH i2c: E2 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 0E 00 [13:02:45]MH_I2C_Read... [13:02:45]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 84 [13:02:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:02:45]wFMCommunicate OK [13:02:45]SAM_PROTO_GetShiftState done [13:02:45]FM_GetShiftState done [13:02:45]req_shift_opened done [13:02:45]requested_item shift.open_date is exist - process it [13:02:45]req_shift_open_date [13:02:45]req_shift_open_date done [13:02:45]produce_requested_data done [13:02:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119078,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:02:45]process_action_free print_text [13:02:45]json_value_free [13:02:45]json_value_free done [13:02:45]process_json_proto returns [13:02:45]Send response to host [13:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119078,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:02:45]free response buf [13:02:45]execute_script done [13:02:45]execute_script returns [13:02:45]free content buf [13:02:45]Sock 6.Close socket [13:02:45]Sock 6.Thread stoped [13:02:45]accept exits with 9 [13:02:45]New connection [13:02:45]New thread 3066994020 created [13:02:45]Thread 3067137380 joined [13:02:45]Waiting for new connection... [13:02:45] Sock 9.Parse request [13:02:45]Sock 9.Check first char [13:02:45]Sock 9.First char is OK [13:02:45]request: POST /json_proto HTTP/1.0 [13:02:45]Method: POST [13:02:45]URL: /json_proto [13:02:45]Method is POST - this is cgi request [13:02:45]url: /json_proto [13:02:45]query_string will be loaded in cgi processing [13:02:45]execute_cgi json_proto POST (null) [13:02:45]execute_cgi path=json_proto method=POST [13:02:45]POST find Content-Length [13:02:45]Host: 172.17.45.7:8080 [13:02:45]Content-Length: 678 [13:02:45]Content-Type: application/json [13:02:45] [13:02:45]POST finish read [13:02:45]Found Content-Length = 678 [13:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:45]execute_script... [13: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)949999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:45]POST & json_proto [13:02:46]process_json_proto [13:02:46]json parsed OK: [13:02:46]protocol is kg_v1.0 [13:02:46]action value=close_receipt [13:02:46]process_action close_receipt [13:02:46]cmd_close_receipt [13:02:46]MH_GetDate [13:02:46]Write to MH i2c: F0 00 00 3D 00 2C [13:02:46]OFD Sender: No OFD packet to send [13:02:46]Write i2c OK [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: F0 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: F0 09 00 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: F0 09 00 3D 00 00 76 E4 A8 66 90 0F 3E 66 E0 [13:02:46]GetLastDocTimeStamp 1722344183 [13:02:46]current date 1722344566 [13:02:46]FM_GetShiftState [13:02:46]SAM_PROTO_GetShiftState [13:02:46]wFMCommunicate request_size=4 [13:02:46]MH_SAM_APDU [13:02:46]CAPDU: 80 13 01 00 [13:02:46]Write to MH i2c: E2 08 00 3E 00 80 13 01 00 00 00 00 00 BB [13:02:46]Write i2c OK [13:02:46]MH_I2C_Read... [13:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:46]Read from MH i2c: E2 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: E2 0E 00 [13:02:46]MH_I2C_Read... [13:02:46]Read from MH i2c: E2 0E 00 3E 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 86 [13:02:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:02:46]wFMCommunicate OK [13:02:46]SAM_PROTO_GetShiftState done [13:02:46]FM_GetShiftState done [13:02:46]opened in 1722298242 [13:02:46]opened+sec_in_day 1722384642 [13:02:46]quantity*price = 80004 [13:02:46]sum+1 = 80005 [13:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 131 30.07.2024 13:02 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119079 ФПД: 187936444676844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130246&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119079&fm=187936444676844&tin=02508201610067®Number=0000000000092660&sum=80000 [13:02:47]StoreToDocumentArchive [13:02:47]shift 435 fd 119079 [13:02:47]save to /storage/0435/doc_00119079 [13:02:47]save last doc name /storage/0435/doc_00119079 to /storage/kkm_last_doc_name [13:02:47]save OK [13:02:47]Clear old archive folders... [13:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:47]tlvbuf is 00116BA0 [13:02:47]SAM_PROTO_ClearQueue [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 09 00 00 [13:02:47]Write to MH i2c: E2 08 00 4B 00 80 09 00 00 00 00 00 00 BD [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 03 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 03 00 4B 00 00 90 00 BF [13:02:47]RAPDU: 90 00 [13:02:47]wFMCommunicate OK [13:02:47]SAM_PROTO_ClearQueue done [13:02:47]KKMCreateOFDPacket [13:02:47]OFDProtocolAddRootSTLVToBuf [13:02:47]FM_MakeSignedData [13:02:47]FM_MakeSignedData [13:02:47]SAM_PROTO_SignData [13:02:47]wFMCommunicate request_size=4 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 0D 01 02 [13:02:47]Write to MH i2c: E2 08 00 4C 00 80 0D 01 02 00 00 00 00 C5 [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 03 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 03 00 4C 00 00 90 00 C0 [13:02:47]RAPDU: 90 00 [13:02:47]wFMCommunicate OK [13:02:47]wFMCommunicate request_size=255 [13:02:47]MH_SAM_APDU [13:02: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 83 00 00 00 F4 03 04 00 76 E4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D1 01 00 35 04 06 00 AA [13:02:47]Write to MH i2c: E2 02 01 4D 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 83 00 00 00 F4 03 04 00 76 E4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D1 01 00 35 04 06 00 AA 00 00 38 [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:47]Read from MH i2c: E2 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 03 00 [13:02:47]MH_I2C_Read... [13:02:47]Read from MH i2c: E2 03 00 4D 00 00 90 00 C1 [13:02:47]RAPDU: 90 00 [13:02:47]wFMCommunicate OK [13:02:47]wFMCommunicate request_size=10 [13:02:47]MH_SAM_APDU [13:02:47]CAPDU: 80 0D 02 02 05 ED 5D 06 7A EC [13:02:47]Write to MH i2c: E2 0D 00 4E 00 80 0D 02 02 05 00 ED 5D 06 7A EC 00 00 88 [13:02:47]Write i2c OK [13:02:47]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 03 00 4E 00 00 90 00 C2 [13:02:48]RAPDU: 90 00 [13:02:48]wFMCommunicate OK [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 0D 03 02 [13:02:48]Write to MH i2c: E2 08 00 4F 00 80 0D 03 02 00 00 00 00 CA [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 0B 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 0B 00 4F 00 00 82 03 8D 0C 2F B7 BE B8 90 00 45 [13:02:48]RAPDU: 82 03 8D 0C 2F B7 BE B8 90 00 [13:02:48]wFMCommunicate OK [13:02:48]SAM_PROTO_SignData done [13:02:48]FM_MakeSignedData done [13:02:48]CreateOFDProtocolMessage [13:02:48]wFMCommunicate request_size=4 [13:02:48]MH_SAM_APDU [13:02:48]CAPDU: 80 11 00 00 [13:02:48]Write to MH i2c: E2 08 00 50 00 80 11 00 00 00 00 00 00 CA [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:48]Read from MH i2c: E2 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 17 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: E2 17 00 50 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [13:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:48]wFMCommunicate OK [13:02:48]CreateOFDProtocolMessage done [13:02:48]OFDSenderStorePacket 119079 [13:02:48]StoreOFDPacket docnum=119079 [13:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F7 F0 07 01 25 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 83 00 00 00 F4 03 04 00 76 E4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D1 01 00 35 04 06 00 AA ED 5D 06 7A EC 82 03 8D 0C 2F B7 BE B8 [13:02:48]CheckFolder [13:02:48]dirname=/storage/ofd_packets [13:02:48]CheckFolder done [13:02:48]ProducePacketName [13:02:48]name=ofd_packets/00119079 [13:02:48]NVStorageSaveData ofd_packets/00119079 [13:02:48]File name is /storage/ofd_packets/00119079 [13:02:48]Write 301 bytes [13:02:48]NVStorageSaveData done [13:02:48]OFDSenderStorePacket done [13:02:48]KKMCreateOFDPacket done [13:02:48]NVStorageSaveData kkm_last_timestamp [13:02:48]File name is /storage/kkm_last_timestamp [13:02:48]Write 4 bytes [13:02:48]NVStorageSaveData done [13:02:48]ExternCall_PrintAddStr [13:02:48]wPrintStart [13:02:48]Write to MH i2c: 01 00 00 51 00 51 [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 07 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [13:02:48]RasterBufferAndPrint [13:02:48]line Счет N : (1)949999 [13:02:48]line ИНН: 02508201610067 [13:02:48]line Контрольно-Кассовый Чек [13:02:48]line ПРОДАЖА [13:02:48]line ТРК (МРК, ГНК) : 61 [13:02:48]line Товар: 2710124130 [13:02:48]line Аи-92-К-4 [13:02:48]line 11.800 * 67.80 [13:02:48]line = 800.04 [13:02:48]line НДС 12% НСП 1% [13:02:48]line > о реализуемом товаре [13:02:48]line ОКРУГЛЕНИЕ: -0.04 [13:02:48]line ИТОГО: 800.00 [13:02:48]line Внесено: 800.00 [13:02:48]line СДАЧА: 0.00 [13:02:48]line НСП 1% : 7.08 [13:02:48]line НДС 12% : 84.96 [13:02:48]line Наличными: 800.00 [13:02:48]line Безнал.: 0.00 [13:02:48]line Место: АЗС № 134 "Партнер Нефть" [13:02:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:02:48]line СНО: Общий режим [13:02:48]line Чек 131 30.07.2024 13:02 [13:02:48]line Смена: 435 ФФД: 1.0 [13:02:48]line ЗНМ: 0300000044 [13:02:48]line РНМ: 0000000000092660 [13:02:48]line Версия ККМ: 001 [13:02:48]line ФМ: 0000000000874939 [13:02:48]line ФД: 119079 [13:02:48]line ФПД: 187936444676844 [13:02:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130246&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119079&fm=187936444676844&tin=02508201610067®Number=0000000000092660&sum=80000 [13:02:48]written 0, free lines is 4095 [13:02:48]OFD Sender: Processing packet 119079 [packets to send 86, broken 85] [13:02:48]ProducePacketName [13:02:48]name=ofd_packets/00119079 [13:02:48]OFD Sender: To server: pG, [13:02:48]CommunicateWithHost lk.salyk.kg:30040 [13:02:48]ConnectInit lk.salyk.kg [13:02:48]Write to MH i2c: 01 00 00 7B 00 7B [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 07 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 DF 0C 6D [13:02:48]RasterBufferAndPrint [13:02:48]line [13:02:48]line [13:02:48]line [13:02:48]line [13:02:48]line [13:02:48]written 0, free lines is 3313 [13:02:48]MH_Cut [13:02:48]Write to MH i2c: D1 01 00 82 00 01 54 [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: D1 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: D1 01 00 [13:02:48]MH_I2C_Read... [13:02:48]Read from MH i2c: D1 01 00 82 00 00 53 [13:02:48]Write to MH i2c: 01 00 00 83 00 83 [13:02:48]Write i2c OK [13:02:48]MH_I2C_Read... [13:02:49]*** Cut start [13:02:49]*** Partial cut [13:02:49]*** CUTSNS_PIN = 1 [13:02:49]*** CUTSNS_PIN = 0 [13:02:49]*** Brake cut motor [13:02:49]Read from MH i2c: 01 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: 01 07 00 [13:02:50]MH_I2C_Read... [13:02:50]*** Stop cut motor [13:02:50]*** Cut end [13:02:50]Read from MH i2c: 01 07 00 83 00 00 00 00 00 00 FF 0F 98 [13:02:50]process_action close_receipt done [13:02:50]requested_data is exist [13:02:50]produce_requested_data [13:02:50]requested_item fm.sn is exist - process it [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 11 00 00 [13:02:50]Write to MH i2c: E2 08 00 84 00 80 11 00 00 00 00 00 00 FE [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 84 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [13:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:50]wFMCommunicate OK [13:02:50]requested_item fd.num is exist - process it [13:02:50]SAM_PROTO_GetFieldsCounters [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 13 00 00 [13:02:50]Write to MH i2c: E2 08 00 85 00 80 13 00 00 00 00 00 00 01 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 62 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 62 00 85 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [13:02:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_GetFieldsCounters done [13:02:50]requested_item shift.num is exist - process it [13:02:50]requested_item shift.opened is exist - process it [13:02:50]req_shift_opened [13:02:50]FM_GetShiftState [13:02:50]SAM_PROTO_GetShiftState [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 13 01 00 [13:02:50]Write to MH i2c: E2 08 00 86 00 80 13 01 00 00 00 00 00 03 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0E 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 0E 00 86 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CE [13:02:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:02:50]wFMCommunicate OK [13:02:50]SAM_PROTO_GetShiftState done [13:02:50]FM_GetShiftState done [13:02:50]req_shift_opened done [13:02:50]requested_item shift.open_date is exist - process it [13:02:50]req_shift_open_date [13:02:50]req_shift_open_date done [13:02:50]produce_requested_data done [13:02:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119079,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:02:50]process_action_free close_receipt [13:02:50]json_value_free [13:02:50]json_value_free done [13:02:50]process_json_proto returns [13:02:50]Send response to host [13:02:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119079,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:02:50]free response buf [13:02:50]execute_script done [13:02:50]execute_script returns [13:02:50]free content buf [13:02:50]Sock 9.Close socket [13:02:50]Sock 9.Thread stoped [13:02:50]accept exits with 6 [13:02:50]New connection [13:02:50]New thread 3067137380 created [13:02:50]Thread 3066994020 joined [13:02:50]Waiting for new connection... [13:02:50] Sock 6.Parse request [13:02:50]Sock 6.Check first char [13:02:50]Sock 6.First char is OK [13:02:50]request: POST /json_proto HTTP/1.0 [13:02:50]Method: POST [13:02:50]URL: /json_proto [13:02:50]Method is POST - this is cgi request [13:02:50]url: /json_proto [13:02:50]query_string will be loaded in cgi processing [13:02:50]execute_cgi json_proto POST (null) [13:02:50]execute_cgi path=json_proto method=POST [13:02:50]POST find Content-Length [13:02:50]Host: 172.17.45.7:8080 [13:02:50]Content-Length: 215 [13:02:50]Content-Type: application/json [13:02:50] [13:02:50]POST finish read [13:02:50]Found Content-Length = 215 [13:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:50]execute_script... [13:02:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:50]POST & json_proto [13:02:50]process_json_proto [13:02:50]json parsed OK: [13:02:50]protocol is kg_v1.0 [13:02:50]action value=get_value [13:02:50]process_action get_value [13:02:50]cmd_get_value [13:02:50]process_action get_value done [13:02:50]requested_data is exist [13:02:50]produce_requested_data [13:02:50]requested_item kkm.sn is exist - process it [13:02:50]requested_item kkm.ver is exist - process it [13:02:50]requested_item fm.sn is exist - process it [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 11 00 00 [13:02:50]Write to MH i2c: E2 08 00 87 00 80 11 00 00 00 00 00 00 01 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 17 00 87 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5C [13:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:02:50]wFMCommunicate OK [13:02:50]requested_item fd.num is exist - process it [13:02:50]SAM_PROTO_GetFieldsCounters [13:02:50]wFMCommunicate request_size=4 [13:02:50]MH_SAM_APDU [13:02:50]CAPDU: 80 13 00 00 [13:02:50]Write to MH i2c: E2 08 00 88 00 80 13 00 00 00 00 00 00 04 [13:02:50]Write i2c OK [13:02:50]MH_I2C_Read... [13:02:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:50]Read from MH i2c: E2 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 62 00 [13:02:50]MH_I2C_Read... [13:02:50]Read from MH i2c: E2 62 00 88 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:02:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 27 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:51]wFMCommunicate OK [13:02:51]SAM_PROTO_GetFieldsCounters done [13:02:51]requested_item shift.num is exist - process it [13:02:51]requested_item shift.opened is exist - process it [13:02:51]req_shift_opened [13:02:51]FM_GetShiftState [13:02:51]SAM_PROTO_GetShiftState [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 13 01 00 [13:02:51]Write to MH i2c: E2 08 00 89 00 80 13 01 00 00 00 00 00 06 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0E 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0E 00 89 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D1 [13:02:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:02:51]wFMCommunicate OK [13:02:51]SAM_PROTO_GetShiftState done [13:02:51]FM_GetShiftState done [13:02:51]req_shift_opened done [13:02:51]requested_item shift.open_date is exist - process it [13:02:51]req_shift_open_date [13:02:51]req_shift_open_date done [13:02:51]produce_requested_data done [13:02:51]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119079,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:02:51]process_action_free get_value [13:02:51]json_value_free [13:02:51]json_value_free done [13:02:51]process_json_proto returns [13:02:51]Send response to host [13:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119079,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:02:51]free response buf [13:02:51]execute_script done [13:02:51]execute_script returns [13:02:51]free content buf [13:02:51]Sock 6.Close socket [13:02:51]Sock 6.Thread stoped [13:02:51]accept exits with 9 [13:02:51]New connection [13:02:51]New thread 3066994020 created [13:02:51]Thread 3067137380 joined [13:02:51]Waiting for new connection... [13:02:51] Sock 9.Parse request [13:02:51]Sock 9.Check first char [13:02:51]Sock 9.First char is OK [13:02:51]request: POST /json_proto HTTP/1.0 [13:02:51]Method: POST [13:02:51]URL: /json_proto [13:02:51]Method is POST - this is cgi request [13:02:51]url: /json_proto [13:02:51]query_string will be loaded in cgi processing [13:02:51]execute_cgi json_proto POST (null) [13:02:51]execute_cgi path=json_proto method=POST [13:02:51]POST find Content-Length [13:02:51]Host: 172.17.45.7:8080 [13:02:51]Content-Length: 331 [13:02:51]Content-Type: application/json [13:02:51] [13:02:51]POST finish read [13:02:51]Found Content-Length = 331 [13:02: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" ] } } [13:02:51]execute_script... [13:02: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" ] } } [13:02:51]POST & json_proto [13:02:51]process_json_proto [13:02:51]json parsed OK: [13:02:51]protocol is kg_v1.0 [13:02:51]action value=get_value [13:02:51]process_action get_value [13:02:51]cmd_get_value [13:02:51]process_action get_value done [13:02:51]requested_data is exist [13:02:51]produce_requested_data [13:02:51]requested_item fm.sale.total is exist - process it [13:02:51]SAM_PROTO_GetFMData [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 13 03 00 [13:02:51]Write to MH i2c: E2 08 00 8A 00 80 13 03 00 00 00 00 00 09 [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 FD 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 FD 00 8A 00 00 C5 04 85 04 C1 04 6E 04 04 00 C1 CD 01 00 69 04 A3 00 6F 04 04 00 2B C0 01 00 B1 04 05 00 0C 91 36 79 03 70 04 05 00 5C 17 86 A9 02 72 04 04 00 B0 79 B0 CF 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 28 45 74 5E 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 6D E4 DE 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 96 0D 00 00 B1 04 04 00 08 51 43 3B 70 04 04 00 08 51 43 3B 72 04 00 00 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 98 4D 4B 06 EF 03 09 90 00 3F [13:02:51]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C1 CD 01 00 69 04 A3 00 6F 04 04 00 2B C0 01 00 B1 04 05 00 0C 91 36 79 03 70 04 05 00 5C 17 86 A9 02 72 04 04 00 B0 79 B0 CF 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 28 45 74 5E 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 6D E4 DE 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 96 0D 00 00 B1 04 04 00 08 51 43 3B 70 04 04 00 08 51 43 3B 72 04 00 00 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 98 4D 4B 06 EF 03 09 90 00 [13:02:51]wFMCommunicate OK [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 17 00 00 [13:02:51]Write to MH i2c: E2 08 00 8B 00 80 17 00 00 00 00 00 00 0B [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 FD 00 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 FD 00 8B 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 20 [13:02:52]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [13:02:52]wFMCommunicate OK [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 17 00 00 [13:02:52]Write to MH i2c: E2 08 00 8C 00 80 17 00 00 00 00 00 00 0C [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:52]Read from MH i2c: E2 [13:02:52]MH_I2C_Read... [13:02:52]Read from MH i2c: E2 FD 00 [13:02:52]MH_I2C_Read... [13:02:52]Connected sock=11 [13:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F7 F0 07 01 25 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A Read from MH i2c: 00 E2 00 FD 00 00 00 8C 13 00 04 00 06 00 00 00 84 70 38 04 01 00 00 00 00 72 00 04 F2 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 03 00 01 00 00 EF 01 03 F6 09 03 00 01 F6 00 03 01 01 BC 00 04 00 01 F7 00 03 01 00 FC 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 03 F6 06 03 00 01 80 00 38 03 01 F7 00 03 00 00 00 00 EB EF 03 03 26 09 00 00 EF F6 03 03 0F 01 00 00 F6 04 03 F7 01 03 00 00 01 00 F7 EF 03 03 06 09 00 00 C4 F6 02 03 00 01 00 00 00 05 00 F7 EE 03 03 00 0F 00 00 EF F2 03 03 09 01 00 00 F6 01 03 F3 01 03 00 06 06 00 F7 30 03 21 00 00 00 00 6D 00 04 00 4C 07 02 04 78 06 04 00 04 80 00 38 00 01 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 00 00 72 39 04 04 00 06 00 00 00 00 04 00 75 00 00 00 EE 00 03 00 09 1F 00 04 F2 02 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 01 00 00 F7 12 03 04 00 04 00 00 EF 83 03 00 09 00 00 00 F6 F4 03 01 03 00 04 01 00 F7 76 03 E4 00 A8 00 66 EF 0E 03 04 09 04 00 00 F6 B3 03 01 01 00 00 00 02 B9 F7 04 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1E [13:02:52]RAPDU: 00 00 70 04 00 00 01 72 00 04 01 00 0D 00 04 00 10 04 00 75 30 00 30 EE 30 03 30 09 30 00 30 F2 30 03 30 01 30 00 30 00 30 F3 39 32 03 36 00 36 00 30 EE 11 03 04 09 10 00 00 F2 30 03 30 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 30 03 30 09 30 00 30 F6 30 03 30 01 30 00 30 05 38 F7 37 03 34 00 39 00 33 EF 39 03 10 09 04 00 04 F6 00 03 27 01 D1 00 01 06 00 F7 35 03 04 00 06 00 00 6D AA 04 ED 4C 5D 06 7A EC 82 03 8D 0C 2F B7 BE B8 [13:02:52]02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [13:02:52]wFMCommunicate OK [13:02:52]wFMCommunicate request_size=4 [13:02:52]MH_SAM_APDU [13:02:52]CAPDU: 80 17 00 00 [13:02:52]Write to MH i2c: E2 08 00 8D 00 80 17 00 00 00 00 00 00 0D [13:02:52]Write i2c OK [13:02:52]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 FD 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 FD 00 8D 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 99 [13:02:53]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:02:53]wFMCommunicate OK [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 17 00 00 [13:02:53]Write to MH i2c: E2 08 00 8E 00 80 17 00 00 00 00 00 00 0E [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 E2 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 E2 00 8E 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EC [13:02:53]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:02:53]wFMCommunicate OK [13:02:53]SAM_PROTO_GetFMData done [13:02:53]requested_item fm.sale_refund.total is exist - process it [13:02:53]requested_item fm.buy.total is exist - process it [13:02:53]requested_item shift.sale.total is exist - process it [13:02:53]SAM_PROTO_GetShiftData [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 13 02 00 [13:02:53]Write to MH i2c: E2 08 00 8F 00 80 13 02 00 00 00 00 00 0D [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 FD 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 FD 00 8F 00 00 BA 04 AA 04 B6 04 6E 04 04 00 83 00 00 00 69 04 9D 00 6F 04 04 00 80 00 00 00 B1 04 04 00 FC 28 2F 01 70 04 03 00 44 12 6D 72 04 03 00 B8 16 C2 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 62 33 20 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 EE AE 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C0 [13:02:54]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 83 00 00 00 69 04 9D 00 6F 04 04 00 80 00 00 00 B1 04 04 00 FC 28 2F 01 70 04 03 00 44 12 6D 72 04 03 00 B8 16 C2 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 62 33 20 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 EE AE 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:02:54]wFMCommunicate OK [13:02:54]wFMCommunicate request_size=4 [13:02:54]MH_SAM_APDU [13:02:54]CAPDU: 80 17 00 00 [13:02:54]Write to MH i2c: E2 08 00 90 00 80 17 00 00 00 00 00 00 10 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:54]Read from MH i2c: E2 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 FD 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: E2 FD 00 90 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 6E [13:02:54]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 [13:02:54]wFMCommunicate OK [13:02:54]wFMCommunicate request_size=4 [13:02:54]MH_SAM_APDU [13:02:54]CAPDU: 80 17 00 00 [13:02:54]Write to MH i2c: E2 08 00 91 00 80 17 00 00 00 00 00 00 11 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 FD 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 FD 00 91 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 3D [13:02:55]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 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 17 00 00 [13:02:55]Write to MH i2c: E2 08 00 92 00 80 17 00 00 00 00 00 00 12 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 FD 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 FD 00 92 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 8A [13:02:55]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 [13:02:55]wFMCommunicate OK [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 17 00 00 [13:02:55]Write to MH i2c: E2 08 00 93 00 80 17 00 00 00 00 00 00 13 [13:02:56]Write i2c OK [13:02:56]MH_I2C_Read... [13:02:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [13:02:56]Read from MH i2c: E2 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 D7 00 [13:02:56]MH_I2C_Read... [13:02:56]Read from MH i2c: E2 D7 00 93 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 F6 [13:02:56]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 [13:02:56]wFMCommunicate OK [13:02:56]SAM_PROTO_GetShiftData done [13:02:56]requested_item shift.sale.total_cash is exist - process it [13:02:56]requested_item shift.sale_refund.total is exist - process it [13:02:56]requested_item shift.sale_refund.total_cash is exist - process it [13:02:56]requested_item shift.buy.total is exist - process it [13:02:56]requested_item shift.buy.total_cash is exist - process it [13:02:56]produce_requested_data done [13:02:56]produce_requested_data return {"fm.sale.total":149185211.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":198679.00,"shift.sale.total_cash":71481.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:02:56]process_action_free get_value [13:02:56]json_value_free [13:02:56]json_value_free done [13:02:56]process_json_proto returns [13:02:56]Send response to host [13:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149185211.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":198679.00,"shift.sale.total_cash":71481.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:02:56]free response buf [13:02:56]execute_script done [13:02:56]execute_script returns [13:02:56]free content buf [13:02:56]Sock 9.Close socket [13:02:56]Sock 9.Thread stoped [13:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 2D 47 00 FE 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 27 D1 01 00 F4 03 04 00 09 92 A8 66 B6 04 01 00 00 22 1B 7E 5D 7E C3 26 59 [13:02:57]CommunicateWithHost err = 0 [13:02:57]CheckOFDResponse [13:02:57]1017 (14) - 77093643461234 [13:02:57]1041 (16) - 0000000000874939 [13:02:57]1040 (4) - 119079 [13:02:57]1012 (4) - 30.07.2024 07:11 [13:02:57]1206 (1) - 0 [13:02:57]OFD Sender: Remove packet 119079 [13:02:57]ProducePacketName [13:02:57]name=ofd_packets/00119079 [13:02:57]NVStorageDeleteData [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:08]recv_with_timeout no data received [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:54]recv_with_timeout no data received [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:05]recv_with_timeout no data received [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:16]recv_with_timeout no data received [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:43]recv_with_timeout no data received [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:50]accept exits with 6 [13:06:50]New connection [13:06:50]New thread 3067137380 created [13:06:50]Thread 3066994020 joined [13:06:50]Waiting for new connection... [13:06:50] Sock 6.Parse request [13:06:50]Sock 6.Check first char [13:06:50]Sock 6.First char is OK [13:06:50]request: POST /json_proto HTTP/1.0 [13:06:50]Method: POST [13:06:50]URL: /json_proto [13:06:50]Method is POST - this is cgi request [13:06:50]url: /json_proto [13:06:50]query_string will be loaded in cgi processing [13:06:50]execute_cgi json_proto POST (null) [13:06:50]execute_cgi path=json_proto method=POST [13:06:50]POST find Content-Length [13:06:50]Host: 172.17.45.7:8080 [13:06:50]Content-Length: 817 [13:06:50]Content-Type: application/json [13:06:50] [13:06:50]POST finish read [13:06:50]Found Content-Length = 817 [13:06:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)949979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 100.000, "sum" : 7553.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7553.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:50]execute_script... [13:06: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)949979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 100.000, "sum" : 7553.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 7553.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:50]POST & json_proto [13:06:50]process_json_proto [13:06:50]json parsed OK: [13:06:50]protocol is kg_v1.0 [13:06:50]action value=close_receipt [13:06:50]process_action close_receipt [13:06:50]cmd_close_receipt [13:06:50]MH_GetDate [13:06:50]Write to MH i2c: F0 00 00 94 00 83 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: F0 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: F0 09 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: F0 09 00 94 00 00 6A E5 A8 66 90 0F 3E 66 2C [13:06:50]GetLastDocTimeStamp 1722344566 [13:06:50]current date 1722344810 [13:06:50]FM_GetShiftState [13:06:50]SAM_PROTO_GetShiftState [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 13 01 00 [13:06:50]Write to MH i2c: E2 08 00 95 00 80 13 01 00 00 00 00 00 12 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0E 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0E 00 95 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DD [13:06:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:06:50]wFMCommunicate OK [13:06:50]SAM_PROTO_GetShiftState done [13:06:50]FM_GetShiftState done [13:06:50]opened in 1722298242 [13:06:50]opened+sec_in_day 1722384642 [13:06:50]quantity*price = 755300 [13:06:50]sum+1 = 755301 [13:06:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7553.00 НСП 1% : 66.84 НДС 12% : 802.09 Наличными: 0.00 Безнал.: 7553.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 132 30.07.2024 13:06 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119080 ФПД: 209095236968020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130650&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119080&fm=209095236968020&tin=02508201610067®Number=0000000000092660&sum=755300 [13:06:51]StoreToDocumentArchive [13:06:51]shift 435 fd 119080 [13:06:51]save to /storage/0435/doc_00119080 [13:06:51]save last doc name /storage/0435/doc_00119080 to /storage/kkm_last_doc_name [13:06:51]save OK [13:06:51]Clear old archive folders... [13:06:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:06:51]tlvbuf is 000BE840 [13:06:51]SAM_PROTO_ClearQueue [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 09 00 00 [13:06:51]Write to MH i2c: E2 08 00 A2 00 80 09 00 00 00 00 00 00 14 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 A2 00 00 90 00 16 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]SAM_PROTO_ClearQueue done [13:06:51]KKMCreateOFDPacket [13:06:51]OFDProtocolAddRootSTLVToBuf [13:06:51]FM_MakeSignedData [13:06:51]FM_MakeSignedData [13:06:51]SAM_PROTO_SignData [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 01 02 [13:06:51]Write to MH i2c: E2 08 00 A3 00 80 0D 01 02 00 00 00 00 1C [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 A3 00 00 90 00 17 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=255 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 64 86 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 86 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 39 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 86 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 6A E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D1 01 00 35 04 06 00 BE 2B C7 52 [13:06:51]Write to MH i2c: E2 02 01 A4 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 64 86 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 86 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 39 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 86 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 6A E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D1 01 00 35 04 06 00 BE 2B C7 52 00 00 7A [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 A4 00 00 90 00 18 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=7 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 02 02 02 DE 54 [13:06:51]Write to MH i2c: E2 0A 00 A5 00 80 0D 02 02 02 00 DE 54 00 00 55 [13:06:51]Write i2c OK [13:06:51]MH_I2C_Read... [13:06:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:51]Read from MH i2c: E2 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 [13:06:51]MH_I2C_Read... [13:06:51]Read from MH i2c: E2 03 00 A5 00 00 90 00 19 [13:06:51]RAPDU: 90 00 [13:06:51]wFMCommunicate OK [13:06:51]wFMCommunicate request_size=4 [13:06:51]MH_SAM_APDU [13:06:51]CAPDU: 80 0D 03 02 [13:06:51]Write to MH i2c: E2 08 00 A6 00 80 0D 03 02 00 00 00 00 21 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 0B 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 0B 00 A6 00 00 02 E1 86 FA 01 48 03 D2 90 00 A3 [13:06:52]RAPDU: 02 E1 86 FA 01 48 03 D2 90 00 [13:06:52]wFMCommunicate OK [13:06:52]SAM_PROTO_SignData done [13:06:52]FM_MakeSignedData done [13:06:52]CreateOFDProtocolMessage [13:06:52]wFMCommunicate request_size=4 [13:06:52]MH_SAM_APDU [13:06:52]CAPDU: 80 11 00 00 [13:06:52]Write to MH i2c: E2 08 00 A7 00 80 11 00 00 00 00 00 00 21 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:52]Read from MH i2c: E2 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 17 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: E2 17 00 A7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7C [13:06:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:06:52]wFMCommunicate OK [13:06:52]CreateOFDProtocolMessage done [13:06:52]OFDSenderStorePacket 119080 [13:06:52]StoreOFDPacket docnum=119080 [13:06:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 13 04 01 86 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 64 86 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 86 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 39 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 86 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 6A E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D1 01 00 35 04 06 00 BE 2B C7 52 DE 54 02 E1 86 FA 01 48 03 D2 [13:06:52]CheckFolder [13:06:52]dirname=/storage/ofd_packets [13:06:52]CheckFolder done [13:06:52]ProducePacketName [13:06:52]name=ofd_packets/00119080 [13:06:52]NVStorageSaveData ofd_packets/00119080 [13:06:52]File name is /storage/ofd_packets/00119080 [13:06:52]Write 298 bytes [13:06:52]NVStorageSaveData done [13:06:52]OFDSenderStorePacket done [13:06:52]KKMCreateOFDPacket done [13:06:52]NVStorageSaveData kkm_last_timestamp [13:06:52]File name is /storage/kkm_last_timestamp [13:06:52]Write 4 bytes [13:06:52]NVStorageSaveData done [13:06:52]ExternCall_PrintAddStr [13:06:52]wPrintStart [13:06:52]Write to MH i2c: 01 00 00 A8 00 A8 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 A8 00 00 00 00 00 00 FF 0F BD [13:06:52]RasterBufferAndPrint [13:06:52]line Счет N : (1)949979 [13:06:52]line ИНН: 02508201610067 [13:06:52]line Контрольно-Кассовый Чек [13:06:52]line ПРОДАЖА [13:06:52]line ТРК (МРК, ГНК) : 11 [13:06:52]line Товар: 2710194800 [13:06:52]line ДТ-К-5 [13:06:52]line 100.000 * 75.53 [13:06:52]line = 7553.00 [13:06:52]line НДС 12% НСП 1% [13:06:52]line > о реализуемом товаре [13:06:52]line ИТОГО: 7553.00 [13:06:52]line НСП 1% : 66.84 [13:06:52]line НДС 12% : 802.09 [13:06:52]line Наличными: 0.00 [13:06:52]line Безнал.: 7553.00 [13:06:52]line Место: АЗС № 134 "Партнер Нефть" [13:06:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:06:52]line СНО: Общий режим [13:06:52]line Чек 132 30.07.2024 13:06 [13:06:52]line Смена: 435 ФФД: 1.0 [13:06:52]line ЗНМ: 0300000044 [13:06:52]line РНМ: 0000000000092660 [13:06:52]line Версия ККМ: 001 [13:06:52]line Платежная система: Бакай Банк [13:06:52]line ФМ: 0000000000874939 [13:06:52]line ФД: 119080 [13:06:52]line ФПД: 209095236968020 [13:06:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130650&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119080&fm=209095236968020&tin=02508201610067®Number=0000000000092660&sum=755300 [13:06:52]OFD Sender: Processing packet 119080 [packets to send 86, broken 85] [13:06:52]ProducePacketName [13:06:52]name=ofd_packets/00119080 [13:06:52]OFD Sender: To server: pG, [13:06:52]CommunicateWithHost lk.salyk.kg:30040 [13:06:52]ConnectInit lk.salyk.kg [13:06:52]written 0, free lines is 4095 [13:06:52]Write to MH i2c: 01 00 00 D1 00 D1 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 EE 0C D2 [13:06:52]RasterBufferAndPrint [13:06:52]line [13:06:52]line [13:06:52]line [13:06:52]line [13:06:52]line [13:06:52]written 0, free lines is 3317 [13:06:52]MH_Cut [13:06:52]Write to MH i2c: D1 01 00 D8 00 01 AA [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: D1 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: D1 01 00 [13:06:52]MH_I2C_Read... [13:06:52]Read from MH i2c: D1 01 00 D8 00 00 A9 [13:06:52]Write to MH i2c: 01 00 00 D9 00 D9 [13:06:52]Write i2c OK [13:06:52]MH_I2C_Read... [13:06:53]*** Cut start [13:06:53]*** Partial cut [13:06:53]*** CUTSNS_PIN = 1 [13:06:53]*** CUTSNS_PIN = 0 [13:06:53]*** Brake cut motor [13:06:54]Read from MH i2c: 01 [13:06:54]MH_I2C_Read... [13:06:54]*** Stop cut motor [13:06:54]*** Cut end [13:06:54]Read from MH i2c: 01 07 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 FF 0F EE [13:06:54]process_action close_receipt done [13:06:54]requested_data is exist [13:06:54]produce_requested_data [13:06:54]requested_item fm.sn is exist - process it [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 11 00 00 [13:06:54]Write to MH i2c: E2 08 00 DA 00 80 11 00 00 00 00 00 00 54 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 17 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 17 00 DA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AF [13:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:06:54]wFMCommunicate OK [13:06:54]requested_item fd.num is exist - process it [13:06:54]SAM_PROTO_GetFieldsCounters [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 00 00 [13:06:54]Write to MH i2c: E2 08 00 DB 00 80 13 00 00 00 00 00 00 57 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 62 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 62 00 DB 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [13:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 28 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetFieldsCounters done [13:06:54]requested_item shift.num is exist - process it [13:06:54]requested_item shift.opened is exist - process it [13:06:54]req_shift_opened [13:06:54]FM_GetShiftState [13:06:54]SAM_PROTO_GetShiftState [13:06:54]wFMCommunicate request_size=4 [13:06:54]MH_SAM_APDU [13:06:54]CAPDU: 80 13 01 00 [13:06:54]Write to MH i2c: E2 08 00 DC 00 80 13 01 00 00 00 00 00 59 [13:06:54]Write i2c OK [13:06:54]MH_I2C_Read... [13:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:54]Read from MH i2c: E2 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 [13:06:54]MH_I2C_Read... [13:06:54]Read from MH i2c: E2 0E 00 DC 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 24 [13:06:54]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:06:54]wFMCommunicate OK [13:06:54]SAM_PROTO_GetShiftState done [13:06:54]FM_GetShiftState done [13:06:54]req_shift_opened done [13:06:54]requested_item shift.open_date is exist - process it [13:06:54]req_shift_open_date [13:06:54]req_shift_open_date done [13:06:54]produce_requested_data done [13:06:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119080,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:06:54]process_action_free close_receipt [13:06:54]json_value_free [13:06:54]json_value_free done [13:06:54]process_json_proto returns [13:06:54]Send response to host [13:06:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119080,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:06:54]free response buf [13:06:54]execute_script done [13:06:54]execute_script returns [13:06:54]free content buf [13:06:54]Sock 6.Close socket [13:06:54]Sock 6.Thread stoped [13:06:54]Connected sock=9 [13:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 13 04 01 86 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 64 86 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 86 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 1A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 39 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 86 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 6A E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D1 01 00 35 04 06 00 BE 2B C7 52 DE 54 02 E1 86 FA 01 48 03 D2 [13:06:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 85 53 47 00 56 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 28 D1 01 00 F4 03 04 00 F7 92 A8 66 B6 04 01 00 00 27 FC 34 8C AB 69 E3 A0 [13:06:55]CommunicateWithHost err = 0 [13:06:55]CheckOFDResponse [13:06:55]1017 (14) - 77093643461234 [13:06:55]1041 (16) - 0000000000874939 [13:06:55]1040 (4) - 119080 [13:06:55]1012 (4) - 30.07.2024 07:15 [13:06:55]1206 (1) - 0 [13:06:55]OFD Sender: Remove packet 119080 [13:06:55]ProducePacketName [13:06:55]name=ofd_packets/00119080 [13:06:55]NVStorageDeleteData [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]recv_with_timeout no data received [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:03]accept exits with 10 [13:08:03]New connection [13:08:03]New thread 3066994020 created [13:08:03]Thread 3067137380 joined [13:08:03]Waiting for new connection... [13:08:03] Sock 10.Parse request [13:08:03]Sock 10.Check first char [13:08:03]Sock 10.First char is OK [13:08:03]request: POST /json_proto HTTP/1.0 [13:08:03]Method: POST [13:08:03]URL: /json_proto [13:08:03]Method is POST - this is cgi request [13:08:03]url: /json_proto [13:08:03]query_string will be loaded in cgi processing [13:08:03]execute_cgi json_proto POST (null) [13:08:03]execute_cgi path=json_proto method=POST [13:08:03]POST find Content-Length [13:08:03]Host: 172.17.45.7:8080 [13:08:03]Content-Length: 677 [13:08:03]Content-Type: application/json [13:08:03] [13:08:03]POST finish read [13:08:03]Found Content-Length = 677 [13:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:03]execute_script... [13:08: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)950001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:03]POST & json_proto [13:08:03]process_json_proto [13:08:03]json parsed OK: [13:08:03]protocol is kg_v1.0 [13:08:03]action value=close_receipt [13:08:03]process_action close_receipt [13:08:03]cmd_close_receipt [13:08:03]MH_GetDate [13:08:03]Write to MH i2c: F0 00 00 DD 00 CC [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: F0 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: F0 09 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: F0 09 00 DD 00 00 B3 E5 A8 66 90 0F 3E 66 BE [13:08:03]GetLastDocTimeStamp 1722344810 [13:08:03]current date 1722344883 [13:08:03]FM_GetShiftState [13:08:03]SAM_PROTO_GetShiftState [13:08:03]wFMCommunicate request_size=4 [13:08:03]MH_SAM_APDU [13:08:03]CAPDU: 80 13 01 00 [13:08:03]Write to MH i2c: E2 08 00 DE 00 80 13 01 00 00 00 00 00 5B [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:03]Read from MH i2c: E2 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0E 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: E2 0E 00 DE 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 26 [13:08:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:08:03]wFMCommunicate OK [13:08:03]SAM_PROTO_GetShiftState done [13:08:03]FM_GetShiftState done [13:08:03]opened in 1722298242 [13:08:03]opened+sec_in_day 1722384642 [13:08:03]quantity*price = 60003 [13:08:03]sum+1 = 60004 [13:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 133 30.07.2024 13:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119081 ФПД: 146199025810293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130803&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119081&fm=146199025810293&tin=02508201610067®Number=0000000000092660&sum=60000 [13:08:05]StoreToDocumentArchive [13:08:05]shift 435 fd 119081 [13:08:05]save to /storage/0435/doc_00119081 [13:08:05]save last doc name /storage/0435/doc_00119081 to /storage/kkm_last_doc_name [13:08:05]save OK [13:08:05]Clear old archive folders... [13:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:05]tlvbuf is 000A92F0 [13:08:05]SAM_PROTO_ClearQueue [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 09 00 00 [13:08:05]Write to MH i2c: E2 08 00 EB 00 80 09 00 00 00 00 00 00 5D [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [13:08:05]RAPDU: 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_ClearQueue done [13:08:05]KKMCreateOFDPacket [13:08:05]OFDProtocolAddRootSTLVToBuf [13:08:05]FM_MakeSignedData [13:08:05]FM_MakeSignedData [13:08:05]SAM_PROTO_SignData [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 0D 01 02 [13:08:05]Write to MH i2c: E2 08 00 EC 00 80 0D 01 02 00 00 00 00 65 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [13:08:05]RAPDU: 90 00 [13:08:05]wFMCommunicate OK [13:08:05]wFMCommunicate request_size=255 [13:08:05]MH_SAM_APDU [13:08: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B3 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D1 01 00 35 04 06 00 84 [13:08:05]Write to MH i2c: E2 02 01 ED 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B3 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D1 01 00 35 04 06 00 84 00 00 0E [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 ED 00 00 90 00 61 [13:08:05]RAPDU: 90 00 [13:08:05]wFMCommunicate OK [13:08:05]wFMCommunicate request_size=10 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 0D 02 02 05 F7 9C FF FB 75 [13:08:05]Write to MH i2c: E2 0D 00 EE 00 80 0D 02 02 05 00 F7 9C FF FB 75 00 00 74 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 03 00 EE 00 00 90 00 62 [13:08:05]RAPDU: 90 00 [13:08:05]wFMCommunicate OK [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 0D 03 02 [13:08:05]Write to MH i2c: E2 08 00 EF 00 80 0D 03 02 00 00 00 00 6A [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0B 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0B 00 EF 00 00 76 EB 4D 7C 58 F9 BE C0 90 00 64 [13:08:05]RAPDU: 76 EB 4D 7C 58 F9 BE C0 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_SignData done [13:08:05]FM_MakeSignedData done [13:08:05]CreateOFDProtocolMessage [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 11 00 00 [13:08:05]Write to MH i2c: E2 08 00 F0 00 80 11 00 00 00 00 00 00 6A [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 17 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 17 00 F0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [13:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:08:05]wFMCommunicate OK [13:08:05]CreateOFDProtocolMessage done [13:08:05]OFDSenderStorePacket 119081 [13:08:05]StoreOFDPacket docnum=119081 [13:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0F DF 07 01 17 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B3 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D1 01 00 35 04 06 00 84 F7 9C FF FB 75 76 EB 4D 7C 58 F9 BE C0 [13:08:05]CheckFolder [13:08:05]dirname=/storage/ofd_packets [13:08:05]CheckFolder done [13:08:05]ProducePacketName [13:08:05]name=ofd_packets/00119081 [13:08:05]NVStorageSaveData ofd_packets/00119081 [13:08:05]File name is /storage/ofd_packets/00119081 [13:08:05]Write 301 bytes [13:08:05]NVStorageSaveData done [13:08:05]OFDSenderStorePacket done [13:08:05]KKMCreateOFDPacket done [13:08:05]NVStorageSaveData kkm_last_timestamp [13:08:05]File name is /storage/kkm_last_timestamp [13:08:05]Write 4 bytes [13:08:05]NVStorageSaveData done [13:08:05]ExternCall_PrintAddStr [13:08:05]wPrintStart [13:08:05]Write to MH i2c: 01 00 00 F1 00 F1 [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: 01 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: 01 07 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FF 0F 06 [13:08:05]RasterBufferAndPrint [13:08:05]line Счет N : (1)950001 [13:08:05]line ИНН: 02508201610067 [13:08:05]line Контрольно-Кассовый Чек [13:08:05]line ПРОДАЖА [13:08:05]line ТРК (МРК, ГНК) : 41 [13:08:05]line Товар: 2710124130 [13:08:05]line Аи-92-К-4 [13:08:05]line 8.850 * 67.80 [13:08:05]line = 600.03 [13:08:05]line НДС 12% НСП 1% [13:08:05]line > о реализуемом товаре [13:08:05]line ОКРУГЛЕНИЕ: -0.03 [13:08:05]line ИТОГО: 600.00 [13:08:05]line Внесено: 600.00 [13:08:05]line СДАЧА: 0.00 [13:08:05]line НСП 1% : 5.31 [13:08:05]line НДС 12% : 63.72 [13:08:05]line Наличными: 600.00 [13:08:05]line Безнал.: 0.00 [13:08:05]line Место: АЗС № 134 "Партнер Нефть" [13:08:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:08:05]line СНО: Общий режим [13:08:05]line Чек 133 30.07.2024 13:08 [13:08:05]line Смена: 435 ФФД: 1.0 [13:08:05]line ЗНМ: 0300000044 [13:08:05]line РНМ: 0000000000092660 [13:08:05]line Версия ККМ: 001 [13:08:05]line ФМ: 0000000000874939 [13:08:05]line ФД: 119081 [13:08:05]line ФПД: 146199025810293 [13:08:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130803&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119081&fm=146199025810293&tin=02508201610067®Number=0000000000092660&sum=60000 [13:08:05]written 0, free lines is 4095 [13:08:05]OFD Sender: Processing packet 119081 [packets to send 86, broken 85] [13:08:05]ProducePacketName [13:08:05]name=ofd_packets/00119081 [13:08:05]OFD Sender: To server: pG, [13:08:05]CommunicateWithHost lk.salyk.kg:30040 [13:08:05]ConnectInit lk.salyk.kg [13:08:06]Write to MH i2c: 01 00 00 1B 01 1C [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: 01 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: 01 07 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: 01 07 00 1B 01 00 00 00 00 00 DF 0C 0E [13:08:06]RasterBufferAndPrint [13:08:06]line [13:08:06]line [13:08:06]line [13:08:06]line [13:08:06]line [13:08:06]written 0, free lines is 3300 [13:08:06]MH_Cut [13:08:06]Write to MH i2c: D1 01 00 22 01 01 F5 [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: D1 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: D1 01 00 [13:08:06]MH_I2C_Read... [13:08:06]Read from MH i2c: D1 01 00 22 01 00 F4 [13:08:06]Write to MH i2c: 01 00 00 23 01 24 [13:08:06]Write i2c OK [13:08:06]MH_I2C_Read... [13:08:07]*** Cut start [13:08:07]*** Partial cut [13:08:07]*** CUTSNS_PIN = 1 [13:08:07]*** CUTSNS_PIN = 0 [13:08:07]*** Brake cut motor [13:08:07]Read from MH i2c: 01 [13:08:07]MH_I2C_Read... [13:08:07]*** Stop cut motor [13:08:07]*** Cut end [13:08:07]Read from MH i2c: 01 07 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: 01 07 00 23 01 00 00 00 00 00 FF 0F 39 [13:08:07]process_action close_receipt done [13:08:07]requested_data is exist [13:08:07]produce_requested_data [13:08:07]requested_item fm.sn is exist - process it [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 11 00 00 [13:08:07]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 17 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [13:08:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:08:07]wFMCommunicate OK [13:08:07]requested_item fd.num is exist - process it [13:08:07]SAM_PROTO_GetFieldsCounters [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 13 00 00 [13:08:07]Write to MH i2c: E2 08 00 25 01 80 13 00 00 00 00 00 00 A2 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 62 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 62 00 25 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:08:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 29 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:07]wFMCommunicate OK [13:08:07]SAM_PROTO_GetFieldsCounters done [13:08:07]requested_item shift.num is exist - process it [13:08:07]requested_item shift.opened is exist - process it [13:08:07]req_shift_opened [13:08:07]FM_GetShiftState [13:08:07]SAM_PROTO_GetShiftState [13:08:07]wFMCommunicate request_size=4 [13:08:07]MH_SAM_APDU [13:08:07]CAPDU: 80 13 01 00 [13:08:07]Write to MH i2c: E2 08 00 26 01 80 13 01 00 00 00 00 00 A4 [13:08:07]Write i2c OK [13:08:07]MH_I2C_Read... [13:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:07]Read from MH i2c: E2 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 0E 00 [13:08:07]MH_I2C_Read... [13:08:07]Read from MH i2c: E2 0E 00 26 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6F [13:08:07]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:08:07]wFMCommunicate OK [13:08:07]SAM_PROTO_GetShiftState done [13:08:07]FM_GetShiftState done [13:08:07]req_shift_opened done [13:08:07]requested_item shift.open_date is exist - process it [13:08:07]req_shift_open_date [13:08:07]req_shift_open_date done [13:08:07]produce_requested_data done [13:08:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119081,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:08:07]process_action_free close_receipt [13:08:07]json_value_free [13:08:07]json_value_free done [13:08:07]process_json_proto returns [13:08:07]Send response to host [13:08:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119081,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:08:07]free response buf [13:08:07]execute_script done [13:08:07]execute_script returns [13:08:07]free content buf [13:08:07]Sock 10.Close socket [13:08:07]Sock 10.Thread stoped [13:08:09]Connected sock=7 [13:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0F DF 07 01 17 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 B3 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D1 01 00 35 04 06 00 84 F7 9C FF FB 75 76 EB 4D 7C 58 F9 BE C0 [13:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CE 63 47 00 B7 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 29 D1 01 00 F4 03 04 00 42 93 A8 66 B6 04 01 00 00 A1 72 57 2F 6D 52 A2 7C [13:08:09]CommunicateWithHost err = 0 [13:08:09]CheckOFDResponse [13:08:09]1017 (14) - 77093643461234 [13:08:09]1041 (16) - 0000000000874939 [13:08:09]1040 (4) - 119081 [13:08:09]1012 (4) - 30.07.2024 07:16 [13:08:09]1206 (1) - 0 [13:08:09]OFD Sender: Remove packet 119081 [13:08:09]ProducePacketName [13:08:09]name=ofd_packets/00119081 [13:08:09]NVStorageDeleteData [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:39]accept exits with 9 [13:08:39]New connection [13:08:39]New thread 3067137380 created [13:08:39]Thread 3066994020 joined [13:08:39]Waiting for new connection... [13:08:39] Sock 9.Parse request [13:08:39]Sock 9.Check first char [13:08:39]Sock 9.First char is OK [13:08:39]request: POST /json_proto HTTP/1.0 [13:08:39]Method: POST [13:08:39]URL: /json_proto [13:08:39]Method is POST - this is cgi request [13:08:39]url: /json_proto [13:08:39]query_string will be loaded in cgi processing [13:08:39]execute_cgi json_proto POST (null) [13:08:39]execute_cgi path=json_proto method=POST [13:08:39]POST find Content-Length [13:08:39]Host: 172.17.45.7:8080 [13:08:39]Content-Length: 819 [13:08:39]Content-Type: application/json [13:08:39] [13:08:39]POST finish read [13:08:39]Found Content-Length = 819 [13:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.990, "sum" : 2971.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2971.00, "payments": [ { "type": 1, "sum" : 2971.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:39]execute_script... [13: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)950000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 38.990, "sum" : 2971.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2971.00, "payments": [ { "type": 1, "sum" : 2971.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:39]POST & json_proto [13:08:39]process_json_proto [13:08:39]json parsed OK: [13:08:39]protocol is kg_v1.0 [13:08:39]action value=close_receipt [13:08:39]process_action close_receipt [13:08:39]cmd_close_receipt [13:08:39]MH_GetDate [13:08:39]Write to MH i2c: F0 00 00 27 01 17 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: F0 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: F0 09 00 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: F0 09 00 27 01 00 D7 E5 A8 66 90 0F 3E 66 2D [13:08:39]GetLastDocTimeStamp 1722344883 [13:08:39]current date 1722344919 [13:08:39]FM_GetShiftState [13:08:39]SAM_PROTO_GetShiftState [13:08:39]wFMCommunicate request_size=4 [13:08:39]MH_SAM_APDU [13:08:39]CAPDU: 80 13 01 00 [13:08:39]Write to MH i2c: E2 08 00 28 01 80 13 01 00 00 00 00 00 A6 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:39]Read from MH i2c: E2 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: E2 0E 00 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: E2 0E 00 28 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 71 [13:08:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:08:39]wFMCommunicate OK [13:08:39]SAM_PROTO_GetShiftState done [13:08:39]FM_GetShiftState done [13:08:39]opened in 1722298242 [13:08:39]opened+sec_in_day 1722384642 [13:08:39]quantity*price = 297103 [13:08:39]sum+1 = 297105 [13:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 2971.00 НСП 1% : 26.29 НДС 12% : 315.51 Наличными: 0.00 Безнал.: 2971.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 134 30.07.2024 13:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119082 ФПД: 281291153212894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130839&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119082&fm=281291153212894&tin=02508201610067®Number=0000000000092660&sum=297100 [13:08:40]StoreToDocumentArchive [13:08:40]shift 435 fd 119082 [13:08:40]save to /storage/0435/doc_00119082 [13:08:40]save last doc name /storage/0435/doc_00119082 to /storage/kkm_last_doc_name [13:08:40]save OK [13:08:40]Clear old archive folders... [13:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:08:40]tlvbuf is 000AAEF0 [13:08:40]SAM_PROTO_ClearQueue [13:08:40]wFMCommunicate request_size=4 [13:08:40]MH_SAM_APDU [13:08:40]CAPDU: 80 09 00 00 [13:08:40]Write to MH i2c: E2 08 00 35 01 80 09 00 00 00 00 00 00 A8 [13:08:40]Write i2c OK [13:08:40]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 35 01 00 90 00 AA [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]SAM_PROTO_ClearQueue done [13:08:41]KKMCreateOFDPacket [13:08:41]OFDProtocolAddRootSTLVToBuf [13:08:41]FM_MakeSignedData [13:08:41]FM_MakeSignedData [13:08:41]SAM_PROTO_SignData [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 01 02 [13:08:41]Write to MH i2c: E2 08 00 36 01 80 0D 01 02 00 00 00 00 B0 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 36 01 00 90 00 AB [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=255 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 98 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 88 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D7 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D1 01 00 35 04 06 00 FF D5 33 44 [13:08:41]Write to MH i2c: E2 02 01 37 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 98 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 88 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D7 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D1 01 00 35 04 06 00 FF D5 33 44 00 00 7F [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 37 01 00 90 00 AC [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=7 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 02 02 02 05 DE [13:08:41]Write to MH i2c: E2 0A 00 38 01 80 0D 02 02 02 00 05 DE 00 00 9A [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 03 02 [13:08:41]Write to MH i2c: E2 08 00 39 01 80 0D 03 02 00 00 00 00 B5 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 0B 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 0B 00 39 01 00 A2 BA E8 2B 78 14 E4 D5 90 00 6A [13:08:41]RAPDU: A2 BA E8 2B 78 14 E4 D5 90 00 [13:08:41]wFMCommunicate OK [13:08:41]SAM_PROTO_SignData done [13:08:41]FM_MakeSignedData done [13:08:41]CreateOFDProtocolMessage [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 11 00 00 [13:08:41]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 17 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 10 [13:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:08:41]wFMCommunicate OK [13:08:41]CreateOFDProtocolMessage done [13:08:41]OFDSenderStorePacket 119082 [13:08:41]StoreOFDPacket docnum=119082 [13:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 29 1B 04 01 2C 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 98 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 88 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D7 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D1 01 00 35 04 06 00 FF D5 33 44 05 DE A2 BA E8 2B 78 14 E4 D5 [13:08:41]CheckFolder [13:08:41]dirname=/storage/ofd_packets [13:08:41]CheckFolder done [13:08:41]ProducePacketName [13:08:41]name=ofd_packets/00119082 [13:08:41]NVStorageSaveData ofd_packets/00119082 [13:08:41]File name is /storage/ofd_packets/00119082 [13:08:41]Write 298 bytes [13:08:41]NVStorageSaveData done [13:08:41]OFDSenderStorePacket done [13:08:41]KKMCreateOFDPacket done [13:08:41]NVStorageSaveData kkm_last_timestamp [13:08:41]File name is /storage/kkm_last_timestamp [13:08:41]Write 4 bytes [13:08:41]NVStorageSaveData done [13:08:41]ExternCall_PrintAddStr [13:08:41]wPrintStart [13:08:41]Write to MH i2c: 01 00 00 3B 01 3C [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 07 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [13:08:41]RasterBufferAndPrint [13:08:41]line Счет N : (1)950000 [13:08:41]line ИНН: 02508201610067 [13:08:41]line Контрольно-Кассовый Чек [13:08:41]line ПРОДАЖА [13:08:41]line ТРК (МРК, ГНК) : 11 [13:08:41]line Товар: 2710194800 [13:08:41]line ДТ-К-5 [13:08:41]line 38.990 * 76.20 [13:08:41]line = 2971.04 [13:08:41]line НДС 12% НСП 1% [13:08:41]line > о реализуемом товаре [13:08:41]line ОКРУГЛЕНИЕ: -0.04 [13:08:41]line ИТОГО: 2971.00 [13:08:41]line НСП 1% : 26.29 [13:08:41]line НДС 12% : 315.51 [13:08:41]line Наличными: 0.00 [13:08:41]line Безнал.: 2971.00 [13:08:41]line Место: АЗС № 134 "Партнер Нефть" [13:08:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:08:41]line СНО: Общий режим [13:08:41]line Чек 134 30.07.2024 13:08 [13:08:41]line Смена: 435 ФФД: 1.0 [13:08:41]line ЗНМ: 0300000044 [13:08:41]line РНМ: 0000000000092660 [13:08:41]line Версия ККМ: 001 [13:08:41]line Платежная система: O! деньги [13:08:41]line ФМ: 0000000000874939 [13:08:41]line ФД: 119082 [13:08:41]line ФПД: 281291153212894 [13:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T130839&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119082&fm=281291153212894&tin=02508201610067®Number=0000000000092660&sum=297100 [13:08:41]written 0, free lines is 4095 [13:08:41]OFD Sender: Processing packet 119082 [packets to send 86, broken 85] [13:08:41]ProducePacketName [13:08:41]name=ofd_packets/00119082 [13:08:41]OFD Sender: To server: pG, [13:08:41]CommunicateWithHost lk.salyk.kg:30040 [13:08:41]ConnectInit lk.salyk.kg [13:08:41]Write to MH i2c: 01 00 00 65 01 66 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 07 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 07 00 65 01 00 00 00 00 00 E1 0C 5A [13:08:41]RasterBufferAndPrint [13:08:41]line [13:08:41]line [13:08:41]line [13:08:41]line [13:08:41]line [13:08:41]written 0, free lines is 3303 [13:08:41]MH_Cut [13:08:41]Write to MH i2c: D1 01 00 6C 01 01 3F [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: D1 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: D1 01 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: D1 01 00 6C 01 00 3E [13:08:41]Write to MH i2c: 01 00 00 6D 01 6E [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:42]*** Cut start [13:08:42]*** Partial cut [13:08:42]*** CUTSNS_PIN = 1 [13:08:42]*** CUTSNS_PIN = 0 [13:08:42]*** Brake cut motor [13:08:43]Read from MH i2c: 01 [13:08:43]MH_I2C_Read... [13:08:43]*** Stop cut motor [13:08:43]*** Cut end [13:08:43]Read from MH i2c: 01 07 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: 01 07 00 6D 01 00 00 00 00 00 FF 0F 83 [13:08:43]process_action close_receipt done [13:08:43]requested_data is exist [13:08:43]produce_requested_data [13:08:43]requested_item fm.sn is exist - process it [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 11 00 00 [13:08:43]Write to MH i2c: E2 08 00 6E 01 80 11 00 00 00 00 00 00 E9 [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 17 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 17 00 6E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [13:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:08:43]wFMCommunicate OK [13:08:43]requested_item fd.num is exist - process it [13:08:43]SAM_PROTO_GetFieldsCounters [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 13 00 00 [13:08:43]Write to MH i2c: E2 08 00 6F 01 80 13 00 00 00 00 00 00 EC [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 62 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 62 00 6F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [13: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:43]wFMCommunicate OK [13:08:43]SAM_PROTO_GetFieldsCounters done [13:08:43]requested_item shift.num is exist - process it [13:08:43]requested_item shift.opened is exist - process it [13:08:43]req_shift_opened [13:08:43]FM_GetShiftState [13:08:43]SAM_PROTO_GetShiftState [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 13 01 00 [13:08:43]Write to MH i2c: E2 08 00 70 01 80 13 01 00 00 00 00 00 EE [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 0E 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 0E 00 70 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B9 [13:08:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:08:43]wFMCommunicate OK [13:08:43]SAM_PROTO_GetShiftState done [13:08:43]FM_GetShiftState done [13:08:43]req_shift_opened done [13:08:43]requested_item shift.open_date is exist - process it [13:08:43]req_shift_open_date [13:08:43]req_shift_open_date done [13:08:43]produce_requested_data done [13:08:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119082,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:08:43]process_action_free close_receipt [13:08:43]json_value_free [13:08:43]json_value_free done [13:08:43]process_json_proto returns [13:08:43]Send response to host [13:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119082,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:08:43]free response buf [13:08:43]execute_script done [13:08:43]execute_script returns [13:08:43]free content buf [13:08:43]Sock 9.Close socket [13:08:43]Sock 9.Thread stoped [13:08:45]Connected sock=10 [13:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 29 1B 04 01 2C 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 98 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 88 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 88 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 7B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 88 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 D7 E5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2A D1 01 00 35 04 06 00 FF D5 33 44 05 DE A2 BA E8 2B 78 14 E4 D5 [13:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5F 3D 47 00 02 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 34 39 33 39 10 04 04 00 2A D1 01 00 F4 03 04 00 67 93 A8 66 B6 04 01 00 00 8E 4B FF 23 17 01 F6 E5 [13:08:46]CommunicateWithHost err = 0 [13:08:46]CheckOFDResponse [13:08:46]1017 (14) - 77093643461234 [13:08:46]1041 (16) - 0000000000874939 [13:08:46]1040 (4) - 119082 [13:08:46]1012 (4) - 30.07.2024 07:16 [13:08:46]1206 (1) - 0 [13:08:46]OFD Sender: Remove packet 119082 [13:08:46]ProducePacketName [13:08:46]name=ofd_packets/00119082 [13:08:46]NVStorageDeleteData [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:49]recv_with_timeout no data received [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:18]recv_with_timeout no data received [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:30]accept exits with 7 [13:15:30]New connection [13:15:30]New thread 3066994020 created [13:15:30]Thread 3067137380 joined [13:15:30]Waiting for new connection... [13:15:30] Sock 7.Parse request [13:15:30]Sock 7.Check first char [13:15:30]Sock 7.First char is OK [13:15:30]request: POST /json_proto HTTP/1.0 [13:15:30]Method: POST [13:15:30]URL: /json_proto [13:15:30]Method is POST - this is cgi request [13:15:30]url: /json_proto [13:15:30]query_string will be loaded in cgi processing [13:15:30]execute_cgi json_proto POST (null) [13:15:30]execute_cgi path=json_proto method=POST [13:15:30]POST find Content-Length [13:15:30]Host: 172.17.45.7:8080 [13:15:30]Content-Length: 677 [13:15:30]Content-Type: application/json [13:15:30] [13:15:30]POST finish read [13:15:30]Found Content-Length = 677 [13:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:30]execute_script... [13:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:30]POST & json_proto [13:15:30]process_json_proto [13:15:30]json parsed OK: [13:15:30]protocol is kg_v1.0 [13:15:30]action value=close_receipt [13:15:30]process_action close_receipt [13:15:30]cmd_close_receipt [13:15:30]MH_GetDate [13:15:30]Write to MH i2c: F0 00 00 71 01 61 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: F0 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: F0 09 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: F0 09 00 71 01 00 72 E7 A8 66 90 0F 3E 66 14 [13:15:30]GetLastDocTimeStamp 1722344919 [13:15:30]current date 1722345330 [13:15:30]FM_GetShiftState [13:15:30]SAM_PROTO_GetShiftState [13:15:30]wFMCommunicate request_size=4 [13:15:30]MH_SAM_APDU [13:15:30]CAPDU: 80 13 01 00 [13:15:30]Write to MH i2c: E2 08 00 72 01 80 13 01 00 00 00 00 00 F0 [13:15:30]Write i2c OK [13:15:30]MH_I2C_Read... [13:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:30]Read from MH i2c: E2 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 0E 00 [13:15:30]MH_I2C_Read... [13:15:30]Read from MH i2c: E2 0E 00 72 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BB [13:15:30]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:15:30]wFMCommunicate OK [13:15:30]SAM_PROTO_GetShiftState done [13:15:30]FM_GetShiftState done [13:15:30]opened in 1722298242 [13:15:30]opened+sec_in_day 1722384642 [13:15:30]quantity*price = 50036 [13:15:30]sum+1 = 50037 [13:15:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 135 30.07.2024 13:15 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119083 ФПД: 144808686509808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119083&fm=144808686509808&tin=02508201610067®Number=0000000000092660&sum=50000 [13:15:31]StoreToDocumentArchive [13:15:31]shift 435 fd 119083 [13:15:31]save to /storage/0435/doc_00119083 [13:15:31]save last doc name /storage/0435/doc_00119083 to /storage/kkm_last_doc_name [13:15:31]save OK [13:15:31]Clear old archive folders... [13:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:31]tlvbuf is 000B3770 [13:15:31]SAM_PROTO_ClearQueue [13:15:31]wFMCommunicate request_size=4 [13:15:31]MH_SAM_APDU [13:15:31]CAPDU: 80 09 00 00 [13:15:31]Write to MH i2c: E2 08 00 7F 01 80 09 00 00 00 00 00 00 F2 [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:31]Read from MH i2c: E2 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 03 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [13:15:31]RAPDU: 90 00 [13:15:31]wFMCommunicate OK [13:15:31]SAM_PROTO_ClearQueue done [13:15:31]KKMCreateOFDPacket [13:15:31]OFDProtocolAddRootSTLVToBuf [13:15:31]FM_MakeSignedData [13:15:31]FM_MakeSignedData [13:15:31]SAM_PROTO_SignData [13:15:31]wFMCommunicate request_size=4 [13:15:31]MH_SAM_APDU [13:15:31]CAPDU: 80 0D 01 02 [13:15:31]Write to MH i2c: E2 08 00 80 01 80 0D 01 02 00 00 00 00 FA [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:31]Read from MH i2c: E2 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 03 00 [13:15:31]MH_I2C_Read... [13:15:31]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [13:15:31]RAPDU: 90 00 [13:15:31]wFMCommunicate OK [13:15:31]wFMCommunicate request_size=255 [13:15:31]MH_SAM_APDU [13:15: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 72 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D1 01 00 35 04 06 00 83 [13:15:31]Write to MH i2c: E2 02 01 81 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 72 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D1 01 00 35 04 06 00 83 00 00 A0 [13:15:31]Write i2c OK [13:15:31]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 03 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [13:15:32]RAPDU: 90 00 [13:15:32]wFMCommunicate OK [13:15:32]wFMCommunicate request_size=10 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 0D 02 02 05 B3 E6 51 DE F0 [13:15:32]Write to MH i2c: E2 0D 00 82 01 80 0D 02 02 05 00 B3 E6 51 DE F0 00 00 BF [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 03 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 03 00 82 01 00 90 00 F7 [13:15:32]RAPDU: 90 00 [13:15:32]wFMCommunicate OK [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 0D 03 02 [13:15:32]Write to MH i2c: E2 08 00 83 01 80 0D 03 02 00 00 00 00 FF [13:15:32]OFD Sender: No OFD packet to send [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0B 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0B 00 83 01 00 78 54 26 E8 6B CA 74 24 90 00 A7 [13:15:32]RAPDU: 78 54 26 E8 6B CA 74 24 90 00 [13:15:32]wFMCommunicate OK [13:15:32]SAM_PROTO_SignData done [13:15:32]FM_MakeSignedData done [13:15:32]CreateOFDProtocolMessage [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 11 00 00 [13:15:32]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 17 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [13:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:15:32]wFMCommunicate OK [13:15:32]CreateOFDProtocolMessage done [13:15:32]OFDSenderStorePacket 119083 [13:15:32]StoreOFDPacket docnum=119083 [13:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 75 07 01 34 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 72 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D1 01 00 35 04 06 00 83 B3 E6 51 DE F0 78 54 26 E8 6B CA 74 24 [13:15:32]CheckFolder [13:15:32]dirname=/storage/ofd_packets [13:15:32]CheckFolder done [13:15:32]ProducePacketName [13:15:32]name=ofd_packets/00119083 [13:15:32]NVStorageSaveData ofd_packets/00119083 [13:15:32]File name is /storage/ofd_packets/00119083 [13:15:32]Write 301 bytes [13:15:32]NVStorageSaveData done [13:15:32]OFDSenderStorePacket done [13:15:32]KKMCreateOFDPacket done [13:15:32]NVStorageSaveData kkm_last_timestamp [13:15:32]File name is /storage/kkm_last_timestamp [13:15:32]Write 4 bytes [13:15:32]NVStorageSaveData done [13:15:32]ExternCall_PrintAddStr [13:15:32]wPrintStart [13:15:32]Write to MH i2c: 01 00 00 85 01 86 [13:15:32]OFD Sender: Processing packet 119083 [packets to send 86, broken 85] [13:15:32]ProducePacketName [13:15:32]name=ofd_packets/00119083 [13:15:32]OFD Sender: To server: pG, [13:15:32]CommunicateWithHost lk.salyk.kg:30040 [13:15:32]ConnectInit lk.salyk.kg [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: 01 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: 01 07 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 FF 0F 9B [13:15:32]RasterBufferAndPrint [13:15:32]line Счет N : (1)950003 [13:15:32]line ИНН: 02508201610067 [13:15:32]line Контрольно-Кассовый Чек [13:15:32]line ПРОДАЖА [13:15:32]line ТРК (МРК, ГНК) : 61 [13:15:32]line Товар: 2710124130 [13:15:32]line Аи-92-К-4 [13:15:32]line 7.380 * 67.80 [13:15:32]line = 500.36 [13:15:32]line НДС 12% НСП 1% [13:15:32]line > о реализуемом товаре [13:15:32]line ОКРУГЛЕНИЕ: -0.36 [13:15:32]line ИТОГО: 500.00 [13:15:32]line Внесено: 500.00 [13:15:32]line СДАЧА: 0.00 [13:15:32]line НСП 1% : 4.43 [13:15:32]line НДС 12% : 53.14 [13:15:32]line Наличными: 500.00 [13:15:32]line Безнал.: 0.00 [13:15:32]line Место: АЗС № 134 "Партнер Нефть" [13:15:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:15:32]line СНО: Общий режим [13:15:32]line Чек 135 30.07.2024 13:15 [13:15:32]line Смена: 435 ФФД: 1.0 [13:15:32]line ЗНМ: 0300000044 [13:15:32]line РНМ: 0000000000092660 [13:15:32]line Версия ККМ: 001 [13:15:32]line ФМ: 0000000000874939 [13:15:32]line ФД: 119083 [13:15:32]line ФПД: 144808686509808 [13:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131530&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119083&fm=144808686509808&tin=02508201610067®Number=0000000000092660&sum=50000 [13:15:32]written 0, free lines is 4095 [13:15:33]Write to MH i2c: 01 00 00 AF 01 B0 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: 01 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: 01 07 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 DC 0C 9F [13:15:33]RasterBufferAndPrint [13:15:33]line [13:15:33]line [13:15:33]line [13:15:33]line [13:15:33]line [13:15:33]written 0, free lines is 3298 [13:15:33]MH_Cut [13:15:33]Write to MH i2c: D1 01 00 B6 01 01 89 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: D1 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: D1 01 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: D1 01 00 B6 01 00 88 [13:15:33]Write to MH i2c: 01 00 00 B7 01 B8 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** Cut start [13:15:33]*** Partial cut [13:15:33]*** CUTSNS_PIN = 1 [13:15:33]*** CUTSNS_PIN = 0 [13:15:34]*** Brake cut motor [13:15:34]Read from MH i2c: 01 [13:15:34]MH_I2C_Read... [13:15:34]*** Stop cut motor [13:15:34]*** Cut end [13:15:34]Read from MH i2c: 01 07 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 B7 01 00 00 00 00 00 FF 0F CD [13:15:34]process_action close_receipt done [13:15:34]requested_data is exist [13:15:34]produce_requested_data [13:15:34]requested_item fm.sn is exist - process it [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 11 00 00 [13:15:34]Write to MH i2c: E2 08 00 B8 01 80 11 00 00 00 00 00 00 33 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 17 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 17 00 B8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [13:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:15:34]wFMCommunicate OK [13:15:34]requested_item fd.num is exist - process it [13:15:34]SAM_PROTO_GetFieldsCounters [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 13 00 00 [13:15:34]Write to MH i2c: E2 08 00 B9 01 80 13 00 00 00 00 00 00 36 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 62 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 62 00 B9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:34]wFMCommunicate OK [13:15:34]SAM_PROTO_GetFieldsCounters done [13:15:34]requested_item shift.num is exist - process it [13:15:34]requested_item shift.opened is exist - process it [13:15:34]req_shift_opened [13:15:34]FM_GetShiftState [13:15:34]SAM_PROTO_GetShiftState [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 13 01 00 [13:15:34]Write to MH i2c: E2 08 00 BA 01 80 13 01 00 00 00 00 00 38 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 0E 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 0E 00 BA 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 03 [13:15:34]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:15:34]wFMCommunicate OK [13:15:34]SAM_PROTO_GetShiftState done [13:15:34]FM_GetShiftState done [13:15:34]req_shift_opened done [13:15:34]requested_item shift.open_date is exist - process it [13:15:34]req_shift_open_date [13:15:34]req_shift_open_date done [13:15:34]produce_requested_data done [13:15:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119083,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:15:34]process_action_free close_receipt [13:15:34]json_value_free [13:15:34]json_value_free done [13:15:34]process_json_proto returns [13:15:34]Send response to host [13:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119083,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:15:34]free response buf [13:15:34]execute_script done [13:15:34]execute_script returns [13:15:34]free content buf [13:15:34]Sock 7.Close socket [13:15:34]Sock 7.Thread stoped [13:15:37]ConnectInit Can't take IP for lk.salyk.kg [13:15:37]CommunicateWithHost connect error [13:15:37]CommunicateWithHost err = -1 [13:15:37]OFD Sender: Server communicate error [13:15:42]OFD Sender: Processing packet 119083 [packets to send 86, broken 85] [13:15:42]ProducePacketName [13:15:42]name=ofd_packets/00119083 [13:15:42]OFD Sender: To server: pG, [13:15:42]CommunicateWithHost lk.salyk.kg:30040 [13:15:42]ConnectInit lk.salyk.kg [13:15:47]ConnectInit Can't take IP for lk.salyk.kg [13:15:47]CommunicateWithHost connect error [13:15:47]CommunicateWithHost err = -1 [13:15:47]OFD Sender: Server communicate error [13:15:52]OFD Sender: Processing packet 119083 [packets to send 86, broken 85] [13:15:52]ProducePacketName [13:15:52]name=ofd_packets/00119083 [13:15:52]OFD Sender: To server: pG, [13:15:52]CommunicateWithHost lk.salyk.kg:30040 [13:15:52]ConnectInit lk.salyk.kg [13:15:57]ConnectInit Can't take IP for lk.salyk.kg [13:15:57]CommunicateWithHost connect error [13:15:57]CommunicateWithHost err = -1 [13:15:57]OFD Sender: Server communicate error [13:16:02]OFD Sender: Processing packet 119083 [packets to send 86, broken 85] [13:16:02]ProducePacketName [13:16:02]name=ofd_packets/00119083 [13:16:02]OFD Sender: To server: pG, [13:16:02]CommunicateWithHost lk.salyk.kg:30040 [13:16:02]ConnectInit lk.salyk.kg [13:16:07]ConnectInit Can't take IP for lk.salyk.kg [13:16:07]CommunicateWithHost connect error [13:16:07]CommunicateWithHost err = -1 [13:16:07]OFD Sender: Server communicate error [13:16:12]OFD Sender: Processing packet 119083 [packets to send 86, broken 85] [13:16:12]ProducePacketName [13:16:12]name=ofd_packets/00119083 [13:16:12]OFD Sender: To server: pG, [13:16:12]CommunicateWithHost lk.salyk.kg:30040 [13:16:12]ConnectInit lk.salyk.kg [13:16:15]Connected sock=7 [13:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 75 07 01 34 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 72 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D1 01 00 35 04 06 00 83 B3 E6 51 DE F0 78 54 26 E8 6B CA 74 24 [13:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D5 81 47 00 A5 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2B D1 01 00 F4 03 04 00 28 95 A8 66 B6 04 01 00 00 D8 8D 0D C1 BC 3E 07 7F [13:16:15]CommunicateWithHost err = 0 [13:16:15]CheckOFDResponse [13:16:15]1017 (14) - 77093643461234 [13:16:15]1041 (16) - 0000000000874939 [13:16:15]1040 (4) - 119083 [13:16:15]1012 (4) - 30.07.2024 07:24 [13:16:15]1206 (1) - 0 [13:16:15]OFD Sender: Remove packet 119083 [13:16:15]ProducePacketName [13:16:15]name=ofd_packets/00119083 [13:16:15]NVStorageDeleteData [13:16:16]OFD Sender: No OFD packet to send [13:16:19]accept exits with 10 [13:16:19]New connection [13:16:19]New thread 3067137380 created [13:16:19]Thread 3066994020 joined [13:16:19]Waiting for new connection... [13:16:19] Sock 10.Parse request [13:16:19]Sock 10.Check first char [13:16:19]Sock 10.First char is OK [13:16:19]request: POST /json_proto HTTP/1.0 [13:16:19]Method: POST [13:16:19]URL: /json_proto [13:16:19]Method is POST - this is cgi request [13:16:19]url: /json_proto [13:16:19]query_string will be loaded in cgi processing [13:16:19]execute_cgi json_proto POST (null) [13:16:19]execute_cgi path=json_proto method=POST [13:16:19]POST find Content-Length [13:16:19]Host: 172.17.45.7:8080 [13:16:19]Content-Length: 819 [13:16:19]Content-Type: application/json [13:16:19] [13:16:19]POST finish read [13:16:19]Found Content-Length = 819 [13:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 64.310, "sum" : 4900.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4900.00, "payments": [ { "type": 1, "sum" : 4900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:19]execute_script... [13:16: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)950002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 64.310, "sum" : 4900.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 4900.00, "payments": [ { "type": 1, "sum" : 4900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:19]POST & json_proto [13:16:19]process_json_proto [13:16:19]json parsed OK: [13:16:19]protocol is kg_v1.0 [13:16:19]action value=close_receipt [13:16:19]process_action close_receipt [13:16:19]cmd_close_receipt [13:16:19]MH_GetDate [13:16:19]Write to MH i2c: F0 00 00 BB 01 AB [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: F0 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: F0 09 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: F0 09 00 BB 01 00 A3 E7 A8 66 90 0F 3E 66 8F [13:16:19]GetLastDocTimeStamp 1722345330 [13:16:19]current date 1722345379 [13:16:19]FM_GetShiftState [13:16:19]SAM_PROTO_GetShiftState [13:16:19]wFMCommunicate request_size=4 [13:16:19]MH_SAM_APDU [13:16:19]CAPDU: 80 13 01 00 [13:16:19]Write to MH i2c: E2 08 00 BC 01 80 13 01 00 00 00 00 00 3A [13:16:19]Write i2c OK [13:16:19]MH_I2C_Read... [13:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:19]Read from MH i2c: E2 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 0E 00 [13:16:19]MH_I2C_Read... [13:16:19]Read from MH i2c: E2 0E 00 BC 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 05 [13:16:19]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:16:19]wFMCommunicate OK [13:16:19]SAM_PROTO_GetShiftState done [13:16:19]FM_GetShiftState done [13:16:19]opened in 1722298242 [13:16:19]opened+sec_in_day 1722384642 [13:16:19]quantity*price = 490042 [13:16:19]sum+1 = 490043 [13:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 4900.00 НСП 1% : 43.37 НДС 12% : 520.40 Наличными: 0.00 Безнал.: 4900.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 136 30.07.2024 13:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119084 ФПД: 15736254078055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119084&fm=15736254078055&tin=02508201610067®Number=0000000000092660&sum=490000 [13:16:20]StoreToDocumentArchive [13:16:20]shift 435 fd 119084 [13:16:20]save to /storage/0435/doc_00119084 [13:16:20]save last doc name /storage/0435/doc_00119084 to /storage/kkm_last_doc_name [13:16:20]save OK [13:16:20]Clear old archive folders... [13:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:16:20]tlvbuf is 000B3640 [13:16:20]SAM_PROTO_ClearQueue [13:16:20]wFMCommunicate request_size=4 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 09 00 00 [13:16:20]Write to MH i2c: E2 08 00 C9 01 80 09 00 00 00 00 00 00 3C [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [13:16:20]RAPDU: 90 00 [13:16:20]wFMCommunicate OK [13:16:20]SAM_PROTO_ClearQueue done [13:16:20]KKMCreateOFDPacket [13:16:20]OFDProtocolAddRootSTLVToBuf [13:16:20]FM_MakeSignedData [13:16:20]FM_MakeSignedData [13:16:20]SAM_PROTO_SignData [13:16:20]wFMCommunicate request_size=4 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 0D 01 02 [13:16:20]Write to MH i2c: E2 08 00 CA 01 80 0D 01 02 00 00 00 00 44 [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [13:16:20]RAPDU: 90 00 [13:16:20]wFMCommunicate OK [13:16:20]wFMCommunicate request_size=255 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 FB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3A 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A3 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D1 01 00 35 04 06 00 0E 4F E1 D5 [13:16:20]Write to MH i2c: E2 02 01 CB 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 FB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3A 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A3 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D1 01 00 35 04 06 00 0E 4F E1 D5 00 00 94 [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [13:16:20]RAPDU: 90 00 [13:16:20]wFMCommunicate OK [13:16:20]wFMCommunicate request_size=7 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 0D 02 02 02 9C 67 [13:16:20]Write to MH i2c: E2 0A 00 CC 01 80 0D 02 02 02 00 9C 67 00 00 4E [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 03 00 CC 01 00 90 00 41 [13:16:20]RAPDU: 90 00 [13:16:20]wFMCommunicate OK [13:16:20]wFMCommunicate request_size=4 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 0D 03 02 [13:16:20]Write to MH i2c: E2 08 00 CD 01 80 0D 03 02 00 00 00 00 49 [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 0B 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 0B 00 CD 01 00 5E B6 A2 26 8C 65 84 73 90 00 0E [13:16:20]RAPDU: 5E B6 A2 26 8C 65 84 73 90 00 [13:16:20]wFMCommunicate OK [13:16:20]SAM_PROTO_SignData done [13:16:20]FM_MakeSignedData done [13:16:20]CreateOFDProtocolMessage [13:16:20]wFMCommunicate request_size=4 [13:16:20]MH_SAM_APDU [13:16:20]CAPDU: 80 11 00 00 [13:16:20]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:20]Read from MH i2c: E2 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: E2 17 00 [13:16:20]MH_I2C_Read... [13:16:20]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 34 39 33 39 90 00 A4 [13:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:16:20]wFMCommunicate OK [13:16:20]CreateOFDProtocolMessage done [13:16:20]OFDSenderStorePacket 119084 [13:16:20]StoreOFDPacket docnum=119084 [13:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E7 13 04 01 8E CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 FB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3A 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A3 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D1 01 00 35 04 06 00 0E 4F E1 D5 9C 67 5E B6 A2 26 8C 65 84 73 [13:16:20]CheckFolder [13:16:20]dirname=/storage/ofd_packets [13:16:20]CheckFolder done [13:16:20]ProducePacketName [13:16:20]name=ofd_packets/00119084 [13:16:20]NVStorageSaveData ofd_packets/00119084 [13:16:20]File name is /storage/ofd_packets/00119084 [13:16:20]Write 298 bytes [13:16:20]NVStorageSaveData done [13:16:20]OFDSenderStorePacket done [13:16:20]KKMCreateOFDPacket done [13:16:20]NVStorageSaveData kkm_last_timestamp [13:16:20]File name is /storage/kkm_last_timestamp [13:16:20]Write 4 bytes [13:16:20]NVStorageSaveData done [13:16:20]ExternCall_PrintAddStr [13:16:20]wPrintStart [13:16:20]Write to MH i2c: 01 00 00 CF 01 D0 [13:16:20]Write i2c OK [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: 01 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: 01 07 00 [13:16:20]MH_I2C_Read... [13:16:20]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 FF 0F E5 [13:16:20]RasterBufferAndPrint [13:16:20]line Счет N : (1)950002 [13:16:20]line ИНН: 02508201610067 [13:16:20]line Контрольно-Кассовый Чек [13:16:20]line ПРОДАЖА [13:16:20]line ТРК (МРК, ГНК) : 44 [13:16:20]line Товар: 2710194800 [13:16:20]line ДТ-К-5 [13:16:20]line 64.310 * 76.20 [13:16:20]line = 4900.42 [13:16:20]line НДС 12% НСП 1% [13:16:20]line > о реализуемом товаре [13:16:20]line ОКРУГЛЕНИЕ: -0.42 [13:16:20]line ИТОГО: 4900.00 [13:16:20]line НСП 1% : 43.37 [13:16:20]line НДС 12% : 520.40 [13:16:20]line Наличными: 0.00 [13:16:20]line Безнал.: 4900.00 [13:16:20]line Место: АЗС № 134 "Партнер Нефть" [13:16:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:16:20]line СНО: Общий режим [13:16:20]line Чек 136 30.07.2024 13:16 [13:16:20]line Смена: 435 ФФД: 1.0 [13:16:20]line ЗНМ: 0300000044 [13:16:20]line РНМ: 0000000000092660 [13:16:20]line Версия ККМ: 001 [13:16:20]line Платежная система: O! деньги [13:16:20]line ФМ: 0000000000874939 [13:16:20]line ФД: 119084 [13:16:20]line ФПД: 15736254078055 [13:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119084&fm=15736254078055&tin=02508201610067®Number=0000000000092660&sum=490000 [13:16:20]OFD Sender: Processing packet 119084 [packets to send 86, broken 85] [13:16:20]ProducePacketName [13:16:20]name=ofd_packets/00119084 [13:16:20]OFD Sender: To server: pG, [13:16:20]CommunicateWithHost lk.salyk.kg:30040 [13:16:20]ConnectInit lk.salyk.kg [13:16:20]written 0, free lines is 4095 [13:16:21]Write to MH i2c: 01 00 00 F9 01 FA [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 07 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: 01 07 00 F9 01 00 00 00 00 00 E0 0C ED [13:16:21]RasterBufferAndPrint [13:16:21]line [13:16:21]line [13:16:21]line [13:16:21]line [13:16:21]line [13:16:21]written 0, free lines is 3312 [13:16:21]MH_Cut [13:16:21]Write to MH i2c: D1 01 00 00 02 01 D4 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: D1 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: D1 01 00 [13:16:21]MH_I2C_Read... [13:16:21]Read from MH i2c: D1 01 00 00 02 00 D3 [13:16:21]Write to MH i2c: 01 00 00 01 02 03 [13:16:21]Write i2c OK [13:16:21]MH_I2C_Read... [13:16:22]*** Cut start [13:16:22]*** Partial cut [13:16:22]*** CUTSNS_PIN = 1 [13:16:22]*** CUTSNS_PIN = 0 [13:16:22]*** Brake cut motor [13:16:22]Read from MH i2c: 01 [13:16:22]MH_I2C_Read... [13:16:22]*** Stop cut motor [13:16:22]*** Cut end [13:16:22]Read from MH i2c: 01 07 00 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: 01 07 00 01 02 00 00 00 00 00 FF 0F 18 [13:16:22]process_action close_receipt done [13:16:22]requested_data is exist [13:16:22]produce_requested_data [13:16:22]requested_item fm.sn is exist - process it [13:16:22]wFMCommunicate request_size=4 [13:16:22]MH_SAM_APDU [13:16:22]CAPDU: 80 11 00 00 [13:16:22]Write to MH i2c: E2 08 00 02 02 80 11 00 00 00 00 00 00 7E [13:16:22]Write i2c OK [13:16:22]MH_I2C_Read... [13:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:22]Read from MH i2c: E2 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: E2 17 00 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: E2 17 00 02 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D9 [13:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:16:22]wFMCommunicate OK [13:16:22]requested_item fd.num is exist - process it [13:16:22]SAM_PROTO_GetFieldsCounters [13:16:22]wFMCommunicate request_size=4 [13:16:22]MH_SAM_APDU [13:16:22]CAPDU: 80 13 00 00 [13:16:22]Write to MH i2c: E2 08 00 03 02 80 13 00 00 00 00 00 00 81 [13:16:22]Write i2c OK [13:16:22]MH_I2C_Read... [13:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:22]Read from MH i2c: E2 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: E2 62 00 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: E2 62 00 03 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [13:16:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:22]wFMCommunicate OK [13:16:22]SAM_PROTO_GetFieldsCounters done [13:16:22]requested_item shift.num is exist - process it [13:16:22]requested_item shift.opened is exist - process it [13:16:22]req_shift_opened [13:16:22]FM_GetShiftState [13:16:22]SAM_PROTO_GetShiftState [13:16:22]wFMCommunicate request_size=4 [13:16:22]MH_SAM_APDU [13:16:22]CAPDU: 80 13 01 00 [13:16:22]Write to MH i2c: E2 08 00 04 02 80 13 01 00 00 00 00 00 83 [13:16:22]Write i2c OK [13:16:22]MH_I2C_Read... [13:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:22]Read from MH i2c: E2 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: E2 0E 00 [13:16:22]MH_I2C_Read... [13:16:22]Read from MH i2c: E2 0E 00 04 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4E [13:16:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:16:22]wFMCommunicate OK [13:16:22]SAM_PROTO_GetShiftState done [13:16:22]FM_GetShiftState done [13:16:23]req_shift_opened done [13:16:23]requested_item shift.open_date is exist - process it [13:16:23]req_shift_open_date [13:16:23]req_shift_open_date done [13:16:23]produce_requested_data done [13:16:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119084,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:16:23]process_action_free close_receipt [13:16:23]json_value_free [13:16:23]json_value_free done [13:16:23]process_json_proto returns [13:16:23]Send response to host [13:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119084,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:16:23]free response buf [13:16:23]execute_script done [13:16:23]execute_script returns [13:16:23]free content buf [13:16:23]Sock 10.Close socket [13:16:23]Sock 10.Thread stoped [13:16:23]Connected sock=11 [13:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E7 13 04 01 8E CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 FB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3A 7A 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 7A 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 CB 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 7A 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 A3 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D1 01 00 35 04 06 00 0E 4F E1 D5 9C 67 5E B6 A2 26 8C 65 84 73 [13:16:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C D3 47 00 DF B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2C D1 01 00 F4 03 04 00 30 95 A8 66 B6 04 01 00 00 65 F0 98 90 53 01 18 9E [13:16:25]CommunicateWithHost err = 0 [13:16:25]CheckOFDResponse [13:16:25]1017 (14) - 77093643461234 [13:16:25]1041 (16) - 0000000000874939 [13:16:25]1040 (4) - 119084 [13:16:25]1012 (4) - 30.07.2024 07:24 [13:16:25]1206 (1) - 0 [13:16:25]OFD Sender: Remove packet 119084 [13:16:25]ProducePacketName [13:16:25]name=ofd_packets/00119084 [13:16:25]NVStorageDeleteData [13:16:26]ConnectInit Can't connect to host [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:50]accept exits with 7 [13:16:50]New connection [13:16:50]New thread 3066994020 created [13:16:50]Thread 3067137380 joined [13:16:50]Waiting for new connection... [13:16:50] Sock 7.Parse request [13:16:50]Sock 7.Check first char [13:16:50]Sock 7.First char is OK [13:16:50]request: POST /json_proto HTTP/1.0 [13:16:50]Method: POST [13:16:50]URL: /json_proto [13:16:50]Method is POST - this is cgi request [13:16:50]url: /json_proto [13:16:50]query_string will be loaded in cgi processing [13:16:50]execute_cgi json_proto POST (null) [13:16:50]execute_cgi path=json_proto method=POST [13:16:50]POST find Content-Length [13:16:50]Host: 172.17.45.7:8080 [13:16:50]Content-Length: 674 [13:16:50]Content-Type: application/json [13:16:50] [13:16:50]POST finish read [13:16:50]Found Content-Length = 674 [13:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [13:16:50]execute_script... [13:16: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)950004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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" ] } } [13:16:50]POST & json_proto [13:16:50]process_json_proto [13:16:50]json parsed OK: [13:16:50]protocol is kg_v1.0 [13:16:50]action value=close_receipt [13:16:50]process_action close_receipt [13:16:50]cmd_close_receipt [13:16:50]MH_GetDate [13:16:50]Write to MH i2c: F0 00 00 05 02 F6 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 09 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: F0 09 00 05 02 00 C2 E7 A8 66 90 0F 3E 66 F9 [13:16:50]GetLastDocTimeStamp 1722345379 [13:16:50]current date 1722345410 [13:16:50]FM_GetShiftState [13:16:50]SAM_PROTO_GetShiftState [13:16:50]wFMCommunicate request_size=4 [13:16:50]MH_SAM_APDU [13:16:50]CAPDU: 80 13 01 00 [13:16:50]Write to MH i2c: E2 08 00 06 02 80 13 01 00 00 00 00 00 85 [13:16:50]Write i2c OK [13:16:50]MH_I2C_Read... [13:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:50]Read from MH i2c: E2 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 0E 00 [13:16:50]MH_I2C_Read... [13:16:50]Read from MH i2c: E2 0E 00 06 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 50 [13:16:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:16:50]wFMCommunicate OK [13:16:50]SAM_PROTO_GetShiftState done [13:16:50]FM_GetShiftState done [13:16:50]opened in 1722298242 [13:16:50]opened+sec_in_day 1722384642 [13:16:50]quantity*price = 20040 [13:16:50]sum+1 = 20042 [13:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 137 30.07.2024 13:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119085 ФПД: 133456954209748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131650&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119085&fm=133456954209748&tin=02508201610067®Number=0000000000092660&sum=20000 [13:16:51]StoreToDocumentArchive [13:16:51]shift 435 fd 119085 [13:16:51]save to /storage/0435/doc_00119085 [13:16:51]save last doc name /storage/0435/doc_00119085 to /storage/kkm_last_doc_name [13:16:51]save OK [13:16:51]Clear old archive folders... [13:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:16:51]tlvbuf is 000EB690 [13:16:51]SAM_PROTO_ClearQueue [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 09 00 00 [13:16:51]Write to MH i2c: E2 08 00 13 02 80 09 00 00 00 00 00 00 87 [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]SAM_PROTO_ClearQueue done [13:16:51]KKMCreateOFDPacket [13:16:51]OFDProtocolAddRootSTLVToBuf [13:16:51]FM_MakeSignedData [13:16:51]FM_MakeSignedData [13:16:51]SAM_PROTO_SignData [13:16:51]wFMCommunicate request_size=4 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 01 02 [13:16:51]Write to MH i2c: E2 08 00 14 02 80 0D 01 02 00 00 00 00 8F [13:16:51]Write i2c OK [13:16:51]MH_I2C_Read... [13:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:51]Read from MH i2c: E2 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 [13:16:51]MH_I2C_Read... [13:16:51]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [13:16:51]RAPDU: 90 00 [13:16:51]wFMCommunicate OK [13:16:51]wFMCommunicate request_size=255 [13:16:51]MH_SAM_APDU [13:16:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 89 00 00 00 F4 03 04 00 C2 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D1 01 00 35 04 06 00 79 60 DE 59 [13:16:51]Write to MH i2c: E2 02 01 15 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 7002318+1715343248=1722345566 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 5E E8 A8 66 90 0F 3E 66 96 [13:19:26]Current date/time: 30.07.2024 13:19 [13:19:26]FM_Init [13:19:26]wFMConnect [13:19:26]MH_SAM_On [13:19:26]Write to MH i2c: E0 00 00 08 00 E7 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_init finished! [13:19:26]*** atr: [13:19:26]*** 0F 3B D5 18 FF 81 91 FE [13:19:26]*** 1F C3 80 73 C8 21 10 0A [13:19:26]*** 00 00 00 00 00 00 00 00 [13:19:26]*** 00 00 00 00 00 00 00 00 [13:19:26]*** 00 00 00 00 00 00 00 00 [13:19:26]*** 00 00 00 00 00 00 00 00 [13:19:26]*** 00 00 00 00 00 00 00 00 [13:19:26]*** 00 00 00 00 00 00 00 00 [13:19:26]Read from MH i2c: E0 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E0 10 00 [13:19:26]MH_I2C_Read... [13:19:26]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 [13:19:26]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:19:26]wFMCommunicate request_size=10 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:19:26]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:19:26]RAPDU: 90 00 [13:19:26]wFMCommunicate OK [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 11 00 00 [13:19:26]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 17 00 [13:19:26]MH_I2C_Read... [13:19:26]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 34 39 33 39 90 00 DF [13:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:19:26]wFMCommunicate OK [13:19:26]Detected FM SN is 0000000000874939 [13:19:26]Stored FM SN is 0000000000874939 [13:19:26]wFMCommunicate request_size=9 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 16 00 00 04 38 32 00 00 [13:19:26]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:19:26]RAPDU: 90 00 [13:19:26]wFMCommunicate OK [13:19:26]FM PIN OK [13:19:26]wFMCommunicate request_size=8 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 14 04 00 03 02 00 01 [13:19:26]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 [13:19:26]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:19:26]RAPDU: 90 00 [13:19:26]wFMCommunicate OK [13:19:26]wFMCommunicate request_size=13 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:19:26]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 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:19:26]RAPDU: 90 00 [13:19:26]wFMCommunicate OK [13:19:26]wFMCommunicate request_size=4 [13:19:26]MH_SAM_APDU [13:19:26]CAPDU: 80 11 00 00 [13:19:26]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:26]Read from MH i2c: E2 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: E2 17 00 [13:19:26]MH_I2C_Read... [13:19:26]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 34 39 33 39 90 00 E3 [13:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:19:26]wFMCommunicate OK [13:19:26]DocumentArchiveInit [13:19:26]Start Httpd... [13:19:26]Httpd thread 3067305316 created [13:19:26]Write to MH i2c: 01 00 00 0F 00 0F [13:19:26]Write i2c OK [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 [13:19:26]MH_I2C_Read... [13:19:26]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:19:26]MH Int Process started [13:19:26]Allocated Socket 8 [13:19:26]Bind OK [13:19:26]Listen OK [13:19:26]httpd running on port 8080 [13:19:26]Waiting for new connection... [13:19:26]OFD Sender: Processing packet 119085 [packets to send 86, broken 85] [13:19:26]ProducePacketName [13:19:26]name=ofd_packets/00119085 [13:19:26]OFD Sender: To server: pG, [13:19:26]CommunicateWithHost lk.salyk.kg:30040 [13:19:26]ConnectInit lk.salyk.kg [13:19:29]accept exits with 9 [13:19:29]New connection [13:19:29]New thread 3067018596 created [13:19:29]Waiting for new connection... [13:19:29] Sock 9.Parse request [13:19:29]Sock 9.Check first char [13:19:29]Sock 9.First char is OK [13:19:29]request: POST /json_proto HTTP/1.0 [13:19:29]Method: POST [13:19:29]URL: /json_proto [13:19:29]Method is POST - this is cgi request [13:19:29]url: /json_proto [13:19:29]query_string will be loaded in cgi processing [13:19:29]execute_cgi json_proto POST (null) [13:19:29]execute_cgi path=json_proto method=POST [13:19:29]POST find Content-Length [13:19:29]Host: 172.17.45.7:8080 [13:19:29]Content-Length: 215 [13:19:29]Content-Type: application/json [13:19:29] [13:19:29]POST finish read [13:19:29]Found Content-Length = 215 [13:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:29]execute_script... [13:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:29]POST & json_proto [13:19:29]process_json_proto [13:19:29]json parsed OK: [13:19:29]protocol is kg_v1.0 [13:19:29]action value=get_value [13:19:29]process_action get_value [13:19:29]cmd_get_value [13:19:29]process_action get_value done [13:19:29]requested_data is exist [13:19:29]produce_requested_data [13:19:29]requested_item kkm.sn is exist - process it [13:19:29]requested_item kkm.ver is exist - process it [13:19:29]requested_item fm.sn is exist - process it [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 11 00 00 [13:19:29]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 17 00 [13:19:29]MH_I2C_Read... [13:19:29]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 34 39 33 39 90 00 E5 [13:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:19:29]wFMCommunicate OK [13:19:29]requested_item fd.num is exist - process it [13:19:29]SAM_PROTO_GetFieldsCounters [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 00 00 [13:19:29]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 62 00 [13:19:29]MH_I2C_Read... [13:19:29]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [13:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:29]wFMCommunicate OK [13:19:29]SAM_PROTO_GetFieldsCounters done [13:19:29]requested_item shift.num is exist - process it [13:19:29]requested_item shift.opened is exist - process it [13:19:29]req_shift_opened [13:19:29]FM_GetShiftState [13:19:29]SAM_PROTO_GetShiftState [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 01 00 [13:19:29]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:29]Read from MH i2c: E2 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 0E 00 [13:19:29]MH_I2C_Read... [13:19:29]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5A [13:19:29]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:19:29]wFMCommunicate OK [13:19:29]SAM_PROTO_GetShiftState done [13:19:29]FM_GetShiftState done [13:19:29]req_shift_opened done [13:19:29]requested_item shift.open_date is exist - process it [13:19:29]req_shift_open_date [13:19:29]req_shift_open_date done [13:19:29]produce_requested_data done [13:19:29]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119085,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:19:29]process_action_free get_value [13:19:29]json_value_free [13:19:29]json_value_free done [13:19:29]process_json_proto returns [13:19:29]Send response to host [13:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119085,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:19:29]free response buf [13:19:29]execute_script done [13:19:29]execute_script returns [13:19:29]free content buf [13:19:29]Sock 9.Close socket [13:19:29]Sock 9.Thread stoped [13:19:29]accept exits with 11 [13:19:29]New connection [13:19:29]New thread 3066875236 created [13:19:29]Thread 3067018596 joined [13:19:29]Waiting for new connection... [13:19:29] Sock 11.Parse request [13:19:29]Sock 11.Check first char [13:19:29]Sock 11.First char is OK [13:19:29]request: POST /json_proto HTTP/1.0 [13:19:29]Method: POST [13:19:29]URL: /json_proto [13:19:29]Method is POST - this is cgi request [13:19:29]url: /json_proto [13:19:29]query_string will be loaded in cgi processing [13:19:29]execute_cgi json_proto POST (null) [13:19:29]execute_cgi path=json_proto method=POST [13:19:29]POST find Content-Length [13:19:29]Host: 172.17.45.7:8080 [13:19:29]Content-Length: 331 [13:19:29]Content-Type: application/json [13:19:29] [13:19:29]POST finish read [13:19:29]Found Content-Length = 331 [13:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:19:29]execute_script... [13:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:19:29]POST & json_proto [13:19:29]process_json_proto [13:19:29]json parsed OK: [13:19:29]protocol is kg_v1.0 [13:19:29]action value=get_value [13:19:29]process_action get_value [13:19:29]cmd_get_value [13:19:29]process_action get_value done [13:19:29]requested_data is exist [13:19:29]produce_requested_data [13:19:29]requested_item fm.sale.total is exist - process it [13:19:29]SAM_PROTO_GetFMData [13:19:29]wFMCommunicate request_size=4 [13:19:29]MH_SAM_APDU [13:19:29]CAPDU: 80 13 03 00 [13:19:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:19:29]Write i2c OK [13:19:29]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 C7 CD 01 00 69 04 A3 00 6F 04 04 00 31 C0 01 00 B1 04 05 00 DC 15 50 79 03 70 04 05 00 2C 13 88 A9 02 72 04 04 00 B0 02 C8 CF 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 F6 FA 76 5E 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 3E 1E DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 96 0D 00 00 B1 04 04 00 08 51 43 3B 70 04 04 00 08 51 43 3B 72 04 00 00 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 98 4D 4B 06 EF 03 09 90 00 42 [13:19:30]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 C7 CD 01 00 69 04 A3 00 6F 04 04 00 31 C0 01 00 B1 04 05 00 DC 15 50 79 03 70 04 05 00 2C 13 88 A9 02 72 04 04 00 B0 02 C8 CF 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 F6 FA 76 5E 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 3E 1E DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 96 0D 00 00 B1 04 04 00 08 51 43 3B 70 04 04 00 08 51 43 3B 72 04 00 00 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 98 4D 4B 06 EF 03 09 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 17 00 00 [13:19:30]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 A9 [13:19:30]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 94 45 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 17 00 00 [13:19:30]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [13:19:30]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 17 00 00 [13:19:30]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:30]Read from MH i2c: E2 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 [13:19:30]MH_I2C_Read... [13:19:30]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [13:19:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:19:30]wFMCommunicate OK [13:19:30]wFMCommunicate request_size=4 [13:19:30]MH_SAM_APDU [13:19:30]CAPDU: 80 17 00 00 [13:19:30]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:19:30]Write i2c OK [13:19:30]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 E2 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [13:19:31]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:19:31]wFMCommunicate OK [13:19:31]SAM_PROTO_GetFMData done [13:19:31]requested_item fm.sale_refund.total is exist - process it [13:19:31]requested_item fm.buy.total is exist - process it [13:19:31]requested_item shift.sale.total is exist - process it [13:19:31]SAM_PROTO_GetShiftData [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 13 02 00 [13:19:31]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]ConnectInit Can't take IP for lk.salyk.kg [13:19:31]CommunicateWithHost connect error [13:19:31]CommunicateWithHost err = -1 [13:19:31]OFD Sender: Server communicate error [13:19:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 FD 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 89 00 00 00 69 04 9D 00 6F 04 04 00 86 00 00 00 B1 04 04 00 CC AD 48 01 70 04 03 00 14 0E 6F 72 04 03 00 B8 9F D9 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 30 E9 22 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 BF E8 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C2 [13:19:31]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 89 00 00 00 69 04 9D 00 6F 04 04 00 86 00 00 00 B1 04 04 00 CC AD 48 01 70 04 03 00 14 0E 6F 72 04 03 00 B8 9F D9 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 30 E9 22 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 BF E8 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 30 63 03 70 04 03 00 30 63 03 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 21 5C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [13:19:31]wFMCommunicate OK [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 17 00 00 [13:19:31]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:31]Read from MH i2c: E2 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 FD 00 [13:19:31]MH_I2C_Read... [13:19:31]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 F7 [13:19:31]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 [13:19:31]wFMCommunicate OK [13:19:31]wFMCommunicate request_size=4 [13:19:31]MH_SAM_APDU [13:19:31]CAPDU: 80 17 00 00 [13:19:31]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:19:31]Write i2c OK [13:19:31]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 FD 00 [13:19:32]MH_I2C_Read... [13:19:32]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 [13:19: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 [13:19:32]wFMCommunicate OK [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 17 00 00 [13:19:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 FD 00 [13:19:32]MH_I2C_Read... [13:19:32]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 [13:19:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [13:19:32]wFMCommunicate OK [13:19:32]wFMCommunicate request_size=4 [13:19:32]MH_SAM_APDU [13:19:32]CAPDU: 80 17 00 00 [13:19:32]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:19:32]Write i2c OK [13:19:32]MH_I2C_Read... [13:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [13:19:32]Read from MH i2c: E2 [13:19:32]MH_I2C_Read... [13:19:32]Read from MH i2c: E2 D7 00 [13:19:32]MH_I2C_Read... [13:19:32]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 [13:19:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:19:32]wFMCommunicate OK [13:19:32]SAM_PROTO_GetShiftData done [13:19:32]requested_item shift.sale.total_cash is exist - process it [13:19:32]requested_item shift.sale_refund.total is exist - process it [13:19:32]requested_item shift.sale_refund.total_cash is exist - process it [13:19:32]requested_item shift.buy.total is exist - process it [13:19:32]requested_item shift.buy.total_cash is exist - process it [13:19:32]produce_requested_data done [13:19:32]produce_requested_data return {"fm.sale.total":149201935.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":215403.00,"shift.sale.total_cash":72781.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:19:32]process_action_free get_value [13:19:32]json_value_free [13:19:32]json_value_free done [13:19:32]process_json_proto returns [13:19:32]Send response to host [13:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149201935.00,"fm.sale_refund.total":9942674.00,"fm.buy.total":0.00,"shift.sale.total":215403.00,"shift.sale.total_cash":72781.00,"shift.sale_refund.total":2220.00,"shift.sale_refund.total_cash":2220.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:19:32]free response buf [13:19:32]execute_script done [13:19:32]execute_script returns [13:19:32]free content buf [13:19:32]Sock 11.Close socket [13:19:32]Sock 11.Thread stoped [13:19:33]accept exits with 9 [13:19:33]New connection [13:19:33]New thread 3067018596 created [13:19:33]Thread 3066875236 joined [13:19:33]Waiting for new connection... [13:19:33] Sock 9.Parse request [13:19:33]Sock 9.Check first char [13:19:33]Sock 9.First char is OK [13:19:33]request: POST /json_proto HTTP/1.0 [13:19:33]Method: POST [13:19:33]URL: /json_proto [13:19:33]Method is POST - this is cgi request [13:19:33]url: /json_proto [13:19:33]query_string will be loaded in cgi processing [13:19:33]execute_cgi json_proto POST (null) [13:19:33]execute_cgi path=json_proto method=POST [13:19:33]POST find Content-Length [13:19:33]Host: 172.17.45.7:8080 [13:19:33]Content-Length: 675 [13:19:33]Content-Type: application/json [13:19:33] [13:19:33]POST finish read [13:19:33]Found Content-Length = 675 [13:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:33]execute_script... [13:19: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)950005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:33]POST & json_proto [13:19:33]process_json_proto [13:19:33]json parsed OK: [13:19:33]protocol is kg_v1.0 [13:19:33]action value=close_receipt [13:19:33]process_action close_receipt [13:19:33]cmd_close_receipt [13:19:33]MH_GetDate [13:19:33]Write to MH i2c: F0 00 00 1D 00 0C [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: F0 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: F0 09 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: F0 09 00 1D 00 00 65 E8 A8 66 90 0F 3E 66 B3 [13:19:33]GetLastDocTimeStamp 1722345410 [13:19:33]current date 1722345573 [13:19:33]FM_GetShiftState [13:19:33]SAM_PROTO_GetShiftState [13:19:33]wFMCommunicate request_size=4 [13:19:33]MH_SAM_APDU [13:19:33]CAPDU: 80 13 01 00 [13:19:33]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:19:33]Write i2c OK [13:19:33]MH_I2C_Read... [13:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:33]Read from MH i2c: E2 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 0E 00 [13:19:33]MH_I2C_Read... [13:19:33]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 66 [13:19:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:19:33]wFMCommunicate OK [13:19:33]SAM_PROTO_GetShiftState done [13:19:33]FM_GetShiftState done [13:19:33]opened in 1722298242 [13:19:33]opened+sec_in_day 1722384642 [13:19:33]quantity*price = 80010 [13:19:33]sum+1 = 80011 [13:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 138 30.07.2024 13:19 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119086 ФПД: 175966793997159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131934&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119086&fm=175966793997159&tin=02508201610067®Number=0000000000092660&sum=80000 [13:19:34]StoreToDocumentArchive [13:19:34]shift 435 fd 119086 [13:19:34]save to /storage/0435/doc_00119086 [13:19:34]save last doc name /storage/0435/doc_00119086 to /storage/kkm_last_doc_name [13:19:34]save OK [13:19:34]Clear old archive folders... [13:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:19:34]tlvbuf is 00DE0070 [13:19:34]SAM_PROTO_ClearQueue [13:19:34]wFMCommunicate request_size=4 [13:19:34]MH_SAM_APDU [13:19:34]CAPDU: 80 09 00 00 [13:19:34]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:19:34]Write i2c OK [13:19:34]MH_I2C_Read... [13:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:34]Read from MH i2c: E2 [13:19:34]MH_I2C_Read... [13:19:34]Read from MH i2c: E2 03 00 [13:19:34]MH_I2C_Read... [13:19:34]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:19:34]RAPDU: 90 00 [13:19:34]wFMCommunicate OK [13:19:34]SAM_PROTO_ClearQueue done [13:19:34]KKMCreateOFDPacket [13:19:34]OFDProtocolAddRootSTLVToBuf [13:19:34]FM_MakeSignedData [13:19:34]FM_MakeSignedData [13:19:34]SAM_PROTO_SignData [13:19:34]wFMCommunicate request_size=4 [13:19:34]MH_SAM_APDU [13:19:34]CAPDU: 80 0D 01 02 [13:19:34]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:19:34]Write i2c OK [13:19:34]MH_I2C_Read... [13:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:34]Read from MH i2c: E2 [13:19:34]MH_I2C_Read... [13:19:34]Read from MH i2c: E2 03 00 [13:19:34]MH_I2C_Read... [13:19:34]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:19:34]RAPDU: 90 00 [13:19:34]wFMCommunicate OK [13:19:34]wFMCommunicate request_size=255 [13:19:34]MH_SAM_APDU [13:19:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 66 E8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D1 01 00 35 04 06 00 A0 0A 76 3F [13:19:34]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 66 E8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D1 01 00 35 04 06 00 A0 0A 76 3F 00 00 61 [13:19:34]Write i2c OK [13:19:34]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:19:35]RAPDU: 90 00 [13:19:35]wFMCommunicate OK [13:19:35]wFMCommunicate request_size=7 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 0D 02 02 02 9B 67 [13:19:35]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 9B 67 00 00 AE [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:19:35]RAPDU: 90 00 [13:19:35]wFMCommunicate OK [13:19:35]wFMCommunicate request_size=4 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 0D 03 02 [13:19:35]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 0B 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 0B 00 2F 00 00 59 E2 31 9B B3 56 5F 6C 90 00 86 [13:19:35]RAPDU: 59 E2 31 9B B3 56 5F 6C 90 00 [13:19:35]wFMCommunicate OK [13:19:35]SAM_PROTO_SignData done [13:19:35]FM_MakeSignedData done [13:19:35]CreateOFDProtocolMessage [13:19:35]wFMCommunicate request_size=4 [13:19:35]MH_SAM_APDU [13:19:35]CAPDU: 80 11 00 00 [13:19:35]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:35]Read from MH i2c: E2 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: E2 17 00 [13:19:35]MH_I2C_Read... [13:19:35]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 34 39 33 39 90 00 05 [13:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:19:35]wFMCommunicate OK [13:19:35]CreateOFDProtocolMessage done [13:19:35]OFDSenderStorePacket 119086 [13:19:35]StoreOFDPacket docnum=119086 [13:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 47 C8 04 01 B1 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 66 E8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D1 01 00 35 04 06 00 A0 0A 76 3F 9B 67 59 E2 31 9B B3 56 5F 6C [13:19:35]CheckFolder [13:19:35]dirname=/storage/ofd_packets [13:19:35]CheckFolder done [13:19:35]ProducePacketName [13:19:35]name=ofd_packets/00119086 [13:19:35]NVStorageSaveData ofd_packets/00119086 [13:19:35]File name is /storage/ofd_packets/00119086 [13:19:35]Write 298 bytes [13:19:35]NVStorageSaveData done [13:19:35]OFDSenderStorePacket done [13:19:35]KKMCreateOFDPacket done [13:19:35]NVStorageSaveData kkm_last_timestamp [13:19:35]File name is /storage/kkm_last_timestamp [13:19:35]Write 4 bytes [13:19:35]NVStorageSaveData done [13:19:35]ExternCall_PrintAddStr [13:19:35]wPrintStart [13:19:35]Write to MH i2c: 01 00 00 31 00 31 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 07 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:19:35]RasterBufferAndPrint [13:19:35]line Счет N : (1)950005 [13:19:35]line ИНН: 02508201610067 [13:19:35]line Контрольно-Кассовый Чек [13:19:35]line ПРОДАЖА [13:19:35]line ТРК (МРК, ГНК) : 34 [13:19:35]line Товар: 2710194800 [13:19:35]line ДТ-К-5 [13:19:35]line 10.500 * 76.20 [13:19:35]line = 800.10 [13:19:35]line НДС 12% НСП 1% [13:19:35]line > о реализуемом товаре [13:19:35]line ОКРУГЛЕНИЕ: -0.10 [13:19:35]line ИТОГО: 800.00 [13:19:35]line Внесено: 800.00 [13:19:35]line СДАЧА: 0.00 [13:19:35]line НСП 1% : 7.08 [13:19:35]line НДС 12% : 84.97 [13:19:35]line Наличными: 800.00 [13:19:35]line Безнал.: 0.00 [13:19:35]line Место: АЗС № 134 "Партнер Нефть" [13:19:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:19:35]OFD Sender: Processing packet 119085 [packets to send 87, broken 85] [13:19:35]ProducePacketName [13:19:35]name=ofd_packets/00119085 [13:19:35]OFD Sender: To server: pG, [13:19:35]CommunicateWithHost lk.salyk.kg:30040 [13:19:35]ConnectInit lk.salyk.kg [13:19:35]line СНО: Общий режим [13:19:35]line Чек 138 30.07.2024 13:19 [13:19:35]line Смена: 435 ФФД: 1.0 [13:19:35]line ЗНМ: 0300000044 [13:19:35]line РНМ: 0000000000092660 [13:19:35]line Версия ККМ: 001 [13:19:35]line ФМ: 0000000000874939 [13:19:35]line ФД: 119086 [13:19:35]line ФПД: 175966793997159 [13:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T131934&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119086&fm=175966793997159&tin=02508201610067®Number=0000000000092660&sum=80000 [13:19:35]written 0, free lines is 4095 [13:19:35]Write to MH i2c: 01 00 00 5B 00 5B [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 07 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 DC 0C 4A [13:19:35]RasterBufferAndPrint [13:19:35]line [13:19:35]line [13:19:35]line [13:19:35]line [13:19:35]line [13:19:35]written 0, free lines is 3313 [13:19:35]MH_Cut [13:19:35]Write to MH i2c: D1 01 00 62 00 01 34 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: D1 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: D1 01 00 [13:19:35]MH_I2C_Read... [13:19:35]Read from MH i2c: D1 01 00 62 00 00 33 [13:19:35]Write to MH i2c: 01 00 00 63 00 63 [13:19:35]Write i2c OK [13:19:35]MH_I2C_Read... [13:19:36]*** Cut start [13:19:36]*** Partial cut [13:19:36]*** CUTSNS_PIN = 1 [13:19:36]*** CUTSNS_PIN = 0 [13:19:36]*** Brake cut motor [13:19:37]Read from MH i2c: 01 [13:19:37]MH_I2C_Read... [13:19:37]*** Stop cut motor [13:19:37]*** Cut end [13:19:37]Read from MH i2c: 01 07 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [13:19:37]process_action close_receipt done [13:19:37]requested_data is exist [13:19:37]produce_requested_data [13:19:37]requested_item fm.sn is exist - process it [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 11 00 00 [13:19:37]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 17 00 [13:19:37]MH_I2C_Read... [13:19:37]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 34 39 33 39 90 00 39 [13:19:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:19:37]wFMCommunicate OK [13:19:37]requested_item fd.num is exist - process it [13:19:37]SAM_PROTO_GetFieldsCounters [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 13 00 00 [13:19:37]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 62 00 [13:19:37]MH_I2C_Read... [13:19:37]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [13:19:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 2E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:37]wFMCommunicate OK [13:19:37]SAM_PROTO_GetFieldsCounters done [13:19:37]requested_item shift.num is exist - process it [13:19:37]requested_item shift.opened is exist - process it [13:19:37]req_shift_opened [13:19:37]FM_GetShiftState [13:19:37]SAM_PROTO_GetShiftState [13:19:37]wFMCommunicate request_size=4 [13:19:37]MH_SAM_APDU [13:19:37]CAPDU: 80 13 01 00 [13:19:37]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [13:19:37]Write i2c OK [13:19:37]MH_I2C_Read... [13:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:37]Read from MH i2c: E2 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 0E 00 [13:19:37]MH_I2C_Read... [13:19:37]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AE [13:19:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:19:37]wFMCommunicate OK [13:19:37]SAM_PROTO_GetShiftState done [13:19:37]FM_GetShiftState done [13:19:37]req_shift_opened done [13:19:37]requested_item shift.open_date is exist - process it [13:19:37]req_shift_open_date [13:19:37]req_shift_open_date done [13:19:37]produce_requested_data done [13:19:37]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119086,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:19:37]process_action_free close_receipt [13:19:37]json_value_free [13:19:37]json_value_free done [13:19:37]process_json_proto returns [13:19:37]Send response to host [13:19:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119086,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:19:37]free response buf [13:19:37]execute_script done [13:19:37]execute_script returns [13:19:37]free content buf [13:19:37]Sock 9.Close socket [13:19:37]Sock 9.Thread stoped [13:19:40]ConnectInit Can't take IP for lk.salyk.kg [13:19:40]CommunicateWithHost connect error [13:19:40]CommunicateWithHost err = -1 [13:19:40]OFD Sender: Server communicate error [13:19:45]OFD Sender: Processing packet 119085 [packets to send 87, broken 85] [13:19:45]ProducePacketName [13:19:45]name=ofd_packets/00119085 [13:19:45]OFD Sender: To server: pG, [13:19:45]CommunicateWithHost lk.salyk.kg:30040 [13:19:45]ConnectInit lk.salyk.kg [13:19:50]ConnectInit Can't take IP for lk.salyk.kg [13:19:50]CommunicateWithHost connect error [13:19:50]CommunicateWithHost err = -1 [13:19:50]OFD Sender: Server communicate error [13:19:55]OFD Sender: Processing packet 119085 [packets to send 87, broken 85] [13:19:55]ProducePacketName [13:19:55]name=ofd_packets/00119085 [13:19:55]OFD Sender: To server: pG, [13:19:55]CommunicateWithHost lk.salyk.kg:30040 [13:19:55]ConnectInit lk.salyk.kg [13:20:03]Connected sock=9 [13:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DF 69 04 01 E4 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 89 00 00 00 F4 03 04 00 C2 E7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D1 01 00 35 04 06 00 79 60 DE 59 35 D4 DB 42 7C 50 36 EB F3 6C [13:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 3A 47 00 A1 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2D D1 01 00 F4 03 04 00 0D 96 A8 66 B6 04 01 00 00 7B 8F 82 AA 40 1F 95 5A [13:20:03]CommunicateWithHost err = 0 [13:20:03]CheckOFDResponse [13:20:03]1017 (14) - 77093643461234 [13:20:03]1041 (16) - 0000000000874939 [13:20:03]1040 (4) - 119085 [13:20:03]1012 (4) - 30.07.2024 07:28 [13:20:03]1206 (1) - 0 [13:20:03]OFD Sender: Remove packet 119085 [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00119085 [13:20:03]NVStorageDeleteData [13:20:03]OFD Sender: Processing packet 119086 [packets to send 86, broken 85] [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00119086 [13:20:03]OFD Sender: To server: pG, [13:20:03]CommunicateWithHost lk.salyk.kg:30040 [13:20:03]ConnectInit lk.salyk.kg [13:20:05]Connected sock=9 [13:20:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 47 C8 04 01 B1 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 66 E8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D1 01 00 35 04 06 00 A0 0A 76 3F 9B 67 59 E2 31 9B B3 56 5F 6C [13:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F5 4F 47 00 00 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2E D1 01 00 F4 03 04 00 0F 96 A8 66 B6 04 01 00 00 78 FA 25 EA 44 BD 1B E0 [13:20:06]CommunicateWithHost err = 0 [13:20:06]CheckOFDResponse [13:20:06]1017 (14) - 77093643461234 [13:20:06]1041 (16) - 0000000000874939 [13:20:06]1040 (4) - 119086 [13:20:06]1012 (4) - 30.07.2024 07:28 [13:20:06]1206 (1) - 0 [13:20:06]OFD Sender: Remove packet 119086 [13:20:06]ProducePacketName [13:20:06]name=ofd_packets/00119086 [13:20:06]NVStorageDeleteData [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:34:13]ConnectInit Can't connect to host [13:34:17]OFD Sender: Processing packet 119087 [packets to send 93, broken 85] [13:34:17]ProducePacketName [13:34:17]name=ofd_packets/00119087 [13:34:17]OFD Sender: To server: pG, [13:34:17]CommunicateWithHost lk.salyk.kg:30040 [13:34:17]ConnectInit lk.salyk.kg [13:34:22]ConnectInit Can't take IP for lk.salyk.kg [13:34:22]CommunicateWithHost connect error [13:34:22]CommunicateWithHost err = -1 [13:34:22]OFD Sender: Server communicate error [13:34:27]OFD Sender: Processing packet 119087 [packets to send 93, broken 85] [13:34:27]ProducePacketName [13:34:27]name=ofd_packets/00119087 [13:34:27]OFD Sender: To server: pG, [13:34:27]CommunicateWithHost lk.salyk.kg:30040 [13:34:27]ConnectInit lk.salyk.kg [13:34:33]Connected sock=7 [13:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 3B 17 04 01 E4 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 93 E9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D1 01 00 35 04 06 00 9B EA CD BC 8A 68 EE D0 F4 D0 F9 DA 3F 8C [13:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 AB 47 00 7C DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 2F D1 01 00 F4 03 04 00 73 99 A8 66 B6 04 01 00 00 28 B3 45 DE 03 F3 48 E8 [13:34:35]CommunicateWithHost err = 0 [13:34:35]CheckOFDResponse [13:34:35]1017 (14) - 77093643461234 [13:34:35]1041 (16) - 0000000000874939 [13:34:35]1040 (4) - 119087 [13:34:35]1012 (4) - 30.07.2024 07:42 [13:34:35]1206 (1) - 0 [13:34:35]OFD Sender: Remove packet 119087 [13:34:35]ProducePacketName [13:34:35]name=ofd_packets/00119087 [13:34:35]NVStorageDeleteData [13:34:36]OFD Sender: Processing packet 119088 [packets to send 92, broken 85] [13:34:36]ProducePacketName [13:34:36]name=ofd_packets/00119088 [13:34:36]OFD Sender: To server: pG, [13:34:36]CommunicateWithHost lk.salyk.kg:30040 [13:34:36]ConnectInit lk.salyk.kg [13:34:39]Connected sock=7 [13:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 89 07 01 27 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 AF E9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D1 01 00 35 04 06 00 60 1A A9 E6 38 4F 8B D0 14 50 C1 50 0B B8 [13:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 58 3A 47 00 F7 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 30 D1 01 00 F4 03 04 00 79 99 A8 66 B6 04 01 00 00 0F 6A 89 44 A4 67 11 9B [13:34:39]CommunicateWithHost err = 0 [13:34:39]CheckOFDResponse [13:34:39]1017 (14) - 77093643461234 [13:34:39]1041 (16) - 0000000000874939 [13:34:39]1040 (4) - 119088 [13:34:39]1012 (4) - 30.07.2024 07:42 [13:34:39]1206 (1) - 0 [13:34:39]OFD Sender: Remove packet 119088 [13:34:39]ProducePacketName [13:34:39]name=ofd_packets/00119088 [13:34:39]NVStorageDeleteData [13:34:40]OFD Sender: Processing packet 119089 [packets to send 91, broken 85] [13:34:40]ProducePacketName [13:34:40]name=ofd_packets/00119089 [13:34:40]OFD Sender: To server: pG, [13:34:40]CommunicateWithHost lk.salyk.kg:30040 [13:34:40]ConnectInit lk.salyk.kg [13:34:42]Connected sock=7 [13:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 78 67 07 01 1B 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 D8 E9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D1 01 00 35 04 06 00 C0 25 03 65 68 76 B6 8D BC 83 89 9D 5E 29 [13:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1C C5 47 00 19 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 31 D1 01 00 F4 03 04 00 7C 99 A8 66 B6 04 01 00 00 53 24 73 1A BD 89 C3 51 [13:34:42]CommunicateWithHost err = 0 [13:34:42]CheckOFDResponse [13:34:42]1017 (14) - 77093643461234 [13:34:42]1041 (16) - 0000000000874939 [13:34:42]1040 (4) - 119089 [13:34:42]1012 (4) - 30.07.2024 07:42 [13:34:42]1206 (1) - 0 [13:34:42]OFD Sender: Remove packet 119089 [13:34:42]ProducePacketName [13:34:42]name=ofd_packets/00119089 [13:34:42]NVStorageDeleteData [13:34:43]OFD Sender: Processing packet 119090 [packets to send 90, broken 85] [13:34:43]ProducePacketName [13:34:43]name=ofd_packets/00119090 [13:34:43]OFD Sender: To server: pG, [13:34:43]CommunicateWithHost lk.salyk.kg:30040 [13:34:43]ConnectInit lk.salyk.kg [13:34:48]ConnectInit Can't take IP for lk.salyk.kg [13:34:48]CommunicateWithHost connect error [13:34:48]CommunicateWithHost err = -1 [13:34:48]OFD Sender: Server communicate error [13:34:53]OFD Sender: Processing packet 119090 [packets to send 90, broken 85] [13:34:53]ProducePacketName [13:34:53]name=ofd_packets/00119090 [13:34:53]OFD Sender: To server: pG, [13:34:53]CommunicateWithHost lk.salyk.kg:30040 [13:34:53]ConnectInit lk.salyk.kg [13:34:57]Connected sock=7 [13:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 28 01 00 00 F6 0B 20 01 E3 A8 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 F3 E9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 2F D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 32 D1 01 00 35 04 06 00 46 5B 70 F2 3E E2 93 F3 32 6E 0D ED 2A 47 [13:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E2 B3 47 00 38 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 34 39 33 39 10 04 04 00 32 D1 01 00 F4 03 04 00 8B 99 A8 66 B6 04 01 00 00 3F 43 2B E6 4E DF 4B 3F [13:34:58]CommunicateWithHost err = 0 [13:34:58]CheckOFDResponse [13:34:58]1017 (14) - 77093643461234 [13:34:58]1041 (16) - 0000000000874939 [13:34:58]1040 (4) - 119090 [13:34:58]1012 (4) - 30.07.2024 07:43 [13:34:58]1206 (1) - 0 [13:34:58]OFD Sender: Remove packet 119090 [13:34:58]ProducePacketName [13:34:58]name=ofd_packets/00119090 [13:34:58]NVStorageDeleteData [13:34:58]OFD Sender: Processing packet 119091 [packets to send 89, broken 85] [13:34:58]ProducePacketName [13:34:58]name=ofd_packets/00119091 [13:34:58]OFD Sender: To server: pG, [13:34:58]CommunicateWithHost lk.salyk.kg:30040 [13:34:58]ConnectInit lk.salyk.kg [13:35:01]Connected sock=7 [13:35:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 79 4D 04 01 F7 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 FC E9 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D1 01 00 35 04 06 00 75 6C 37 18 A9 F5 45 EB A4 04 C1 7A 54 8B [13:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C D0 47 00 4E 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 33 D1 01 00 F4 03 04 00 90 99 A8 66 B6 04 01 00 00 84 78 E5 41 37 F9 AB 6A [13:35:03]CommunicateWithHost err = 0 [13:35:03]CheckOFDResponse [13:35:03]1017 (14) - 77093643461234 [13:35:03]1041 (16) - 0000000000874939 [13:35:03]1040 (4) - 119091 [13:35:03]1012 (4) - 30.07.2024 07:43 [13:35:03]1206 (1) - 0 [13:35:03]OFD Sender: Remove packet 119091 [13:35:03]ProducePacketName [13:35:03]name=ofd_packets/00119091 [13:35:03]NVStorageDeleteData [13:35:04]OFD Sender: Processing packet 119092 [packets to send 88, broken 85] [13:35:04]ProducePacketName [13:35:04]name=ofd_packets/00119092 [13:35:04]OFD Sender: To server: pG, [13:35:04]CommunicateWithHost lk.salyk.kg:30040 [13:35:04]ConnectInit lk.salyk.kg [13:35:05]Connected sock=7 [13:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EB EF 07 01 7A 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 90 00 00 00 F4 03 04 00 47 EA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D1 01 00 35 04 06 00 7A 2F F0 B6 C4 9C 75 D5 3B 05 D2 E1 9C 0C [13:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 40 B8 47 00 FC FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 34 D1 01 00 F4 03 04 00 93 99 A8 66 B6 04 01 00 00 A5 F5 51 56 9D 0A B6 A4 [13:35:05]CommunicateWithHost err = 0 [13:35:05]CheckOFDResponse [13:35:05]1017 (14) - 77093643461234 [13:35:05]1041 (16) - 0000000000874939 [13:35:05]1040 (4) - 119092 [13:35:05]1012 (4) - 30.07.2024 07:43 [13:35:05]1206 (1) - 0 [13:35:05]OFD Sender: Remove packet 119092 [13:35:05]ProducePacketName [13:35:05]name=ofd_packets/00119092 [13:35:05]NVStorageDeleteData [13:35:06]OFD Sender: Processing packet 119093 [packets to send 87, broken 85] [13:35:06]ProducePacketName [13:35:06]name=ofd_packets/00119093 [13:35:06]OFD Sender: To server: pG, [13:35:06]CommunicateWithHost lk.salyk.kg:30040 [13:35:06]ConnectInit lk.salyk.kg [13:37:16]ConnectInit Can't connect to host [13:37:16]CommunicateWithHost connect error [13:37:16]CommunicateWithHost err = -1 [13:37:16]OFD Sender: Server communicate error [13:37:21]OFD Sender: Processing packet 119093 [packets to send 87, broken 85] [13:37:21]ProducePacketName [13:37:21]name=ofd_packets/00119093 [13:37:21]OFD Sender: To server: pG, [13:37:21]CommunicateWithHost lk.salyk.kg:30040 [13:37:21]ConnectInit lk.salyk.kg [13:37:26]ConnectInit Can't take IP for lk.salyk.kg [13:37:26]CommunicateWithHost connect error [13:37:26]CommunicateWithHost err = -1 [13:37:26]OFD Sender: Server communicate error [13:37:31]OFD Sender: Processing packet 119093 [packets to send 87, broken 85] [13:37:31]ProducePacketName [13:37:31]name=ofd_packets/00119093 [13:37:31]OFD Sender: To server: pG, [13:37:31]CommunicateWithHost lk.salyk.kg:30040 [13:37:31]ConnectInit lk.salyk.kg [13:37:33]Connected sock=7 [13:37:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 73 63 04 01 CA 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 B6 EA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D1 01 00 35 04 06 00 0C 32 6F 7D 56 22 23 05 D6 45 F2 37 FA D0 [13:37:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D0 E4 47 00 AE C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 35 D1 01 00 F4 03 04 00 29 9A A8 66 B6 04 01 00 00 D8 78 D6 F1 13 0E C1 B7 [13:37:35]CommunicateWithHost err = 0 [13:37:35]CheckOFDResponse [13:37:35]1017 (14) - 77093643461234 [13:37:35]1041 (16) - 0000000000874939 [13:37:35]1040 (4) - 119093 [13:37:35]1012 (4) - 30.07.2024 07:45 [13:37:35]1206 (1) - 0 [13:37:35]OFD Sender: Remove packet 119093 [13:37:35]ProducePacketName [13:37:35]name=ofd_packets/00119093 [13:37:35]NVStorageDeleteData [13:37:36]OFD Sender: Processing packet 119094 [packets to send 86, broken 85] [13:37:36]ProducePacketName [13:37:36]name=ofd_packets/00119094 [13:37:36]OFD Sender: To server: pG, [13:37:36]CommunicateWithHost lk.salyk.kg:30040 [13:37:36]ConnectInit lk.salyk.kg [13:37:36]Connected sock=7 [13:37:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E6 3C 04 01 40 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DE EA A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D1 01 00 35 04 06 00 01 D6 96 01 C1 92 AF 3E 01 11 FF D3 BD 49 [13:37:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 75 21 47 00 0B E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 36 D1 01 00 F4 03 04 00 2A 9A A8 66 B6 04 01 00 00 12 92 E6 32 79 B0 C2 FE [13:37:37]CommunicateWithHost err = 0 [13:37:37]CheckOFDResponse [13:37:37]1017 (14) - 77093643461234 [13:37:37]1041 (16) - 0000000000874939 [13:37:37]1040 (4) - 119094 [13:37:37]1012 (4) - 30.07.2024 07:45 [13:37:37]1206 (1) - 0 [13:37:37]OFD Sender: Remove packet 119094 [13:37:37]ProducePacketName [13:37:37]name=ofd_packets/00119094 [13:37:37]NVStorageDeleteData [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:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:23]accept exits with 11 [13:40:23]New connection [13:40:23]New thread 3066875236 created [13:40:23]Thread 3067018596 joined [13:40:23]Waiting for new connection... [13:40:23] Sock 11.Parse request [13:40:23]Sock 11.Check first char [13:40:23]Sock 11.First char is OK [13:40:23]request: POST /json_proto HTTP/1.0 [13:40:23]Method: POST [13:40:23]URL: /json_proto [13:40:23]Method is POST - this is cgi request [13:40:23]url: /json_proto [13:40:23]query_string will be loaded in cgi processing [13:40:23]execute_cgi json_proto POST (null) [13:40:23]execute_cgi path=json_proto method=POST [13:40:23]POST find Content-Length [13:40:23]Host: 172.17.45.7:8080 [13:40:23]Content-Length: 682 [13:40:23]Content-Type: application/json [13:40:23] [13:40:23]POST finish read [13:40:23]Found Content-Length = 682 [13:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:23]execute_script... [13:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:23]POST & json_proto [13:40:23]process_json_proto [13:40:23]json parsed OK: [13:40:23]protocol is kg_v1.0 [13:40:23]action value=close_receipt [13:40:23]process_action close_receipt [13:40:23]cmd_close_receipt [13:40:23]MH_GetDate [13:40:23]Write to MH i2c: F0 00 00 B9 02 AA [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: F0 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: F0 09 00 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: F0 09 00 B9 02 00 48 ED A8 66 90 0F 3E 66 39 [13:40:23]GetLastDocTimeStamp 1722346206 [13:40:23]current date 1722346824 [13:40:23]FM_GetShiftState [13:40:23]SAM_PROTO_GetShiftState [13:40:23]wFMCommunicate request_size=4 [13:40:23]MH_SAM_APDU [13:40:23]CAPDU: 80 13 01 00 [13:40:23]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [13:40:23]Write i2c OK [13:40:23]MH_I2C_Read... [13:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:23]Read from MH i2c: E2 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: E2 0E 00 [13:40:23]MH_I2C_Read... [13:40:23]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 04 [13:40:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:40:23]wFMCommunicate OK [13:40:23]SAM_PROTO_GetShiftState done [13:40:23]FM_GetShiftState done [13:40:23]opened in 1722298242 [13:40:23]opened+sec_in_day 1722384642 [13:40:23]quantity*price = 150032 [13:40:23]sum+1 = 150033 [13:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 147 30.07.2024 13:40 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119095 ФПД: 2238120172375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T134024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119095&fm=2238120172375&tin=02508201610067®Number=0000000000092660&sum=150000 [13:40:24]StoreToDocumentArchive [13:40:24]shift 435 fd 119095 [13:40:24]save to /storage/0435/doc_00119095 [13:40:24]save last doc name /storage/0435/doc_00119095 to /storage/kkm_last_doc_name [13:40:24]save OK [13:40:24]Clear old archive folders... [13:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:24]tlvbuf is 00DE6050 [13:40:24]SAM_PROTO_ClearQueue [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 09 00 00 [13:40:24]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:24]Read from MH i2c: E2 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 03 00 [13:40:24]MH_I2C_Read... [13:40:24]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [13:40:24]RAPDU: 90 00 [13:40:24]wFMCommunicate OK [13:40:24]SAM_PROTO_ClearQueue done [13:40:24]KKMCreateOFDPacket [13:40:24]OFDProtocolAddRootSTLVToBuf [13:40:24]FM_MakeSignedData [13:40:24]FM_MakeSignedData [13:40:24]SAM_PROTO_SignData [13:40:24]wFMCommunicate request_size=4 [13:40:24]MH_SAM_APDU [13:40:24]CAPDU: 80 0D 01 02 [13:40:24]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [13:40:24]Write i2c OK [13:40:24]MH_I2C_Read... [13:40:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 03 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [13:40:25]RAPDU: 90 00 [13:40:25]wFMCommunicate OK [13:40:25]wFMCommunicate request_size=255 [13:40:25]MH_SAM_APDU [13:40:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 48 ED A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D1 01 00 35 04 06 00 02 [13:40:25]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 48 ED A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D1 01 00 35 04 06 00 02 00 00 CE [13:40:25]Write i2c OK [13:40:25]MH_I2C_Read... [13:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 03 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [13:40:25]RAPDU: 90 00 [13:40:25]wFMCommunicate OK [13:40:25]wFMCommunicate request_size=10 [13:40:25]MH_SAM_APDU [13:40:25]CAPDU: 80 0D 02 02 05 09 1A 5B 9B 57 [13:40:25]Write to MH i2c: E2 0D 00 CA 02 80 0D 02 02 05 00 09 1A 5B 9B 57 00 00 C0 [13:40:25]Write i2c OK [13:40:25]MH_I2C_Read... [13:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 03 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [13:40:25]RAPDU: 90 00 [13:40:25]wFMCommunicate OK [13:40:25]wFMCommunicate request_size=4 [13:40:25]MH_SAM_APDU [13:40:25]CAPDU: 80 0D 03 02 [13:40:25]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [13:40:25]Write i2c OK [13:40:25]MH_I2C_Read... [13:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 0B 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 0B 00 CB 02 00 98 B6 26 BA A3 23 1E 3A 90 00 95 [13:40:25]RAPDU: 98 B6 26 BA A3 23 1E 3A 90 00 [13:40:25]wFMCommunicate OK [13:40:25]SAM_PROTO_SignData done [13:40:25]FM_MakeSignedData done [13:40:25]CreateOFDProtocolMessage [13:40:25]wFMCommunicate request_size=4 [13:40:25]MH_SAM_APDU [13:40:25]CAPDU: 80 11 00 00 [13:40:25]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [13:40:25]Write i2c OK [13:40:25]MH_I2C_Read... [13:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:25]Read from MH i2c: E2 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 17 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [13:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:40:25]wFMCommunicate OK [13:40:25]CreateOFDProtocolMessage done [13:40:25]OFDSenderStorePacket 119095 [13:40:25]StoreOFDPacket docnum=119095 [13:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 42 AB 07 01 3D DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 48 ED A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D1 01 00 35 04 06 00 02 09 1A 5B 9B 57 98 B6 26 BA A3 23 1E 3A [13:40:25]CheckFolder [13:40:25]dirname=/storage/ofd_packets [13:40:25]CheckFolder done [13:40:25]ProducePacketName [13:40:25]name=ofd_packets/00119095 [13:40:25]NVStorageSaveData ofd_packets/00119095 [13:40:25]File name is /storage/ofd_packets/00119095 [13:40:25]Write 301 bytes [13:40:25]NVStorageSaveData done [13:40:25]OFDSenderStorePacket done [13:40:25]KKMCreateOFDPacket done [13:40:25]NVStorageSaveData kkm_last_timestamp [13:40:25]File name is /storage/kkm_last_timestamp [13:40:25]Write 4 bytes [13:40:25]NVStorageSaveData done [13:40:25]ExternCall_PrintAddStr [13:40:25]wPrintStart [13:40:25]Write to MH i2c: 01 00 00 CD 02 CF [13:40:25]Write i2c OK [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: 01 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: 01 07 00 [13:40:25]MH_I2C_Read... [13:40:25]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [13:40:25]RasterBufferAndPrint [13:40:25]line Счет N : (1)950014 [13:40:25]line ИНН: 02508201610067 [13:40:25]line Контрольно-Кассовый Чек [13:40:25]line ПРОДАЖА [13:40:25]line ТРК (МРК, ГНК) : 43 [13:40:25]line Товар: 2710124500 [13:40:25]line Аи-95-К-3 [13:40:25]line 20.220 * 74.20 [13:40:25]line = 1500.32 [13:40:25]line НДС 12% НСП 1% [13:40:25]line > о реализуемом товаре [13:40:25]line ОКРУГЛЕНИЕ: -0.32 [13:40:25]line ИТОГО: 1500.00 [13:40:25]line Внесено: 1500.00 [13:40:25]line СДАЧА: 0.00 [13:40:25]line НСП 1% : 13.28 [13:40:25]line НДС 12% : 159.33 [13:40:25]line Наличными: 1500.00 [13:40:25]line Безнал.: 0.00 [13:40:25]line Место: АЗС № 134 "Партнер Нефть" [13:40:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:40:25]line СНО: Общий режим [13:40:25]line Чек 147 30.07.2024 13:40 [13:40:25]line Смена: 435 ФФД: 1.0 [13:40:25]line ЗНМ: 0300000044 [13:40:25]line РНМ: 0000000000092660 [13:40:25]line Версия ККМ: 001 [13:40:25]line ФМ: 0000000000874939 [13:40:25]line ФД: 119095 [13:40:25]line ФПД: 2238120172375 [13:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T134024&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119095&fm=2238120172375&tin=02508201610067®Number=0000000000092660&sum=150000 [13:40:25]OFD Sender: Processing packet 119095 [packets to send 86, broken 85] [13:40:25]ProducePacketName [13:40:25]name=ofd_packets/00119095 [13:40:25]OFD Sender: To server: pG, [13:40:25]CommunicateWithHost lk.salyk.kg:30040 [13:40:25]ConnectInit lk.salyk.kg [13:40:25]written 0, free lines is 4095 [13:40:26]Write to MH i2c: 01 00 00 F7 02 F9 [13:40:26]Write i2c OK [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: 01 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: 01 07 00 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 DA 0C E6 [13:40:26]RasterBufferAndPrint [13:40:26]line [13:40:26]line [13:40:26]line [13:40:26]line [13:40:26]line [13:40:26]written 0, free lines is 3298 [13:40:26]MH_Cut [13:40:26]Write to MH i2c: D1 01 00 FE 02 01 D2 [13:40:26]Write i2c OK [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: D1 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: D1 01 00 [13:40:26]MH_I2C_Read... [13:40:26]Read from MH i2c: D1 01 00 FE 02 00 D1 [13:40:26]Write to MH i2c: 01 00 00 FF 02 01 [13:40:26]Write i2c OK [13:40:26]MH_I2C_Read... [13:40:26]*** Cut start [13:40:26]*** Partial cut [13:40:26]*** CUTSNS_PIN = 1 [13:40:26]*** CUTSNS_PIN = 0 [13:40:27]*** Brake cut motor [13:40:27]Read from MH i2c: 01 [13:40:27]MH_I2C_Read... [13:40:27]*** Stop cut motor [13:40:27]*** Cut end [13:40:27]Read from MH i2c: 01 07 00 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [13:40:27]process_action close_receipt done [13:40:27]requested_data is exist [13:40:27]produce_requested_data [13:40:27]requested_item fm.sn is exist - process it [13:40:27]wFMCommunicate request_size=4 [13:40:27]MH_SAM_APDU [13:40:27]CAPDU: 80 11 00 00 [13:40:27]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [13:40:27]Write i2c OK [13:40:27]MH_I2C_Read... [13:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:27]Read from MH i2c: E2 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 17 00 [13:40:27]MH_I2C_Read... [13:40:27]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 34 39 33 39 90 00 D8 [13:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:40:27]wFMCommunicate OK [13:40:27]requested_item fd.num is exist - process it [13:40:27]SAM_PROTO_GetFieldsCounters [13:40:27]wFMCommunicate request_size=4 [13:40:27]MH_SAM_APDU [13:40:27]CAPDU: 80 13 00 00 [13:40:27]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [13:40:27]Write i2c OK [13:40:27]MH_I2C_Read... [13:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:27]Read from MH i2c: E2 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 62 00 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 62 00 01 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [13:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 37 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:27]wFMCommunicate OK [13:40:27]SAM_PROTO_GetFieldsCounters done [13:40:27]requested_item shift.num is exist - process it [13:40:27]requested_item shift.opened is exist - process it [13:40:27]req_shift_opened [13:40:27]FM_GetShiftState [13:40:27]SAM_PROTO_GetShiftState [13:40:27]wFMCommunicate request_size=4 [13:40:27]MH_SAM_APDU [13:40:27]CAPDU: 80 13 01 00 [13:40:27]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [13:40:27]Write i2c OK [13:40:27]MH_I2C_Read... [13:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:27]Read from MH i2c: E2 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 0E 00 [13:40:27]MH_I2C_Read... [13:40:27]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4D [13:40:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:40:27]wFMCommunicate OK [13:40:27]SAM_PROTO_GetShiftState done [13:40:27]FM_GetShiftState done [13:40:27]req_shift_opened done [13:40:27]requested_item shift.open_date is exist - process it [13:40:27]req_shift_open_date [13:40:27]req_shift_open_date done [13:40:27]produce_requested_data done [13:40:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119095,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:40:27]process_action_free close_receipt [13:40:27]json_value_free [13:40:27]json_value_free done [13:40:27]process_json_proto returns [13:40:27]Send response to host [13:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119095,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:40:27]free response buf [13:40:27]execute_script done [13:40:27]execute_script returns [13:40:27]free content buf [13:40:27]Sock 11.Close socket [13:40:27]Sock 11.Thread stoped [13:40:30]ConnectInit Can't take IP for lk.salyk.kg [13:40:30]CommunicateWithHost connect error [13:40:30]CommunicateWithHost err = -1 [13:40:30]OFD Sender: Server communicate error [13:40:35]OFD Sender: Processing packet 119095 [packets to send 86, broken 85] [13:40:35]ProducePacketName [13:40:35]name=ofd_packets/00119095 [13:40:35]OFD Sender: To server: pG, [13:40:35]CommunicateWithHost lk.salyk.kg:30040 [13:40:35]ConnectInit lk.salyk.kg [13:40:39]recv_with_timeout no data received [13:40:40]ConnectInit Can't take IP for lk.salyk.kg [13:40:40]CommunicateWithHost connect error [13:40:40]CommunicateWithHost err = -1 [13:40:40]OFD Sender: Server communicate error [13:40:45]OFD Sender: Processing packet 119095 [packets to send 86, broken 85] [13:40:45]ProducePacketName [13:40:45]name=ofd_packets/00119095 [13:40:45]OFD Sender: To server: pG, [13:40:45]CommunicateWithHost lk.salyk.kg:30040 [13:40:45]ConnectInit lk.salyk.kg [13:40:46]Connected sock=7 [13:40:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 42 AB 07 01 3D DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 48 ED A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D1 01 00 35 04 06 00 02 09 1A 5B 9B 57 98 B6 26 BA A3 23 1E 3A [13:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 80 1D 47 00 96 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 37 D1 01 00 F4 03 04 00 E8 9A A8 66 B6 04 01 00 00 F1 5C 56 24 F8 4A 9F A4 [13:40:46]CommunicateWithHost err = 0 [13:40:46]CheckOFDResponse [13:40:46]1017 (14) - 77093643461234 [13:40:46]1041 (16) - 0000000000874939 [13:40:46]1040 (4) - 119095 [13:40:46]1012 (4) - 30.07.2024 07:48 [13:40:46]1206 (1) - 0 [13:40:46]OFD Sender: Remove packet 119095 [13:40:46]ProducePacketName [13:40:46]name=ofd_packets/00119095 [13:40:46]NVStorageDeleteData [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:17]recv_with_timeout no data received [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:27]recv_with_timeout no data received [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:37]recv_with_timeout no data received [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:46:59]ConnectInit Can't connect to host [13:47:02]OFD Sender: No OFD packet to send [13:47:22]ConnectInit Can't connect to host [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:25]recv_with_timeout no data received [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:39]accept exits with 9 [13:51:39]New connection [13:51:39]New thread 3067018596 created [13:51:39]Thread 3066875236 joined [13:51:39]Waiting for new connection... [13:51:39] Sock 9.Parse request [13:51:39]Sock 9.Check first char [13:51:39]Sock 9.First char is OK [13:51:39]request: POST /json_proto HTTP/1.0 [13:51:39]Method: POST [13:51:39]URL: /json_proto [13:51:39]Method is POST - this is cgi request [13:51:39]url: /json_proto [13:51:39]query_string will be loaded in cgi processing [13:51:39]execute_cgi json_proto POST (null) [13:51:39]execute_cgi path=json_proto method=POST [13:51:39]POST find Content-Length [13:51:39]Host: 172.17.45.7:8080 [13:51:39]Content-Length: 677 [13:51:39]Content-Type: application/json [13:51:39] [13:51:39]POST finish read [13:51:39]Found Content-Length = 677 [13:51:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:39]execute_script... [13: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)950015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:39]POST & json_proto [13:51:39]process_json_proto [13:51:39]json parsed OK: [13:51:39]protocol is kg_v1.0 [13:51:39]action value=close_receipt [13:51:39]process_action close_receipt [13:51:39]cmd_close_receipt [13:51:39]MH_GetDate [13:51:39]Write to MH i2c: F0 00 00 03 03 F5 [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: F0 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: F0 09 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: F0 09 00 03 03 00 EC EF A8 66 90 0F 3E 66 2A [13:51:39]GetLastDocTimeStamp 1722346824 [13:51:39]current date 1722347500 [13:51:39]FM_GetShiftState [13:51:39]SAM_PROTO_GetShiftState [13:51:39]wFMCommunicate request_size=4 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 13 01 00 [13:51:39]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 0E 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4F [13:51:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:51:39]wFMCommunicate OK [13:51:39]SAM_PROTO_GetShiftState done [13:51:39]FM_GetShiftState done [13:51:39]opened in 1722298242 [13:51:39]opened+sec_in_day 1722384642 [13:51:39]quantity*price = 40002 [13:51:39]sum+1 = 40003 [13:51:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 148 30.07.2024 13:51 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119096 ФПД: 195657949668327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135140&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119096&fm=195657949668327&tin=02508201610067®Number=0000000000092660&sum=40000 [13:51:40]StoreToDocumentArchive [13:51:40]shift 435 fd 119096 [13:51:40]save to /storage/0435/doc_00119096 [13:51:40]save last doc name /storage/0435/doc_00119096 to /storage/kkm_last_doc_name [13:51:40]save OK [13:51:40]Clear old archive folders... [13:51:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:40]tlvbuf is 00D762B0 [13:51:40]SAM_PROTO_ClearQueue [13:51:40]wFMCommunicate request_size=4 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 09 00 00 [13:51:40]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [13:51:40]RAPDU: 90 00 [13:51:40]wFMCommunicate OK [13:51:40]SAM_PROTO_ClearQueue done [13:51:40]KKMCreateOFDPacket [13:51:40]OFDProtocolAddRootSTLVToBuf [13:51:40]FM_MakeSignedData [13:51:40]FM_MakeSignedData [13:51:40]SAM_PROTO_SignData [13:51:40]wFMCommunicate request_size=4 [13:51:40]MH_SAM_APDU [13:51:40]CAPDU: 80 0D 01 02 [13:51:40]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [13:51:40]RAPDU: 90 00 [13:51:40]wFMCommunicate OK [13:51:40]wFMCommunicate request_size=255 [13:51:40]MH_SAM_APDU [13: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 94 00 00 00 F4 03 04 00 EC EF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D1 01 00 35 04 06 00 B1 [13:51:40]Write to MH i2c: E2 02 01 13 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 94 00 00 00 F4 03 04 00 EC EF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D1 01 00 35 04 06 00 B1 00 00 E3 [13:51:40]Write i2c OK [13:51:40]MH_I2C_Read... [13:51:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:40]Read from MH i2c: E2 [13:51:40]MH_I2C_Read... [13:51:40]Read from MH i2c: E2 03 00 [13:51:40]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=10 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 02 02 05 F3 2A 96 63 E7 [13:51:41]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 F3 2A 96 63 E7 00 00 98 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [13:51:41]RAPDU: 90 00 [13:51:41]wFMCommunicate OK [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 0D 03 02 [13:51:41]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 0B 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 0B 00 15 03 00 7C 4D 36 5A DF 7A A8 A9 90 00 97 [13:51:41]RAPDU: 7C 4D 36 5A DF 7A A8 A9 90 00 [13:51:41]wFMCommunicate OK [13:51:41]SAM_PROTO_SignData done [13:51:41]FM_MakeSignedData done [13:51:41]CreateOFDProtocolMessage [13:51:41]wFMCommunicate request_size=4 [13:51:41]MH_SAM_APDU [13:51:41]CAPDU: 80 11 00 00 [13:51:41]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [13:51:41]Write i2c OK [13:51:41]MH_I2C_Read... [13:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:41]Read from MH i2c: E2 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 17 00 [13:51:41]MH_I2C_Read... [13:51:41]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:52:11]name=ofd_packets/00119096 [13:52:11]OFD Sender: To server: pG, [13:52:11]CommunicateWithHost lk.salyk.kg:30040 [13:52:11]ConnectInit lk.salyk.kg [13:52:16]ConnectInit Can't take IP for lk.salyk.kg [13:52:16]CommunicateWithHost connect error [13:52:16]CommunicateWithHost err = -1 [13:52:16]OFD Sender: Server communicate error [13:52:21]OFD Sender: Processing packet 119096 [packets to send 86, broken 85] [13:52:21]ProducePacketName [13:52:21]name=ofd_packets/00119096 [13:52:21]OFD Sender: To server: pG, [13:52:21]CommunicateWithHost lk.salyk.kg:30040 [13:52:21]ConnectInit lk.salyk.kg [13:52:26]ConnectInit Can't take IP for lk.salyk.kg [13:52:26]CommunicateWithHost connect error [13:52:26]CommunicateWithHost err = -1 [13:52:26]OFD Sender: Server communicate error [13:52:31]OFD Sender: Processing packet 119096 [packets to send 86, broken 85] [13:52:31]ProducePacketName [13:52:31]name=ofd_packets/00119096 [13:52:31]OFD Sender: To server: pG, [13:52:31]CommunicateWithHost lk.salyk.kg:30040 [13:52:31]ConnectInit lk.salyk.kg [13:52:36]ConnectInit Can't take IP for lk.salyk.kg [13:52:36]CommunicateWithHost connect error [13:52:36]CommunicateWithHost err = -1 [13:52:36]OFD Sender: Server communicate error [13:52:41]OFD Sender: Processing packet 119096 [packets to send 86, broken 85] [13:52:41]ProducePacketName [13:52:41]name=ofd_packets/00119096 [13:52:41]OFD Sender: To server: pG, [13:52:41]CommunicateWithHost lk.salyk.kg:30040 [13:52:41]ConnectInit lk.salyk.kg [13:52:46]Connected sock=9 [13:52:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6F 6D 07 01 03 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 94 00 00 00 F4 03 04 00 EC EF A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D1 01 00 35 04 06 00 B1 F3 2A 96 63 E7 7C 4D 36 5A DF 7A A8 A9 [13:52:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 11 10 47 00 06 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 38 D1 01 00 F4 03 04 00 B8 9D A8 66 B6 04 01 00 00 E6 E0 7D 30 34 8A 20 3F [13:52:46]CommunicateWithHost err = 0 [13:52:46]CheckOFDResponse [13:52:46]1017 (14) - 77093643461234 [13:52:46]1041 (16) - 0000000000874939 [13:52:46]1040 (4) - 119096 [13:52:46]1012 (4) - 30.07.2024 08:00 [13:52:46]1206 (1) - 0 [13:52:46]OFD Sender: Remove packet 119096 [13:52:46]ProducePacketName [13:52:46]name=ofd_packets/00119096 [13:52:46]NVStorageDeleteData [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:52:58]ConnectInit Can't connect to host [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:14]accept exits with 10 [13:53:14]New connection [13:53:14]New thread 3066875236 created [13:53:14]Thread 3067018596 joined [13:53:14]Waiting for new connection... [13:53:14] Sock 10.Parse request [13:53:14]Sock 10.Check first char [13:53:14]Sock 10.First char is OK [13:53:14]request: POST /json_proto HTTP/1.0 [13:53:14]Method: POST [13:53:14]URL: /json_proto [13:53:14]Method is POST - this is cgi request [13:53:14]url: /json_proto [13:53:14]query_string will be loaded in cgi processing [13:53:14]execute_cgi json_proto POST (null) [13:53:14]execute_cgi path=json_proto method=POST [13:53:14]POST find Content-Length [13:53:14]Host: 172.17.45.7:8080 [13:53:14]Content-Length: 677 [13:53:14]Content-Type: application/json [13:53:14] [13:53:14]POST finish read [13:53:14]Found Content-Length = 677 [13:53:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [13:53:14]execute_script... [13:53: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)950016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [13:53:14]POST & json_proto [13:53:14]process_json_proto [13:53:14]json parsed OK: [13:53:14]protocol is kg_v1.0 [13:53:14]action value=close_receipt [13:53:14]process_action close_receipt [13:53:14]cmd_close_receipt [13:53:14]MH_GetDate [13:53:14]Write to MH i2c: F0 00 00 4D 03 3F [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: F0 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: F0 09 00 [13:53:14]MH_I2C_Read... [13:53:14]Read from MH i2c: F0 09 00 4D 03 00 4B F0 A8 66 90 0F 3E 66 D4 [13:53:14]GetLastDocTimeStamp 1722347500 [13:53:14]current date 1722347595 [13:53:14]FM_GetShiftState [13:53:14]SAM_PROTO_GetShiftState [13:53:14]wFMCommunicate request_size=4 [13:53:14]MH_SAM_APDU [13:53:14]CAPDU: 80 13 01 00 [13:53:14]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [13:53:14]Write i2c OK [13:53:14]MH_I2C_Read... [13:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:15]Read from MH i2c: E2 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 0E 00 [13:53:15]MH_I2C_Read... [13:53:15]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [13:53:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:53:15]wFMCommunicate OK [13:53:15]SAM_PROTO_GetShiftState done [13:53:15]FM_GetShiftState done [13:53:15]opened in 1722298242 [13:53:15]opened+sec_in_day 1722384642 [13:53:15]quantity*price = 30035 [13:53:15]sum+1 = 30036 [13:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 149 30.07.2024 13:53 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119097 ФПД: 68260645352984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119097&fm=68260645352984&tin=02508201610067®Number=0000000000092660&sum=30000 [13:53:16]StoreToDocumentArchive [13:53:16]shift 435 fd 119097 [13:53:16]save to /storage/0435/doc_00119097 [13:53:16]save last doc name /storage/0435/doc_00119097 to /storage/kkm_last_doc_name [13:53:16]save OK [13:53:16]Clear old archive folders... [13:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:16]tlvbuf is 00DE4980 [13:53:16]SAM_PROTO_ClearQueue [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 09 00 00 [13:53:16]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [13:53:16]RAPDU: 90 00 [13:53:16]wFMCommunicate OK [13:53:16]SAM_PROTO_ClearQueue done [13:53:16]KKMCreateOFDPacket [13:53:16]OFDProtocolAddRootSTLVToBuf [13:53:16]FM_MakeSignedData [13:53:16]FM_MakeSignedData [13:53:16]SAM_PROTO_SignData [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 0D 01 02 [13:53:16]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [13:53:16]RAPDU: 90 00 [13:53:16]wFMCommunicate OK [13:53:16]wFMCommunicate request_size=255 [13:53:16]MH_SAM_APDU [13:53: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 95 00 00 00 F4 03 04 00 4B F0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D1 01 00 35 04 06 00 3E [13:53:16]Write to MH i2c: E2 02 01 5D 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 95 00 00 00 F4 03 04 00 4B F0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D1 01 00 35 04 06 00 3E 00 00 56 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [13:53:16]RAPDU: 90 00 [13:53:16]wFMCommunicate OK [13:53:16]wFMCommunicate request_size=10 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 0D 02 02 05 15 2B 84 B6 18 [13:53:16]Write to MH i2c: E2 0D 00 5E 03 80 0D 02 02 05 00 15 2B 84 B6 18 00 00 77 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [13:53:16]RAPDU: 90 00 [13:53:16]wFMCommunicate OK [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 0D 03 02 [13:53:16]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 0B 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 0B 00 5F 03 00 B9 D7 C1 16 5F CF 4A C6 90 00 83 [13:53:16]RAPDU: B9 D7 C1 16 5F CF 4A C6 90 00 [13:53:16]wFMCommunicate OK [13:53:16]SAM_PROTO_SignData done [13:53:16]FM_MakeSignedData done [13:53:16]CreateOFDProtocolMessage [13:53:16]wFMCommunicate request_size=4 [13:53:16]MH_SAM_APDU [13:53:16]CAPDU: 80 11 00 00 [13:53:16]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:16]Read from MH i2c: E2 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: E2 17 00 [13:53:16]MH_I2C_Read... [13:53:16]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 34 39 33 39 90 00 38 [13:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:53:16]wFMCommunicate OK [13:53:16]CreateOFDProtocolMessage done [13:53:16]OFDSenderStorePacket 119097 [13:53:16]StoreOFDPacket docnum=119097 [13:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7B 67 07 01 67 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 95 00 00 00 F4 03 04 00 4B F0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D1 01 00 35 04 06 00 3E 15 2B 84 B6 18 B9 D7 C1 16 5F CF 4A C6 [13:53:16]CheckFolder [13:53:16]dirname=/storage/ofd_packets [13:53:16]CheckFolder done [13:53:16]ProducePacketName [13:53:16]name=ofd_packets/00119097 [13:53:16]NVStorageSaveData ofd_packets/00119097 [13:53:16]File name is /storage/ofd_packets/00119097 [13:53:16]Write 301 bytes [13:53:16]NVStorageSaveData done [13:53:16]OFDSenderStorePacket done [13:53:16]KKMCreateOFDPacket done [13:53:16]NVStorageSaveData kkm_last_timestamp [13:53:16]File name is /storage/kkm_last_timestamp [13:53:16]Write 4 bytes [13:53:16]NVStorageSaveData done [13:53:16]ExternCall_PrintAddStr [13:53:16]wPrintStart [13:53:16]Write to MH i2c: 01 00 00 61 03 64 [13:53:16]Write i2c OK [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: 01 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: 01 07 00 [13:53:16]MH_I2C_Read... [13:53:16]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [13:53:16]RasterBufferAndPrint [13:53:16]line Счет N : (1)950016 [13:53:16]line ИНН: 02508201610067 [13:53:16]line Контрольно-Кассовый Чек [13:53:16]line ПРОДАЖА [13:53:16]line ТРК (МРК, ГНК) : 61 [13:53:16]line Товар: 2710124130 [13:53:16]line Аи-92-К-4 [13:53:16]line 4.430 * 67.80 [13:53:16]line = 300.35 [13:53:16]line НДС 12% НСП 1% [13:53:16]line > о реализуемом товаре [13:53:16]line ОКРУГЛЕНИЕ: -0.35 [13:53:16]line ИТОГО: 300.00 [13:53:16]line Внесено: 300.00 [13:53:16]line СДАЧА: 0.00 [13:53:16]line НСП 1% : 2.66 [13:53:16]line НДС 12% : 31.90 [13:53:16]line Наличными: 300.00 [13:53:16]line Безнал.: 0.00 [13:53:16]line Место: АЗС № 134 "Партнер Нефть" [13:53:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:53:16]line СНО: Общий режим [13:53:16]line Чек 149 30.07.2024 13:53 [13:53:16]line Смена: 435 ФФД: 1.0 [13:53:16]line ЗНМ: 0300000044 [13:53:16]line РНМ: 0000000000092660 [13:53:16]line Версия ККМ: 001 [13:53:16]line ФМ: 0000000000874939 [13:53:16]line ФД: 119097 [13:53:16]line ФПД: 68260645352984 [13:53:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135315&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119097&fm=68260645352984&tin=02508201610067®Number=0000000000092660&sum=30000 [13:53:16]written 0, free lines is 4095 [13:53:16]OFD Sender: Processing packet 119097 [packets to send 86, broken 85] [13:53:16]ProducePacketName [13:53:16]name=ofd_packets/00119097 [13:53:16]OFD Sender: To server: pG, [13:53:16]CommunicateWithHost lk.salyk.kg:30040 [13:53:16]ConnectInit lk.salyk.kg [13:53:17]Write to MH i2c: 01 00 00 8B 03 8E [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: 01 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: 01 07 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 DC 0C 7D [13:53:17]RasterBufferAndPrint [13:53:17]line [13:53:17]line [13:53:17]line [13:53:17]line [13:53:17]line [13:53:17]written 0, free lines is 3301 [13:53:17]MH_Cut [13:53:17]Write to MH i2c: D1 01 00 92 03 01 67 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: D1 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: D1 01 00 [13:53:17]MH_I2C_Read... [13:53:17]Read from MH i2c: D1 01 00 92 03 00 66 [13:53:17]Write to MH i2c: 01 00 00 93 03 96 [13:53:17]Write i2c OK [13:53:17]MH_I2C_Read... [13:53:17]*** Cut start [13:53:17]*** Partial cut [13:53:17]*** CUTSNS_PIN = 1 [13:53:17]*** CUTSNS_PIN = 0 [13:53:18]*** Brake cut motor [13:53:18]Read from MH i2c: 01 [13:53:18]MH_I2C_Read... [13:53:18]*** Stop cut motor [13:53:18]*** Cut end [13:53:18]Read from MH i2c: 01 07 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [13:53:18]process_action close_receipt done [13:53:18]requested_data is exist [13:53:18]produce_requested_data [13:53:18]requested_item fm.sn is exist - process it [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 11 00 00 [13:53:18]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 17 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [13:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:53:18]wFMCommunicate OK [13:53:18]requested_item fd.num is exist - process it [13:53:18]SAM_PROTO_GetFieldsCounters [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 13 00 00 [13:53:18]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 62 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 62 00 95 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [13:53:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 39 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:18]wFMCommunicate OK [13:53:18]SAM_PROTO_GetFieldsCounters done [13:53:18]requested_item shift.num is exist - process it [13:53:18]requested_item shift.opened is exist - process it [13:53:18]req_shift_opened [13:53:18]FM_GetShiftState [13:53:18]SAM_PROTO_GetShiftState [13:53:18]wFMCommunicate request_size=4 [13:53:18]MH_SAM_APDU [13:53:18]CAPDU: 80 13 01 00 [13:53:18]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [13:53:18]Write i2c OK [13:53:18]MH_I2C_Read... [13:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:18]Read from MH i2c: E2 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 0E 00 [13:53:18]MH_I2C_Read... [13:53:18]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E1 [13:53:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:53:18]wFMCommunicate OK [13:53:18]SAM_PROTO_GetShiftState done [13:53:18]FM_GetShiftState done [13:53:18]req_shift_opened done [13:53:18]requested_item shift.open_date is exist - process it [13:53:18]req_shift_open_date [13:53:18]req_shift_open_date done [13:53:18]produce_requested_data done [13:53:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119097,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:53:18]process_action_free close_receipt [13:53:18]json_value_free [13:53:18]json_value_free done [13:53:18]process_json_proto returns [13:53:18]Send response to host [13:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119097,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:53:18]free response buf [13:53:18]execute_script done [13:53:18]execute_script returns [13:53:18]free content buf [13:53:18]Sock 10.Close socket [13:53:18]Sock 10.Thread stoped [13:53:54]recv_with_timeout no data received [13:55:32]ConnectInit Can't connect to host [13:55:32]CommunicateWithHost connect error [13:55:32]CommunicateWithHost err = -1 [13:55:32]OFD Sender: Server communicate error [13:55:37]OFD Sender: Processing packet 119097 [packets to send 86, broken 85] [13:55:37]ProducePacketName [13:55:37]name=ofd_packets/00119097 [13:55:37]OFD Sender: To server: pG, [13:55:37]CommunicateWithHost lk.salyk.kg:30040 [13:55:37]ConnectInit lk.salyk.kg [13:55:42]ConnectInit Can't take IP for lk.salyk.kg [13:55:42]CommunicateWithHost connect error [13:55:42]CommunicateWithHost err = -1 [13:55:42]OFD Sender: Server communicate error [13:55:47]OFD Sender: Processing packet 119097 [packets to send 86, broken 85] [13:55:47]ProducePacketName [13:55:47]name=ofd_packets/00119097 [13:55:47]OFD Sender: To server: pG, [13:55:47]CommunicateWithHost lk.salyk.kg:30040 [13:55:47]ConnectInit lk.salyk.kg [13:55:52]ConnectInit Can't take IP for lk.salyk.kg [13:55:52]CommunicateWithHost connect error [13:55:52]CommunicateWithHost err = -1 [13:55:52]OFD Sender: Server communicate error [13:55:57]OFD Sender: Processing packet 119097 [packets to send 86, broken 85] [13:55:57]ProducePacketName [13:55:57]name=ofd_packets/00119097 [13:55:57]OFD Sender: To server: pG, [13:55:57]CommunicateWithHost lk.salyk.kg:30040 [13:55:57]ConnectInit lk.salyk.kg [13:55:58]Connected sock=9 [13:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7B 67 07 01 67 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 95 00 00 00 F4 03 04 00 4B F0 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D1 01 00 35 04 06 00 3E 15 2B 84 B6 18 B9 D7 C1 16 5F CF 4A C6 [13:55:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 67 47 00 D9 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 39 D1 01 00 F4 03 04 00 78 9E A8 66 B6 04 01 00 00 5B 78 47 9F FE D4 68 F9 [13:55:59]CommunicateWithHost err = 0 [13:55:59]CheckOFDResponse [13:55:59]1017 (14) - 77093643461234 [13:55:59]1041 (16) - 0000000000874939 [13:55:59]1040 (4) - 119097 [13:55:59]1012 (4) - 30.07.2024 08:04 [13:55:59]1206 (1) - 0 [13:55:59]OFD Sender: Remove packet 119097 [13:55:59]ProducePacketName [13:55:59]name=ofd_packets/00119097 [13:55:59]NVStorageDeleteData [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:08]accept exits with 7 [13:57:08]New connection [13:57:08]New thread 3067018596 created [13:57:08]Thread 3066875236 joined [13:57:08]Waiting for new connection... [13:57:08] Sock 7.Parse request [13:57:08]Sock 7.Check first char [13:57:08]Sock 7.First char is OK [13:57:08]request: POST /json_proto HTTP/1.0 [13:57:08]Method: POST [13:57:08]URL: /json_proto [13:57:08]Method is POST - this is cgi request [13:57:08]url: /json_proto [13:57:08]query_string will be loaded in cgi processing [13:57:08]execute_cgi json_proto POST (null) [13:57:08]execute_cgi path=json_proto method=POST [13:57:08]POST find Content-Length [13:57:08]Host: 172.17.45.7:8080 [13:57:08]Content-Length: 674 [13:57:08]Content-Type: application/json [13:57:08] [13:57:08]POST finish read [13:57:08]Found Content-Length = 674 [13:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:08]execute_script... [13:57:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:08]POST & json_proto [13:57:08]process_json_proto [13:57:08]json parsed OK: [13:57:08]protocol is kg_v1.0 [13:57:08]action value=close_receipt [13:57:08]process_action close_receipt [13:57:08]cmd_close_receipt [13:57:08]MH_GetDate [13:57:08]Write to MH i2c: F0 00 00 97 03 89 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: F0 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: F0 09 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: F0 09 00 97 03 00 35 F1 A8 66 90 0F 3E 66 09 [13:57:08]GetLastDocTimeStamp 1722347595 [13:57:08]current date 1722347829 [13:57:08]FM_GetShiftState [13:57:08]SAM_PROTO_GetShiftState [13:57:08]wFMCommunicate request_size=4 [13:57:08]MH_SAM_APDU [13:57:08]CAPDU: 80 13 01 00 [13:57:08]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [13:57:08]Write i2c OK [13:57:08]MH_I2C_Read... [13:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:08]Read from MH i2c: E2 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 0E 00 [13:57:08]MH_I2C_Read... [13:57:08]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [13:57:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:57:08]wFMCommunicate OK [13:57:08]SAM_PROTO_GetShiftState done [13:57:08]FM_GetShiftState done [13:57:08]opened in 1722298242 [13:57:08]opened+sec_in_day 1722384642 [13:57:08]quantity*price = 50063 [13:57:08]sum+1 = 50064 [13:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 150 30.07.2024 13:57 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119098 ФПД: 203918736208636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135709&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119098&fm=203918736208636&tin=02508201610067®Number=0000000000092660&sum=50000 [13:57:09]StoreToDocumentArchive [13:57:09]shift 435 fd 119098 [13:57:09]save to /storage/0435/doc_00119098 [13:57:09]save last doc name /storage/0435/doc_00119098 to /storage/kkm_last_doc_name [13:57:09]save OK [13:57:09]Clear old archive folders... [13:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:57:09]tlvbuf is 00DFB320 [13:57:09]SAM_PROTO_ClearQueue [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 09 00 00 [13:57:09]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_ClearQueue done [13:57:09]KKMCreateOFDPacket [13:57:09]OFDProtocolAddRootSTLVToBuf [13:57:09]FM_MakeSignedData [13:57:09]FM_MakeSignedData [13:57:09]SAM_PROTO_SignData [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 01 02 [13:57:09]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=255 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 35 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D1 01 00 35 04 06 00 B9 76 87 D5 [13:57:09]Write to MH i2c: E2 02 01 A7 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 35 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D1 01 00 35 04 06 00 B9 76 87 D5 00 00 4F [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=7 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 02 02 02 B2 FC [13:57:09]Write to MH i2c: E2 0A 00 A8 03 80 0D 02 02 02 00 B2 FC 00 00 D7 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [13:57:09]RAPDU: 90 00 [13:57:09]wFMCommunicate OK [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 0D 03 02 [13:57:09]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]OFD Sender: No OFD packet to send [13:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0B 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 0B 00 A9 03 00 09 1A 1E CC DE A5 FC 0C 90 00 C0 [13:57:09]RAPDU: 09 1A 1E CC DE A5 FC 0C 90 00 [13:57:09]wFMCommunicate OK [13:57:09]SAM_PROTO_SignData done [13:57:09]FM_MakeSignedData done [13:57:09]CreateOFDProtocolMessage [13:57:09]wFMCommunicate request_size=4 [13:57:09]MH_SAM_APDU [13:57:09]CAPDU: 80 11 00 00 [13:57:09]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:09]Read from MH i2c: E2 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [13:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:57:09]wFMCommunicate OK [13:57:09]CreateOFDProtocolMessage done [13:57:09]OFDSenderStorePacket 119098 [13:57:09]StoreOFDPacket docnum=119098 [13:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DC 60 04 01 F6 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 35 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D1 01 00 35 04 06 00 B9 76 87 D5 B2 FC 09 1A 1E CC DE A5 FC 0C [13:57:09]CheckFolder [13:57:09]dirname=/storage/ofd_packets [13:57:09]CheckFolder done [13:57:09]ProducePacketName [13:57:09]name=ofd_packets/00119098 [13:57:09]NVStorageSaveData ofd_packets/00119098 [13:57:09]File name is /storage/ofd_packets/00119098 [13:57:09]Write 298 bytes [13:57:09]NVStorageSaveData done [13:57:09]OFDSenderStorePacket done [13:57:09]KKMCreateOFDPacket done [13:57:09]NVStorageSaveData kkm_last_timestamp [13:57:09]File name is /storage/kkm_last_timestamp [13:57:09]Write 4 bytes [13:57:09]NVStorageSaveData done [13:57:09]ExternCall_PrintAddStr [13:57:09]wPrintStart [13:57:09]Write to MH i2c: 01 00 00 AB 03 AE [13:57:09]Write i2c OK [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 [13:57:09]MH_I2C_Read... [13:57:09]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [13:57:09]RasterBufferAndPrint [13:57:09]line Счет N : (1)950018 [13:57:09]line ИНН: 02508201610067 [13:57:09]line Контрольно-Кассовый Чек [13:57:09]line ПРОДАЖА [13:57:09]line ТРК (МРК, ГНК) : 21 [13:57:09]line Товар: 2710194800 [13:57:09]line ДТ-К-5 [13:57:09]line 6.570 * 76.20 [13:57:09]line = 500.63 [13:57:09]line НДС 12% НСП 1% [13:57:09]line > о реализуемом товаре [13:57:09]line ОКРУГЛЕНИЕ: -0.63 [13:57:09]line ИТОГО: 500.00 [13:57:09]line Внесено: 500.00 [13:57:09]line СДАЧА: 0.00 [13:57:09]line НСП 1% : 4.43 [13:57:09]line НДС 12% : 53.16 [13:57:09]line Наличными: 500.00 [13:57:09]line Безнал.: 0.00 [13:57:09]line Место: АЗС № 134 "Партнер Нефть" [13:57:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:57:09]line СНО: Общий режим [13:57:09]line Чек 150 30.07.2024 13:57 [13:57:09]line Смена: 435 ФФД: 1.0 [13:57:09]line ЗНМ: 0300000044 [13:57:09]line РНМ: 0000000000092660 [13:57:09]line Версия ККМ: 001 [13:57:09]line ФМ: 0000000000874939 [13:57:09]line ФД: 119098 [13:57:09]line ФПД: 203918736208636 [13:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135709&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119098&fm=203918736208636&tin=02508201610067®Number=0000000000092660&sum=50000 [13:57:09]OFD Sender: Processing packet 119098 [packets to send 86, broken 85] [13:57:09]ProducePacketName [13:57:10]name=ofd_packets/00119098 [13:57:10]OFD Sender: To server: pG, [13:57:10]CommunicateWithHost lk.salyk.kg:30040 [13:57:10]ConnectInit lk.salyk.kg [13:57:10]written 0, free lines is 4095 [13:57:10]Write to MH i2c: 01 00 00 D5 03 D8 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 07 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 CC 0C B7 [13:57:10]RasterBufferAndPrint [13:57:10]line [13:57:10]line [13:57:10]line [13:57:10]line [13:57:10]line [13:57:10]written 0, free lines is 3279 [13:57:10]MH_Cut [13:57:10]Write to MH i2c: D1 01 00 DC 03 01 B1 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: D1 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: D1 01 00 [13:57:10]MH_I2C_Read... [13:57:10]Read from MH i2c: D1 01 00 DC 03 00 B0 [13:57:10]Write to MH i2c: 01 00 00 DD 03 E0 [13:57:10]Write i2c OK [13:57:10]MH_I2C_Read... [13:57:11]*** Cut start [13:57:11]*** Partial cut [13:57:11]*** CUTSNS_PIN = 1 [13:57:11]*** CUTSNS_PIN = 0 [13:57:11]*** Brake cut motor [13:57:12]Read from MH i2c: 01 [13:57:12]MH_I2C_Read... [13:57:12]*** Stop cut motor [13:57:12]*** Cut end [13:57:12]Read from MH i2c: 01 07 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [13:57:12]process_action close_receipt done [13:57:12]requested_data is exist [13:57:12]produce_requested_data [13:57:12]requested_item fm.sn is exist - process it [13:57:12]wFMCommunicate request_size=4 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 11 00 00 [13:57:12]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 17 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [13:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:57:12]wFMCommunicate OK [13:57:12]requested_item fd.num is exist - process it [13:57:12]SAM_PROTO_GetFieldsCounters [13:57:12]wFMCommunicate request_size=4 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 13 00 00 [13:57:12]Write to MH i2c: E2 08 00 DF 03 80 13 00 00 00 00 00 00 5E [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 62 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 62 00 DF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:12]wFMCommunicate OK [13:57:12]SAM_PROTO_GetFieldsCounters done [13:57:12]requested_item shift.num is exist - process it [13:57:12]requested_item shift.opened is exist - process it [13:57:12]req_shift_opened [13:57:12]FM_GetShiftState [13:57:12]SAM_PROTO_GetShiftState [13:57:12]wFMCommunicate request_size=4 [13:57:12]MH_SAM_APDU [13:57:12]CAPDU: 80 13 01 00 [13:57:12]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [13:57:12]Write i2c OK [13:57:12]MH_I2C_Read... [13:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:12]Read from MH i2c: E2 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 0E 00 [13:57:12]MH_I2C_Read... [13:57:12]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2B [13:57:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:57:12]wFMCommunicate OK [13:57:12]SAM_PROTO_GetShiftState done [13:57:12]FM_GetShiftState done [13:57:12]req_shift_opened done [13:57:12]requested_item shift.open_date is exist - process it [13:57:12]req_shift_open_date [13:57:12]req_shift_open_date done [13:57:12]produce_requested_data done [13:57:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119098,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:57:12]process_action_free close_receipt [13:57:12]json_value_free [13:57:12]json_value_free done [13:57:12]process_json_proto returns [13:57:12]Send response to host [13:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119098,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:57:12]free response buf [13:57:12]execute_script done [13:57:12]execute_script returns [13:57:12]free content buf [13:57:12]Sock 7.Close socket [13:57:12]Sock 7.Thread stoped [13:57:15]ConnectInit Can't take IP for lk.salyk.kg [13:57:15]CommunicateWithHost connect error [13:57:15]CommunicateWithHost err = -1 [13:57:15]OFD Sender: Server communicate error [13:57:20]OFD Sender: Processing packet 119098 [packets to send 86, broken 85] [13:57:20]ProducePacketName [13:57:20]name=ofd_packets/00119098 [13:57:20]OFD Sender: To server: pG, [13:57:20]CommunicateWithHost lk.salyk.kg:30040 [13:57:20]ConnectInit lk.salyk.kg [13:57:27]Connected sock=7 [13: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 34 39 33 39 0C 01 00 00 DC 60 04 01 F6 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 35 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D1 01 00 35 04 06 00 B9 76 87 D5 B2 FC 09 1A 1E CC DE A5 FC 0C [13:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9A DA 47 00 90 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3A D1 01 00 F4 03 04 00 D1 9E A8 66 B6 04 01 00 00 3F 91 77 E0 96 B0 DD 11 [13:57:30]CommunicateWithHost err = 0 [13:57:30]CheckOFDResponse [13:57:30]1017 (14) - 77093643461234 [13:57:30]1041 (16) - 0000000000874939 [13:57:30]1040 (4) - 119098 [13:57:30]1012 (4) - 30.07.2024 08:05 [13:57:30]1206 (1) - 0 [13:57:30]OFD Sender: Remove packet 119098 [13:57:30]ProducePacketName [13:57:30]name=ofd_packets/00119098 [13:57:30]NVStorageDeleteData [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:08]accept exits with 9 [13:58:08]New connection [13:58:08]New thread 3066875236 created [13:58:08]Thread 3067018596 joined [13:58:08]Waiting for new connection... [13:58:08] Sock 9.Parse request [13:58:08]Sock 9.Check first char [13:58:08]Sock 9.First char is OK [13:58:08]request: POST /json_proto HTTP/1.0 [13:58:08]Method: POST [13:58:08]URL: /json_proto [13:58:08]Method is POST - this is cgi request [13:58:08]url: /json_proto [13:58:08]query_string will be loaded in cgi processing [13:58:08]execute_cgi json_proto POST (null) [13:58:08]execute_cgi path=json_proto method=POST [13:58:08]POST find Content-Length [13:58:08]Host: 172.17.45.7:8080 [13:58:08]Content-Length: 682 [13:58:08]Content-Type: application/json [13:58:08] [13:58:08]POST finish read [13:58:08]Found Content-Length = 682 [13:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 45.270, "sum" : 3359.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4572.00, "total" : 3359.00, "payments": [ { "type": 0, "sum" : 3359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:08]execute_script... [13:58: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)950017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 45.270, "sum" : 3359.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4572.00, "total" : 3359.00, "payments": [ { "type": 0, "sum" : 3359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:08]POST & json_proto [13:58:08]process_json_proto [13:58:08]json parsed OK: [13:58:08]protocol is kg_v1.0 [13:58:08]action value=close_receipt [13:58:08]process_action close_receipt [13:58:08]cmd_close_receipt [13:58:08]MH_GetDate [13:58:08]Write to MH i2c: F0 00 00 E1 03 D3 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: F0 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: F0 09 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: F0 09 00 E1 03 00 71 F1 A8 66 90 0F 3E 66 8F [13:58:08]GetLastDocTimeStamp 1722347829 [13:58:08]current date 1722347889 [13:58:08]FM_GetShiftState [13:58:08]SAM_PROTO_GetShiftState [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 13 01 00 [13:58:08]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0E 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2D [13:58:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_GetShiftState done [13:58:08]FM_GetShiftState done [13:58:08]opened in 1722298242 [13:58:08]opened+sec_in_day 1722384642 [13:58:08]quantity*price = 335903 [13:58:08]sum+1 = 335904 [13:58:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 3359.00 Внесено: 4572.00 СДАЧА: 1213.00 НСП 1% : 29.73 НДС 12% : 356.71 Наличными: 3359.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 151 30.07.2024 13:58 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119099 ФПД: 129797708008314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135809&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119099&fm=129797708008314&tin=02508201610067®Number=0000000000092660&sum=335900 [13:58:09]StoreToDocumentArchive [13:58:09]shift 435 fd 119099 [13:58:09]save to /storage/0435/doc_00119099 [13:58:09]save last doc name /storage/0435/doc_00119099 to /storage/kkm_last_doc_name [13:58:09]save OK [13:58:09]Clear old archive folders... [13:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:09]tlvbuf is 00DF9720 [13:58:09]SAM_PROTO_ClearQueue [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 09 00 00 [13:58:09]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_ClearQueue done [13:58:09]KKMCreateOFDPacket [13:58:09]OFDProtocolAddRootSTLVToBuf [13:58:09]FM_MakeSignedData [13:58:09]FM_MakeSignedData [13:58:09]SAM_PROTO_SignData [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 01 02 [13:58:09]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]wFMCommunicate request_size=255 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1F 20 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 20 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8B 00 00 00 00 07 04 06 00 1C 20 05 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 71 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D1 01 00 35 04 06 00 76 [13:58:09]Write to MH i2c: E2 02 01 F1 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1F 20 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 20 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8B 00 00 00 00 07 04 06 00 1C 20 05 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 71 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D1 01 00 35 04 06 00 76 00 00 AA [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [13:58:10]RAPDU: 90 00 [13:58:10]wFMCommunicate OK [13:58:10]wFMCommunicate request_size=10 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 0D 02 02 05 0C E2 47 4B 7A [13:58:10]Write to MH i2c: E2 0D 00 F2 03 80 0D 02 02 05 00 0C E2 47 4B 7A 00 00 73 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [13:58:10]RAPDU: 90 00 [13:58:10]wFMCommunicate OK [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 0D 03 02 [13:58:10]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 0B 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 0B 00 F3 03 00 6D CC 6E 18 5B DE 26 C2 90 00 52 [13:58:10]RAPDU: 6D CC 6E 18 5B DE 26 C2 90 00 [13:58:10]wFMCommunicate OK [13:58:10]SAM_PROTO_SignData done [13:58:10]FM_MakeSignedData done [13:58:10]CreateOFDProtocolMessage [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 11 00 00 [13:58:10]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 17 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [13:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:58:10]wFMCommunicate OK [13:58:10]CreateOFDProtocolMessage done [13:58:10]OFDSenderStorePacket 119099 [13:58:10]StoreOFDPacket docnum=119099 [13:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 17 7A 07 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1F 20 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 20 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8B 00 00 00 00 07 04 06 00 1C 20 05 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 71 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D1 01 00 35 04 06 00 76 0C E2 47 4B 7A 6D CC 6E 18 5B DE 26 C2 [13:58:10]CheckFolder [13:58:10]dirname=/storage/ofd_packets [13:58:10]CheckFolder done [13:58:10]ProducePacketName [13:58:10]name=ofd_packets/00119099 [13:58:10]NVStorageSaveData ofd_packets/00119099 [13:58:10]File name is /storage/ofd_packets/00119099 [13:58:10]Write 301 bytes [13:58:10]NVStorageSaveData done [13:58:10]OFDSenderStorePacket done [13:58:10]KKMCreateOFDPacket done [13:58:10]NVStorageSaveData kkm_last_timestamp [13:58:10]File name is /storage/kkm_last_timestamp [13:58:10]Write 4 bytes [13:58:10]NVStorageSaveData done [13:58:10]ExternCall_PrintAddStr [13:58:10]wPrintStart [13:58:10]Write to MH i2c: 01 00 00 F5 03 F8 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [13:58:10]RasterBufferAndPrint [13:58:10]line Счет N : (1)950017 [13:58:10]line ИНН: 02508201610067 [13:58:10]line Контрольно-Кассовый Чек [13:58:10]line ПРОДАЖА [13:58:10]line ТРК (МРК, ГНК) : 53 [13:58:10]line Товар: 2710124500 [13:58:10]line Аи-95-К-3 [13:58:10]line 45.270 * 74.20 [13:58:10]line = 3359.03 [13:58:10]line НДС 12% НСП 1% [13:58:10]line > о реализуемом товаре [13:58:10]line ОКРУГЛЕНИЕ: -0.03 [13:58:10]line ИТОГО: 3359.00 [13:58:10]line Внесено: 4572.00 [13:58:10]line СДАЧА: 1213.00 [13:58:10]line НСП 1% : 29.73 [13:58:10]line НДС 12% : 356.71 [13:58:10]line Наличными: 3359.00 [13:58:10]line Безнал.: 0.00 [13:58:10]line Место: АЗС № 134 "Партнер Нефть" [13:58:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:58:10]line СНО: Общий режим [13:58:10]line Чек 151 30.07.2024 13:58 [13:58:10]line Смена: 435 ФФД: 1.0 [13:58:10]line ЗНМ: 0300000044 [13:58:10]line РНМ: 0000000000092660 [13:58:10]line Версия ККМ: 001 [13:58:10]line ФМ: 0000000000874939 [13:58:10]line ФД: 119099 [13:58:10]line ФПД: 129797708008314 [13:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T135809&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119099&fm=129797708008314&tin=02508201610067®Number=0000000000092660&sum=335900 [13:58:10]written 0, free lines is 4095 [13:58:10]OFD Sender: Processing packet 119099 [packets to send 86, broken 85] [13:58:10]ProducePacketName [13:58:10]name=ofd_packets/00119099 [13:58:10]OFD Sender: To server: pG, [13:58:10]CommunicateWithHost lk.salyk.kg:30040 [13:58:10]ConnectInit lk.salyk.kg [13:58:10]Write to MH i2c: 01 00 00 1F 04 23 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 DF 0C 15 [13:58:10]RasterBufferAndPrint [13:58:10]line [13:58:10]line [13:58:10]line [13:58:10]line [13:58:10]line [13:58:10]written 0, free lines is 3306 [13:58:10]MH_Cut [13:58:10]Write to MH i2c: D1 01 00 26 04 01 FC [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: D1 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: D1 01 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: D1 01 00 26 04 00 FB [13:58:10]Write to MH i2c: 01 00 00 27 04 2B [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:11]*** Cut start [13:58:11]*** Partial cut [13:58:11]*** CUTSNS_PIN = 1 [13:58:11]*** CUTSNS_PIN = 0 [13:58:11]*** Brake cut motor [13:58:12]Read from MH i2c: 01 [13:58:12]MH_I2C_Read... [13:58:12]*** Stop cut motor [13:58:12]*** Cut end [13:58:12]Read from MH i2c: 01 07 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [13:58:12]process_action close_receipt done [13:58:12]requested_data is exist [13:58:12]produce_requested_data [13:58:12]requested_item fm.sn is exist - process it [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 11 00 00 [13:58:12]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 17 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [13:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [13:58:12]wFMCommunicate OK [13:58:12]requested_item fd.num is exist - process it [13:58:12]SAM_PROTO_GetFieldsCounters [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 13 00 00 [13:58:12]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 62 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 62 00 29 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:58:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:12]wFMCommunicate OK [13:58:12]SAM_PROTO_GetFieldsCounters done [13:58:12]requested_item shift.num is exist - process it [13:58:12]requested_item shift.opened is exist - process it [13:58:12]req_shift_opened [13:58:12]FM_GetShiftState [13:58:12]SAM_PROTO_GetShiftState [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 13 01 00 [13:58:12]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 0E 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 76 [13:58:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [13:58:12]wFMCommunicate OK [13:58:12]SAM_PROTO_GetShiftState done [13:58:12]FM_GetShiftState done [13:58:12]req_shift_opened done [13:58:12]requested_item shift.open_date is exist - process it [13:58:12]req_shift_open_date [13:58:12]req_shift_open_date done [13:58:12]produce_requested_data done [13:58:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119099,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [13:58:12]process_action_free close_receipt [13:58:12]json_value_free [13:58:12]json_value_free done [13:58:12]process_json_proto returns [13:58:12]Send response to host [13:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119099,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [13:58:12]free response buf [13:58:12]execute_script done [13:58:12]execute_script returns [13:58:12]free content buf [13:58:12]Sock 9.Close socket [13:58:12]Sock 9.Thread stoped [13:58:14]Connected sock=11 [13:58:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 17 7A 07 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D6 B0 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 1F 20 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 20 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 8B 00 00 00 00 07 04 06 00 1C 20 05 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 71 F1 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3B D1 01 00 35 04 06 00 76 0C E2 47 4B 7A 6D CC 6E 18 5B DE 26 C2 [13:58:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 68 33 47 00 CB 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 34 39 33 39 10 04 04 00 3B D1 01 00 F4 03 04 00 00 9F A8 66 B6 04 01 00 00 5B CD 82 FD 1F 10 6B F7 [13:58:16]CommunicateWithHost err = 0 [13:58:16]CheckOFDResponse [13:58:16]1017 (14) - 77093643461234 [13:58:16]1041 (16) - 0000000000874939 [13:58:16]1040 (4) - 119099 [13:58:16]1012 (4) - 30.07.2024 08:06 [13:58:16]1206 (1) - 0 [13:58:16]OFD Sender: Remove packet 119099 [13:58:16]ProducePacketName [13:58:16]name=ofd_packets/00119099 [13:58:16]NVStorageDeleteData [13:58:17]OFD Sender: No OFD packet to send [13:58:19]recv_with_timeout no data received [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:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:40]ConnectInit Can't connect to host [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:15]recv_with_timeout no data received [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:55]accept exits with 7 [14:07:55]New connection [14:07:55]New thread 3067018596 created [14:07:55]Thread 3066875236 joined [14:07:55]Waiting for new connection... [14:07:55] Sock 7.Parse request [14:07:55]Sock 7.Check first char [14:07:55]Sock 7.First char is OK [14:07:55]request: POST /json_proto HTTP/1.0 [14:07:55]Method: POST [14:07:55]URL: /json_proto [14:07:55]Method is POST - this is cgi request [14:07:55]url: /json_proto [14:07:55]query_string will be loaded in cgi processing [14:07:55]execute_cgi json_proto POST (null) [14:07:55]execute_cgi path=json_proto method=POST [14:07:55]POST find Content-Length [14:07:55]Host: 172.17.45.7:8080 [14:07:55]Content-Length: 677 [14:07:55]Content-Type: application/json [14:07:55] [14:07:55]POST finish read [14:07:55]Found Content-Length = 677 [14:07:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:55]execute_script... [14:07: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)950019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:07:55]POST & json_proto [14:07:55]process_json_proto [14:07:55]json parsed OK: [14:07:55]protocol is kg_v1.0 [14:07:55]action value=close_receipt [14:07:55]process_action close_receipt [14:07:55]cmd_close_receipt [14:07:55]MH_GetDate [14:07:55]Write to MH i2c: F0 00 00 2B 04 1E [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: F0 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: F0 09 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: F0 09 00 2B 04 00 BC F3 A8 66 90 0F 3E 66 27 [14:07:55]GetLastDocTimeStamp 1722347889 [14:07:55]current date 1722348476 [14:07:55]FM_GetShiftState [14:07:55]SAM_PROTO_GetShiftState [14:07:55]wFMCommunicate request_size=4 [14:07:55]MH_SAM_APDU [14:07:55]CAPDU: 80 13 01 00 [14:07:55]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [14:07:55]Write i2c OK [14:07:55]MH_I2C_Read... [14:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:55]Read from MH i2c: E2 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 [14:07:55]MH_I2C_Read... [14:07:55]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 78 [14:07:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:07:55]wFMCommunicate OK [14:07:55]SAM_PROTO_GetShiftState done [14:07:55]FM_GetShiftState done [14:07:55]opened in 1722298242 [14:07:55]opened+sec_in_day 1722384642 [14:07:55]quantity*price = 50036 [14:07:55]sum+1 = 50037 [14:07:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 152 30.07.2024 14:07 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119100 ФПД: 6882286799851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T140756&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119100&fm=6882286799851&tin=02508201610067®Number=0000000000092660&sum=50000 [14:07:56]StoreToDocumentArchive [14:07:56]shift 435 fd 119100 [14:07:56]save to /storage/0435/doc_00119100 [14:07:56]save last doc name /storage/0435/doc_00119100 to /storage/kkm_last_doc_name [14:07:56]save OK [14:07:56]Clear old archive folders... [14:07:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:07:56]tlvbuf is 00D5B260 [14:07:56]SAM_PROTO_ClearQueue [14:07:56]wFMCommunicate request_size=4 [14:07:56]MH_SAM_APDU [14:07:56]CAPDU: 80 09 00 00 [14:07:56]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:56]Read from MH i2c: E2 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 03 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [14:07:56]RAPDU: 90 00 [14:07:56]wFMCommunicate OK [14:07:56]SAM_PROTO_ClearQueue done [14:07:56]KKMCreateOFDPacket [14:07:56]OFDProtocolAddRootSTLVToBuf [14:07:56]FM_MakeSignedData [14:07:56]FM_MakeSignedData [14:07:56]SAM_PROTO_SignData [14:07:56]wFMCommunicate request_size=4 [14:07:56]MH_SAM_APDU [14:07:56]CAPDU: 80 0D 01 02 [14:07:56]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:56]Read from MH i2c: E2 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 03 00 [14:07:56]MH_I2C_Read... [14:07:56]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [14:07:56]RAPDU: 90 00 [14:07:56]wFMCommunicate OK [14:07:56]wFMCommunicate request_size=255 [14:07:56]MH_SAM_APDU [14:07: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BC F3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D1 01 00 35 04 06 00 06 [14:07:56]Write to MH i2c: E2 02 01 3B 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BC F3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D1 01 00 35 04 06 00 06 00 00 58 [14:07:56]Write i2c OK [14:07:56]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 03 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [14:07:57]RAPDU: 90 00 [14:07:57]wFMCommunicate OK [14:07:57]wFMCommunicate request_size=10 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 0D 02 02 05 42 68 42 8B EB [14:07:57]Write to MH i2c: E2 0D 00 3C 04 80 0D 02 02 05 00 42 68 42 8B EB 00 00 26 [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 03 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [14:07:57]RAPDU: 90 00 [14:07:57]wFMCommunicate OK [14:07:57]wFMCommunicate request_size=4 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 0D 03 02 [14:07:57]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 0B 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 0B 00 3D 04 00 F7 A1 F7 EA 32 1A 77 B2 90 00 AB [14:07:57]RAPDU: F7 A1 F7 EA 32 1A 77 B2 90 00 [14:07:57]wFMCommunicate OK [14:07:57]SAM_PROTO_SignData done [14:07:57]FM_MakeSignedData done [14:07:57]CreateOFDProtocolMessage [14:07:57]wFMCommunicate request_size=4 [14:07:57]MH_SAM_APDU [14:07:57]CAPDU: 80 11 00 00 [14:07:57]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:57]Read from MH i2c: E2 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 17 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [14:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:07:57]wFMCommunicate OK [14:07:57]CreateOFDProtocolMessage done [14:07:57]OFDSenderStorePacket 119100 [14:07:57]StoreOFDPacket docnum=119100 [14:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 51 07 01 86 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BC F3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D1 01 00 35 04 06 00 06 42 68 42 8B EB F7 A1 F7 EA 32 1A 77 B2 [14:07:57]CheckFolder [14:07:57]dirname=/storage/ofd_packets [14:07:57]CheckFolder done [14:07:57]ProducePacketName [14:07:57]name=ofd_packets/00119100 [14:07:57]NVStorageSaveData ofd_packets/00119100 [14:07:57]File name is /storage/ofd_packets/00119100 [14:07:57]Write 301 bytes [14:07:57]NVStorageSaveData done [14:07:57]OFDSenderStorePacket done [14:07:57]KKMCreateOFDPacket done [14:07:57]NVStorageSaveData kkm_last_timestamp [14:07:57]File name is /storage/kkm_last_timestamp [14:07:57]Write 4 bytes [14:07:57]NVStorageSaveData done [14:07:57]ExternCall_PrintAddStr [14:07:57]wPrintStart [14:07:57]Write to MH i2c: 01 00 00 3F 04 43 [14:07:57]Write i2c OK [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: 01 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: 01 07 00 [14:07:57]MH_I2C_Read... [14:07:57]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [14:07:57]RasterBufferAndPrint [14:07:57]line Счет N : (1)950019 [14:07:57]line ИНН: 02508201610067 [14:07:57]line Контрольно-Кассовый Чек [14:07:57]line ПРОДАЖА [14:07:57]line ТРК (МРК, ГНК) : 41 [14:07:57]line Товар: 2710124130 [14:07:57]line Аи-92-К-4 [14:07:57]line 7.380 * 67.80 [14:07:57]line = 500.36 [14:07:57]line НДС 12% НСП 1% [14:07:57]line > о реализуемом товаре [14:07:57]line ОКРУГЛЕНИЕ: -0.36 [14:07:57]line ИТОГО: 500.00 [14:07:57]line Внесено: 500.00 [14:07:57]line СДАЧА: 0.00 [14:07:57]line НСП 1% : 4.43 [14:07:57]line НДС 12% : 53.14 [14:07:57]line Наличными: 500.00 [14:07:57]line Безнал.: 0.00 [14:07:57]line Место: АЗС № 134 "Партнер Нефть" [14:07:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:07:57]line СНО: Общий режим [14:07:57]line Чек 152 30.07.2024 14:07 [14:07:57]line Смена: 435 ФФД: 1.0 [14:07:57]line ЗНМ: 0300000044 [14:07:57]line РНМ: 0000000000092660 [14:07:57]line Версия ККМ: 001 [14:07:57]line ФМ: 0000000000874939 [14:07:57]line ФД: 119100 [14:07:57]line ФПД: 6882286799851 [14:07:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T140756&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119100&fm=6882286799851&tin=02508201610067®Number=0000000000092660&sum=50000 [14:07:57]OFD Sender: Processing packet 119100 [packets to send 86, broken 85] [14:07:57]ProducePacketName [14:07:57]name=ofd_packets/00119100 [14:07:57]OFD Sender: To server: pG, [14:07:57]CommunicateWithHost lk.salyk.kg:30040 [14:07:57]ConnectInit lk.salyk.kg [14:07:57]written 0, free lines is 4095 [14:07:58]Write to MH i2c: 01 00 00 69 04 6D [14:07:58]Write i2c OK [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: 01 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: 01 07 00 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 D0 0C 50 [14:07:58]RasterBufferAndPrint [14:07:58]line [14:07:58]line [14:07:58]line [14:07:58]line [14:07:58]line [14:07:58]written 0, free lines is 3284 [14:07:58]MH_Cut [14:07:58]Write to MH i2c: D1 01 00 70 04 01 46 [14:07:58]Write i2c OK [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: D1 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: D1 01 00 [14:07:58]MH_I2C_Read... [14:07:58]Read from MH i2c: D1 01 00 70 04 00 45 [14:07:58]Write to MH i2c: 01 00 00 71 04 75 [14:07:58]Write i2c OK [14:07:58]MH_I2C_Read... [14:07:58]*** Cut start [14:07:58]*** Partial cut [14:07:58]*** CUTSNS_PIN = 1 [14:07:58]*** CUTSNS_PIN = 0 [14:07:59]*** Brake cut motor [14:07:59]Read from MH i2c: 01 [14:07:59]MH_I2C_Read... [14:07:59]*** Stop cut motor [14:07:59]*** Cut end [14:07:59]Read from MH i2c: 01 07 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [14:07:59]process_action close_receipt done [14:07:59]requested_data is exist [14:07:59]produce_requested_data [14:07:59]requested_item fm.sn is exist - process it [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 11 00 00 [14:07:59]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]Connected sock=10 [14:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B2 51 07 01 86 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 BC F3 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D1 01 00 35 04 06 00 06 42 68 42 8B EB F7 A1 F7 EA 32 1A 77 B2 [14:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 17 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [14:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:07:59]wFMCommunicate OK [14:07:59]requested_item fd.num is exist - process it [14:07:59]SAM_PROTO_GetFieldsCounters [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 13 00 00 [14:07:59]Write to MH i2c: E2 08 00 73 04 80 13 00 00 00 00 00 00 F3 [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 62 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 62 00 73 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [14:07:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:59]wFMCommunicate OK [14:07:59]SAM_PROTO_GetFieldsCounters done [14:07:59]requested_item shift.num is exist - process it [14:07:59]requested_item shift.opened is exist - process it [14:07:59]req_shift_opened [14:07:59]FM_GetShiftState [14:07:59]SAM_PROTO_GetShiftState [14:07:59]wFMCommunicate request_size=4 [14:07:59]MH_SAM_APDU [14:07:59]CAPDU: 80 13 01 00 [14:07:59]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [14:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D9 AC 47 00 51 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3C D1 01 00 F4 03 04 00 49 A1 A8 66 B6 04 01 00 00 80 FA B3 99 3F CA 0E 2A [14:07:59]CommunicateWithHost err = 0 [14:07:59]CheckOFDResponse [14:07:59]1017 (14) - 77093643461234 [14:07:59]1041 (16) - 0000000000874939 [14:07:59]1040 (4) - 119100 [14:07:59]1012 (4) - 30.07.2024 08:16 [14:07:59]1206 (1) - 0 [14:07:59]OFD Sender: Remove packet 119100 [14:07:59]ProducePacketName [14:07:59]name=ofd_packets/00119100 [14:07:59]NVStorageDeleteData [14:07:59]Write i2c OK [14:07:59]MH_I2C_Read... [14:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:59]Read from MH i2c: E2 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 0E 00 [14:07:59]MH_I2C_Read... [14:07:59]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C0 [14:07:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:07:59]wFMCommunicate OK [14:07:59]SAM_PROTO_GetShiftState done [14:07:59]FM_GetShiftState done [14:07:59]req_shift_opened done [14:07:59]requested_item shift.open_date is exist - process it [14:07:59]req_shift_open_date [14:07:59]req_shift_open_date done [14:07:59]produce_requested_data done [14:07:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119100,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:07:59]process_action_free close_receipt [14:07:59]json_value_free [14:07:59]json_value_free done [14:07:59]process_json_proto returns [14:07:59]Send response to host [14:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119100,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:07:59]free response buf [14:07:59]execute_script done [14:07:59]execute_script returns [14:07:59]free content buf [14:07:59]Sock 7.Close socket [14:07:59]Sock 7.Thread stoped [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:09]recv_with_timeout no data received [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:02]accept exits with 9 [14:11:02]New connection [14:11:02]New thread 3066875236 created [14:11:02]Thread 3067018596 joined [14:11:02]Waiting for new connection... [14:11:02] Sock 9.Parse request [14:11:02]Sock 9.Check first char [14:11:02]Sock 9.First char is OK [14:11:02]request: POST /json_proto HTTP/1.0 [14:11:02]Method: POST [14:11:02]URL: /json_proto [14:11:02]Method is POST - this is cgi request [14:11:02]url: /json_proto [14:11:02]query_string will be loaded in cgi processing [14:11:02]execute_cgi json_proto POST (null) [14:11:02]execute_cgi path=json_proto method=POST [14:11:02]POST find Content-Length [14:11:02]Host: 172.17.45.7:8080 [14:11:02]Content-Length: 677 [14:11:02]Content-Type: application/json [14:11:02] [14:11:02]POST finish read [14:11:02]Found Content-Length = 677 [14:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:02]execute_script... [14:11: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)950020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:02]POST & json_proto [14:11:02]process_json_proto [14:11:02]json parsed OK: [14:11:02]protocol is kg_v1.0 [14:11:02]action value=close_receipt [14:11:02]process_action close_receipt [14:11:02]cmd_close_receipt [14:11:02]MH_GetDate [14:11:02]Write to MH i2c: F0 00 00 75 04 68 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: F0 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: F0 09 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: F0 09 00 75 04 00 77 F4 A8 66 90 0F 3E 66 2D [14:11:02]GetLastDocTimeStamp 1722348476 [14:11:02]current date 1722348663 [14:11:02]FM_GetShiftState [14:11:02]SAM_PROTO_GetShiftState [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 13 01 00 [14:11:02]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0E 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C2 [14:11:02]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:11:02]wFMCommunicate OK [14:11:02]SAM_PROTO_GetShiftState done [14:11:02]FM_GetShiftState done [14:11:02]opened in 1722298242 [14:11:02]opened+sec_in_day 1722384642 [14:11:02]quantity*price = 50036 [14:11:02]sum+1 = 50037 [14:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 153 30.07.2024 14:11 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119101 ФПД: 127723929425659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T141103&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119101&fm=127723929425659&tin=02508201610067®Number=0000000000092660&sum=50000 [14:11:03]StoreToDocumentArchive [14:11:03]shift 435 fd 119101 [14:11:03]save to /storage/0435/doc_00119101 [14:11:03]save last doc name /storage/0435/doc_00119101 to /storage/kkm_last_doc_name [14:11:03]save OK [14:11:03]Clear old archive folders... [14:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:03]tlvbuf is 00DF1120 [14:11:03]SAM_PROTO_ClearQueue [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 09 00 00 [14:11:03]Write to MH i2c: E2 08 00 83 04 80 09 00 00 00 00 00 00 F9 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [14:11:03]RAPDU: 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_ClearQueue done [14:11:03]KKMCreateOFDPacket [14:11:03]OFDProtocolAddRootSTLVToBuf [14:11:03]FM_MakeSignedData [14:11:03]FM_MakeSignedData [14:11:03]SAM_PROTO_SignData [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 0D 01 02 [14:11:03]Write to MH i2c: E2 08 00 84 04 80 0D 01 02 00 00 00 00 01 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [14:11:03]RAPDU: 90 00 [14:11:03]wFMCommunicate OK [14:11:03]wFMCommunicate request_size=255 [14:11:03]MH_SAM_APDU [14:11: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 77 F4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D1 01 00 35 04 06 00 74 [14:11:03]Write to MH i2c: E2 02 01 85 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 77 F4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D1 01 00 35 04 06 00 74 00 00 CE [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [14:11:03]RAPDU: 90 00 [14:11:03]wFMCommunicate OK [14:11:03]wFMCommunicate request_size=10 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 0D 02 02 05 2A 0B 71 56 FB [14:11:03]Write to MH i2c: E2 0D 00 86 04 80 0D 02 02 05 00 2A 0B 71 56 FB 00 00 05 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [14:11:03]RAPDU: 90 00 [14:11:03]wFMCommunicate OK [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 0D 03 02 [14:11:03]Write to MH i2c: E2 08 00 87 04 80 0D 03 02 00 00 00 00 06 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0B 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 0B 00 87 04 00 F3 C2 03 4B 48 68 15 6B 90 00 3A [14:11:03]RAPDU: F3 C2 03 4B 48 68 15 6B 90 00 [14:11:03]wFMCommunicate OK [14:11:03]SAM_PROTO_SignData done [14:11:03]FM_MakeSignedData done [14:11:03]CreateOFDProtocolMessage [14:11:03]wFMCommunicate request_size=4 [14:11:03]MH_SAM_APDU [14:11:03]CAPDU: 80 11 00 00 [14:11:03]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:03]Read from MH i2c: E2 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: E2 17 00 [14:11:03]MH_I2C_Read... [14:11:04]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [14:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:11:04]wFMCommunicate OK [14:11:04]CreateOFDProtocolMessage done [14:11:04]OFDSenderStorePacket 119101 [14:11:04]StoreOFDPacket docnum=119101 [14:11:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0E 4B 07 01 80 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 77 F4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D1 01 00 35 04 06 00 74 2A 0B 71 56 FB F3 C2 03 4B 48 68 15 6B [14:11:04]CheckFolder [14:11:04]dirname=/storage/ofd_packets [14:11:04]CheckFolder done [14:11:04]ProducePacketName [14:11:04]name=ofd_packets/00119101 [14:11:04]NVStorageSaveData ofd_packets/00119101 [14:11:04]File name is /storage/ofd_packets/00119101 [14:11:04]Write 301 bytes [14:11:04]NVStorageSaveData done [14:11:04]OFDSenderStorePacket done [14:11:04]KKMCreateOFDPacket done [14:11:04]NVStorageSaveData kkm_last_timestamp [14:11:04]File name is /storage/kkm_last_timestamp [14:11:04]Write 4 bytes [14:11:04]NVStorageSaveData done [14:11:04]ExternCall_PrintAddStr [14:11:04]wPrintStart [14:11:04]Write to MH i2c: 01 00 00 89 04 8D [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 FF 0F A2 [14:11:04]RasterBufferAndPrint [14:11:04]line Счет N : (1)950020 [14:11:04]line ИНН: 02508201610067 [14:11:04]line Контрольно-Кассовый Чек [14:11:04]line ПРОДАЖА [14:11:04]line ТРК (МРК, ГНК) : 51 [14:11:04]line Товар: 2710124130 [14:11:04]line Аи-92-К-4 [14:11:04]line 7.380 * 67.80 [14:11:04]line = 500.36 [14:11:04]line НДС 12% НСП 1% [14:11:04]line > о реализуемом товаре [14:11:04]line ОКРУГЛЕНИЕ: -0.36 [14:11:04]line ИТОГО: 500.00 [14:11:04]line Внесено: 500.00 [14:11:04]line СДАЧА: 0.00 [14:11:04]line НСП 1% : 4.43 [14:11:04]line НДС 12% : 53.14 [14:11:04]line Наличными: 500.00 [14:11:04]line Безнал.: 0.00 [14:11:04]line Место: АЗС № 134 "Партнер Нефть" [14:11:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:11:04]line СНО: Общий режим [14:11:04]line Чек 153 30.07.2024 14:11 [14:11:04]line Смена: 435 ФФД: 1.0 [14:11:04]line ЗНМ: 0300000044 [14:11:04]line РНМ: 0000000000092660 [14:11:04]line Версия ККМ: 001 [14:11:04]line ФМ: 0000000000874939 [14:11:04]line ФД: 119101 [14:11:04]line ФПД: 127723929425659 [14:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T141103&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119101&fm=127723929425659&tin=02508201610067®Number=0000000000092660&sum=50000 [14:11:04]written 0, free lines is 4095 [14:11:04]OFD Sender: Processing packet 119101 [packets to send 86, broken 85] [14:11:04]ProducePacketName [14:11:04]name=ofd_packets/00119101 [14:11:04]OFD Sender: To server: pG, [14:11:04]CommunicateWithHost lk.salyk.kg:30040 [14:11:04]ConnectInit lk.salyk.kg [14:11:04]Write to MH i2c: 01 00 00 B3 04 B7 [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 D2 0C 9C [14:11:04]RasterBufferAndPrint [14:11:04]line [14:11:04]line [14:11:04]line [14:11:04]line [14:11:04]line [14:11:04]written 0, free lines is 3288 [14:11:04]MH_Cut [14:11:04]Write to MH i2c: D1 01 00 BA 04 01 90 [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: D1 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: D1 01 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: D1 01 00 BA 04 00 8F [14:11:04]Write to MH i2c: 01 00 00 BB 04 BF [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:05]*** Cut start [14:11:05]*** Partial cut [14:11:05]*** CUTSNS_PIN = 1 [14:11:05]*** CUTSNS_PIN = 0 [14:11:05]Connected sock=10 [14:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 0E 4B 07 01 80 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 77 F4 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D1 01 00 35 04 06 00 74 2A 0B 71 56 FB F3 C2 03 4B 48 68 15 6B [14:11:05]*** Brake cut motor [14:11:05]Read from MH i2c: 01 [14:11:05]MH_I2C_Read... [14:11:05]*** Stop cut motor [14:11:05]*** Cut end [14:11:05]Read from MH i2c: 01 07 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [14:11:05]process_action close_receipt done [14:11:05]requested_data is exist [14:11:05]produce_requested_data [14:11:05]requested_item fm.sn is exist - process it [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 11 00 00 [14:11:05]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 17 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [14:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:11:05]wFMCommunicate OK [14:11:05]requested_item fd.num is exist - process it [14:11:05]SAM_PROTO_GetFieldsCounters [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 13 00 00 [14:11:05]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 62 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 62 00 BD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [14:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:05]wFMCommunicate OK [14:11:05]SAM_PROTO_GetFieldsCounters done [14:11:05]requested_item shift.num is exist - process it [14:11:05]requested_item shift.opened is exist - process it [14:11:05]req_shift_opened [14:11:05]FM_GetShiftState [14:11:05]SAM_PROTO_GetShiftState [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 13 01 00 [14:11:05]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:06]Read from MH i2c: E2 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 0E 00 [14:11:06]MH_I2C_Read... [14:11:06]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0A [14:11:06]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:11:06]wFMCommunicate OK [14:11:06]SAM_PROTO_GetShiftState done [14:11:06]FM_GetShiftState done [14:11:06]req_shift_opened done [14:11:06]requested_item shift.open_date is exist - process it [14:11:06]req_shift_open_date [14:11:06]req_shift_open_date done [14:11:06]produce_requested_data done [14:11:06]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119101,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:11:06]process_action_free close_receipt [14:11:06]json_value_free [14:11:06]json_value_free done [14:11:06]process_json_proto returns [14:11:06]Send response to host [14:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119101,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:11:06]free response buf [14:11:06]execute_script done [14:11:06]execute_script returns [14:11:06]free content buf [14:11:06]Sock 9.Close socket [14:11:06]Sock 9.Thread stoped [14:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 98 4D 47 00 8D 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3D D1 01 00 F4 03 04 00 03 A2 A8 66 B6 04 01 00 00 5F F8 60 B5 EF C1 3A 54 [14:11:07]CommunicateWithHost err = 0 [14:11:07]CheckOFDResponse [14:11:07]1017 (14) - 77093643461234 [14:11:07]1041 (16) - 0000000000874939 [14:11:07]1040 (4) - 119101 [14:11:07]1012 (4) - 30.07.2024 08:19 [14:11:07]1206 (1) - 0 [14:11:07]OFD Sender: Remove packet 119101 [14:11:07]ProducePacketName [14:11:07]name=ofd_packets/00119101 [14:11:07]NVStorageDeleteData [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:14:40]ConnectInit Can't connect to host [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]accept exits with 7 [14:15:27]New connection [14:15:27]New thread 3067018596 created [14:15:27]Thread 3066875236 joined [14:15:27]Waiting for new connection... [14:15:27] Sock 7.Parse request [14:15:27]Sock 7.Check first char [14:15:27]Sock 7.First char is OK [14:15:27]request: POST /json_proto HTTP/1.0 [14:15:27]Method: POST [14:15:27]URL: /json_proto [14:15:27]Method is POST - this is cgi request [14:15:27]url: /json_proto [14:15:27]query_string will be loaded in cgi processing [14:15:27]execute_cgi json_proto POST (null) [14:15:27]execute_cgi path=json_proto method=POST [14:15:27]POST find Content-Length [14:15:27]Host: 172.17.45.7:8080 [14:15:27]Content-Length: 674 [14:15:27]Content-Type: application/json [14:15:27] [14:15:27]POST finish read [14:15:27]Found Content-Length = 674 [14:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:27]execute_script... [14:15: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)950021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:27]POST & json_proto [14:15:27]process_json_proto [14:15:27]json parsed OK: [14:15:27]protocol is kg_v1.0 [14:15:27]action value=close_receipt [14:15:27]process_action close_receipt [14:15:27]cmd_close_receipt [14:15:27]MH_GetDate [14:15:27]Write to MH i2c: F0 00 00 BF 04 B2 [14:15:27]Write i2c OK [14:15:27]MH_I2C_Read... [14:15:27]Read from MH i2c: F0 [14:15:27]MH_I2C_Read... [14:15:27]Read from MH i2c: F0 09 00 [14:15:27]MH_I2C_Read... [14:15:27]Read from MH i2c: F0 09 00 BF 04 00 80 F5 A8 66 90 0F 3E 66 81 [14:15:27]GetLastDocTimeStamp 1722348663 [14:15:27]current date 1722348928 [14:15:27]FM_GetShiftState [14:15:27]SAM_PROTO_GetShiftState [14:15:27]wFMCommunicate request_size=4 [14:15:27]MH_SAM_APDU [14:15:27]CAPDU: 80 13 01 00 [14:15:27]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [14:15:27]Write i2c OK [14:15:27]MH_I2C_Read... [14:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:27]Read from MH i2c: E2 [14:15:27]MH_I2C_Read... [14:15:27]Read from MH i2c: E2 0E 00 [14:15:27]MH_I2C_Read... [14:15:27]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0C [14:15:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:15:27]wFMCommunicate OK [14:15:27]SAM_PROTO_GetShiftState done [14:15:27]FM_GetShiftState done [14:15:27]opened in 1722298242 [14:15:27]opened+sec_in_day 1722384642 [14:15:27]quantity*price = 70027 [14:15:27]sum+1 = 70029 [14:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 154 30.07.2024 14:15 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119102 ФПД: 83933600967157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T141528&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119102&fm=83933600967157&tin=02508201610067®Number=0000000000092660&sum=70000 [14:15:28]StoreToDocumentArchive [14:15:28]shift 435 fd 119102 [14:15:28]save to /storage/0435/doc_00119102 [14:15:28]save last doc name /storage/0435/doc_00119102 to /storage/kkm_last_doc_name [14:15:28]save OK [14:15:28]Clear old archive folders... [14:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:15:28]tlvbuf is 00DF2D20 [14:15:28]SAM_PROTO_ClearQueue [14:15:28]wFMCommunicate request_size=4 [14:15:28]MH_SAM_APDU [14:15:28]CAPDU: 80 09 00 00 [14:15:28]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [14:15:28]Write i2c OK [14:15:28]MH_I2C_Read... [14:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:28]Read from MH i2c: E2 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 03 00 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [14:15:28]RAPDU: 90 00 [14:15:28]wFMCommunicate OK [14:15:28]SAM_PROTO_ClearQueue done [14:15:28]KKMCreateOFDPacket [14:15:28]OFDProtocolAddRootSTLVToBuf [14:15:28]FM_MakeSignedData [14:15:28]FM_MakeSignedData [14:15:28]SAM_PROTO_SignData [14:15:28]wFMCommunicate request_size=4 [14:15:28]MH_SAM_APDU [14:15:28]CAPDU: 80 0D 01 02 [14:15:28]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [14:15:28]Write i2c OK [14:15:28]MH_I2C_Read... [14:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:28]Read from MH i2c: E2 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 03 00 [14:15:28]MH_I2C_Read... [14:15:28]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [14:15:28]RAPDU: 90 00 [14:15:28]wFMCommunicate OK [14:15:28]wFMCommunicate request_size=255 [14:15:28]MH_SAM_APDU [14:15:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 80 F5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D1 01 00 35 04 06 00 4C 56 50 78 [14:15:28]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 80 F5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D1 01 00 35 04 06 00 4C 56 50 78 00 00 22 [14:15:28]Write i2c OK [14:15:28]MH_I2C_Read... [14:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:29]Read from MH i2c: E2 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 03 00 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [14:15:29]RAPDU: 90 00 [14:15:29]wFMCommunicate OK [14:15:29]wFMCommunicate request_size=7 [14:15:29]MH_SAM_APDU [14:15:29]CAPDU: 80 0D 02 02 02 69 F5 [14:15:29]Write to MH i2c: E2 0A 00 D0 04 80 0D 02 02 02 00 69 F5 00 00 B0 [14:15:29]Write i2c OK [14:15:29]MH_I2C_Read... [14:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:29]Read from MH i2c: E2 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 03 00 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [14:15:29]RAPDU: 90 00 [14:15:29]wFMCommunicate OK [14:15:29]wFMCommunicate request_size=4 [14:15:29]MH_SAM_APDU [14:15:29]CAPDU: 80 0D 03 02 [14:15:29]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [14:15:29]Write i2c OK [14:15:29]MH_I2C_Read... [14:15:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:29]Read from MH i2c: E2 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 0B 00 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 0B 00 D1 04 00 21 0C 78 EB B8 23 0A 1B 90 00 E1 [14:15:29]RAPDU: 21 0C 78 EB B8 23 0A 1B 90 00 [14:15:29]wFMCommunicate OK [14:15:29]SAM_PROTO_SignData done [14:15:29]FM_MakeSignedData done [14:15:29]CreateOFDProtocolMessage [14:15:29]wFMCommunicate request_size=4 [14:15:29]MH_SAM_APDU [14:15:29]CAPDU: 80 11 00 00 [14:15:29]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [14:15:29]Write i2c OK [14:15:29]MH_I2C_Read... [14:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:29]Read from MH i2c: E2 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 17 00 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [14:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:15:29]wFMCommunicate OK [14:15:29]CreateOFDProtocolMessage done [14:15:29]OFDSenderStorePacket 119102 [14:15:29]StoreOFDPacket docnum=119102 [14:15:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 73 C9 04 01 13 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 80 F5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D1 01 00 35 04 06 00 4C 56 50 78 69 F5 21 0C 78 EB B8 23 0A 1B [14:15:29]CheckFolder [14:15:29]dirname=/storage/ofd_packets [14:15:29]CheckFolder done [14:15:29]ProducePacketName [14:15:29]name=ofd_packets/00119102 [14:15:29]NVStorageSaveData ofd_packets/00119102 [14:15:29]File name is /storage/ofd_packets/00119102 [14:15:29]Write 298 bytes [14:15:29]NVStorageSaveData done [14:15:29]OFDSenderStorePacket done [14:15:29]KKMCreateOFDPacket done [14:15:29]NVStorageSaveData kkm_last_timestamp [14:15:29]File name is /storage/kkm_last_timestamp [14:15:29]Write 4 bytes [14:15:29]NVStorageSaveData done [14:15:29]ExternCall_PrintAddStr [14:15:29]wPrintStart [14:15:29]Write to MH i2c: 01 00 00 D3 04 D7 [14:15:29]Write i2c OK [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: 01 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: 01 07 00 [14:15:29]MH_I2C_Read... [14:15:29]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [14:15:29]RasterBufferAndPrint [14:15:29]line Счет N : (1)950021 [14:15:29]line ИНН: 02508201610067 [14:15:29]line Контрольно-Кассовый Чек [14:15:29]line ПРОДАЖА [14:15:29]line ТРК (МРК, ГНК) : 21 [14:15:29]line Товар: 2710194800 [14:15:29]line ДТ-К-5 [14:15:29]line 9.190 * 76.20 [14:15:29]line = 700.28 [14:15:29]line НДС 12% НСП 1% [14:15:29]line > о реализуемом товаре [14:15:29]line ОКРУГЛЕНИЕ: -0.28 [14:15:29]line ИТОГО: 700.00 [14:15:29]line Внесено: 700.00 [14:15:29]line СДАЧА: 0.00 [14:15:29]line НСП 1% : 6.20 [14:15:29]line НДС 12% : 74.37 [14:15:29]line Наличными: 700.00 [14:15:29]line Безнал.: 0.00 [14:15:29]line Место: АЗС № 134 "Партнер Нефть" [14:15:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:15:29]line СНО: Общий режим [14:15:29]line Чек 154 30.07.2024 14:15 [14:15:29]line Смена: 435 ФФД: 1.0 [14:15:29]line ЗНМ: 0300000044 [14:15:29]line РНМ: 0000000000092660 [14:15:29]line Версия ККМ: 001 [14:15:29]line ФМ: 0000000000874939 [14:15:29]line ФД: 119102 [14:15:29]line ФПД: 83933600967157 [14:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T141528&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119102&fm=83933600967157&tin=02508201610067®Number=0000000000092660&sum=70000 [14:15:29]OFD Sender: Processing packet 119102 [packets to send 86, broken 85] [14:15:29]ProducePacketName [14:15:29]name=ofd_packets/00119102 [14:15:29]OFD Sender: To server: pG, [14:15:29]CommunicateWithHost lk.salyk.kg:30040 [14:15:29]ConnectInit lk.salyk.kg [14:15:29]written 0, free lines is 4095 [14:15:30]Write to MH i2c: 01 00 00 FD 04 01 [14:15:30]Write i2c OK [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: 01 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: 01 07 00 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 D0 0C E4 [14:15:30]RasterBufferAndPrint [14:15:30]line [14:15:30]line [14:15:30]line [14:15:30]line [14:15:30]line [14:15:30]written 0, free lines is 3287 [14:15:30]MH_Cut [14:15:30]Write to MH i2c: D1 01 00 04 05 01 DB [14:15:30]Write i2c OK [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: D1 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: D1 01 00 [14:15:30]MH_I2C_Read... [14:15:30]Read from MH i2c: D1 01 00 04 05 00 DA [14:15:30]Write to MH i2c: 01 00 00 05 05 0A [14:15:30]Write i2c OK [14:15:30]MH_I2C_Read... [14:15:30]*** Cut start [14:15:30]*** Partial cut [14:15:30]*** CUTSNS_PIN = 1 [14:15:30]*** CUTSNS_PIN = 0 [14:15:31]*** Brake cut motor [14:15:31]Read from MH i2c: 01 [14:15:31]MH_I2C_Read... [14:15:31]*** Stop cut motor [14:15:31]*** Cut end [14:15:31]Read from MH i2c: 01 07 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: 01 07 00 05 05 00 00 00 00 00 FF 0F 1F [14:15:31]process_action close_receipt done [14:15:31]requested_data is exist [14:15:31]produce_requested_data [14:15:31]requested_item fm.sn is exist - process it [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 11 00 00 [14:15:31]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 17 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [14:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:15:31]wFMCommunicate OK [14:15:31]requested_item fd.num is exist - process it [14:15:31]SAM_PROTO_GetFieldsCounters [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 13 00 00 [14:15:31]Write to MH i2c: E2 08 00 07 05 80 13 00 00 00 00 00 00 88 [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 62 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 62 00 07 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [14:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:31]wFMCommunicate OK [14:15:31]SAM_PROTO_GetFieldsCounters done [14:15:31]requested_item shift.num is exist - process it [14:15:31]requested_item shift.opened is exist - process it [14:15:31]req_shift_opened [14:15:31]FM_GetShiftState [14:15:31]SAM_PROTO_GetShiftState [14:15:31]wFMCommunicate request_size=4 [14:15:31]MH_SAM_APDU [14:15:31]CAPDU: 80 13 01 00 [14:15:31]Write to MH i2c: E2 08 00 08 05 80 13 01 00 00 00 00 00 8A [14:15:31]Write i2c OK [14:15:31]MH_I2C_Read... [14:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:31]Read from MH i2c: E2 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 0E 00 [14:15:31]MH_I2C_Read... [14:15:31]Read from MH i2c: E2 0E 00 08 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 55 [14:15:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:15:31]wFMCommunicate OK [14:15:31]SAM_PROTO_GetShiftState done [14:15:31]FM_GetShiftState done [14:15:31]req_shift_opened done [14:15:31]requested_item shift.open_date is exist - process it [14:15:31]req_shift_open_date [14:15:31]req_shift_open_date done [14:15:31]produce_requested_data done [14:15:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119102,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:15:31]process_action_free close_receipt [14:15:31]json_value_free [14:15:31]json_value_free done [14:15:31]process_json_proto returns [14:15:31]Send response to host [14:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119102,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:15:31]free response buf [14:15:31]execute_script done [14:15:31]execute_script returns [14:15:31]free content buf [14:15:31]Sock 7.Close socket [14:15:31]Sock 7.Thread stoped [14:15:34]ConnectInit Can't take IP for lk.salyk.kg [14:15:34]CommunicateWithHost connect error [14:15:34]CommunicateWithHost err = -1 [14:15:34]OFD Sender: Server communicate error [14:15:39]int [14:15:39]Write to MH i2c: 01 00 00 09 05 0E [14:15:39]*** FLAG_PRN_KEY set [14:15:39]Write i2c OK [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: 01 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: 01 07 00 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: 01 07 00 09 05 00 08 00 00 00 FF 0F 2B [14:15:39]state=0 [14:15:39]Key pressed [14:15:39]Feed [14:15:39]Write to MH i2c: D8 00 00 0A 05 E6 [14:15:39]Write i2c OK [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: D8 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: D8 01 00 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: D8 01 00 0A 05 00 E7 [14:15:39]int [14:15:39]Write to MH i2c: 01 00 00 0B 05 10 [14:15:39]Write i2c OK [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: 01 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: 01 07 00 [14:15:39]MH_I2C_Read... [14:15:39]Read from MH i2c: 01 07 00 0B 05 00 48 00 00 00 3C 00 9B [14:15:39]state=2 [14:15:39]Key pressed [14:15:39]OFD Sender: Processing packet 119102 [packets to send 86, broken 85] [14:15:39]ProducePacketName [14:15:39]name=ofd_packets/00119102 [14:15:39]OFD Sender: To server: pG, [14:15:39]CommunicateWithHost lk.salyk.kg:30040 [14:15:39]ConnectInit lk.salyk.kg [14:15:40]int [14:15:40]Write to MH i2c: 01 00 00 0C 05 11 [14:15:40]*** FLAG_PRN_KEY reset [14:15:40]Write i2c OK [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: 01 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: 01 07 00 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: 01 07 00 0C 05 00 00 00 00 00 FF 0F 26 [14:15:40]state=2 [14:15:40]Stop feed [14:15:45]Connected sock=7 [14:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 73 C9 04 01 13 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 80 F5 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D1 01 00 35 04 06 00 4C 56 50 78 69 F5 21 0C 78 EB B8 23 0A 1B [14:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C5 45 47 00 EB CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3E D1 01 00 F4 03 04 00 1B A3 A8 66 B6 04 01 00 00 45 EA 00 AD 9A 23 F9 43 [14:15:46]CommunicateWithHost err = 0 [14:15:46]CheckOFDResponse [14:15:46]1017 (14) - 77093643461234 [14:15:46]1041 (16) - 0000000000874939 [14:15:46]1040 (4) - 119102 [14:15:46]1012 (4) - 30.07.2024 08:23 [14:15:46]1206 (1) - 0 [14:15:46]OFD Sender: Remove packet 119102 [14:15:46]ProducePacketName [14:15:46]name=ofd_packets/00119102 [14:15:46]NVStorageDeleteData [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:29]recv_with_timeout no data received [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:55]accept exits with 10 [14:23:55]New connection [14:23:55]New thread 3066875236 created [14:23:55]Thread 3067018596 joined [14:23:55]Waiting for new connection... [14:23:55] Sock 10.Parse request [14:23:55]Sock 10.Check first char [14:23:55]Sock 10.First char is OK [14:23:55]request: POST /json_proto HTTP/1.0 [14:23:55]Method: POST [14:23:55]URL: /json_proto [14:23:55]Method is POST - this is cgi request [14:23:55]url: /json_proto [14:23:55]query_string will be loaded in cgi processing [14:23:55]execute_cgi json_proto POST (null) [14:23:55]execute_cgi path=json_proto method=POST [14:23:55]POST find Content-Length [14:23:55]Host: 172.17.45.7:8080 [14:23:55]Content-Length: 679 [14:23:55]Content-Type: application/json [14:23:55] [14:23:55]POST finish read [14:23:55]Found Content-Length = 679 [14:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:55]execute_script... [14:23: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)950022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:55]POST & json_proto [14:23:55]process_json_proto [14:23:55]json parsed OK: [14:23:55]protocol is kg_v1.0 [14:23:55]action value=close_receipt [14:23:55]process_action close_receipt [14:23:55]cmd_close_receipt [14:23:55]MH_GetDate [14:23:55]Write to MH i2c: F0 00 00 0D 05 01 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: F0 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: F0 09 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: F0 09 00 0D 05 00 7C F7 A8 66 90 0F 3E 66 CE [14:23:55]GetLastDocTimeStamp 1722348928 [14:23:55]current date 1722349436 [14:23:55]FM_GetShiftState [14:23:55]SAM_PROTO_GetShiftState [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 13 01 00 [14:23:55]Write to MH i2c: E2 08 00 0E 05 80 13 01 00 00 00 00 00 90 [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0E 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0E 00 0E 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5B [14:23:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_GetShiftState done [14:23:55]FM_GetShiftState done [14:23:55]opened in 1722298242 [14:23:55]opened+sec_in_day 1722384642 [14:23:55]quantity*price = 100050 [14:23:55]sum+1 = 100052 [14:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 155 30.07.2024 14:23 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119103 ФПД: 26218231821936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T142356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119103&fm=26218231821936&tin=02508201610067®Number=0000000000092660&sum=100000 [14:23:56]StoreToDocumentArchive [14:23:56]shift 435 fd 119103 [14:23:56]save to /storage/0435/doc_00119103 [14:23:56]save last doc name /storage/0435/doc_00119103 to /storage/kkm_last_doc_name [14:23:56]save OK [14:23:56]Clear old archive folders... [14:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:56]tlvbuf is 00D738B0 [14:23:56]SAM_PROTO_ClearQueue [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 09 00 00 [14:23:56]Write to MH i2c: E2 08 00 1B 05 80 09 00 00 00 00 00 00 92 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [14:23:56]RAPDU: 90 00 [14:23:56]wFMCommunicate OK [14:23:56]SAM_PROTO_ClearQueue done [14:23:56]KKMCreateOFDPacket [14:23:56]OFDProtocolAddRootSTLVToBuf [14:23:56]FM_MakeSignedData [14:23:56]FM_MakeSignedData [14:23:56]SAM_PROTO_SignData [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 0D 01 02 [14:23:56]Write to MH i2c: E2 08 00 1C 05 80 0D 01 02 00 00 00 00 9A [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [14:23:56]RAPDU: 90 00 [14:23:56]wFMCommunicate OK [14:23:56]wFMCommunicate request_size=255 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7C F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D1 01 00 35 04 06 00 17 D8 68 64 [14:23:56]Write to MH i2c: E2 02 01 1D 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7C F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D1 01 00 35 04 06 00 17 D8 68 64 00 00 C6 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [14:23:56]RAPDU: 90 00 [14:23:56]wFMCommunicate OK [14:23:56]wFMCommunicate request_size=7 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 0D 02 02 02 F6 70 [14:23:56]Write to MH i2c: E2 0A 00 1E 05 80 0D 02 02 02 00 F6 70 00 00 07 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [14:23:56]RAPDU: 90 00 [14:23:56]wFMCommunicate OK [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 0D 03 02 [14:23:56]Write to MH i2c: E2 08 00 1F 05 80 0D 03 02 00 00 00 00 9F [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 0B 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 0B 00 1F 05 00 83 CE C3 92 B5 E0 34 0B 90 00 1A [14:23:56]RAPDU: 83 CE C3 92 B5 E0 34 0B 90 00 [14:23:56]wFMCommunicate OK [14:23:56]SAM_PROTO_SignData done [14:23:56]FM_MakeSignedData done [14:23:56]CreateOFDProtocolMessage [14:23:56]wFMCommunicate request_size=4 [14:23:56]MH_SAM_APDU [14:23:56]CAPDU: 80 11 00 00 [14:23:56]Write to MH i2c: E2 08 00 20 05 80 11 00 00 00 00 00 00 9F [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:56]Read from MH i2c: E2 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 17 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: E2 17 00 20 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [14:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:23:56]wFMCommunicate OK [14:23:56]CreateOFDProtocolMessage done [14:23:56]OFDSenderStorePacket 119103 [14:23:56]StoreOFDPacket docnum=119103 [14:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9F 2A 04 01 30 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7C F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D1 01 00 35 04 06 00 17 D8 68 64 F6 70 83 CE C3 92 B5 E0 34 0B [14:23:56]CheckFolder [14:23:56]dirname=/storage/ofd_packets [14:23:56]CheckFolder done [14:23:56]ProducePacketName [14:23:56]name=ofd_packets/00119103 [14:23:56]NVStorageSaveData ofd_packets/00119103 [14:23:56]File name is /storage/ofd_packets/00119103 [14:23:56]Write 298 bytes [14:23:56]NVStorageSaveData done [14:23:56]OFDSenderStorePacket done [14:23:56]KKMCreateOFDPacket done [14:23:56]NVStorageSaveData kkm_last_timestamp [14:23:56]File name is /storage/kkm_last_timestamp [14:23:56]Write 4 bytes [14:23:56]NVStorageSaveData done [14:23:56]ExternCall_PrintAddStr [14:23:56]wPrintStart [14:23:56]Write to MH i2c: 01 00 00 21 05 26 [14:23:56]Write i2c OK [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 07 00 [14:23:56]MH_I2C_Read... [14:23:56]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [14:23:56]RasterBufferAndPrint [14:23:56]line Счет N : (1)950022 [14:23:56]line ИНН: 02508201610067 [14:23:56]line Контрольно-Кассовый Чек [14:23:56]line ПРОДАЖА [14:23:56]line ТРК (МРК, ГНК) : 21 [14:23:56]line Товар: 2710194800 [14:23:56]line ДТ-К-5 [14:23:56]line 13.130 * 76.20 [14:23:56]line = 1000.51 [14:23:56]line НДС 12% НСП 1% [14:23:56]line > о реализуемом товаре [14:23:56]line ОКРУГЛЕНИЕ: -0.51 [14:23:56]line ИТОГО: 1000.00 [14:23:56]line Внесено: 1000.00 [14:23:56]line СДАЧА: 0.00 [14:23:56]line НСП 1% : 8.85 [14:23:56]line НДС 12% : 106.25 [14:23:56]line Наличными: 1000.00 [14:23:56]line Безнал.: 0.00 [14:23:56]line Место: АЗС № 134 "Партнер Нефть" [14:23:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:23:56]line СНО: Общий режим [14:23:56]line Чек 155 30.07.2024 14:23 [14:23:56]line Смена: 435 ФФД: 1.0 [14:23:56]line ЗНМ: 0300000044 [14:23:56]line РНМ: 0000000000092660 [14:23:56]line Версия ККМ: 001 [14:23:56]line ФМ: 0000000000874939 [14:23:56]line ФД: 119103 [14:23:56]line ФПД: 26218231821936 [14:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T142356&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119103&fm=26218231821936&tin=02508201610067®Number=0000000000092660&sum=100000 [14:23:57]OFD Sender: Processing packet 119103 [packets to send 86, broken 85] [14:23:57]ProducePacketName [14:23:57]name=ofd_packets/00119103 [14:23:57]OFD Sender: To server: pG, [14:23:57]CommunicateWithHost lk.salyk.kg:30040 [14:23:57]ConnectInit lk.salyk.kg [14:23:57]written 0, free lines is 4095 [14:23:57]Write to MH i2c: 01 00 00 4B 05 50 [14:23:57]Write i2c OK [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: 01 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: 01 07 00 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 D4 0C 37 [14:23:57]RasterBufferAndPrint [14:23:57]line [14:23:57]line [14:23:57]line [14:23:57]line [14:23:57]line [14:23:57]written 0, free lines is 3290 [14:23:57]MH_Cut [14:23:57]Write to MH i2c: D1 01 00 52 05 01 29 [14:23:57]Write i2c OK [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: D1 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: D1 01 00 [14:23:57]MH_I2C_Read... [14:23:57]Read from MH i2c: D1 01 00 52 05 00 28 [14:23:57]Write to MH i2c: 01 00 00 53 05 58 [14:23:57]Write i2c OK [14:23:57]MH_I2C_Read... [14:23:58]*** Cut start [14:23:58]*** Partial cut [14:23:58]*** CUTSNS_PIN = 1 [14:23:58]*** CUTSNS_PIN = 0 [14:23:58]*** Brake cut motor [14:23:58]Read from MH i2c: 01 [14:23:58]MH_I2C_Read... [14:23:58]*** Stop cut motor [14:23:59]*** Cut end [14:23:59]Read from MH i2c: 01 07 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [14:23:59]process_action close_receipt done [14:23:59]requested_data is exist [14:23:59]produce_requested_data [14:23:59]requested_item fm.sn is exist - process it [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 11 00 00 [14:23:59]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 17 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2E [14:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:23:59]wFMCommunicate OK [14:23:59]requested_item fd.num is exist - process it [14:23:59]SAM_PROTO_GetFieldsCounters [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 13 00 00 [14:23:59]Write to MH i2c: E2 08 00 55 05 80 13 00 00 00 00 00 00 D6 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 62 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 62 00 55 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [14:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 3F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_GetFieldsCounters done [14:23:59]requested_item shift.num is exist - process it [14:23:59]requested_item shift.opened is exist - process it [14:23:59]req_shift_opened [14:23:59]FM_GetShiftState [14:23:59]SAM_PROTO_GetShiftState [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 13 01 00 [14:23:59]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 0E 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A3 [14:23:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_GetShiftState done [14:23:59]FM_GetShiftState done [14:23:59]req_shift_opened done [14:23:59]requested_item shift.open_date is exist - process it [14:23:59]req_shift_open_date [14:23:59]req_shift_open_date done [14:23:59]produce_requested_data done [14:23:59]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119103,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:23:59]process_action_free close_receipt [14:23:59]json_value_free [14:23:59]json_value_free done [14:23:59]process_json_proto returns [14:23:59]Send response to host [14:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119103,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:23:59]free response buf [14:23:59]execute_script done [14:23:59]execute_script returns [14:23:59]free content buf [14:23:59]Sock 10.Close socket [14:23:59]Sock 10.Thread stoped [14:24:02]ConnectInit Can't take IP for lk.salyk.kg [14:24:02]CommunicateWithHost connect error [14:24:02]CommunicateWithHost err = -1 [14:24:02]OFD Sender: Server communicate error [14:24:07]OFD Sender: Processing packet 119103 [packets to send 86, broken 85] [14:24:07]ProducePacketName [14:24:07]name=ofd_packets/00119103 [14:24:07]OFD Sender: To server: pG, [14:24:07]CommunicateWithHost lk.salyk.kg:30040 [14:24:07]ConnectInit lk.salyk.kg [14:24:10]Connected sock=10 [14:24:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9F 2A 04 01 30 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 7C F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D1 01 00 35 04 06 00 17 D8 68 64 F6 70 83 CE C3 92 B5 E0 34 0B [14:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 56 1A 47 00 8C 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 3F D1 01 00 F4 03 04 00 14 A5 A8 66 B6 04 01 00 00 F6 B5 D1 93 AF B5 3D DD [14:24:11]CommunicateWithHost err = 0 [14:24:11]CheckOFDResponse [14:24:11]1017 (14) - 77093643461234 [14:24:11]1041 (16) - 0000000000874939 [14:24:11]1040 (4) - 119103 [14:24:11]1012 (4) - 30.07.2024 08:32 [14:24:11]1206 (1) - 0 [14:24:11]OFD Sender: Remove packet 119103 [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00119103 [14:24:11]NVStorageDeleteData [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:22]ConnectInit Can't connect to host [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]accept exits with 9 [14:25:11]New connection [14:25:11]New thread 3067018596 created [14:25:11]Thread 3066875236 joined [14:25:11]Waiting for new connection... [14:25:11] Sock 9.Parse request [14:25:11]Sock 9.Check first char [14:25:11]Sock 9.First char is OK [14:25:11]request: POST /json_proto HTTP/1.0 [14:25:11]Method: POST [14:25:11]URL: /json_proto [14:25:11]Method is POST - this is cgi request [14:25:11]url: /json_proto [14:25:11]query_string will be loaded in cgi processing [14:25:11]execute_cgi json_proto POST (null) [14:25:11]execute_cgi path=json_proto method=POST [14:25:11]POST find Content-Length [14:25:11]Host: 172.17.45.7:8080 [14:25:11]Content-Length: 677 [14:25:11]Content-Type: application/json [14:25:11] [14:25:11]POST finish read [14:25:11]Found Content-Length = 677 [14:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [14:25:11]execute_script... [14:25:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [14:25:11]POST & json_proto [14:25:11]process_json_proto [14:25:11]json parsed OK: [14:25:11]protocol is kg_v1.0 [14:25:11]action value=close_receipt [14:25:11]process_action close_receipt [14:25:11]cmd_close_receipt [14:25:11]MH_GetDate [14:25:11]Write to MH i2c: F0 00 00 57 05 4B [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: F0 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: F0 09 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: F0 09 00 57 05 00 C8 F7 A8 66 90 0F 3E 66 64 [14:25:11]GetLastDocTimeStamp 1722349436 [14:25:11]current date 1722349512 [14:25:11]FM_GetShiftState [14:25:11]SAM_PROTO_GetShiftState [14:25:11]wFMCommunicate request_size=4 [14:25:11]MH_SAM_APDU [14:25:11]CAPDU: 80 13 01 00 [14:25:11]Write to MH i2c: E2 08 00 58 05 80 13 01 00 00 00 00 00 DA [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:11]Read from MH i2c: E2 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: E2 0E 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: E2 0E 00 58 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A5 [14:25:11]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:25:11]wFMCommunicate OK [14:25:11]SAM_PROTO_GetShiftState done [14:25:11]FM_GetShiftState done [14:25:11]opened in 1722298242 [14:25:11]opened+sec_in_day 1722384642 [14:25:11]quantity*price = 50010 [14:25:11]sum+1 = 50012 [14:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 156 30.07.2024 14:25 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119104 ФПД: 146527530458056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T142512&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119104&fm=146527530458056&tin=02508201610067®Number=0000000000092660&sum=50000 [14:25:12]StoreToDocumentArchive [14:25:12]shift 435 fd 119104 [14:25:12]save to /storage/0435/doc_00119104 [14:25:12]save last doc name /storage/0435/doc_00119104 to /storage/kkm_last_doc_name [14:25:12]save OK [14:25:12]Clear old archive folders... [14:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:25:12]tlvbuf is 00D812A0 [14:25:12]SAM_PROTO_ClearQueue [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 09 00 00 [14:25:12]Write to MH i2c: E2 08 00 65 05 80 09 00 00 00 00 00 00 DC [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_ClearQueue done [14:25:12]KKMCreateOFDPacket [14:25:12]OFDProtocolAddRootSTLVToBuf [14:25:12]FM_MakeSignedData [14:25:12]FM_MakeSignedData [14:25:12]SAM_PROTO_SignData [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 01 02 [14:25:12]Write to MH i2c: E2 08 00 66 05 80 0D 01 02 00 00 00 00 E4 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 66 05 00 90 00 DF [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=255 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C8 F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D1 01 00 35 04 06 00 85 [14:25:12]Write to MH i2c: E2 02 01 67 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 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C8 F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D1 01 00 35 04 06 00 85 00 00 03 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 67 05 00 90 00 E0 [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=10 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 02 02 05 44 19 67 1B C8 [14:25:12]Write to MH i2c: E2 0D 00 68 05 80 0D 02 02 05 00 44 19 67 1B C8 00 00 98 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 03 02 [14:25:12]Write to MH i2c: E2 08 00 69 05 80 0D 03 02 00 00 00 00 E9 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0B 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0B 00 69 05 00 57 BB D4 20 48 FA 22 75 90 00 C9 [14:25:12]RAPDU: 57 BB D4 20 48 FA 22 75 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_SignData done [14:25:12]FM_MakeSignedData done [14:25:12]CreateOFDProtocolMessage [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 11 00 00 [14:25:12]Write to MH i2c: E2 08 00 6A 05 80 11 00 00 00 00 00 00 E9 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 6A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 44 [14:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:25:12]wFMCommunicate OK [14:25:12]CreateOFDProtocolMessage done [14:25:12]OFDSenderStorePacket 119104 [14:25:12]StoreOFDPacket docnum=119104 [14:25:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 D0 07 01 6C 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C8 F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 D1 01 00 35 04 06 00 85 44 19 67 1B C8 57 BB D4 20 48 FA 22 75 [14:25:12]CheckFolder [14:25:12]dirname=/storage/ofd_packets [14:25:12]CheckFolder done [14:25:12]ProducePacketName [14:25:12]name=ofd_packets/00119104 [14:25:12]NVStorageSaveData ofd_packets/00119104 [14:25:12]File name is /storage/ofd_packets/00119104 [14:25:12]Write 301 bytes [14:25:12]NVStorageSaveData done [14:25:12]OFDSenderStorePacket done [14:25:12]KKMCreateOFDPacket done [14:25:12]NVStorageSaveData kkm_last_timestamp [14:25:12]File name is /storage/kkm_last_timestamp [14:25:12]Write 4 bytes [14:25:12]NVStorageSaveData done [14:25:12]ExternCall_PrintAddStr [14:25:12]wPrintStart [14:25:12]Write to MH i2c: 01 00 00 6B 05 70 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: 01 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: 01 07 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: 01 07 00 6B 05 00 00 00 00 00 FF 0F 85 [14:25:12]RasterBufferAndPrint [14:25:12]line Счет N : (1)950023 [14:25:12]line ИНН: 02508201610067 [14:25:12]line Контрольно-Кассовый Чек [14:25:12]line ПРОДАЖА [14:25:12]line ТРК (МРК, ГНК) : 53 [14:25:12]line Товар: 2710124500 [14:25:12]line Аи-95-К-3 [14:25:12]line 6.740 * 74.20 [14:25:12]line = 500.11 [14:25:12]line НДС 12% НСП 1% [14:25:12]line > о реализуемом товаре [14:25:12]line ОКРУГЛЕНИЕ: -0.11 [14:25:12]line ИТОГО: 500.00 [14:25:12]line Внесено: 500.00 [14:25:12]line СДАЧА: 0.00 [14:25:12]line НСП 1% : 4.43 [14:25:12]line НДС 12% : 53.11 [14:25:12]line Наличными: 500.00 [14:25:12]line Безнал.: 0.00 [14:25:12]line Место: АЗС № 134 "Партнер Нефть" [14:25:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:25:12]line СНО: Общий режим [14:25:12]line Чек 156 30.07.2024 14:25 [14:25:12]line Смена: 435 ФФД: 1.0 [14:25:12]line ЗНМ: 0300000044 [14:25:12]line РНМ: 0000000000092660 [14:25:12]line Версия ККМ: 001 [14:25:12]line ФМ: 0000000000874939 [14:25:12]line ФД: 119104 [14:25:12]line ФПД: 146527530458056 [14:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T142512&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119104&fm=146527530458056&tin=02508201610067®Number=0000000000092660&sum=50000 [14:25:13]OFD Sender: Processing packet 119104 [packets to send 86, broken 85] [14:25:13]ProducePacketName [14:25:13]name=ofd_packets/00119104 [14:25:13]OFD Sender: To server: pG, [14:25:13]CommunicateWithHost lk.salyk.kg:30040 [14:25:13]ConnectInit lk.salyk.kg [14:25:13]written 0, free lines is 4095 [14:25:13]Write to MH i2c: 01 00 00 95 05 9A [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 CF 0C 7C [14:25:13]RasterBufferAndPrint [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]written 0, free lines is 3286 [14:25:13]MH_Cut [14:25:13]Write to MH i2c: D1 01 00 9C 05 01 73 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 01 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 01 00 9C 05 00 72 [14:25:13]Write to MH i2c: 01 00 00 9D 05 A2 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:14]*** Cut start [14:25:14]*** Partial cut [14:25:14]*** CUTSNS_PIN = 1 [14:25:14]*** CUTSNS_PIN = 0 [14:25:14]*** Brake cut motor [14:25:15]Read from MH i2c: 01 [14:25:15]MH_I2C_Read... [14:25:15]*** Stop cut motor [14:25:15]*** Cut end [14:25:15]Read from MH i2c: 01 07 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [14:25:15]process_action close_receipt done [14:25:15]requested_data is exist [14:25:15]produce_requested_data [14:25:15]requested_item fm.sn is exist - process it [14:25:15]wFMCommunicate request_size=4 [14:25:15]MH_SAM_APDU [14:25:15]CAPDU: 80 11 00 00 [14:25:15]Write to MH i2c: E2 08 00 9E 05 80 11 00 00 00 00 00 00 1D [14:25:15]Write i2c OK [14:25:15]MH_I2C_Read... [14:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:15]Read from MH i2c: E2 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 17 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 17 00 9E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 78 [14:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:25:15]wFMCommunicate OK [14:25:15]requested_item fd.num is exist - process it [14:25:15]SAM_PROTO_GetFieldsCounters [14:25:15]wFMCommunicate request_size=4 [14:25:15]MH_SAM_APDU [14:25:15]CAPDU: 80 13 00 00 [14:25:15]Write to MH i2c: E2 08 00 9F 05 80 13 00 00 00 00 00 00 20 [14:25:15]Write i2c OK [14:25:15]MH_I2C_Read... [14:25:15]Connected sock=10 [14:25:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 28 D0 07 01 6C 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C8 F7 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 40 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:15]D1 Read from MH i2c: 01 E2 00 [14:25:15]35 MH_I2C_Read... [14:25:15]04 06 00 Read from MH i2c: 85 E2 44 62 19 00 67 [14:25:15]1B MH_I2C_Read... [14:25:15]C8 57 BB D4 20 48 FA 22 75 [14:25:15]Read from MH i2c: E2 62 00 9F 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 40 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:15]wFMCommunicate OK [14:25:15]SAM_PROTO_GetFieldsCounters done [14:25:15]requested_item shift.num is exist - process it [14:25:15]requested_item shift.opened is exist - process it [14:25:15]req_shift_opened [14:25:15]FM_GetShiftState [14:25:15]SAM_PROTO_GetShiftState [14:25:15]wFMCommunicate request_size=4 [14:25:15]MH_SAM_APDU [14:25:15]CAPDU: 80 13 01 00 [14:25:15]Write to MH i2c: E2 08 00 A0 05 80 13 01 00 00 00 00 00 22 [14:25:15]Write i2c OK [14:25:15]MH_I2C_Read... [14:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:15]Read from MH i2c: E2 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 0E 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 0E 00 A0 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 ED [14:25:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:25:15]wFMCommunicate OK [14:25:15]SAM_PROTO_GetShiftState done [14:25:15]FM_GetShiftState done [14:25:15]req_shift_opened done [14:25:15]requested_item shift.open_date is exist - process it [14:25:15]req_shift_open_date [14:25:15]req_shift_open_date done [14:25:15]produce_requested_data done [14:25:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119104,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:25:15]process_action_free close_receipt [14:25:15]json_value_free [14:25:15]json_value_free done [14:25:15]process_json_proto returns [14:25:15]Send response to host [14:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119104,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:25:15]free response buf [14:25:15]execute_script done [14:25:15]execute_script returns [14:25:15]free content buf [14:25:15]Sock 9.Close socket [14:25:15]Sock 9.Thread stoped [14:25:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BB 75 47 00 DD 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 34 39 33 39 10 04 04 00 40 D1 01 00 F4 03 04 00 55 A5 A8 66 B6 04 01 00 00 65 E4 46 25 53 13 33 55 [14:25:15]CommunicateWithHost err = 0 [14:25:15]CheckOFDResponse [14:25:15]1017 (14) - 77093643461234 [14:25:15]1041 (16) - 0000000000874939 [14:25:15]1040 (4) - 119104 [14:25:15]1012 (4) - 30.07.2024 08:33 [14:25:15]1206 (1) - 0 [14:25:15]OFD Sender: Remove packet 119104 [14:25:15]ProducePacketName [14:25:15]name=ofd_packets/00119104 [14:25:15]NVStorageDeleteData [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]recv_with_timeout no data received [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:43]recv_with_timeout no data received [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:28]accept exits with 7 [14:29:28]New connection [14:29:28]New thread 3066875236 created [14:29:28]Thread 3067018596 joined [14:29:28]Waiting for new connection... [14:29:28] Sock 7.Parse request [14:29:28]Sock 7.Check first char [14:29:28]Sock 7.First char is OK [14:29:28]request: POST /json_proto HTTP/1.0 [14:29:28]Method: POST [14:29:28]URL: /json_proto [14:29:28]Method is POST - this is cgi request [14:29:28]url: /json_proto [14:29:28]query_string will be loaded in cgi processing [14:29:28]execute_cgi json_proto POST (null) [14:29:28]execute_cgi path=json_proto method=POST [14:29:28]POST find Content-Length [14:29:28]Host: 172.17.45.7:8080 [14:29:28]Content-Length: 682 [14:29:28]Content-Type: application/json [14:29:28] [14:29:28]POST finish read [14:29:28]Found Content-Length = 682 [14:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [14:29:28]execute_script... [14:29: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)950024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [14:29:28]POST & json_proto [14:29:28]process_json_proto [14:29:28]json parsed OK: [14:29:28]protocol is kg_v1.0 [14:29:28]action value=close_receipt [14:29:28]process_action close_receipt [14:29:28]cmd_close_receipt [14:29:28]MH_GetDate [14:29:28]Write to MH i2c: F0 00 00 A1 05 95 [14:29:28]Write i2c OK [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 09 00 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 09 00 A1 05 00 C9 F8 A8 66 90 0F 3E 66 B0 [14:29:28]GetLastDocTimeStamp 1722349512 [14:29:28]current date 1722349769 [14:29:28]FM_GetShiftState [14:29:28]SAM_PROTO_GetShiftState [14:29:28]wFMCommunicate request_size=4 [14:29:28]MH_SAM_APDU [14:29:28]CAPDU: 80 13 01 00 [14:29:28]Write to MH i2c: E2 08 00 A2 05 80 13 01 00 00 00 00 00 24 [14:29:28]Write i2c OK [14:29:28]MH_I2C_Read... [14:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:28]Read from MH i2c: E2 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: E2 0E 00 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: E2 0E 00 A2 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EF [14:29:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:29:28]wFMCommunicate OK [14:29:28]SAM_PROTO_GetShiftState done [14:29:28]FM_GetShiftState done [14:29:28]opened in 1722298242 [14:29:28]opened+sec_in_day 1722384642 [14:29:28]quantity*price = 100021 [14:29:28]sum+1 = 100023 [14:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 157 30.07.2024 14:29 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119105 ФПД: 141399968530208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T142929&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119105&fm=141399968530208&tin=02508201610067®Number=0000000000092660&sum=100000 [14:29:30]StoreToDocumentArchive [14:29:30]shift 435 fd 119105 [14:29:30]save to /storage/0435/doc_00119105 [14:29:30]save last doc name /storage/0435/doc_00119105 to /storage/kkm_last_doc_name [14:29:30]save OK [14:29:30]Clear old archive folders... [14:29:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:30]tlvbuf is 00D743B0 [14:29:30]SAM_PROTO_ClearQueue [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 09 00 00 [14:29:30]Write to MH i2c: E2 08 00 AF 05 80 09 00 00 00 00 00 00 26 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]SAM_PROTO_ClearQueue done [14:29:30]KKMCreateOFDPacket [14:29:30]OFDProtocolAddRootSTLVToBuf [14:29:30]FM_MakeSignedData [14:29:30]FM_MakeSignedData [14:29:30]SAM_PROTO_SignData [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 01 02 [14:29:30]Write to MH i2c: E2 08 00 B0 05 80 0D 01 02 00 00 00 00 2E [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 B0 05 00 90 00 29 [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]wFMCommunicate request_size=255 [14:29:30]MH_SAM_APDU [14:29: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C9 F8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D1 01 00 35 04 06 00 80 [14:29:30]Write to MH i2c: E2 02 01 B1 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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C9 F8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D1 01 00 35 04 06 00 80 00 00 91 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 B1 05 00 90 00 2A [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]wFMCommunicate request_size=10 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 02 02 05 9A 3E E5 3F 20 [14:29:30]Write to MH i2c: E2 0D 00 B2 05 80 0D 02 02 05 00 9A 3E E5 3F 20 00 00 57 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 B2 05 00 90 00 2B [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 03 02 [14:29:30]Write to MH i2c: E2 08 00 B3 05 80 0D 03 02 00 00 00 00 33 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 0B 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 0B 00 B3 05 00 8B 1C 8A 6B 92 AE 84 ED 90 00 81 [14:29:30]RAPDU: 8B 1C 8A 6B 92 AE 84 ED 90 00 [14:29:30]wFMCommunicate OK [14:29:30]SAM_PROTO_SignData done [14:29:30]FM_MakeSignedData done [14:29:30]CreateOFDProtocolMessage [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 11 00 00 [14:29:30]Write to MH i2c: E2 08 00 B4 05 80 11 00 00 00 00 00 00 33 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 17 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 17 00 B4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8E [14:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:29:30]wFMCommunicate OK [14:29:30]CreateOFDProtocolMessage done [14:29:30]OFDSenderStorePacket 119105 [14:29:30]StoreOFDPacket docnum=119105 [14:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 D3 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C9 F8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D1 01 00 35 04 06 00 80 9A 3E E5 3F 20 8B 1C 8A 6B 92 AE 84 ED [14:29:30]CheckFolder [14:29:30]dirname=/storage/ofd_packets [14:29:30]CheckFolder done [14:29:30]ProducePacketName [14:29:30]name=ofd_packets/00119105 [14:29:30]NVStorageSaveData ofd_packets/00119105 [14:29:30]File name is /storage/ofd_packets/00119105 [14:29:30]Write 301 bytes [14:29:30]NVStorageSaveData done [14:29:30]OFDSenderStorePacket done [14:29:30]KKMCreateOFDPacket done [14:29:30]NVStorageSaveData kkm_last_timestamp [14:29:30]File name is /storage/kkm_last_timestamp [14:29:30]Write 4 bytes [14:29:30]NVStorageSaveData done [14:29:30]ExternCall_PrintAddStr [14:29:30]wPrintStart [14:29:30]Write to MH i2c: 01 00 00 B5 05 BA [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 07 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [14:29:30]RasterBufferAndPrint [14:29:30]line Счет N : (1)950024 [14:29:30]line ИНН: 02508201610067 [14:29:30]line Контрольно-Кассовый Чек [14:29:30]line ПРОДАЖА [14:29:30]line ТРК (МРК, ГНК) : 53 [14:29:30]line Товар: 2710124500 [14:29:30]line Аи-95-К-3 [14:29:30]line 13.480 * 74.20 [14:29:30]line = 1000.22 [14:29:30]line НДС 12% НСП 1% [14:29:30]line > о реализуемом товаре [14:29:30]line ОКРУГЛЕНИЕ: -0.22 [14:29:30]line ИТОГО: 1000.00 [14:29:30]line Внесено: 1000.00 [14:29:30]line СДАЧА: 0.00 [14:29:30]line НСП 1% : 8.85 [14:29:30]line НДС 12% : 106.22 [14:29:30]line Наличными: 1000.00 [14:29:30]line Безнал.: 0.00 [14:29:30]line Место: АЗС № 134 "Партнер Нефть" [14:29:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:29:30]line СНО: Общий режим [14:29:30]line Чек 157 30.07.2024 14:29 [14:29:30]line Смена: 435 ФФД: 1.0 [14:29:30]line ЗНМ: 0300000044 [14:29:30]line РНМ: 0000000000092660 [14:29:30]line Версия ККМ: 001 [14:29:30]line ФМ: 0000000000874939 [14:29:30]line ФД: 119105 [14:29:30]line ФПД: 141399968530208 [14:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T142929&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119105&fm=141399968530208&tin=02508201610067®Number=0000000000092660&sum=100000 [14:29:30]OFD Sender: Processing packet 119105 [packets to send 86, broken 85] [14:29:30]ProducePacketName [14:29:30]name=ofd_packets/00119105 [14:29:30]OFD Sender: To server: pG, [14:29:30]CommunicateWithHost lk.salyk.kg:30040 [14:29:30]ConnectInit lk.salyk.kg [14:29:30]written 0, free lines is 4095 [14:29:31]Write to MH i2c: 01 00 00 DF 05 E4 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 07 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 DC 0C D3 [14:29:31]RasterBufferAndPrint [14:29:31]line [14:29:31]line [14:29:31]line [14:29:31]line [14:29:31]line [14:29:31]written 0, free lines is 3298 [14:29:31]MH_Cut [14:29:31]Write to MH i2c: D1 01 00 E6 05 01 BD [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: D1 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: D1 01 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: D1 01 00 E6 05 00 BC [14:29:31]Write to MH i2c: 01 00 00 E7 05 EC [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:32]*** Cut start [14:29:32]*** Partial cut [14:29:32]*** CUTSNS_PIN = 1 [14:29:32]*** CUTSNS_PIN = 0 [14:29:32]*** Brake cut motor [14:29:32]Read from MH i2c: 01 [14:29:32]MH_I2C_Read... [14:29:32]*** Stop cut motor [14:29:32]*** Cut end [14:29:32]Read from MH i2c: 01 07 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [14:29:32]process_action close_receipt done [14:29:32]requested_data is exist [14:29:32]produce_requested_data [14:29:32]requested_item fm.sn is exist - process it [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 11 00 00 [14:29:32]Write to MH i2c: E2 08 00 E8 05 80 11 00 00 00 00 00 00 67 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 17 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 17 00 E8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C2 [14:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:29:32]wFMCommunicate OK [14:29:32]requested_item fd.num is exist - process it [14:29:32]SAM_PROTO_GetFieldsCounters [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 00 00 [14:29:32]Write to MH i2c: E2 08 00 E9 05 80 13 00 00 00 00 00 00 6A [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 62 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 62 00 E9 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 41 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:32]wFMCommunicate OK [14:29:32]SAM_PROTO_GetFieldsCounters done [14:29:32]requested_item shift.num is exist - process it [14:29:32]requested_item shift.opened is exist - process it [14:29:32]req_shift_opened [14:29:32]FM_GetShiftState [14:29:32]SAM_PROTO_GetShiftState [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 01 00 [14:29:32]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 0E 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 37 [14:29:32]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:29:32]wFMCommunicate OK [14:29:32]SAM_PROTO_GetShiftState done [14:29:32]FM_GetShiftState done [14:29:32]req_shift_opened done [14:29:32]requested_item shift.open_date is exist - process it [14:29:32]req_shift_open_date [14:29:32]req_shift_open_date done [14:29:32]produce_requested_data done [14:29:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119105,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:29:32]process_action_free close_receipt [14:29:32]json_value_free [14:29:32]json_value_free done [14:29:32]process_json_proto returns [14:29:32]Send response to host [14:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119105,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:29:32]free response buf [14:29:32]execute_script done [14:29:32]execute_script returns [14:29:32]free content buf [14:29:32]Sock 7.Close socket [14:29:32]Sock 7.Thread stoped [14:29:35]ConnectInit Can't take IP for lk.salyk.kg [14:29:35]CommunicateWithHost connect error [14:29:35]CommunicateWithHost err = -1 [14:29:35]OFD Sender: Server communicate error [14:29:40]OFD Sender: Processing packet 119105 [packets to send 86, broken 85] [14:29:40]ProducePacketName [14:29:40]name=ofd_packets/00119105 [14:29:40]OFD Sender: To server: pG, [14:29:40]CommunicateWithHost lk.salyk.kg:30040 [14:29:40]ConnectInit lk.salyk.kg [14:29:43]Connected sock=7 [14:29:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 96 D3 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 C9 F8 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D1 01 00 35 04 06 00 80 9A 3E E5 3F 20 8B 1C 8A 6B 92 AE 84 ED [14:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 A8 47 00 54 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 41 D1 01 00 F4 03 04 00 61 A6 A8 66 B6 04 01 00 00 14 F6 6B E9 A8 1C FC 94 [14:29:44]CommunicateWithHost err = 0 [14:29:44]CheckOFDResponse [14:29:44]1017 (14) - 77093643461234 [14:29:44]1041 (16) - 0000000000874939 [14:29:44]1040 (4) - 119105 [14:29:44]1012 (4) - 30.07.2024 08:37 [14:29:44]1206 (1) - 0 [14:29:44]OFD Sender: Remove packet 119105 [14:29:44]ProducePacketName [14:29:44]name=ofd_packets/00119105 [14:29:44]NVStorageDeleteData [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:16]accept exits with 10 [14:34:16]New connection [14:34:16]New thread 3067018596 created [14:34:16]Thread 3066875236 joined [14:34:16]Waiting for new connection... [14:34:16] Sock 10.Parse request [14:34:16]Sock 10.Check first char [14:34:16]Sock 10.First char is OK [14:34:16]request: POST /json_proto HTTP/1.0 [14:34:16]Method: POST [14:34:16]URL: /json_proto [14:34:16]Method is POST - this is cgi request [14:34:16]url: /json_proto [14:34:16]query_string will be loaded in cgi processing [14:34:16]execute_cgi json_proto POST (null) [14:34:16]execute_cgi path=json_proto method=POST [14:34:16]POST find Content-Length [14:34:16]Host: 172.17.45.7:8080 [14:34:16]Content-Length: 677 [14:34:16]Content-Type: application/json [14:34:16] [14:34:16]POST finish read [14:34:16]Found Content-Length = 677 [14:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:16]execute_script... [14:34: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)950025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:16]POST & json_proto [14:34:16]process_json_proto [14:34:16]json parsed OK: [14:34:16]protocol is kg_v1.0 [14:34:16]action value=close_receipt [14:34:16]process_action close_receipt [14:34:16]cmd_close_receipt [14:34:16]MH_GetDate [14:34:16]Write to MH i2c: F0 00 00 EB 05 DF [14:34:16]Write i2c OK [14:34:16]MH_I2C_Read... [14:34:16]Read from MH i2c: F0 [14:34:16]MH_I2C_Read... [14:34:16]Read from MH i2c: F0 09 00 [14:34:16]MH_I2C_Read... [14:34:16]Read from MH i2c: F0 09 00 EB 05 00 E9 F9 A8 66 90 0F 3E 66 1B [14:34:16]GetLastDocTimeStamp 1722349769 [14:34:16]current date 1722350057 [14:34:16]FM_GetShiftState [14:34:16]SAM_PROTO_GetShiftState [14:34:16]wFMCommunicate request_size=4 [14:34:16]MH_SAM_APDU [14:34:16]CAPDU: 80 13 01 00 [14:34:16]Write to MH i2c: E2 08 00 EC 05 80 13 01 00 00 00 00 00 6E [14:34:16]Write i2c OK [14:34:16]MH_I2C_Read... [14:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:16]Read from MH i2c: E2 [14:34:16]MH_I2C_Read... [14:34:16]Read from MH i2c: E2 0E 00 [14:34:16]MH_I2C_Read... [14:34:16]Read from MH i2c: E2 0E 00 EC 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 39 [14:34:16]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:34:16]wFMCommunicate OK [14:34:16]SAM_PROTO_GetShiftState done [14:34:16]FM_GetShiftState done [14:34:16]opened in 1722298242 [14:34:16]opened+sec_in_day 1722384642 [14:34:16]quantity*price = 50036 [14:34:16]sum+1 = 50037 [14:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре [14:37:09]line ОКРУГЛЕНИЕ: -0.36 [14:37:09]line ИТОГО: 500.00 [14:37:09]line Внесено: 500.00 [14:37:09]line СДАЧА: 0.00 [14:37:09]line НСП 1% : 4.43 [14:37:09]line НДС 12% : 53.14 [14:37:09]line Наличными: 500.00 [14:37:09]line Безнал.: 0.00 [14:37:09]line Место: АЗС № 134 "Партнер Нефть" [14:37:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:37:09]line СНО: Общий режим [14:37:09]line Чек 158 30.07.2024 14:34 [14:37:09]line Смена: 435 ФФД: 1.0 [14:37:09]line ЗНМ: 0300000044 [14:37:09]line РНМ: 0000000000092660 [14:37:09]line Версия ККМ: 001 [14:37:09]line ФМ: 0000000000874939 [14:37:09]line ФД: 119106 [14:37:09]line ФПД: 84936804178598 [14:37:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T143418&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119106&fm=84936804178598&tin=02508201610067®Number=0000000000092660&sum=50000 [14:37:10]written 0, free lines is 4095 [14:37:10]Write to MH i2c: 01 00 00 47 00 47 [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: 01 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: 01 07 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 E4 0C 3E [14:37:10]RasterBufferAndPrint [14:37:10]line [14:37:10]line [14:37:10]line [14:37:10]line [14:37:10]line [14:37:10]written 0, free lines is 3312 [14:37:10]MH_Cut [14:37:10]Write to MH i2c: D1 01 00 4E 00 01 20 [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: D1 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: D1 01 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: D1 01 00 4E 00 00 1F [14:37:10]Write to MH i2c: 01 00 00 4F 00 4F [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:11]*** Cut start [14:37:11]*** Partial cut [14:37:11]*** CUTSNS_PIN = 1 [14:37:11]*** CUTSNS_PIN = 0 [14:37:11]*** Brake cut motor [14:37:11]Read from MH i2c: 01 [14:37:11]MH_I2C_Read... [14:37:11]*** Stop cut motor [14:37:11]*** Cut end [14:37:11]Read from MH i2c: 01 07 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [14:37:11]process_action print_doc done [14:37:11]requested_data is exist [14:37:11]produce_requested_data [14:37:11]produce_requested_data return (null) [14:37:11]process_action_free print_doc [14:37:11]json_value_free [14:37:11]json_value_free done [14:37:11]process_json_proto returns [14:37:11]Send response to host [14:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [14:37:11]free response buf [14:37:11]execute_script done [14:37:11]execute_script returns [14:37:11]free content buf [14:37:11]Sock 8.Close socket [14:37:11]Sock 8.Thread stoped [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:34]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:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:23]recv_with_timeout no data received [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40: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:03]accept exits with 5 [14:41:03]New connection [14:41:03]New thread 3066723684 created [14:41:03]Thread 3066867044 joined [14:41:03]Waiting for new connection... [14:41:03] Sock 5.Parse request [14:41:03]Sock 5.Check first char [14:41:03]Sock 5.First char is OK [14:41:03]request: POST /json_proto HTTP/1.0 [14:41:03]Method: POST [14:41:03]URL: /json_proto [14:41:03]Method is POST - this is cgi request [14:41:03]url: /json_proto [14:41:03]query_string will be loaded in cgi processing [14:41:03]execute_cgi json_proto POST (null) [14:41:03]execute_cgi path=json_proto method=POST [14:41:03]POST find Content-Length [14:41:03]Host: 172.17.45.7:8080 [14:41:03]Content-Length: 677 [14:41:03]Content-Type: application/json [14:41:03] [14:41:03]POST finish read [14:41:03]Found Content-Length = 677 [14:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:41:03]execute_script... [14:41: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)950026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:41:03]POST & json_proto [14:41:03]process_json_proto [14:41:03]json parsed OK: [14:41:03]protocol is kg_v1.0 [14:41:03]action value=close_receipt [14:41:03]process_action close_receipt [14:41:03]cmd_close_receipt [14:41:03]MH_GetDate [14:41:03]Write to MH i2c: F0 00 00 50 00 3F [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: F0 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: F0 09 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: F0 09 00 50 00 00 80 FB A8 66 90 0F 3E 66 14 [14:41:03]GetLastDocTimeStamp 1722350058 [14:41:03]current date 1722350464 [14:41:03]FM_GetShiftState [14:41:03]SAM_PROTO_GetShiftState [14:41:03]wFMCommunicate request_size=4 [14:41:03]MH_SAM_APDU [14:41:03]CAPDU: 80 13 01 00 [14:41:03]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [14:41:03]Write i2c OK [14:41:03]MH_I2C_Read... [14:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:03]Read from MH i2c: E2 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0E 00 [14:41:03]MH_I2C_Read... [14:41:03]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [14:41:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:41:03]wFMCommunicate OK [14:41:03]SAM_PROTO_GetShiftState done [14:41:03]FM_GetShiftState done [14:41:03]opened in 1722298242 [14:41:03]opened+sec_in_day 1722384642 [14:41:03]quantity*price = 30035 [14:41:03]sum+1 = 30036 [14:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 159 30.07.2024 14:41 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119107 ФПД: 145611997314929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T144104&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119107&fm=145611997314929&tin=02508201610067®Number=0000000000092660&sum=30000 [14:41:05]StoreToDocumentArchive [14:41:05]shift 435 fd 119107 [14:41:05]save to /storage/0435/doc_00119107 [14:41:05]save last doc name /storage/0435/doc_00119107 to /storage/kkm_last_doc_name [14:41:05]save OK [14:41:05]Clear old archive folders... [14:41:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:05]tlvbuf is 00C16450 [14:41:05]SAM_PROTO_ClearQueue [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 09 00 00 [14:41:05]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_ClearQueue done [14:41:05]KKMCreateOFDPacket [14:41:05]OFDProtocolAddRootSTLVToBuf [14:41:05]FM_MakeSignedData [14:41:05]FM_MakeSignedData [14:41:05]SAM_PROTO_SignData [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 0D 01 02 [14:41:05]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]wFMCommunicate request_size=255 [14:41:05]MH_SAM_APDU [14:41: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 9F 00 00 00 F4 03 04 00 80 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D1 01 00 35 04 06 00 84 [14:41:05]Write to MH i2c: E2 02 01 60 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 9F 00 00 00 F4 03 04 00 80 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D1 01 00 35 04 06 00 84 00 00 F0 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]wFMCommunicate request_size=10 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 0D 02 02 05 6E EF 5F FF 71 [14:41:05]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 6E EF 5F FF 71 00 00 11 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [14:41:05]RAPDU: 90 00 [14:41:05]wFMCommunicate OK [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 0D 03 02 [14:41:05]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0B 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 0B 00 62 00 00 AC E7 CA 28 02 0B FF 17 90 00 86 [14:41:05]RAPDU: AC E7 CA 28 02 0B FF 17 90 00 [14:41:05]wFMCommunicate OK [14:41:05]SAM_PROTO_SignData done [14:41:05]FM_MakeSignedData done [14:41:05]CreateOFDProtocolMessage [14:41:05]wFMCommunicate request_size=4 [14:41:05]MH_SAM_APDU [14:41:05]CAPDU: 80 11 00 00 [14:41:05]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:05]Read from MH i2c: E2 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: E2 17 00 [14:41:05]MH_I2C_Read... [14:41:05]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 34 39 33 39 90 00 38 [14:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:41:05]wFMCommunicate OK [14:41:05]CreateOFDProtocolMessage done [14:41:05]OFDSenderStorePacket 119107 [14:41:05]StoreOFDPacket docnum=119107 [14:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 57 07 01 EB 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 9F 00 00 00 F4 03 04 00 80 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D1 01 00 35 04 06 00 84 6E EF 5F FF 71 AC E7 CA 28 02 0B FF 17 [14:41:05]CheckFolder [14:41:05]dirname=/storage/ofd_packets [14:41:05]CheckFolder done [14:41:05]ProducePacketName [14:41:05]name=ofd_packets/00119107 [14:41:05]NVStorageSaveData ofd_packets/00119107 [14:41:05]File name is /storage/ofd_packets/00119107 [14:41:05]Write 301 bytes [14:41:05]NVStorageSaveData done [14:41:05]OFDSenderStorePacket done [14:41:05]KKMCreateOFDPacket done [14:41:05]NVStorageSaveData kkm_last_timestamp [14:41:05]File name is /storage/kkm_last_timestamp [14:41:05]Write 4 bytes [14:41:05]NVStorageSaveData done [14:41:05]ExternCall_PrintAddStr [14:41:05]wPrintStart [14:41:05]Write to MH i2c: 01 00 00 64 00 64 [14:41:05]Write i2c OK [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 07 00 [14:41:05]MH_I2C_Read... [14:41:05]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [14:41:05]RasterBufferAndPrint [14:41:05]line Счет N : (1)950026 [14:41:05]line ИНН: 02508201610067 [14:41:05]line Контрольно-Кассовый Чек [14:41:05]line ПРОДАЖА [14:41:05]line ТРК (МРК, ГНК) : 31 [14:41:05]line Товар: 2710124130 [14:41:05]line Аи-92-К-4 [14:41:05]line 4.430 * 67.80 [14:41:05]line = 300.35 [14:41:05]line НДС 12% НСП 1% [14:41:05]line > о реализуемом товаре [14:41:05]line ОКРУГЛЕНИЕ: -0.35 [14:41:05]line ИТОГО: 300.00 [14:41:05]line Внесено: 300.00 [14:41:05]line СДАЧА: 0.00 [14:41:05]line НСП 1% : 2.66 [14:41:05]line НДС 12% : 31.90 [14:41:05]line Наличными: 300.00 [14:41:05]line Безнал.: 0.00 [14:41:05]line Место: АЗС № 134 "Партнер Нефть" [14:41:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:41:05]line СНО: Общий режим [14:41:05]line Чек 159 30.07.2024 14:41 [14:41:05]line Смена: 435 ФФД: 1.0 [14:41:05]line ЗНМ: 0300000044 [14:41:05]line РНМ: 0000000000092660 [14:41:05]line Версия ККМ: 001 [14:41:05]line ФМ: 0000000000874939 [14:41:05]line ФД: 119107 [14:41:05]line ФПД: 145611997314929 [14:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T144104&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119107&fm=145611997314929&tin=02508201610067®Number=0000000000092660&sum=30000 [14:41:05]OFD Sender: Processing packet 119107 [packets to send 86, broken 85] [14:41:05]ProducePacketName [14:41:05]name=ofd_packets/00119107 [14:41:05]OFD Sender: To server: pG, [14:41:05]CommunicateWithHost lk.salyk.kg:30040 [14:41:05]ConnectInit lk.salyk.kg [14:41:05]written 0, free lines is 4095 [14:41:06]Write to MH i2c: 01 00 00 8E 00 8E [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 D3 0C 74 [14:41:06]RasterBufferAndPrint [14:41:06]line [14:41:06]line [14:41:06]line [14:41:06]line [14:41:06]line [14:41:06]written 0, free lines is 3289 [14:41:06]MH_Cut [14:41:06]Write to MH i2c: D1 01 00 95 00 01 67 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: D1 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: D1 01 00 [14:41:06]MH_I2C_Read... [14:41:06]Read from MH i2c: D1 01 00 95 00 00 66 [14:41:06]Write to MH i2c: 01 00 00 96 00 96 [14:41:06]Write i2c OK [14:41:06]MH_I2C_Read... [14:41:07]*** Cut start [14:41:07]*** Partial cut [14:41:07]*** CUTSNS_PIN = 1 [14:41:07]*** CUTSNS_PIN = 0 [14:41:07]*** Brake cut motor [14:41:07]Read from MH i2c: 01 [14:41:07]MH_I2C_Read... [14:41:07]*** Stop cut motor [14:41:07]*** Cut end [14:41:07]Read from MH i2c: 01 07 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [14:41:07]process_action close_receipt done [14:41:07]requested_data is exist [14:41:07]produce_requested_data [14:41:07]requested_item fm.sn is exist - process it [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 11 00 00 [14:41:07]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 17 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [14:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:41:07]wFMCommunicate OK [14:41:07]requested_item fd.num is exist - process it [14:41:07]SAM_PROTO_GetFieldsCounters [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 13 00 00 [14:41:07]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [14:41:07]Write i2c OK [14:41:07]MH_I2C_Read... [14:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:07]Read from MH i2c: E2 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 62 00 [14:41:07]MH_I2C_Read... [14:41:07]Read from MH i2c: E2 62 00 98 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 43 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:07]wFMCommunicate OK [14:41:07]SAM_PROTO_GetFieldsCounters done [14:41:07]requested_item shift.num is exist - process it [14:41:07]requested_item shift.opened is exist - process it [14:41:07]req_shift_opened [14:41:07]FM_GetShiftState [14:41:07]SAM_PROTO_GetShiftState [14:41:07]wFMCommunicate request_size=4 [14:41:07]MH_SAM_APDU [14:41:07]CAPDU: 80 13 01 00 [14:41:07]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [14:41:07]Write i2c OK [14:41:07]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 99 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E1 [14:41:07]RAPDU: 09 00 01 82 2F A8 66 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]req_shift_opened done [14:41:07]requested_item shift.open_date is exist - process it [14:41:07]req_shift_open_date [14:41:07]req_shift_open_date done [14:41:07]produce_requested_data done [14:41:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119107,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:41:07]process_action_free close_receipt [14:41:07]json_value_free [14:41:07]json_value_free done [14:41:07]process_json_proto returns [14:41:07]Send response to host [14:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119107,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:41:07]free response buf [14:41:07]execute_script done [14:41:07]execute_script returns [14:41:07]free content buf [14:41:07]Sock 5.Close socket [14:41:07]Sock 5.Thread stoped [14:41:09]Connected sock=11 [14:41:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 77 57 07 01 EB 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 9F 00 00 00 F4 03 04 00 80 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D1 01 00 35 04 06 00 84 6E EF 5F FF 71 AC E7 CA 28 02 0B FF 17 [14:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE BA 47 00 6E A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 43 D1 01 00 F4 03 04 00 0F A9 A8 66 B6 04 01 00 00 E8 6A 43 3F CB BC A2 9A [14:41:10]CommunicateWithHost err = 0 [14:41:10]CheckOFDResponse [14:41:10]1017 (14) - 77093643461234 [14:41:10]1041 (16) - 0000000000874939 [14:41:10]1040 (4) - 119107 [14:41:10]1012 (4) - 30.07.2024 08:49 [14:41:10]1206 (1) - 0 [14:41:10]OFD Sender: Remove packet 119107 [14:41:10]ProducePacketName [14:41:10]name=ofd_packets/00119107 [14:41:10]NVStorageDeleteData [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:27]accept exits with 10 [14:41:27]New connection [14:41:27]New thread 3066867044 created [14:41:27]Thread 3066723684 joined [14:41:27]Waiting for new connection... [14:41:27] Sock 10.Parse request [14:41:27]Sock 10.Check first char [14:41:27]Sock 10.First char is OK [14:41:27]request: POST /json_proto HTTP/1.0 [14:41:27]Method: POST [14:41:27]URL: /json_proto [14:41:27]Method is POST - this is cgi request [14:41:27]url: /json_proto [14:41:27]query_string will be loaded in cgi processing [14:41:27]execute_cgi json_proto POST (null) [14:41:27]execute_cgi path=json_proto method=POST [14:41:27]POST find Content-Length [14:41:27]Host: 172.17.45.7:8080 [14:41:27]Content-Length: 677 [14:41:27]Content-Type: application/json [14:41:27] [14:41:27]POST finish read [14:41:27]Found Content-Length = 677 [14:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:41:27]execute_script... [14:41:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:41:27]POST & json_proto [14:41:27]process_json_proto [14:41:27]json parsed OK: [14:41:27]protocol is kg_v1.0 [14:41:27]action value=close_receipt [14:41:27]process_action close_receipt [14:41:27]cmd_close_receipt [14:41:27]MH_GetDate [14:41:27]Write to MH i2c: F0 00 00 9A 00 89 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: F0 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: F0 09 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: F0 09 00 9A 00 00 98 FB A8 66 90 0F 3E 66 76 [14:41:27]GetLastDocTimeStamp 1722350464 [14:41:27]current date 1722350488 [14:41:27]FM_GetShiftState [14:41:27]SAM_PROTO_GetShiftState [14:41:27]wFMCommunicate request_size=4 [14:41:27]MH_SAM_APDU [14:41:27]CAPDU: 80 13 01 00 [14:41:27]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [14:41:27]Write i2c OK [14:41:27]MH_I2C_Read... [14:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:27]Read from MH i2c: E2 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0E 00 [14:41:27]MH_I2C_Read... [14:41:27]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [14:41:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:41:27]wFMCommunicate OK [14:41:27]SAM_PROTO_GetShiftState done [14:41:27]FM_GetShiftState done [14:41:27]opened in 1722298242 [14:41:27]opened+sec_in_day 1722384642 [14:41:27]quantity*price = 40002 [14:41:27]sum+1 = 40003 [14:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 160 30.07.2024 14:41 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119108 ФПД: 112854081737489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T144128&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119108&fm=112854081737489&tin=02508201610067®Number=0000000000092660&sum=40000 [14:41:29]StoreToDocumentArchive [14:41:29]shift 435 fd 119108 [14:41:29]save to /storage/0435/doc_00119108 [14:41:29]save last doc name /storage/0435/doc_00119108 to /storage/kkm_last_doc_name [14:41:29]save OK [14:41:29]Clear old archive folders... [14:41:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:41:29]tlvbuf is 00BEE560 [14:41:29]SAM_PROTO_ClearQueue [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 09 00 00 [14:41:29]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [14:41:29]RAPDU: 90 00 [14:41:29]wFMCommunicate OK [14:41:29]SAM_PROTO_ClearQueue done [14:41:29]KKMCreateOFDPacket [14:41:29]OFDProtocolAddRootSTLVToBuf [14:41:29]FM_MakeSignedData [14:41:29]FM_MakeSignedData [14:41:29]SAM_PROTO_SignData [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 0D 01 02 [14:41:29]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [14:41:29]RAPDU: 90 00 [14:41:29]wFMCommunicate OK [14:41:29]wFMCommunicate request_size=255 [14:41:29]MH_SAM_APDU [14:41: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A0 00 00 00 F4 03 04 00 98 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D1 01 00 35 04 06 00 66 [14:41:29]Write to MH i2c: E2 02 01 AA 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A0 00 00 00 F4 03 04 00 98 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D1 01 00 35 04 06 00 66 00 00 FC [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [14:41:29]RAPDU: 90 00 [14:41:29]wFMCommunicate OK [14:41:29]wFMCommunicate request_size=10 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 0D 02 02 05 A3 E3 74 13 11 [14:41:29]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 A3 E3 74 13 11 00 00 4D [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [14:41:29]RAPDU: 90 00 [14:41:29]wFMCommunicate OK [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 0D 03 02 [14:41:29]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 0B 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 0B 00 AC 00 00 F0 5A C0 46 23 D6 C3 C7 90 00 FB [14:41:29]RAPDU: F0 5A C0 46 23 D6 C3 C7 90 00 [14:41:29]wFMCommunicate OK [14:41:29]SAM_PROTO_SignData done [14:41:29]FM_MakeSignedData done [14:41:29]CreateOFDProtocolMessage [14:41:29]wFMCommunicate request_size=4 [14:41:29]MH_SAM_APDU [14:41:29]CAPDU: 80 11 00 00 [14:41:29]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:29]Read from MH i2c: E2 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: E2 17 00 [14:41:29]MH_I2C_Read... [14:41:29]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 34 39 33 39 90 00 82 [14:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:41:29]wFMCommunicate OK [14:41:29]CreateOFDProtocolMessage done [14:41:29]OFDSenderStorePacket 119108 [14:41:29]StoreOFDPacket docnum=119108 [14:41:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 2E 07 01 D3 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A0 00 00 00 F4 03 04 00 98 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D1 01 00 35 04 06 00 66 A3 E3 74 13 11 F0 5A C0 46 23 D6 C3 C7 [14:41:29]CheckFolder [14:41:29]dirname=/storage/ofd_packets [14:41:29]CheckFolder done [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00119108 [14:41:29]NVStorageSaveData ofd_packets/00119108 [14:41:29]File name is /storage/ofd_packets/00119108 [14:41:29]Write 301 bytes [14:41:29]NVStorageSaveData done [14:41:29]OFDSenderStorePacket done [14:41:29]KKMCreateOFDPacket done [14:41:29]NVStorageSaveData kkm_last_timestamp [14:41:29]File name is /storage/kkm_last_timestamp [14:41:29]Write 4 bytes [14:41:29]NVStorageSaveData done [14:41:29]ExternCall_PrintAddStr [14:41:29]wPrintStart [14:41:29]Write to MH i2c: 01 00 00 AE 00 AE [14:41:29]Write i2c OK [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 07 00 [14:41:29]MH_I2C_Read... [14:41:29]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [14:41:29]RasterBufferAndPrint [14:41:29]line Счет N : (1)950027 [14:41:29]line ИНН: 02508201610067 [14:41:29]line Контрольно-Кассовый Чек [14:41:29]line ПРОДАЖА [14:41:29]line ТРК (МРК, ГНК) : 51 [14:41:29]line Товар: 2710124130 [14:41:29]line Аи-92-К-4 [14:41:29]line 5.900 * 67.80 [14:41:29]line = 400.02 [14:41:29]line НДС 12% НСП 1% [14:41:29]line > о реализуемом товаре [14:41:29]line ОКРУГЛЕНИЕ: -0.02 [14:41:29]line ИТОГО: 400.00 [14:41:29]line Внесено: 400.00 [14:41:29]line СДАЧА: 0.00 [14:41:29]line НСП 1% : 3.54 [14:41:29]line НДС 12% : 42.48 [14:41:29]line Наличными: 400.00 [14:41:29]line Безнал.: 0.00 [14:41:29]line Место: АЗС № 134 "Партнер Нефть" [14:41:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:41:29]line СНО: Общий режим [14:41:29]line Чек 160 30.07.2024 14:41 [14:41:29]line Смена: 435 ФФД: 1.0 [14:41:29]line ЗНМ: 0300000044 [14:41:29]line РНМ: 0000000000092660 [14:41:29]line Версия ККМ: 001 [14:41:29]line ФМ: 0000000000874939 [14:41:29]line ФД: 119108 [14:41:29]line ФПД: 112854081737489 [14:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T144128&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119108&fm=112854081737489&tin=02508201610067®Number=0000000000092660&sum=40000 [14:41:29]written 0, free lines is 4095 [14:41:29]OFD Sender: Processing packet 119108 [packets to send 86, broken 85] [14:41:29]ProducePacketName [14:41:29]name=ofd_packets/00119108 [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:30]Write to MH i2c: 01 00 00 D8 00 D8 [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: 01 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: 01 07 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 D7 0C C2 [14:41:30]RasterBufferAndPrint [14:41:30]line [14:41:30]line [14:41:30]line [14:41:30]line [14:41:30]line [14:41:30]written 0, free lines is 3302 [14:41:30]MH_Cut [14:41:30]Write to MH i2c: D1 01 00 DF 00 01 B1 [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: D1 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: D1 01 00 [14:41:30]MH_I2C_Read... [14:41:30]Read from MH i2c: D1 01 00 DF 00 00 B0 [14:41:30]Write to MH i2c: 01 00 00 E0 00 E0 [14:41:30]Write i2c OK [14:41:30]MH_I2C_Read... [14:41:30]*** Cut start [14:41:30]*** Partial cut [14:41:30]*** CUTSNS_PIN = 1 [14:41:30]*** CUTSNS_PIN = 0 [14:41:31]*** Brake cut motor [14:41:31]Read from MH i2c: 01 [14:41:31]MH_I2C_Read... [14:41:31]*** Stop cut motor [14:41:31]*** Cut end [14:41:31]Read from MH i2c: 01 07 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [14:41:31]process_action close_receipt done [14:41:31]requested_data is exist [14:41:31]produce_requested_data [14:41:31]requested_item fm.sn is exist - process it [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 11 00 00 [14:41:31]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 17 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [14:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:41:31]wFMCommunicate OK [14:41:31]requested_item fd.num is exist - process it [14:41:31]SAM_PROTO_GetFieldsCounters [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 13 00 00 [14:41:31]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 62 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 62 00 E2 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 44 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:31]wFMCommunicate OK [14:41:31]SAM_PROTO_GetFieldsCounters done [14:41:31]requested_item shift.num is exist - process it [14:41:31]requested_item shift.opened is exist - process it [14:41:31]req_shift_opened [14:41:31]FM_GetShiftState [14:41:31]SAM_PROTO_GetShiftState [14:41:31]wFMCommunicate request_size=4 [14:41:31]MH_SAM_APDU [14:41:31]CAPDU: 80 13 01 00 [14:41:31]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [14:41:31]Write i2c OK [14:41:31]MH_I2C_Read... [14:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:31]Read from MH i2c: E2 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 0E 00 [14:41:31]MH_I2C_Read... [14:41:31]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2B [14:41:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:41:31]wFMCommunicate OK [14:41:31]SAM_PROTO_GetShiftState done [14:41:31]FM_GetShiftState done [14:41:31]req_shift_opened done [14:41:31]requested_item shift.open_date is exist - process it [14:41:31]req_shift_open_date [14:41:31]req_shift_open_date done [14:41:31]produce_requested_data done [14:41:31]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119108,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:41:31]process_action_free close_receipt [14:41:31]json_value_free [14:41:31]json_value_free done [14:41:31]process_json_proto returns [14:41:31]Send response to host [14:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119108,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:41:31]free response buf [14:41:31]execute_script done [14:41:31]execute_script returns [14:41:31]free content buf [14:41:31]Sock 10.Close socket [14:41:31]Sock 10.Thread stoped [14:41:34]ConnectInit Can't take IP for lk.salyk.kg [14:41:34]CommunicateWithHost connect error [14:41:34]CommunicateWithHost err = -1 [14:41:34]OFD Sender: Server communicate error [14:41:39]OFD Sender: Processing packet 119108 [packets to send 86, broken 85] [14:41:39]ProducePacketName [14:41:39]name=ofd_packets/00119108 [14:41:39]OFD Sender: To server: pG, [14:41:39]CommunicateWithHost lk.salyk.kg:30040 [14:41:39]ConnectInit lk.salyk.kg [14:41:40]Connected sock=10 [14:41:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 38 2E 07 01 D3 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 A0 00 00 00 F4 03 04 00 98 FB A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D1 01 00 35 04 06 00 66 A3 E3 74 13 11 F0 5A C0 46 23 D6 C3 C7 [14:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A0 01 47 00 46 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 44 D1 01 00 F4 03 04 00 2F A9 A8 66 B6 04 01 00 00 37 FC C6 B8 D6 06 83 B2 [14:41:41]CommunicateWithHost err = 0 [14:41:41]CheckOFDResponse [14:41:41]1017 (14) - 77093643461234 [14:41:41]1041 (16) - 0000000000874939 [14:41:41]1040 (4) - 119108 [14:41:41]1012 (4) - 30.07.2024 08:49 [14:41:41]1206 (1) - 0 [14:41:41]OFD Sender: Remove packet 119108 [14:41:41]ProducePacketName [14:41:41]name=ofd_packets/00119108 [14:41:41]NVStorageDeleteData [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]recv_with_timeout no data received [14:44:52]OFD Sender: No OFD packet to send [14:46:18]Write to MH i2c: E2 0E 00 37 01 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 EA [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 37 01 00 90 00 AC [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=13 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 15 02 00 08 F4 03 04 00 BB FC A8 66 [14:46:19]Write to MH i2c: E2 10 00 38 01 80 15 02 00 08 00 F4 03 04 00 BB FC A8 66 00 00 89 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=25 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [14:46:19]Write to MH i2c: E2 1C 00 39 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 1A [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 15 03 00 [14:46:19]Write to MH i2c: E2 08 00 3A 01 80 15 03 00 00 00 00 00 BC [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 40 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 40 00 3A 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 34 39 33 39 10 04 04 00 46 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A2 00 00 00 35 04 06 00 67 DD A8 B5 E4 59 90 00 06 [14:46:19]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A2 00 00 00 35 04 06 00 67 DD A8 B5 E4 59 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_ProcessDocument answer len = 59 [14:46:19]SAM_PROTO_ProcessDocument done [14:46:19]SetTLVBufToDocument [14:46:19]Processing tag 1209 (04B9) [14:46:19]Malloc new data [14:46:19]Processing tag 1041 (0411) [14:46:19]Processing tag 1040 (0410) [14:46:19]Malloc new data [14:46:19]Processing tag 1038 (040E) [14:46:19]Malloc new data [14:46:19]Processing tag 1042 (0412) [14:46:19]Malloc new data [14:46:19]Processing tag 1077 (0435) [14:46:19]Malloc new data [14:46:19]SetTLVBufToDocument err=0 [14:46:19]KKMLoadAndSignReceiptData store KKM data [14:46:19]KKMLoadAndSignReceiptData err=0 [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 11 00 00 [14:46:19]Write to MH i2c: E2 08 00 3B 01 80 11 00 00 00 00 00 00 B6 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 3B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 11 [14:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:46:19]wFMCommunicate OK [14:46:19]Счет N : (1)950030 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 44 Товар: 2710194800 ДТ-К-5 3.290 * 76.20 = 250.70 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 162 30.07.2024 14:46 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119110 ФПД: 114201715926105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T144619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119110&fm=114201715926105&tin=02508201610067®Number=0000000000092660&sum=25000 [14:46:19]StoreToDocumentArchive [14:46:19]shift 435 fd 119110 [14:46:19]save to /storage/0435/doc_00119110 [14:46:19]save last doc name /storage/0435/doc_00119110 to /storage/kkm_last_doc_name [14:46:19]save OK [14:46:19]Clear old archive folders... [14:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:19]tlvbuf is 00BDC070 [14:46:19]SAM_PROTO_ClearQueue [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 09 00 00 [14:46:19]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_ClearQueue done [14:46:19]KKMCreateOFDPacket [14:46:19]OFDProtocolAddRootSTLVToBuf [14:46:19]FM_MakeSignedData [14:46:19]FM_MakeSignedData [14:46:19]SAM_PROTO_SignData [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 01 02 [14:46:19]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=255 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 BB FC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D1 01 00 35 04 06 00 67 DD A8 B5 [14:46:19]Write to MH i2c: E2 02 01 3E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 BB FC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D1 01 00 35 04 06 00 67 DD A8 B5 00 00 69 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=7 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 02 02 02 E4 59 [14:46:19]Write to MH i2c: E2 0A 00 3F 01 80 0D 02 02 02 00 E4 59 00 00 FB [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 03 02 [14:46:19]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0B 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0B 00 40 01 00 75 28 D9 E0 56 E2 70 86 90 00 41 [14:46:19]RAPDU: 75 28 D9 E0 56 E2 70 86 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_SignData done [14:46:19]FM_MakeSignedData done [14:46:19]CreateOFDProtocolMessage [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 11 00 00 [14:46:19]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 [14:46:19]MH_I2C_Read... [14:46:19]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 34 39 33 39 90 00 17 [14:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:46:19]wFMCommunicate OK [14:46:19]CreateOFDProtocolMessage done [14:46:19]OFDSenderStorePacket 119110 [14:46:19]StoreOFDPacket docnum=119110 [14:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 24 F2 04 01 AE 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 BB FC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D1 01 00 35 04 06 00 67 DD A8 B5 E4 59 75 28 D9 E0 56 E2 70 86 [14:46:20]CheckFolder [14:46:20]dirname=/storage/ofd_packets [14:46:20]CheckFolder done [14:46:20]ProducePacketName [14:46:20]name=ofd_packets/00119110 [14:46:20]NVStorageSaveData ofd_packets/00119110 [14:46:20]File name is /storage/ofd_packets/00119110 [14:46:20]Write 298 bytes [14:46:20]NVStorageSaveData done [14:46:20]OFDSenderStorePacket done [14:46:20]KKMCreateOFDPacket done [14:46:20]NVStorageSaveData kkm_last_timestamp [14:46:20]File name is /storage/kkm_last_timestamp [14:46:20]Write 4 bytes [14:46:20]NVStorageSaveData done [14:46:20]ExternCall_PrintAddStr [14:46:20]wPrintStart [14:46:20]Write to MH i2c: 01 00 00 42 01 43 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [14:46:20]RasterBufferAndPrint [14:46:20]line Счет N : (1)950030 [14:46:20]line ИНН: 02508201610067 [14:46:20]line Контрольно-Кассовый Чек [14:46:20]line ПРОДАЖА [14:46:20]line ТРК (МРК, ГНК) : 44 [14:46:20]line Товар: 2710194800 [14:46:20]line ДТ-К-5 [14:46:20]line 3.290 * 76.20 [14:46:20]line = 250.70 [14:46:20]line НДС 12% НСП 1% [14:46:20]line > о реализуемом товаре [14:46:20]line ОКРУГЛЕНИЕ: -0.70 [14:46:20]line ИТОГО: 250.00 [14:46:20]line Внесено: 250.00 [14:46:20]line СДАЧА: 0.00 [14:46:20]line НСП 1% : 2.22 [14:46:20]line НДС 12% : 26.62 [14:46:20]line Наличными: 250.00 [14:46:20]line Безнал.: 0.00 [14:46:20]line Место: АЗС № 134 "Партнер Нефть" [14:46:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:46:20]line СНО: Общий режим [14:46:20]line Чек 162 30.07.2024 14:46 [14:46:20]line Смена: 435 ФФД: 1.0 [14:46:20]line ЗНМ: 0300000044 [14:46:20]line РНМ: 0000000000092660 [14:46:20]line Версия ККМ: 001 [14:46:20]line ФМ: 0000000000874939 [14:46:20]line ФД: 119110 [14:46:20]line ФПД: 114201715926105 [14:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T144619&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119110&fm=114201715926105&tin=02508201610067®Number=0000000000092660&sum=25000 [14:46:20]written 0, free lines is 4095 [14:46:20]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:46:20]ProducePacketName [14:46:20]name=ofd_packets/00119109 [14:46:20]OFD Sender: To server: pG, [14:46:20]CommunicateWithHost lk.salyk.kg:30040 [14:46:20]ConnectInit lk.salyk.kg [14:46:20]Write to MH i2c: 01 00 00 6C 01 6D [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 D6 0C 56 [14:46:20]RasterBufferAndPrint [14:46:20]line [14:46:20]line [14:46:20]line [14:46:20]line [14:46:20]line [14:46:20]written 0, free lines is 3299 [14:46:20]MH_Cut [14:46:20]Write to MH i2c: D1 01 00 73 01 01 46 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: D1 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: D1 01 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: D1 01 00 73 01 00 45 [14:46:20]Write to MH i2c: 01 00 00 74 01 75 [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:21]*** Cut start [14:46:21]*** Partial cut [14:46:21]*** CUTSNS_PIN = 1 [14:46:21]*** CUTSNS_PIN = 0 [14:46:21]*** Brake cut motor [14:46:21]Read from MH i2c: 01 [14:46:21]MH_I2C_Read... [14:46:21]*** Stop cut motor [14:46:21]*** Cut end [14:46:21]Read from MH i2c: 01 07 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [14:46:21]process_action close_receipt done [14:46:21]requested_data is exist [14:46:21]produce_requested_data [14:46:21]requested_item fm.sn is exist - process it [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 11 00 00 [14:46:21]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 17 00 [14:46:21]MH_I2C_Read... [14:46:21]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 34 39 33 39 90 00 4B [14:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:46:21]wFMCommunicate OK [14:46:21]requested_item fd.num is exist - process it [14:46:21]SAM_PROTO_GetFieldsCounters [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 13 00 00 [14:46:21]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 62 00 [14:46:22]MH_I2C_Read... [14:46:22]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_GetFieldsCounters done [14:46:22]requested_item shift.num is exist - process it [14:46:22]requested_item shift.opened is exist - process it [14:46:22]req_shift_opened [14:46:22]FM_GetShiftState [14:46:22]SAM_PROTO_GetShiftState [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 13 01 00 [14:46:22]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 0E 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C0 [14:46:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_GetShiftState done [14:46:22]FM_GetShiftState done [14:46:22]req_shift_opened done [14:46:22]requested_item shift.open_date is exist - process it [14:46:22]req_shift_open_date [14:46:22]req_shift_open_date done [14:46:22]produce_requested_data done [14:46:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119110,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:46:22]process_action_free close_receipt [14:46:22]json_value_free [14:46:22]json_value_free done [14:46:22]process_json_proto returns [14:46:22]Send response to host [14:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119110,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:46:22]free response buf [14:46:22]execute_script done [14:46:22]execute_script returns [14:46:22]free content buf [14:46:22]Sock 10.Close socket [14:46:22]Sock 10.Thread stoped [14:46:25]ConnectInit Can't take IP for lk.salyk.kg [14:46:25]CommunicateWithHost connect error [14:46:25]CommunicateWithHost err = -1 [14:46:25]OFD Sender: Server communicate error [14:46:30]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:46:30]ProducePacketName [14:46:30]name=ofd_packets/00119109 [14:46:30]OFD Sender: To server: pG, [14:46:30]CommunicateWithHost lk.salyk.kg:30040 [14:46:30]ConnectInit lk.salyk.kg [14:46:35]ConnectInit Can't take IP for lk.salyk.kg [14:46:35]CommunicateWithHost connect error [14:46:35]CommunicateWithHost err = -1 [14:46:35]OFD Sender: Server communicate error [14:46:40]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:46:40]ProducePacketName [14:46:40]name=ofd_packets/00119109 [14:46:40]OFD Sender: To server: pG, [14:46:40]CommunicateWithHost lk.salyk.kg:30040 [14:46:40]ConnectInit lk.salyk.kg [14:46:45]ConnectInit Can't take IP for lk.salyk.kg [14:46:45]CommunicateWithHost connect error [14:46:45]CommunicateWithHost err = -1 [14:46:45]OFD Sender: Server communicate error [14:46:50]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:46:50]ProducePacketName [14:46:50]name=ofd_packets/00119109 [14:46:50]OFD Sender: To server: pG, [14:46:50]CommunicateWithHost lk.salyk.kg:30040 [14:46:50]ConnectInit lk.salyk.kg [14:46:55]ConnectInit Can't take IP for lk.salyk.kg [14:46:55]CommunicateWithHost connect error [14:46:55]CommunicateWithHost err = -1 [14:46:55]OFD Sender: Server communicate error [14:47:00]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:47:00]ProducePacketName [14:47:00]name=ofd_packets/00119109 [14:47:00]OFD Sender: To server: pG, [14:47:00]CommunicateWithHost lk.salyk.kg:30040 [14:47:00]ConnectInit lk.salyk.kg [14:47:05]ConnectInit Can't take IP for lk.salyk.kg [14:47:05]CommunicateWithHost connect error [14:47:05]CommunicateWithHost err = -1 [14:47:05]OFD Sender: Server communicate error [14:47:10]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:47:10]ProducePacketName [14:47:10]name=ofd_packets/00119109 [14:47:10]OFD Sender: To server: pG, [14:47:10]CommunicateWithHost lk.salyk.kg:30040 [14:47:10]ConnectInit lk.salyk.kg [14:47:15]ConnectInit Can't take IP for lk.salyk.kg [14:47:15]CommunicateWithHost connect error [14:47:15]CommunicateWithHost err = -1 [14:47:15]OFD Sender: Server communicate error [14:47:20]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:47:20]ProducePacketName [14:47:20]name=ofd_packets/00119109 [14:47:20]OFD Sender: To server: pG, [14:47:20]CommunicateWithHost lk.salyk.kg:30040 [14:47:20]ConnectInit lk.salyk.kg [14:47:25]ConnectInit Can't take IP for lk.salyk.kg [14:47:25]CommunicateWithHost connect error [14:47:25]CommunicateWithHost err = -1 [14:47:25]OFD Sender: Server communicate error [14:47:30]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:47:30]ProducePacketName [14:47:30]name=ofd_packets/00119109 [14:47:30]OFD Sender: To server: pG, [14:47:30]CommunicateWithHost lk.salyk.kg:30040 [14:47:30]ConnectInit lk.salyk.kg [14:47:32]ConnectInit Can't connect to host [14:47:35]ConnectInit Can't take IP for lk.salyk.kg [14:47:35]CommunicateWithHost connect error [14:47:35]CommunicateWithHost err = -1 [14:47:35]OFD Sender: Server communicate error [14:47:40]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:47:40]ProducePacketName [14:47:40]name=ofd_packets/00119109 [14:47:40]OFD Sender: To server: pG, [14:47:40]CommunicateWithHost lk.salyk.kg:30040 [14:47:40]ConnectInit lk.salyk.kg [14:47:40]ConnectInit Can't connect to host [14:47:45]ConnectInit Can't take IP for lk.salyk.kg [14:47:45]CommunicateWithHost connect error [14:47:45]CommunicateWithHost err = -1 [14:47:45]OFD Sender: Server communicate error [14:47:45]ConnectInit Can't connect to host [14:47:50]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:47:50]ProducePacketName [14:47:50]name=ofd_packets/00119109 [14:47:50]OFD Sender: To server: pG, [14:47:50]CommunicateWithHost lk.salyk.kg:30040 [14:47:50]ConnectInit lk.salyk.kg [14:47:50]ConnectInit Can't connect to host [14:47:55]ConnectInit Can't take IP for lk.salyk.kg [14:47:55]CommunicateWithHost connect error [14:47:55]CommunicateWithHost err = -1 [14:47:55]OFD Sender: Server communicate error [14:47:55]ConnectInit Can't connect to host [14:48:00]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:48:00]ProducePacketName [14:48:00]name=ofd_packets/00119109 [14:48:00]OFD Sender: To server: pG, [14:48:00]CommunicateWithHost lk.salyk.kg:30040 [14:48:00]ConnectInit lk.salyk.kg [14:50:11]ConnectInit Can't connect to host [14:50:11]CommunicateWithHost connect error [14:50:11]CommunicateWithHost err = -1 [14:50:11]OFD Sender: Server communicate error [14:50:15]accept exits with 8 [14:50:15]New connection [14:50:15]New thread 3066723684 created [14:50:15]Thread 3066867044 joined [14:50:15]Waiting for new connection... [14:50:15] Sock 8.Parse request [14:50:15]Sock 8.Check first char [14:50:15]Sock 8.First char is OK [14:50:15]request: POST /json_proto HTTP/1.0 [14:50:15]Method: POST [14:50:15]URL: /json_proto [14:50:15]Method is POST - this is cgi request [14:50:15]url: /json_proto [14:50:15]query_string will be loaded in cgi processing [14:50:15]execute_cgi json_proto POST (null) [14:50:15]execute_cgi path=json_proto method=POST [14:50:15]POST find Content-Length [14:50:15]Host: 172.17.45.7:8080 [14:50:15]Content-Length: 1215 [14:50:15]Content-Type: application/json [14:50:15] [14:50:15]POST finish read [14:50:15]Found Content-Length = 1215 [14:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)950031\u000A30.07.2024 14:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 4572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4054438-4054437\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:15]execute_script... [14:50:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)950031\u000A30.07.2024 14:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 60.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 4572.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4054438-4054437\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:15]POST & json_proto [14:50:15]process_json_proto [14:50:15]json parsed OK: [14:50:15]protocol is kg_v1.0 [14:50:15]action value=print_text [14:50:15]process_action print_text [14:50:15]cmd_print_text [14:50:15]ExternCall_PrintAddStr [14:50:15]wPrintStart [14:50:15]Write to MH i2c: 01 00 00 78 01 79 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [14:50:15]RasterBufferAndPrint [14:50:15]line *****ТОВАРНЫЙ ЧЕК***** [14:50:15]line АЗС-134 [14:50:15]line Партнер нефть [14:50:15]line 02508201610067 [14:50:15]line Кассир : Айдарали у Б. [14:50:15]line Счет N : (1)950031 [14:50:15]line 30.07.2024 14:47 [14:50:15]line ПРОДАЖА [14:50:15]line ТРК (МРК, ГНК): 21 [14:50:15]line Вид ГСМ : 2710194800 [14:50:15]line ДТ-К-5 [14:50:15]line 60.000 x 76.20 [14:50:15]line ИТОГ: 4572.00 [14:50:15]line Тип оплаты: Талоны: Топливные Талоны [14:50:15]line 4054438-4054437 [14:50:15]line ______________________ [14:50:15]line (подпись) [14:50:15]written 0, free lines is 4095 [14:50:15]Write to MH i2c: 01 00 00 8C 01 8D [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 12 0E B4 [14:50:15]RasterBufferAndPrint [14:50:15]line [14:50:15]line [14:50:15]line [14:50:15]line [14:50:15]line [14:50:15]written 0, free lines is 3603 [14:50:15]MH_Cut [14:50:15]Write to MH i2c: D1 01 00 93 01 01 66 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: D1 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: D1 01 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: D1 01 00 93 01 00 65 [14:50:15]Write to MH i2c: 01 00 00 94 01 95 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:16]OFD Sender: Processing packet 119109 [packets to send 87, broken 85] [14:50:16]ProducePacketName [14:50:16]name=ofd_packets/00119109 [14:50:16]OFD Sender: To server: pG, [14:50:16]CommunicateWithHost lk.salyk.kg:30040 [14:50:16]ConnectInit lk.salyk.kg [14:50:16]*** Cut start [14:50:16]*** Partial cut [14:50:16]*** CUTSNS_PIN = 1 [14:50:16]*** CUTSNS_PIN = 0 [14:50:16]*** Brake cut motor [14:50:16]Read from MH i2c: 01 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: 01 07 00 [14:50:17]MH_I2C_Read... [14:50:17]*** Stop cut motor [14:50:17]*** Cut end [14:50:17]Read from MH i2c: 01 07 00 94 01 00 00 00 00 00 FF 0F AA [14:50:17]process_action print_text done [14:50:17]requested_data is exist [14:50:17]produce_requested_data [14:50:17]requested_item fm.sn is exist - process it [14:50:17]wFMCommunicate request_size=4 [14:50:17]MH_SAM_APDU [14:50:17]CAPDU: 80 11 00 00 [14:50:17]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [14:50:17]Write i2c OK [14:50:17]MH_I2C_Read... [14:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:17]Read from MH i2c: E2 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 17 00 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6B [14:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:50:17]wFMCommunicate OK [14:50:17]requested_item fd.num is exist - process it [14:50:17]SAM_PROTO_GetFieldsCounters [14:50:17]wFMCommunicate request_size=4 [14:50:17]MH_SAM_APDU [14:50:17]CAPDU: 80 13 00 00 [14:50:17]Write to MH i2c: E2 08 00 96 01 80 13 00 00 00 00 00 00 13 [14:50:17]Write i2c OK [14:50:17]MH_I2C_Read... [14:50:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:17]Read from MH i2c: E2 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 62 00 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 62 00 96 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [14:50:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 46 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:17]wFMCommunicate OK [14:50:17]SAM_PROTO_GetFieldsCounters done [14:50:17]requested_item shift.num is exist - process it [14:50:17]requested_item shift.opened is exist - process it [14:50:17]req_shift_opened [14:50:17]FM_GetShiftState [14:50:17]SAM_PROTO_GetShiftState [14:50:17]wFMCommunicate request_size=4 [14:50:17]MH_SAM_APDU [14:50:17]CAPDU: 80 13 01 00 [14:50:17]Write to MH i2c: E2 08 00 97 01 80 13 01 00 00 00 00 00 15 [14:50:17]Write i2c OK [14:50:17]MH_I2C_Read... [14:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:17]Read from MH i2c: E2 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 0E 00 [14:50:17]MH_I2C_Read... [14:50:17]Read from MH i2c: E2 0E 00 97 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E0 [14:50:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:50:17]wFMCommunicate OK [14:50:17]SAM_PROTO_GetShiftState done [14:50:17]FM_GetShiftState done [14:50:17]req_shift_opened done [14:50:17]requested_item shift.open_date is exist - process it [14:50:17]req_shift_open_date [14:50:17]req_shift_open_date done [14:50:17]produce_requested_data done [14:50:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119110,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:50:17]process_action_free print_text [14:50:17]json_value_free [14:50:17]json_value_free done [14:50:17]process_json_proto returns [14:50:17]Send response to host [14:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119110,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:50:17]free response buf [14:50:17]execute_script done [14:50:17]execute_script returns [14:50:17]free content buf [14:50:17]Sock 8.Close socket [14:50:17]Sock 8.Thread stoped [14:50:54]accept exits with 9 [14:50:54]New connection [14:50:54]New thread 3066867044 created [14:50:54]Thread 3066723684 joined [14:50:54]Waiting for new connection... [14:50:54] Sock 9.Parse request [14:50:54]Sock 9.Check first char [14:50:54]Sock 9.First char is OK [14:50:54]request: POST /json_proto HTTP/1.0 [14:50:54]Method: POST [14:50:54]URL: /json_proto [14:50:54]Method is POST - this is cgi request [14:50:54]url: /json_proto [14:50:54]query_string will be loaded in cgi processing [14:50:54]execute_cgi json_proto POST (null) [14:50:54]execute_cgi path=json_proto method=POST [14:50:54]POST find Content-Length [14:50:54]Host: 172.17.45.7:8080 [14:50:54]Content-Length: 819 [14:50:54]Content-Type: application/json [14:50:54] [14:50:54]POST finish read [14:50:54]Found Content-Length = 819 [14:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:54]execute_script... [14:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:54]POST & json_proto [14:50:54]process_json_proto [14:50:54]json parsed OK: [14:50:54]protocol is kg_v1.0 [14:50:54]action value=close_receipt [14:50:54]process_action close_receipt [14:50:54]cmd_close_receipt [14:50:54]MH_GetDate [14:50:54]Write to MH i2c: F0 00 00 98 01 88 [14:50:54]Write i2c OK [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: F0 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: F0 09 00 [14:50:54]MH_I2C_Read... [14:50:54]Read from MH i2c: F0 09 00 98 01 00 CF FD A8 66 90 0F 3E 66 AE [14:50:54]GetLastDocTimeStamp 1722350779 [14:50:54]current date 1722351055 [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 99 01 80 13 01 00 00 00 00 00 17 [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 99 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E2 [14:50:54]RAPDU: 09 00 01 82 2F A8 66 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]opened in 1722298242 [14:50:54]opened+sec_in_day 1722384642 [14:50:54]quantity*price = 200025 [14:50:54]sum+1 = 200026 [14:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 163 30.07.2024 14:50 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119111 ФПД: 144470659714873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T145055&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119111&fm=144470659714873&tin=02508201610067®Number=0000000000092660&sum=200000 [14:50:55]StoreToDocumentArchive [14:50:55]shift 435 fd 119111 [14:50:55]save to /storage/0435/doc_00119111 [14:50:55]save last doc name /storage/0435/doc_00119111 to /storage/kkm_last_doc_name [14:50:55]save OK [14:50:55]Clear old archive folders... [14:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:50:55]tlvbuf is 00BCE760 [14:50:55]SAM_PROTO_ClearQueue [14:50:55]wFMCommunicate request_size=4 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 09 00 00 [14:50:55]Write to MH i2c: E2 08 00 A6 01 80 09 00 00 00 00 00 00 19 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 A6 01 00 90 00 1B [14:50:55]RAPDU: 90 00 [14:50:55]wFMCommunicate OK [14:50:55]SAM_PROTO_ClearQueue done [14:50:55]KKMCreateOFDPacket [14:50:55]OFDProtocolAddRootSTLVToBuf [14:50:55]FM_MakeSignedData [14:50:55]FM_MakeSignedData [14:50:55]SAM_PROTO_SignData [14:50:55]wFMCommunicate request_size=4 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 0D 01 02 [14:50:55]Write to MH i2c: E2 08 00 A7 01 80 0D 01 02 00 00 00 00 21 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 A7 01 00 90 00 1C [14:50:55]RAPDU: 90 00 [14:50:55]wFMCommunicate OK [14:50:55]wFMCommunicate request_size=255 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF FD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D1 01 00 35 04 06 00 83 65 32 5A [14:50:55]Write to MH i2c: E2 02 01 A8 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF FD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D1 01 00 35 04 06 00 83 65 32 5A 00 00 5D [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [14:50:55]RAPDU: 90 00 [14:50:55]wFMCommunicate OK [14:50:55]wFMCommunicate request_size=7 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 0D 02 02 02 4F 39 [14:50:55]Write to MH i2c: E2 0A 00 A9 01 80 0D 02 02 02 00 4F 39 00 00 B0 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [14:50:55]RAPDU: 90 00 [14:50:55]wFMCommunicate OK [14:50:55]wFMCommunicate request_size=4 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 0D 03 02 [14:50:55]Write to MH i2c: E2 08 00 AA 01 80 0D 03 02 00 00 00 00 26 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 0B 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 0B 00 AA 01 00 4B 86 3E E0 0B 51 9A 99 90 00 A5 [14:50:55]RAPDU: 4B 86 3E E0 0B 51 9A 99 90 00 [14:50:55]wFMCommunicate OK [14:50:55]SAM_PROTO_SignData done [14:50:55]FM_MakeSignedData done [14:50:55]CreateOFDProtocolMessage [14:50:55]wFMCommunicate request_size=4 [14:50:55]MH_SAM_APDU [14:50:55]CAPDU: 80 11 00 00 [14:50:55]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:55]Read from MH i2c: E2 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 17 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 81 [14:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:50:55]wFMCommunicate OK [14:50:55]CreateOFDProtocolMessage done [14:50:55]OFDSenderStorePacket 119111 [14:50:55]StoreOFDPacket docnum=119111 [14:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DE 51 04 01 F1 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF FD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D1 01 00 35 04 06 00 83 65 32 5A 4F 39 4B 86 3E E0 0B 51 9A 99 [14:50:55]CheckFolder [14:50:55]dirname=/storage/ofd_packets [14:50:55]CheckFolder done [14:50:55]ProducePacketName [14:50:55]name=ofd_packets/00119111 [14:50:55]NVStorageSaveData ofd_packets/00119111 [14:50:55]File name is /storage/ofd_packets/00119111 [14:50:55]Write 298 bytes [14:50:55]NVStorageSaveData done [14:50:55]OFDSenderStorePacket done [14:50:55]KKMCreateOFDPacket done [14:50:55]NVStorageSaveData kkm_last_timestamp [14:50:55]File name is /storage/kkm_last_timestamp [14:50:55]Write 4 bytes [14:50:55]NVStorageSaveData done [14:50:55]ExternCall_PrintAddStr [14:50:55]wPrintStart [14:50:55]Write to MH i2c: 01 00 00 AC 01 AD [14:50:55]Write i2c OK [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 07 00 [14:50:55]MH_I2C_Read... [14:50:55]Read from MH i2c: 01 07 00 AC 01 00 00 00 00 00 FF 0F C2 [14:50:55]RasterBufferAndPrint [14:50:55]line Счет N : (1)950032 [14:50:55]line ИНН: 02508201610067 [14:50:55]line Контрольно-Кассовый Чек [14:50:55]line ПРОДАЖА [14:50:55]line ТРК (МРК, ГНК) : 34 [14:50:55]line Товар: 2710194800 [14:50:55]line ДТ-К-5 [14:50:55]line 26.250 * 76.20 [14:50:55]line = 2000.25 [14:50:55]line НДС 12% НСП 1% [14:50:55]line > о реализуемом товаре [14:50:55]line ОКРУГЛЕНИЕ: -0.25 [14:50:55]line ИТОГО: 2000.00 [14:50:55]line НСП 1% : 17.70 [14:50:55]line НДС 12% : 212.42 [14:50:55]line Наличными: 0.00 [14:50:55]line Безнал.: 2000.00 [14:50:55]line Место: АЗС № 134 "Партнер Нефть" [14:50:55]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:50:55]line СНО: Общий режим [14:50:55]line Чек 163 30.07.2024 14:50 [14:50:55]line Смена: 435 ФФД: 1.0 [14:50:55]line ЗНМ: 0300000044 [14:50:55]line РНМ: 0000000000092660 [14:50:55]line Версия ККМ: 001 [14:50:55]line Платежная система: O! деньги [14:50:55]line ФМ: 0000000000874939 [14:50:55]line ФД: 119111 [14:50:55]line ФПД: 144470659714873 [14:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T145055&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119111&fm=144470659714873&tin=02508201610067®Number=0000000000092660&sum=200000 [14:50:56]written 0, free lines is 4095 [14:50:56]Write to MH i2c: 01 00 00 D6 01 D7 [14:50:56]Write i2c OK [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: 01 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: 01 07 00 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 D7 0C C1 [14:50:56]RasterBufferAndPrint [14:50:56]line [14:50:56]line [14:50:56]line [14:50:56]line [14:50:56]line [14:50:56]written 0, free lines is 3296 [14:50:56]MH_Cut [14:50:56]Write to MH i2c: D1 01 00 DD 01 01 B0 [14:50:56]Write i2c OK [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: D1 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: D1 01 00 [14:50:56]MH_I2C_Read... [14:50:56]Read from MH i2c: D1 01 00 DD 01 00 AF [14:50:56]Write to MH i2c: 01 00 00 DE 01 DF [14:50:56]Write i2c OK [14:50:56]MH_I2C_Read... [14:50:57]*** Cut start [14:50:57]*** Partial cut [14:50:57]*** CUTSNS_PIN = 1 [14:50:57]*** CUTSNS_PIN = 0 [14:50:57]*** Brake cut motor [14:50:58]Read from MH i2c: 01 [14:50:58]MH_I2C_Read... [14:50:58]*** Stop cut motor [14:50:58]*** Cut end [14:50:58]Read from MH i2c: 01 07 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [14:50:58]process_action close_receipt done [14:50:58]requested_data is exist [14:50:58]produce_requested_data [14:50:58]requested_item fm.sn is exist - process it [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 11 00 00 [14:50:58]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 17 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B5 [14:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:50:58]wFMCommunicate OK [14:50:58]requested_item fd.num is exist - process it [14:50:58]SAM_PROTO_GetFieldsCounters [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 13 00 00 [14:50:58]Write to MH i2c: E2 08 00 E0 01 80 13 00 00 00 00 00 00 5D [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 62 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 62 00 E0 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [14:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 47 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_GetFieldsCounters done [14:50:58]requested_item shift.num is exist - process it [14:50:58]requested_item shift.opened is exist - process it [14:50:58]req_shift_opened [14:50:58]FM_GetShiftState [14:50:58]SAM_PROTO_GetShiftState [14:50:58]wFMCommunicate request_size=4 [14:50:58]MH_SAM_APDU [14:50:58]CAPDU: 80 13 01 00 [14:50:58]Write to MH i2c: E2 08 00 E1 01 80 13 01 00 00 00 00 00 5F [14:50:58]Write i2c OK [14:50:58]MH_I2C_Read... [14:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:58]Read from MH i2c: E2 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0E 00 [14:50:58]MH_I2C_Read... [14:50:58]Read from MH i2c: E2 0E 00 E1 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2A [14:50:58]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:50:58]wFMCommunicate OK [14:50:58]SAM_PROTO_GetShiftState done [14:50:58]FM_GetShiftState done [14:50:58]req_shift_opened done [14:50:58]requested_item shift.open_date is exist - process it [14:50:58]req_shift_open_date [14:50:58]req_shift_open_date done [14:50:58]produce_requested_data done [14:50:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119111,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:50:58]process_action_free close_receipt [14:50:58]json_value_free [14:50:58]json_value_free done [14:50:58]process_json_proto returns [14:50:58]Send response to host [14:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119111,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:50:58]free response buf [14:50:58]execute_script done [14:50:58]execute_script returns [14:50:58]free content buf [14:50:58]Sock 9.Close socket [14:50:58]Sock 9.Thread stoped [14:51:06]recv_with_timeout no data received [14:52:29]ConnectInit Can't connect to host [14:52:29]CommunicateWithHost connect error [14:52:29]CommunicateWithHost err = -1 [14:52:29]OFD Sender: Server communicate error [14:52:29]OFD Sender: Processing packet 119109 [packets to send 88, broken 85] [14:52:29]ProducePacketName [14:52:29]name=ofd_packets/00119109 [14:52:29]OFD Sender: To server: pG, [14:52:29]CommunicateWithHost lk.salyk.kg:30040 [14:52:29]ConnectInit lk.salyk.kg [14:52:30]Connected sock=9 [14:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 49 2E 07 01 F5 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 A1 00 00 00 F4 03 04 00 89 FC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D1 01 00 35 04 06 00 9B 81 93 6E 06 4F 0D FB 33 08 1D 63 7F A9 [14:52:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8D 6D 47 00 98 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 45 D1 01 00 F4 03 04 00 B8 AB A8 66 B6 04 01 00 00 DF 48 8A 4F 83 DD 39 CC [14:52:30]CommunicateWithHost err = 0 [14:52:30]CheckOFDResponse [14:52:30]1017 (14) - 77093643461234 [14:52:30]1041 (16) - 0000000000874939 [14:52:30]1040 (4) - 119109 [14:52:30]1012 (4) - 30.07.2024 09:00 [14:52:30]1206 (1) - 0 [14:52:30]OFD Sender: Remove packet 119109 [14:52:30]ProducePacketName [14:52:30]name=ofd_packets/00119109 [14:52:30]NVStorageDeleteData [14:52:31]OFD Sender: Processing packet 119110 [packets to send 87, broken 85] [14:52:31]ProducePacketName [14:52:31]name=ofd_packets/00119110 [14:52:31]OFD Sender: To server: pG, [14:52:31]CommunicateWithHost lk.salyk.kg:30040 [14:52:31]ConnectInit lk.salyk.kg [14:52:33]Connected sock=9 [14:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 24 F2 04 01 AE 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 BB FC A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D1 01 00 35 04 06 00 67 DD A8 B5 E4 59 75 28 D9 E0 56 E2 70 86 [14:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8E 98 47 00 99 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 46 D1 01 00 F4 03 04 00 BB AB A8 66 B6 04 01 00 00 98 E2 9A 05 9A 6D E4 26 [14:52:34]CommunicateWithHost err = 0 [14:52:34]CheckOFDResponse [14:52:34]1017 (14) - 77093643461234 [14:52:34]1041 (16) - 0000000000874939 [14:52:34]1040 (4) - 119110 [14:52:34]1012 (4) - 30.07.2024 09:00 [14:52:34]1206 (1) - 0 [14:52:34]OFD Sender: Remove packet 119110 [14:52:34]ProducePacketName [14:52:34]name=ofd_packets/00119110 [14:52:34]NVStorageDeleteData [14:52:34]OFD Sender: Processing packet 119111 [packets to send 86, broken 85] [14:52:34]ProducePacketName [14:52:34]name=ofd_packets/00119111 [14:52:34]OFD Sender: To server: pG, [14:52:34]CommunicateWithHost lk.salyk.kg:30040 [14:52:34]ConnectInit lk.salyk.kg [14:52:36]Connected sock=9 [14:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DE 51 04 01 F1 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CF FD A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 47 D1 01 00 35 04 06 00 83 65 32 5A 4F 39 4B 86 3E E0 0B 51 9A 99 [14:52:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE BA 47 00 4D 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 34 39 33 39 10 04 04 00 47 D1 01 00 F4 03 04 00 BE AB A8 66 B6 04 01 00 00 49 5D 81 7A 06 C2 8A 5C [14:52:37]CommunicateWithHost err = 0 [14:52:37]CheckOFDResponse [14:52:37]1017 (14) - 77093643461234 [14:52:37]1041 (16) - 0000000000874939 [14:52:37]1040 (4) - 119111 [14:52:37]1012 (4) - 30.07.2024 09:00 [14:52:37]1206 (1) - 0 [14:52:37]OFD Sender: Remove packet 119111 [14:52:37]ProducePacketName [14:52:37]name=ofd_packets/00119111 [14:52:37]NVStorageDeleteData [14:52:37]OFD Sender: No OFD packet to send [14:52:39]accept exits with 8 [14:52:39]New connection [14:52:39]New thread 3066723684 created [14:52:39]Thread 3066867044 joined [14:52:39]Waiting for new connection... [14:52:39] Sock 8.Parse request [14:52:39]Sock 8.Check first char [14:52:39]Sock 8.First char is OK [14:52:39]request: POST /json_proto HTTP/1.0 [14:52:39]Method: POST [14:52:39]URL: /json_proto [14:52:39]Method is POST - this is cgi request [14:52:39]url: /json_proto [14:52:39]query_string will be loaded in cgi processing [14:52:39]execute_cgi json_proto POST (null) [14:52:39]execute_cgi path=json_proto method=POST [14:52:39]POST find Content-Length [14:52:39]Host: 172.17.45.7:8080 [14:52:39]Content-Length: 819 [14:52:39]Content-Type: application/json [14:52:39] [14:52:39]POST finish read [14:52:39]Found Content-Length = 819 [14:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 64.680, "sum" : 4928.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4928.00, "payments": [ { "type": 1, "sum" : 4928.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:39]execute_script... [14:52: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)950033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 64.680, "sum" : 4928.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 4928.00, "payments": [ { "type": 1, "sum" : 4928.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:39]POST & json_proto [14:52:39]process_json_proto [14:52:39]json parsed OK: [14:52:39]protocol is kg_v1.0 [14:52:39]action value=close_receipt [14:52:39]process_action close_receipt [14:52:39]cmd_close_receipt [14:52:39]MH_GetDate [14:52:39]Write to MH i2c: F0 00 00 E2 01 D2 [14:52:39]Write i2c OK [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: F0 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: F0 09 00 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: F0 09 00 E2 01 00 38 FE A8 66 90 0F 3E 66 62 [14:52:39]GetLastDocTimeStamp 1722351055 [14:52:39]current date 1722351160 [14:52:39]FM_GetShiftState [14:52:39]SAM_PROTO_GetShiftState [14:52:39]wFMCommunicate request_size=4 [14:52:39]MH_SAM_APDU [14:52:39]CAPDU: 80 13 01 00 [14:52:39]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [14:52:39]Write i2c OK [14:52:39]MH_I2C_Read... [14:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:39]Read from MH i2c: E2 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: E2 0E 00 [14:52:39]MH_I2C_Read... [14:52:39]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2C [14:52:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:52:39]wFMCommunicate OK [14:52:39]SAM_PROTO_GetShiftState done [14:52:39]FM_GetShiftState done [14:52:39]opened in 1722298242 [14:52:39]opened+sec_in_day 1722384642 [14:52:39]quantity*price = 492861 [14:52:39]sum+1 = 492863 [14:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 4928.00 НСП 1% : 43.62 НДС 12% : 523.39 Наличными: 0.00 Безнал.: 4928.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 164 30.07.2024 14:52 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119112 ФПД: 151629729654423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T145240&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119112&fm=151629729654423&tin=02508201610067®Number=0000000000092660&sum=492800 [14:52:40]StoreToDocumentArchive [14:52:40]shift 435 fd 119112 [14:52:40]save to /storage/0435/doc_00119112 [14:52:40]save last doc name /storage/0435/doc_00119112 to /storage/kkm_last_doc_name [14:52:40]save OK [14:52:40]Clear old archive folders... [14:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:52:40]tlvbuf is 00BD6D20 [14:52:40]SAM_PROTO_ClearQueue [14:52:40]wFMCommunicate request_size=4 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 09 00 00 [14:52:40]Write to MH i2c: E2 08 00 F0 01 80 09 00 00 00 00 00 00 63 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [14:52:40]RAPDU: 90 00 [14:52:40]wFMCommunicate OK [14:52:40]SAM_PROTO_ClearQueue done [14:52:40]KKMCreateOFDPacket [14:52:40]OFDProtocolAddRootSTLVToBuf [14:52:40]FM_MakeSignedData [14:52:40]FM_MakeSignedData [14:52:40]SAM_PROTO_SignData [14:52:40]wFMCommunicate request_size=4 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 0D 01 02 [14:52:40]Write to MH i2c: E2 08 00 F1 01 80 0D 01 02 00 00 00 00 6B [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [14:52:40]RAPDU: 90 00 [14:52:40]wFMCommunicate OK [14:52:40]wFMCommunicate request_size=255 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 FC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 85 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 85 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 CC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 85 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 38 FE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D1 01 00 35 04 06 00 89 E8 0C 2C [14:52:40]Write to MH i2c: E2 02 01 F2 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 FC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 85 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 85 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 CC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 85 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 38 FE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D1 01 00 35 04 06 00 89 E8 0C 2C 00 00 F3 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [14:52:40]RAPDU: 90 00 [14:52:40]wFMCommunicate OK [14:52:40]wFMCommunicate request_size=7 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 0D 02 02 02 66 97 [14:52:40]Write to MH i2c: E2 0A 00 F3 01 80 0D 02 02 02 00 66 97 00 00 6F [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [14:52:40]RAPDU: 90 00 [14:52:40]wFMCommunicate OK [14:52:40]wFMCommunicate request_size=4 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 0D 03 02 [14:52:40]Write to MH i2c: E2 08 00 F4 01 80 0D 03 02 00 00 00 00 70 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 0B 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 0B 00 F4 01 00 A3 D1 7C ED F2 86 15 08 90 00 E3 [14:52:40]RAPDU: A3 D1 7C ED F2 86 15 08 90 00 [14:52:40]wFMCommunicate OK [14:52:40]SAM_PROTO_SignData done [14:52:40]FM_MakeSignedData done [14:52:40]CreateOFDProtocolMessage [14:52:40]wFMCommunicate request_size=4 [14:52:40]MH_SAM_APDU [14:52:40]CAPDU: 80 11 00 00 [14:52:40]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:40]Read from MH i2c: E2 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 17 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CB [14:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:52:40]wFMCommunicate OK [14:52:40]CreateOFDProtocolMessage done [14:52:40]OFDSenderStorePacket 119112 [14:52:40]StoreOFDPacket docnum=119112 [14:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 DB 04 01 7C 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 FC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 85 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 85 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 CC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 85 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 38 FE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D1 01 00 35 04 06 00 89 E8 0C 2C 66 97 A3 D1 7C ED F2 86 15 08 [14:52:40]CheckFolder [14:52:40]dirname=/storage/ofd_packets [14:52:40]CheckFolder done [14:52:40]ProducePacketName [14:52:40]name=ofd_packets/00119112 [14:52:40]NVStorageSaveData ofd_packets/00119112 [14:52:40]File name is /storage/ofd_packets/00119112 [14:52:40]Write 298 bytes [14:52:40]NVStorageSaveData done [14:52:40]OFDSenderStorePacket done [14:52:40]KKMCreateOFDPacket done [14:52:40]NVStorageSaveData kkm_last_timestamp [14:52:40]File name is /storage/kkm_last_timestamp [14:52:40]Write 4 bytes [14:52:40]NVStorageSaveData done [14:52:40]ExternCall_PrintAddStr [14:52:40]wPrintStart [14:52:40]Write to MH i2c: 01 00 00 F6 01 F7 [14:52:40]Write i2c OK [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: 01 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: 01 07 00 [14:52:40]MH_I2C_Read... [14:52:40]Read from MH i2c: 01 07 00 F6 01 00 00 00 00 00 FF 0F 0C [14:52:40]RasterBufferAndPrint [14:52:40]line Счет N : (1)950033 [14:52:40]line ИНН: 02508201610067 [14:52:40]line Контрольно-Кассовый Чек [14:52:40]line ПРОДАЖА [14:52:40]line ТРК (МРК, ГНК) : 21 [14:52:40]line Товар: 2710194800 [14:52:40]line ДТ-К-5 [14:52:40]line 64.680 * 76.20 [14:52:40]line = 4928.62 [14:52:40]line НДС 12% НСП 1% [14:52:40]line > о реализуемом товаре [14:52:40]line ОКРУГЛЕНИЕ: -0.62 [14:52:40]line ИТОГО: 4928.00 [14:52:40]line НСП 1% : 43.62 [14:52:40]line НДС 12% : 523.39 [14:52:40]line Наличными: 0.00 [14:52:40]line Безнал.: 4928.00 [14:52:40]line Место: АЗС № 134 "Партнер Нефть" [14:52:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:52:40]line СНО: Общий режим [14:52:40]line Чек 164 30.07.2024 14:52 [14:52:40]line Смена: 435 ФФД: 1.0 [14:52:40]line ЗНМ: 0300000044 [14:52:40]line РНМ: 0000000000092660 [14:52:40]line Версия ККМ: 001 [14:52:40]line Платежная система: O! деньги [14:52:40]line ФМ: 0000000000874939 [14:52:40]line ФД: 119112 [14:52:40]line ФПД: 151629729654423 [14:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T145240&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119112&fm=151629729654423&tin=02508201610067®Number=0000000000092660&sum=492800 [14:52:41]OFD Sender: Processing packet 119112 [packets to send 86, broken 85] [14:52:41]ProducePacketName [14:52:41]name=ofd_packets/00119112 [14:52:41]OFD Sender: To server: pG, [14:52:41]CommunicateWithHost lk.salyk.kg:30040 [14:52:41]ConnectInit lk.salyk.kg [14:52:41]written 0, free lines is 4095 [14:52:41]Write to MH i2c: 01 00 00 20 02 22 [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 07 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 E7 0C 1C [14:52:41]RasterBufferAndPrint [14:52:41]line [14:52:41]line [14:52:41]line [14:52:41]line [14:52:41]line [14:52:41]written 0, free lines is 3310 [14:52:41]MH_Cut [14:52:41]Write to MH i2c: D1 01 00 27 02 01 FB [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: D1 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: D1 01 00 [14:52:41]MH_I2C_Read... [14:52:41]Read from MH i2c: D1 01 00 27 02 00 FA [14:52:41]Write to MH i2c: 01 00 00 28 02 2A [14:52:41]Write i2c OK [14:52:41]MH_I2C_Read... [14:52:42]*** Cut start [14:52:42]*** Partial cut [14:52:42]*** CUTSNS_PIN = 1 [14:52:42]*** CUTSNS_PIN = 0 [14:52:42]*** Brake cut motor [14:52:43]Read from MH i2c: 01 [14:52:43]MH_I2C_Read... [14:52:43]*** Stop cut motor [14:52:43]*** Cut end [14:52:43]Read from MH i2c: 01 07 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [14:52:43]process_action close_receipt done [14:52:43]requested_data is exist [14:52:43]produce_requested_data [14:52:43]requested_item fm.sn is exist - process it [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 11 00 00 [14:52:43]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 17 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 00 [14:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [14:52:43]wFMCommunicate OK [14:52:43]requested_item fd.num is exist - process it [14:52:43]SAM_PROTO_GetFieldsCounters [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 13 00 00 [14:52:43]Write to MH i2c: E2 08 00 2A 02 80 13 00 00 00 00 00 00 A8 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]Connected sock=11 [14:52:43]Data to sent: 87 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:43]95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 DB 04 01 7C 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 FC 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3E 85 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 85 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 CC 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 85 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 38 FE A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D1 01 00 35 04 06 00 89 E8 0C 2C 66 97 A3 D1 7C ED F2 86 15 08 [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 62 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 62 00 2A 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [14:52:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 48 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:43]wFMCommunicate OK [14:52:43]SAM_PROTO_GetFieldsCounters done [14:52:43]requested_item shift.num is exist - process it [14:52:43]requested_item shift.opened is exist - process it [14:52:43]req_shift_opened [14:52:43]FM_GetShiftState [14:52:43]SAM_PROTO_GetShiftState [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 13 01 00 [14:52:43]Write to MH i2c: E2 08 00 2B 02 80 13 01 00 00 00 00 00 AA [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 0E 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 0E 00 2B 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 75 [14:52:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [14:52:43]wFMCommunicate OK [14:52:43]SAM_PROTO_GetShiftState done [14:52:43]FM_GetShiftState done [14:52:43]req_shift_opened done [14:52:43]requested_item shift.open_date is exist - process it [14:52:43]req_shift_open_date [14:52:43]req_shift_open_date done [14:52:43]produce_requested_data done [14:52:43]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119112,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [14:52:43]process_action_free close_receipt [14:52:43]json_value_free [14:52:43]json_value_free done [14:52:43]process_json_proto returns [14:52:43]Send response to host [14:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119112,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [14:52:43]free response buf [14:52:43]execute_script done [14:52:43]execute_script returns [14:52:43]free content buf [14:52:43]Sock 8.Close socket [14:52:43]Sock 8.Thread stoped [14:52:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 64 E4 47 00 56 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 48 D1 01 00 F4 03 04 00 C5 AB A8 66 B6 04 01 00 00 D2 C4 FE A0 88 1D 30 D7 [14:52:43]CommunicateWithHost err = 0 [14:52:43]CheckOFDResponse [14:52:43]1017 (14) - 77093643461234 [14:52:43]1041 (16) - 0000000000874939 [14:52:43]1040 (4) - 119112 [14:52:43]1012 (4) - 30.07.2024 09:00 [14:52:43]1206 (1) - 0 [14:52:43]OFD Sender: Remove packet 119112 [14:52:43]ProducePacketName [14:52:43]name=ofd_packets/00119112 [14:52:43]NVStorageDeleteData [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:38]recv_with_timeout no data received [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:49]recv_with_timeout no data received [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:29]ConnectInit Can't connect to host [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:50]accept exits with 10 [15:05:50]New connection [15:05:50]New thread 3066867044 created [15:05:50]Thread 3066723684 joined [15:05:50]Waiting for new connection... [15:05:50] Sock 10.Parse request [15:05:50]Sock 10.Check first char [15:05:50]Sock 10.First char is OK [15:05:50]request: POST /json_proto HTTP/1.0 [15:05:50]Method: POST [15:05:50]URL: /json_proto [15:05:50]Method is POST - this is cgi request [15:05:50]url: /json_proto [15:05:50]query_string will be loaded in cgi processing [15:05:50]execute_cgi json_proto POST (null) [15:05:50]execute_cgi path=json_proto method=POST [15:05:50]POST find Content-Length [15:05:50]Host: 172.17.45.7:8080 [15:05:50]Content-Length: 820 [15:05:50]Content-Type: application/json [15:05:50] [15:05:50]POST finish read [15:05:50]Found Content-Length = 820 [15:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:50]execute_script... [15:05: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)950035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:50]POST & json_proto [15:05:50]process_json_proto [15:05:50]json parsed OK: [15:05:50]protocol is kg_v1.0 [15:05:50]action value=close_receipt [15:05:50]process_action close_receipt [15:05:50]cmd_close_receipt [15:05:50]MH_GetDate [15:05:50]Write to MH i2c: F0 00 00 2C 02 1D [15:05:50]Write i2c OK [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: F0 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: F0 09 00 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: F0 09 00 2C 02 00 4F 01 A9 66 90 0F 3E 66 C8 [15:05:50]GetLastDocTimeStamp 1722351160 [15:05:50]current date 1722351951 [15:05:50]FM_GetShiftState [15:05:50]SAM_PROTO_GetShiftState [15:05:50]wFMCommunicate request_size=4 [15:05:50]MH_SAM_APDU [15:05:50]CAPDU: 80 13 01 00 [15:05:50]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [15:05:50]Write i2c OK [15:05:50]MH_I2C_Read... [15:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:50]Read from MH i2c: E2 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: E2 0E 00 [15:05:50]MH_I2C_Read... [15:05:50]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 77 [15:05:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:05:50]wFMCommunicate OK [15:05:50]SAM_PROTO_GetShiftState done [15:05:50]FM_GetShiftState done [15:05:50]opened in 1722298242 [15:05:50]opened+sec_in_day 1722384642 [15:05:50]quantity*price = 998982 [15:05:50]sum+1 = 998983 [15:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 165 30.07.2024 15:05 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119113 ФПД: 253110836084669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T150551&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119113&fm=253110836084669&tin=02508201610067®Number=0000000000092660&sum=998900 [15:05:51]StoreToDocumentArchive [15:05:51]shift 435 fd 119113 [15:05:51]save to /storage/0435/doc_00119113 [15:05:51]save last doc name /storage/0435/doc_00119113 to /storage/kkm_last_doc_name [15:05:51]save OK [15:05:51]Clear old archive folders... [15:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:51]tlvbuf is 00C0B7B0 [15:05:51]SAM_PROTO_ClearQueue [15:05:51]wFMCommunicate request_size=4 [15:05:51]MH_SAM_APDU [15:05:51]CAPDU: 80 09 00 00 [15:05:51]Write to MH i2c: E2 08 00 3A 02 80 09 00 00 00 00 00 00 AE [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:51]Read from MH i2c: E2 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [15:05:51]RAPDU: 90 00 [15:05:51]wFMCommunicate OK [15:05:51]SAM_PROTO_ClearQueue done [15:05:51]KKMCreateOFDPacket [15:05:51]OFDProtocolAddRootSTLVToBuf [15:05:51]FM_MakeSignedData [15:05:51]FM_MakeSignedData [15:05:51]SAM_PROTO_SignData [15:05:51]wFMCommunicate request_size=4 [15:05:51]MH_SAM_APDU [15:05:51]CAPDU: 80 0D 01 02 [15:05:51]Write to MH i2c: E2 08 00 3B 02 80 0D 01 02 00 00 00 00 B6 [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:51]Read from MH i2c: E2 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [15:05:51]RAPDU: 90 00 [15:05:51]wFMCommunicate OK [15:05:51]wFMCommunicate request_size=255 [15:05:51]MH_SAM_APDU [15:05:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4F 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D1 01 00 35 04 06 00 E6 33 F5 79 [15:05:51]Write to MH i2c: E2 02 01 3C 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4F 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D1 01 00 35 04 06 00 E6 33 F5 79 00 00 3A [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:51]Read from MH i2c: E2 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [15:05:51]RAPDU: 90 00 [15:05:51]wFMCommunicate OK [15:05:51]wFMCommunicate request_size=7 [15:05:51]MH_SAM_APDU [15:05:51]CAPDU: 80 0D 02 02 02 3F BD [15:05:51]Write to MH i2c: E2 0A 00 3D 02 80 0D 02 02 02 00 3F BD 00 00 B9 [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:51]Read from MH i2c: E2 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [15:05:51]RAPDU: 90 00 [15:05:51]wFMCommunicate OK [15:05:51]wFMCommunicate request_size=4 [15:05:51]MH_SAM_APDU [15:05:51]CAPDU: 80 0D 03 02 [15:05:51]Write to MH i2c: E2 08 00 3E 02 80 0D 03 02 00 00 00 00 BB [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:51]Read from MH i2c: E2 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 0B 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 0B 00 3E 02 00 1A 65 7C FB 28 09 9F 11 90 00 93 [15:05:51]RAPDU: 1A 65 7C FB 28 09 9F 11 90 00 [15:05:51]wFMCommunicate OK [15:05:51]SAM_PROTO_SignData done [15:05:51]FM_MakeSignedData done [15:05:51]CreateOFDProtocolMessage [15:05:51]wFMCommunicate request_size=4 [15:05:51]MH_SAM_APDU [15:05:51]CAPDU: 80 11 00 00 [15:05:51]Write to MH i2c: E2 08 00 3F 02 80 11 00 00 00 00 00 00 BB [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:51]Read from MH i2c: E2 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 17 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: E2 17 00 3F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 16 [15:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:05:51]wFMCommunicate OK [15:05:51]CreateOFDProtocolMessage done [15:05:51]OFDSenderStorePacket 119113 [15:05:51]StoreOFDPacket docnum=119113 [15:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2B 10 04 01 77 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4F 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D1 01 00 35 04 06 00 E6 33 F5 79 3F BD 1A 65 7C FB 28 09 9F 11 [15:05:51]CheckFolder [15:05:51]dirname=/storage/ofd_packets [15:05:51]CheckFolder done [15:05:51]ProducePacketName [15:05:51]name=ofd_packets/00119113 [15:05:51]NVStorageSaveData ofd_packets/00119113 [15:05:51]File name is /storage/ofd_packets/00119113 [15:05:51]Write 298 bytes [15:05:51]NVStorageSaveData done [15:05:51]OFDSenderStorePacket done [15:05:51]KKMCreateOFDPacket done [15:05:51]NVStorageSaveData kkm_last_timestamp [15:05:51]File name is /storage/kkm_last_timestamp [15:05:51]Write 4 bytes [15:05:51]NVStorageSaveData done [15:05:51]ExternCall_PrintAddStr [15:05:51]wPrintStart [15:05:51]Write to MH i2c: 01 00 00 40 02 42 [15:05:51]Write i2c OK [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: 01 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: 01 07 00 [15:05:51]MH_I2C_Read... [15:05:51]Read from MH i2c: 01 07 00 40 02 00 00 00 00 00 FF 0F 57 [15:05:51]RasterBufferAndPrint [15:05:51]line Счет N : (1)950035 [15:05:51]line ИНН: 02508201610067 [15:05:51]line Контрольно-Кассовый Чек [15:05:51]line ПРОДАЖА [15:05:51]line ТРК (МРК, ГНК) : 11 [15:05:51]line Товар: 2710194800 [15:05:51]line ДТ-К-5 [15:05:51]line 131.100 * 76.20 [15:05:51]line = 9989.82 [15:05:51]line НДС 12% НСП 1% [15:05:51]line > о реализуемом товаре [15:05:51]line ОКРУГЛЕНИЕ: -0.82 [15:05:51]line ИТОГО: 9989.00 [15:05:51]line НСП 1% : 88.40 [15:05:51]line НДС 12% : 1060.87 [15:05:51]line Наличными: 0.00 [15:05:51]line Безнал.: 9989.00 [15:05:51]line Место: АЗС № 134 "Партнер Нефть" [15:05:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:05:51]line СНО: Общий режим [15:05:51]line Чек 165 30.07.2024 15:05 [15:05:51]line Смена: 435 ФФД: 1.0 [15:05:51]line ЗНМ: 0300000044 [15:05:51]line РНМ: 0000000000092660 [15:05:51]line Версия ККМ: 001 [15:05:51]line Платежная система: O! деньги [15:05:51]line ФМ: 0000000000874939 [15:05:51]line ФД: 119113 [15:05:51]line ФПД: 253110836084669 [15:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T150551&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119113&fm=253110836084669&tin=02508201610067®Number=0000000000092660&sum=998900 [15:05:52]OFD Sender: Processing packet 119113 [packets to send 86, broken 85] [15:05:52]ProducePacketName [15:05:52]name=ofd_packets/00119113 [15:05:52]OFD Sender: To server: pG, [15:05:52]CommunicateWithHost lk.salyk.kg:30040 [15:05:52]ConnectInit lk.salyk.kg [15:05:52]written 0, free lines is 4095 [15:05:52]Write to MH i2c: 01 00 00 6A 02 6C [15:05:52]Write i2c OK [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: 01 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: 01 07 00 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 E5 0C 64 [15:05:52]RasterBufferAndPrint [15:05:52]line [15:05:52]line [15:05:52]line [15:05:52]line [15:05:52]line [15:05:52]written 0, free lines is 3307 [15:05:52]MH_Cut [15:05:52]Write to MH i2c: D1 01 00 71 02 01 45 [15:05:52]Write i2c OK [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: D1 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: D1 01 00 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: D1 01 00 71 02 00 44 [15:05:52]Write to MH i2c: 01 00 00 72 02 74 [15:05:52]Write i2c OK [15:05:52]MH_I2C_Read... [15:05:53]*** Cut start [15:05:53]*** Partial cut [15:05:53]*** CUTSNS_PIN = 1 [15:05:53]*** CUTSNS_PIN = 0 [15:05:53]*** Brake cut motor [15:05:54]Read from MH i2c: 01 [15:05:54]MH_I2C_Read... [15:05:54]*** Stop cut motor [15:05:54]*** Cut end [15:05:54]Read from MH i2c: 01 07 00 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [15:05:54]process_action close_receipt done [15:05:54]requested_data is exist [15:05:54]produce_requested_data [15:05:54]requested_item fm.sn is exist - process it [15:05:54]wFMCommunicate request_size=4 [15:05:54]MH_SAM_APDU [15:05:54]CAPDU: 80 11 00 00 [15:05:54]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [15:05:54]Write i2c OK [15:05:54]MH_I2C_Read... [15:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:54]Read from MH i2c: E2 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 17 00 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4A [15:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:05:54]wFMCommunicate OK [15:05:54]requested_item fd.num is exist - process it [15:05:54]SAM_PROTO_GetFieldsCounters [15:05:54]wFMCommunicate request_size=4 [15:05:54]MH_SAM_APDU [15:05:54]CAPDU: 80 13 00 00 [15:05:54]Write to MH i2c: E2 08 00 74 02 80 13 00 00 00 00 00 00 F2 [15:05:54]Write i2c OK [15:05:54]MH_I2C_Read... [15:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:54]Read from MH i2c: E2 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 62 00 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 62 00 74 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [15:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 49 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:54]wFMCommunicate OK [15:05:54]SAM_PROTO_GetFieldsCounters done [15:05:54]requested_item shift.num is exist - process it [15:05:54]requested_item shift.opened is exist - process it [15:05:54]req_shift_opened [15:05:54]FM_GetShiftState [15:05:54]SAM_PROTO_GetShiftState [15:05:54]wFMCommunicate request_size=4 [15:05:54]MH_SAM_APDU [15:05:54]CAPDU: 80 13 01 00 [15:05:54]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [15:05:54]Write i2c OK [15:05:54]MH_I2C_Read... [15:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:54]Read from MH i2c: E2 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 0E 00 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BF [15:05:54]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:05:54]wFMCommunicate OK [15:05:54]SAM_PROTO_GetShiftState done [15:05:54]FM_GetShiftState done [15:05:54]req_shift_opened done [15:05:54]requested_item shift.open_date is exist - process it [15:05:54]req_shift_open_date [15:05:54]req_shift_open_date done [15:05:54]produce_requested_data done [15:05:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119113,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:05:54]process_action_free close_receipt [15:05:54]json_value_free [15:05:54]json_value_free done [15:05:54]process_json_proto returns [15:05:54]Send response to host [15:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119113,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:05:54]free response buf [15:05:54]execute_script done [15:05:54]execute_script returns [15:05:54]free content buf [15:05:54]Sock 10.Close socket [15:05:54]Sock 10.Thread stoped [15:05:56]accept exits with 9 [15:05:56]New connection [15:05:56]New thread 3066723684 created [15:05:56]Thread 3066867044 joined [15:05:56]Waiting for new connection... [15:05:56] Sock 9.Parse request [15:05:56]Sock 9.Check first char [15:05:56]Sock 9.First char is OK [15:05:56]request: POST /json_proto HTTP/1.0 [15:05:56]Method: POST [15:05:56]URL: /json_proto [15:05:56]Method is POST - this is cgi request [15:05:56]url: /json_proto [15:05:56]query_string will be loaded in cgi processing [15:05:56]execute_cgi json_proto POST (null) [15:05:56]execute_cgi path=json_proto method=POST [15:05:56]POST find Content-Length [15:05:56]Host: 172.17.45.7:8080 [15:05:56]Content-Length: 820 [15:05:56]Content-Type: application/json [15:05:56] [15:05:56]POST finish read [15:05:56]Found Content-Length = 820 [15:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:56]execute_script... [15:05: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)950034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:56]POST & json_proto [15:05:56]process_json_proto [15:05:56]json parsed OK: [15:05:56]protocol is kg_v1.0 [15:05:56]action value=close_receipt [15:05:56]process_action close_receipt [15:05:56]cmd_close_receipt [15:05:56]MH_GetDate [15:05:56]Write to MH i2c: F0 00 00 76 02 67 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: F0 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: F0 09 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: F0 09 00 76 02 00 55 01 A9 66 90 0F 3E 66 18 [15:05:56]GetLastDocTimeStamp 1722351951 [15:05:56]current date 1722351957 [15:05:56]FM_GetShiftState [15:05:56]SAM_PROTO_GetShiftState [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 13 01 00 [15:05:56]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0E 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C1 [15:05:56]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:05:56]wFMCommunicate OK [15:05:56]SAM_PROTO_GetShiftState done [15:05:56]FM_GetShiftState done [15:05:56]opened in 1722298242 [15:05:56]opened+sec_in_day 1722384642 [15:05:56]quantity*price = 998982 [15:05:56]sum+1 = 998983 [15:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 166 30.07.2024 15:05 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119114 ФПД: 249498718243276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T150557&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119114&fm=249498718243276&tin=02508201610067®Number=0000000000092660&sum=998900 [15:05:57]StoreToDocumentArchive [15:05:57]shift 435 fd 119114 [15:05:57]save to /storage/0435/doc_00119114 [15:05:57]save last doc name /storage/0435/doc_00119114 to /storage/kkm_last_doc_name [15:05:57]save OK [15:05:57]Clear old archive folders... [15:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:58]tlvbuf is 00C00C20 [15:05:58]SAM_PROTO_ClearQueue [15:05:58]wFMCommunicate request_size=4 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 09 00 00 [15:05:58]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [15:05:58]RAPDU: 90 00 [15:05:58]wFMCommunicate OK [15:05:58]SAM_PROTO_ClearQueue done [15:05:58]KKMCreateOFDPacket [15:05:58]OFDProtocolAddRootSTLVToBuf [15:05:58]FM_MakeSignedData [15:05:58]FM_MakeSignedData [15:05:58]SAM_PROTO_SignData [15:05:58]wFMCommunicate request_size=4 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 0D 01 02 [15:05:58]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [15:05:58]RAPDU: 90 00 [15:05:58]wFMCommunicate OK [15:05:58]wFMCommunicate request_size=255 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 55 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D1 01 00 35 04 06 00 E2 EA F2 79 [15:05:58]Write to MH i2c: E2 02 01 86 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 55 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D1 01 00 35 04 06 00 E2 EA F2 79 00 00 3C [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [15:05:58]RAPDU: 90 00 [15:05:58]wFMCommunicate OK [15:05:58]wFMCommunicate request_size=7 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 0D 02 02 02 09 CC [15:05:58]Write to MH i2c: E2 0A 00 87 02 80 0D 02 02 02 00 09 CC 00 00 DC [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [15:05:58]RAPDU: 90 00 [15:05:58]wFMCommunicate OK [15:05:58]wFMCommunicate request_size=4 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 0D 03 02 [15:05:58]Write to MH i2c: E2 08 00 88 02 80 0D 03 02 00 00 00 00 05 [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 0B 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 0B 00 88 02 00 6B DF 74 D3 87 C8 19 2A 90 00 29 [15:05:58]RAPDU: 6B DF 74 D3 87 C8 19 2A 90 00 [15:05:58]wFMCommunicate OK [15:05:58]SAM_PROTO_SignData done [15:05:58]FM_MakeSignedData done [15:05:58]CreateOFDProtocolMessage [15:05:58]wFMCommunicate request_size=4 [15:05:58]MH_SAM_APDU [15:05:58]CAPDU: 80 11 00 00 [15:05:58]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 17 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 60 [15:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:05:58]wFMCommunicate OK [15:05:58]CreateOFDProtocolMessage done [15:05:58]OFDSenderStorePacket 119114 [15:05:58]StoreOFDPacket docnum=119114 [15:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0B E7 04 01 B3 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 55 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D1 01 00 35 04 06 00 E2 EA F2 79 09 CC 6B DF 74 D3 87 C8 19 2A [15:05:58]CheckFolder [15:05:58]dirname=/storage/ofd_packets [15:05:58]CheckFolder done [15:05:58]ProducePacketName [15:05:58]name=ofd_packets/00119114 [15:05:58]NVStorageSaveData ofd_packets/00119114 [15:05:58]File name is /storage/ofd_packets/00119114 [15:05:58]Write 298 bytes [15:05:58]NVStorageSaveData done [15:05:58]OFDSenderStorePacket done [15:05:58]KKMCreateOFDPacket done [15:05:58]NVStorageSaveData kkm_last_timestamp [15:05:58]File name is /storage/kkm_last_timestamp [15:05:58]Write 4 bytes [15:05:58]NVStorageSaveData done [15:05:58]ExternCall_PrintAddStr [15:05:58]wPrintStart [15:05:58]Write to MH i2c: 01 00 00 8A 02 8C [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 07 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [15:05:58]RasterBufferAndPrint [15:05:58]line Счет N : (1)950034 [15:05:58]line ИНН: 02508201610067 [15:05:58]line Контрольно-Кассовый Чек [15:05:58]line ПРОДАЖА [15:05:58]line ТРК (МРК, ГНК) : 21 [15:05:58]line Товар: 2710194800 [15:05:58]line ДТ-К-5 [15:05:58]line 131.100 * 76.20 [15:05:58]line = 9989.82 [15:05:58]line НДС 12% НСП 1% [15:05:58]line > о реализуемом товаре [15:05:58]line ОКРУГЛЕНИЕ: -0.82 [15:05:58]line ИТОГО: 9989.00 [15:05:58]line НСП 1% : 88.40 [15:05:58]line НДС 12% : 1060.87 [15:05:58]line Наличными: 0.00 [15:05:58]line Безнал.: 9989.00 [15:05:58]line Место: АЗС № 134 "Партнер Нефть" [15:05:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:05:58]line СНО: Общий режим [15:05:58]line Чек 166 30.07.2024 15:05 [15:05:58]line Смена: 435 ФФД: 1.0 [15:05:58]line ЗНМ: 0300000044 [15:05:58]line РНМ: 0000000000092660 [15:05:58]line Версия ККМ: 001 [15:05:58]line Платежная система: O! деньги [15:05:58]line ФМ: 0000000000874939 [15:05:58]line ФД: 119114 [15:05:58]line ФПД: 249498718243276 [15:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T150557&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119114&fm=249498718243276&tin=02508201610067®Number=0000000000092660&sum=998900 [15:05:58]written 0, free lines is 4095 [15:05:58]OFD Sender: Processing packet 119113 [packets to send 87, broken 85] [15:05:58]ProducePacketName [15:05:58]name=ofd_packets/00119113 [15:05:58]OFD Sender: To server: pG, [15:05:58]CommunicateWithHost lk.salyk.kg:30040 [15:05:58]ConnectInit lk.salyk.kg [15:05:59]Write to MH i2c: 01 00 00 B4 02 B6 [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: 01 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: 01 07 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 EF 0C B8 [15:05:59]RasterBufferAndPrint [15:05:59]line [15:05:59]line [15:05:59]line [15:05:59]line [15:05:59]line [15:05:59]written 0, free lines is 3325 [15:05:59]MH_Cut [15:05:59]Write to MH i2c: D1 01 00 BB 02 01 8F [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: D1 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: D1 01 00 [15:05:59]MH_I2C_Read... [15:05:59]Read from MH i2c: D1 01 00 BB 02 00 8E [15:05:59]Write to MH i2c: 01 00 00 BC 02 BE [15:05:59]Write i2c OK [15:05:59]MH_I2C_Read... [15:05:59]*** Cut start [15:05:59]*** Partial cut [15:05:59]*** CUTSNS_PIN = 1 [15:05:59]*** CUTSNS_PIN = 0 [15:06:00]*** Brake cut motor [15:06:00]Read from MH i2c: 01 [15:06:00]MH_I2C_Read... [15:06:00]*** Stop cut motor [15:06:00]*** Cut end [15:06:00]Read from MH i2c: 01 07 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [15:06:00]process_action close_receipt done [15:06:00]requested_data is exist [15:06:00]produce_requested_data [15:06:00]requested_item fm.sn is exist - process it [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 11 00 00 [15:06:00]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 17 00 [15:06:00]MH_I2C_Read... [15:06:00]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 34 39 33 39 90 00 94 [15:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:06:00]wFMCommunicate OK [15:06:00]requested_item fd.num is exist - process it [15:06:00]SAM_PROTO_GetFieldsCounters [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 13 00 00 [15:06:00]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]Connected sock=11 [15: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 34 39 33 39 0C 01 00 00 2B 10 04 01 77 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 4F 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 49 D1 01 00 35 04 06 00 E6 33 F5 79 3F BD 1A 65 Read from MH i2c: 7C E2 FB [15:06:00]28 MH_I2C_Read... [15:06:00]09 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:00]9F Read from MH i2c: 11 E2 [15:06:00]62 00 [15:06:00]MH_I2C_Read... [15:06:00]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15:06:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:06:00]wFMCommunicate OK [15:06:00]SAM_PROTO_GetFieldsCounters done [15:06:00]requested_item shift.num is exist - process it [15:06:00]requested_item shift.opened is exist - process it [15:06:00]req_shift_opened [15:06:00]FM_GetShiftState [15:06:00]SAM_PROTO_GetShiftState [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 13 01 00 [15:06:00]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 0E 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 09 [15:06:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:06:00]wFMCommunicate OK [15:06:00]SAM_PROTO_GetShiftState done [15:06:00]FM_GetShiftState done [15:06:00]req_shift_opened done [15:06:00]requested_item shift.open_date is exist - process it [15:06:00]req_shift_open_date [15:06:00]req_shift_open_date done [15:06:00]produce_requested_data done [15:06:00]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119114,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:06:00]process_action_free close_receipt [15:06:00]json_value_free [15:06:00]json_value_free done [15:06:00]process_json_proto returns [15:06:00]Send response to host [15:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119114,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:06:00]free response buf [15:06:00]execute_script done [15:06:00]execute_script returns [15:06:00]free content buf [15:06:00]Sock 9.Close socket [15:06:00]Sock 9.Thread stoped [15:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 4F 47 00 55 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 34 39 33 39 10 04 04 00 49 D1 01 00 F4 03 04 00 E3 AE A8 66 B6 04 01 00 00 93 5B 04 B7 1A FF 3E EA [15:06:02]CommunicateWithHost err = 0 [15:06:02]CheckOFDResponse [15:06:02]1017 (14) - 77093643461234 [15:06:02]1041 (16) - 0000000000874939 [15:06:02]1040 (4) - 119113 [15:06:02]1012 (4) - 30.07.2024 09:14 [15:06:02]1206 (1) - 0 [15:06:02]OFD Sender: Remove packet 119113 [15:06:02]ProducePacketName [15:06:02]name=ofd_packets/00119113 [15:06:02]NVStorageDeleteData [15:06:02]OFD Sender: Processing packet 119114 [packets to send 86, broken 85] [15:06:02]ProducePacketName [15:06:02]name=ofd_packets/00119114 [15:06:02]OFD Sender: To server: pG, [15:06:02]CommunicateWithHost lk.salyk.kg:30040 [15:06:02]ConnectInit lk.salyk.kg [15:06:05]Connected sock=9 [15:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 0B E7 04 01 B3 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 55 01 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D1 01 00 35 04 06 00 E2 EA F2 79 09 CC 6B DF 74 D3 87 C8 19 2A [15:06:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EC F0 47 00 29 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4A D1 01 00 F4 03 04 00 E7 AE A8 66 B6 04 01 00 00 57 A2 4F 92 B9 C3 22 AF [15:06:06]CommunicateWithHost err = 0 [15:06:06]CheckOFDResponse [15:06:06]1017 (14) - 77093643461234 [15:06:06]1041 (16) - 0000000000874939 [15:06:06]1040 (4) - 119114 [15:06:06]1012 (4) - 30.07.2024 09:14 [15:06:06]1206 (1) - 0 [15:06:06]OFD Sender: Remove packet 119114 [15:06:06]ProducePacketName [15:06:06]name=ofd_packets/00119114 [15:06:06]NVStorageDeleteData [15:06:06]OFD Sender: No OFD packet to send [15:06:11]OFD Sender: No OFD packet to send [15:06:13]ConnectInit Can't connect to host [15:06:16]OFD Sender: No OFD packet to send [15:06:21]OFD Sender: No OFD packet to send [15:06:26]OFD Sender: No OFD packet to send [15:06:31]OFD Sender: No OFD packet to send [15:06:36]OFD Sender: No OFD packet to send [15:06:41]OFD Sender: No OFD packet to send [15:06:46]OFD Sender: No OFD packet to send [15:06:51]OFD Sender: No OFD packet to send [15:06:56]OFD Sender: No OFD packet to send [15:07:01]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:29]recv_with_timeout no data received [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]OFD Sender: No OFD packet to send [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:29]recv_with_timeout no data received [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:47]recv_with_timeout no data received [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:48]recv_with_timeout no data received [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:11:59]recv_with_timeout no data received [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:03]recv_with_timeout no data received [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:45]accept exits with 10 [15:13:45]New connection [15:13:45]New thread 3066867044 created [15:13:45]Thread 3066723684 joined [15:13:45]Waiting for new connection... [15:13:45] Sock 10.Parse request [15:13:45]Sock 10.Check first char [15:13:45]Sock 10.First char is OK [15:13:45]request: POST /json_proto HTTP/1.0 [15:13:45]Method: POST [15:13:45]URL: /json_proto [15:13:45]Method is POST - this is cgi request [15:13:45]url: /json_proto [15:13:45]query_string will be loaded in cgi processing [15:13:45]execute_cgi json_proto POST (null) [15:13:45]execute_cgi path=json_proto method=POST [15:13:45]POST find Content-Length [15:13:45]Host: 172.17.45.7:8080 [15:13:45]Content-Length: 677 [15:13:45]Content-Type: application/json [15:13:45] [15:13:45]POST finish read [15:13:45]Found Content-Length = 677 [15:13:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:45]execute_script... [15:13: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)950036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:45]POST & json_proto [15:13:45]process_json_proto [15:13:45]json parsed OK: [15:13:45]protocol is kg_v1.0 [15:13:45]action value=close_receipt [15:13:45]process_action close_receipt [15:13:45]cmd_close_receipt [15:13:45]MH_GetDate [15:13:45]Write to MH i2c: F0 00 00 C0 02 B1 [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: F0 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: F0 09 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: F0 09 00 C0 02 00 2A 03 A9 66 90 0F 3E 66 39 [15:13:45]GetLastDocTimeStamp 1722351957 [15:13:45]current date 1722352426 [15:13:45]FM_GetShiftState [15:13:45]SAM_PROTO_GetShiftState [15:13:45]wFMCommunicate request_size=4 [15:13:45]MH_SAM_APDU [15:13:45]CAPDU: 80 13 01 00 [15:13:45]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [15:13:45]Write i2c OK [15:13:45]MH_I2C_Read... [15:13:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:45]Read from MH i2c: E2 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 0E 00 [15:13:45]MH_I2C_Read... [15:13:45]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0B [15:13:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:13:45]wFMCommunicate OK [15:13:45]SAM_PROTO_GetShiftState done [15:13:45]FM_GetShiftState done [15:13:45]opened in 1722298242 [15:13:45]opened+sec_in_day 1722384642 [15:13:45]quantity*price = 50036 [15:13:45]sum+1 = 50037 [15:13:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 167 30.07.2024 15:13 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119115 ФПД: 235867573822786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T151346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119115&fm=235867573822786&tin=02508201610067®Number=0000000000092660&sum=50000 [15:13:46]StoreToDocumentArchive [15:13:46]shift 435 fd 119115 [15:13:46]save to /storage/0435/doc_00119115 [15:13:46]save last doc name /storage/0435/doc_00119115 to /storage/kkm_last_doc_name [15:13:46]save OK [15:13:46]Clear old archive folders... [15:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:46]tlvbuf is 00C0BED0 [15:13:46]SAM_PROTO_ClearQueue [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 09 00 00 [15:13:46]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [15:13:46]RAPDU: 90 00 [15:13:46]wFMCommunicate OK [15:13:46]SAM_PROTO_ClearQueue done [15:13:46]KKMCreateOFDPacket [15:13:46]OFDProtocolAddRootSTLVToBuf [15:13:46]FM_MakeSignedData [15:13:46]FM_MakeSignedData [15:13:46]SAM_PROTO_SignData [15:13:46]wFMCommunicate request_size=4 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 0D 01 02 [15:13:46]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:46]Read from MH i2c: E2 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 [15:13:46]MH_I2C_Read... [15:13:46]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [15:13:46]RAPDU: 90 00 [15:13:46]wFMCommunicate OK [15:13:46]wFMCommunicate request_size=255 [15:13:46]MH_SAM_APDU [15:13:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2A 03 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D1 01 00 35 04 06 00 D6 [15:13:46]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2A 03 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D1 01 00 35 04 06 00 D6 00 00 58 [15:13:46]Write i2c OK [15:13:46]MH_I2C_Read... [15:13:47]OFD Sender: No OFD packet to send [15:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [15:13:47]RAPDU: 90 00 [15:13:47]wFMCommunicate OK [15:13:47]wFMCommunicate request_size=10 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 0D 02 02 05 85 32 F3 A5 42 [15:13:47]Write to MH i2c: E2 0D 00 D1 02 80 0D 02 02 05 00 85 32 F3 A5 42 00 00 E8 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [15:13:47]RAPDU: 90 00 [15:13:47]wFMCommunicate OK [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 0D 03 02 [15:13:47]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0B 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 0B 00 D2 02 00 23 AA 23 43 F1 F0 5F EB 90 00 AE [15:13:47]RAPDU: 23 AA 23 43 F1 F0 5F EB 90 00 [15:13:47]wFMCommunicate OK [15:13:47]SAM_PROTO_SignData done [15:13:47]FM_MakeSignedData done [15:13:47]CreateOFDProtocolMessage [15:13:47]wFMCommunicate request_size=4 [15:13:47]MH_SAM_APDU [15:13:47]CAPDU: 80 11 00 00 [15:13:47]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:47]Read from MH i2c: E2 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: E2 17 00 [15:13:47]MH_I2C_Read... [15:13:47]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 34 39 33 39 90 00 AA [15:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:13:47]wFMCommunicate OK [15:13:47]CreateOFDProtocolMessage done [15:13:47]OFDSenderStorePacket 119115 [15:13:47]StoreOFDPacket docnum=119115 [15:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FC 94 07 01 F3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2A 03 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D1 01 00 35 04 06 00 D6 85 32 F3 A5 42 23 AA 23 43 F1 F0 5F EB [15:13:47]CheckFolder [15:13:47]dirname=/storage/ofd_packets [15:13:47]CheckFolder done [15:13:47]ProducePacketName [15:13:47]name=ofd_packets/00119115 [15:13:47]NVStorageSaveData ofd_packets/00119115 [15:13:47]File name is /storage/ofd_packets/00119115 [15:13:47]Write 301 bytes [15:13:47]NVStorageSaveData done [15:13:47]OFDSenderStorePacket done [15:13:47]KKMCreateOFDPacket done [15:13:47]NVStorageSaveData kkm_last_timestamp [15:13:47]File name is /storage/kkm_last_timestamp [15:13:47]Write 4 bytes [15:13:47]NVStorageSaveData done [15:13:47]ExternCall_PrintAddStr [15:13:47]wPrintStart [15:13:47]Write to MH i2c: 01 00 00 D4 02 D6 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [15:13:47]RasterBufferAndPrint [15:13:47]line Счет N : (1)950036 [15:13:47]line ИНН: 02508201610067 [15:13:47]line Контрольно-Кассовый Чек [15:13:47]line ПРОДАЖА [15:13:47]line ТРК (МРК, ГНК) : 41 [15:13:47]line Товар: 2710124130 [15:13:47]line Аи-92-К-4 [15:13:47]line 7.380 * 67.80 [15:13:47]line = 500.36 [15:13:47]line НДС 12% НСП 1% [15:13:47]line > о реализуемом товаре [15:13:47]line ОКРУГЛЕНИЕ: -0.36 [15:13:47]line ИТОГО: 500.00 [15:13:47]line Внесено: 500.00 [15:13:47]line СДАЧА: 0.00 [15:13:47]line НСП 1% : 4.43 [15:13:47]line НДС 12% : 53.14 [15:13:47]line Наличными: 500.00 [15:13:47]line Безнал.: 0.00 [15:13:47]line Место: АЗС № 134 "Партнер Нефть" [15:13:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:13:47]line СНО: Общий режим [15:13:47]line Чек 167 30.07.2024 15:13 [15:13:47]line Смена: 435 ФФД: 1.0 [15:13:47]line ЗНМ: 0300000044 [15:13:47]line РНМ: 0000000000092660 [15:13:47]line Версия ККМ: 001 [15:13:47]line ФМ: 0000000000874939 [15:13:47]line ФД: 119115 [15:13:47]line ФПД: 235867573822786 [15:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T151346&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119115&fm=235867573822786&tin=02508201610067®Number=0000000000092660&sum=50000 [15:13:47]written 0, free lines is 4095 [15:13:47]OFD Sender: Processing packet 119115 [packets to send 86, broken 85] [15:13:47]ProducePacketName [15:13:47]name=ofd_packets/00119115 [15:13:47]OFD Sender: To server: pG, [15:13:47]CommunicateWithHost lk.salyk.kg:30040 [15:13:47]ConnectInit lk.salyk.kg [15:13:47]Write to MH i2c: 01 00 00 FE 02 00 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 E0 0C F3 [15:13:47]RasterBufferAndPrint [15:13:47]line [15:13:47]line [15:13:47]line [15:13:47]line [15:13:47]line [15:13:47]written 0, free lines is 3302 [15:13:47]MH_Cut [15:13:47]Write to MH i2c: D1 01 00 05 03 01 DA [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: D1 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: D1 01 00 [15:13:47]MH_I2C_Read... [15:13:47]Read from MH i2c: D1 01 00 05 03 00 D9 [15:13:47]Write to MH i2c: 01 00 00 06 03 09 [15:13:47]Write i2c OK [15:13:47]MH_I2C_Read... [15:13:47]Connected sock=9 [15:13:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FC 94 07 01 F3 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 2A 03 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D1 01 00 35 04 06 00 D6 85 32 F3 A5 42 23 AA 23 43 F1 F0 5F EB [15:13:48]*** Cut start [15:13:48]*** Partial cut [15:13:48]*** CUTSNS_PIN = 1 [15:13:48]*** CUTSNS_PIN = 0 [15:13:48]*** Brake cut motor [15:13:49]Read from MH i2c: 01 [15:13:49]MH_I2C_Read... [15:13:49]*** Stop cut motor [15:13:49]*** Cut end [15:13:49]Read from MH i2c: 01 07 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [15:13:49]process_action close_receipt done [15:13:49]requested_data is exist [15:13:49]produce_requested_data [15:13:49]requested_item fm.sn is exist - process it [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 11 00 00 [15:13:49]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:13:49]Read from MH i2c: E2 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 17 00 [15:13:49]MH_I2C_Read... [15:13:49]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 34 39 33 39 90 00 DF [15:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:13:49]wFMCommunicate OK [15:13:49]requested_item fd.num is exist - process it [15:13:49]SAM_PROTO_GetFieldsCounters [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 13 00 00 [15:13:49]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:13:49]Read from MH i2c: E2 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 62 00 [15:13:49]MH_I2C_Read... [15:13:49]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [15:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:13:49]wFMCommunicate OK [15:13:49]SAM_PROTO_GetFieldsCounters done [15:13:49]requested_item shift.num is exist - process it [15:13:49]requested_item shift.opened is exist - process it [15:13:49]req_shift_opened [15:13:49]FM_GetShiftState [15:13:49]SAM_PROTO_GetShiftState [15:13:49]wFMCommunicate request_size=4 [15:13:49]MH_SAM_APDU [15:13:49]CAPDU: 80 13 01 00 [15:13:49]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [15:13:49]Write i2c OK [15:13:49]MH_I2C_Read... [15:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:49]Read from MH i2c: E2 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 0E 00 [15:13:49]MH_I2C_Read... [15:13:49]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 54 [15:13:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:13:49]wFMCommunicate OK [15:13:49]SAM_PROTO_GetShiftState done [15:13:49]FM_GetShiftState done [15:13:49]req_shift_opened done [15:13:49]requested_item shift.open_date is exist - process it [15:13:49]req_shift_open_date [15:13:49]req_shift_open_date done [15:13:49]produce_requested_data done [15:13:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119115,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:13:49]process_action_free close_receipt [15:13:49]json_value_free [15:13:49]json_value_free done [15:13:49]process_json_proto returns [15:13:49]Send response to host [15:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119115,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:13:49]free response buf [15:13:49]execute_script done [15:13:49]execute_script returns [15:13:49]free content buf [15:13:49]Sock 10.Close socket [15:13:49]Sock 10.Thread stoped [15:13:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 94 47 00 B9 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4B D1 01 00 F4 03 04 00 B7 B0 A8 66 B6 04 01 00 00 37 9C 80 21 6C F9 D2 BA [15:13:49]CommunicateWithHost err = 0 [15:13:49]CheckOFDResponse [15:13:49]1017 (14) - 77093643461234 [15:13:49]1041 (16) - 0000000000874939 [15:13:49]1040 (4) - 119115 [15:13:49]1012 (4) - 30.07.2024 09:21 [15:13:49]1206 (1) - 0 [15:13:49]OFD Sender: Remove packet 119115 [15:13:49]ProducePacketName [15:13:49]name=ofd_packets/00119115 [15:13:49]NVStorageDeleteData [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:12]accept exits with 8 [15:17:12]New connection [15:17:12]New thread 3066723684 created [15:17:12]Thread 3066867044 joined [15:17:12]Waiting for new connection... [15:17:12] Sock 8.Parse request [15:17:12]Sock 8.Check first char [15:17:12]Sock 8.First char is OK [15:17:12]request: POST /json_proto HTTP/1.0 [15:17:12]Method: POST [15:17:12]URL: /json_proto [15:17:12]Method is POST - this is cgi request [15:17:12]url: /json_proto [15:17:12]query_string will be loaded in cgi processing [15:17:12]execute_cgi json_proto POST (null) [15:17:12]execute_cgi path=json_proto method=POST [15:17:12]POST find Content-Length [15:17:12]Host: 172.17.45.7:8080 [15:17:12]Content-Length: 677 [15:17:12]Content-Type: application/json [15:17:12] [15:17:12]POST finish read [15:17:12]Found Content-Length = 677 [15:17:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:12]execute_script... [15:17: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)950037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:12]POST & json_proto [15:17:12]process_json_proto [15:17:12]json parsed OK: [15:17:12]protocol is kg_v1.0 [15:17:12]action value=close_receipt [15:17:12]process_action close_receipt [15:17:12]cmd_close_receipt [15:17:12]MH_GetDate [15:17:12]Write to MH i2c: F0 00 00 0A 03 FC [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: F0 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: F0 09 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: F0 09 00 0A 03 00 F9 03 A9 66 90 0F 3E 66 53 [15:17:12]GetLastDocTimeStamp 1722352426 [15:17:12]current date 1722352633 [15:17:12]FM_GetShiftState [15:17:12]SAM_PROTO_GetShiftState [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 13 01 00 [15:17:12]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 56 [15:17:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_GetShiftState done [15:17:12]FM_GetShiftState done [15:17:12]opened in 1722298242 [15:17:12]opened+sec_in_day 1722384642 [15:17:12]quantity*price = 50036 [15:17:12]sum+1 = 50037 [15:17:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 168 30.07.2024 15:17 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119116 ФПД: 50437404327597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T151713&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119116&fm=50437404327597&tin=02508201610067®Number=0000000000092660&sum=50000 [15:17:13]StoreToDocumentArchive [15:17:13]shift 435 fd 119116 [15:17:13]save to /storage/0435/doc_00119116 [15:17:13]save last doc name /storage/0435/doc_00119116 to /storage/kkm_last_doc_name [15:17:13]save OK [15:17:13]Clear old archive folders... [15:17:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:13]tlvbuf is 00BDE6F0 [15:17:13]SAM_PROTO_ClearQueue [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 09 00 00 [15:17:13]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [15:17:13]RAPDU: 90 00 [15:17:13]wFMCommunicate OK [15:17:13]SAM_PROTO_ClearQueue done [15:17:13]KKMCreateOFDPacket [15:17:13]OFDProtocolAddRootSTLVToBuf [15:17:13]FM_MakeSignedData [15:17:13]FM_MakeSignedData [15:17:13]SAM_PROTO_SignData [15:17:13]wFMCommunicate request_size=4 [15:17:13]MH_SAM_APDU [15:17:13]CAPDU: 80 0D 01 02 [15:17:13]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:13]Read from MH i2c: E2 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 [15:17:13]MH_I2C_Read... [15:17:13]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [15:17:13]RAPDU: 90 00 [15:17:13]wFMCommunicate OK [15:17:13]wFMCommunicate request_size=255 [15:17:13]MH_SAM_APDU [15:17: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F9 03 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D1 01 00 35 04 06 00 2D [15:17:13]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F9 03 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4C D1 01 00 35 04 06 00 2D 00 00 CB [15:17:13]Write i2c OK [15:17:13]MH_I2C_Read... [15:17:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [15:17:14]RAPDU: 90 00 [15:17:14]wFMCommunicate OK [15:17:14]wFMCommunicate request_size=10 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 0D 02 02 05 DF 5F 91 7E AD [15:17:14]Write to MH i2c: E2 0D 00 1B 03 80 0D 02 02 05 00 DF 5F 91 7E AD 00 00 9C [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [15:17:14]RAPDU: 90 00 [15:17:14]wFMCommunicate OK [15:17:14]wFMCommunicate request_size=4 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 0D 03 02 [15:17:14]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 0B 00 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 0B 00 1C 03 00 3D CD 93 AD 92 D5 66 AD 90 00 5F [15:17:14]RAPDU: 3D CD 93 AD 92 D5 66 AD 90 00 [15:17:14]wFMCommunicate OK [15:17:14]SAM_PROTO_SignData done [15:17:14]FM_MakeSignedData done [15:17:14]CreateOFDProtocolMessage [15:17:14]wFMCommunicate request_size=4 [15:17:14]MH_SAM_APDU [15:17:14]CAPDU: 80 11 00 00 [15:17:14]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [15:17:14]Write i2c OK [15:17:14]MH_I2C_Read... [15:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:14]Read from MH i2c: E2 [15:17:14]MH_I2C_Read... [15:17:14]Read from MH i2c: E2 17 00 [15:17:14]MH_I2C_Read... [15:17:14]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 34 39 33 39 90 00 F5 [15:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:17:14]wFMCommunicate OK [15:17:14]CreateOFDProtocolMessage done [15:17:14]OFDSenderStorePacket 119116 [15:17:14]StoreOFDPacket docnum=119116 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2C 55 47 00 05 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 34 39 33 39 10 04 04 00 4C D1 01 00 F4 03 04 00 8F B1 A8 66 B6 04 01 00 00 18 C3 C3 88 65 13 6F 7A [15:17:26]CommunicateWithHost err = 0 [15:17:26]CheckOFDResponse [15:17:26]1017 (14) - 77093643461234 [15:17:26]1041 (16) - 0000000000874939 [15:17:26]1040 (4) - 119116 [15:17:26]1012 (4) - 30.07.2024 09:25 [15:17:26]1206 (1) - 0 [15:17:26]OFD Sender: Remove packet 119116 [15:17:26]ProducePacketName [15:17:26]name=ofd_packets/00119116 [15:17:26]NVStorageDeleteData [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:47]ConnectInit Can't connect to host [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:08]accept exits with 10 [15:22:08]New connection [15:22:08]New thread 3066867044 created [15:22:08]Thread 3066723684 joined [15:22:08]Waiting for new connection... [15:22:08] Sock 10.Parse request [15:22:08]Sock 10.Check first char [15:22:08]Sock 10.First char is OK [15:22:08]request: POST /json_proto HTTP/1.0 [15:22:08]Method: POST [15:22:08]URL: /json_proto [15:22:08]Method is POST - this is cgi request [15:22:08]url: /json_proto [15:22:08]query_string will be loaded in cgi processing [15:22:08]execute_cgi json_proto POST (null) [15:22:08]execute_cgi path=json_proto method=POST [15:22:08]POST find Content-Length [15:22:08]Host: 172.17.45.7:8080 [15:22:08]Content-Length: 682 [15:22:08]Content-Type: application/json [15:22:08] [15:22:08]POST finish read [15:22:08]Found Content-Length = 682 [15:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:08]execute_script... [15:22:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:08]POST & json_proto [15:22:08]process_json_proto [15:22:08]json parsed OK: [15:22:08]protocol is kg_v1.0 [15:22:08]action value=close_receipt [15:22:08]process_action close_receipt [15:22:08]cmd_close_receipt [15:22:08]MH_GetDate [15:22:08]Write to MH i2c: F0 00 00 54 03 46 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: F0 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: F0 09 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: F0 09 00 54 03 00 21 05 A9 66 90 0F 3E 66 C7 [15:22:08]GetLastDocTimeStamp 1722352633 [15:22:08]current date 1722352929 [15:22:08]FM_GetShiftState [15:22:08]SAM_PROTO_GetShiftState [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 13 01 00 [15:22:08]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 0E 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A0 [15:22:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:22:08]wFMCommunicate OK [15:22:08]SAM_PROTO_GetShiftState done [15:22:08]FM_GetShiftState done [15:22:08]opened in 1722298242 [15:22:08]opened+sec_in_day 1722384642 [15:22:08]quantity*price = 150041 [15:22:08]sum+1 = 150042 [15:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 169 30.07.2024 15:22 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119117 ФПД: 276242331330059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T152209&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119117&fm=276242331330059&tin=02508201610067®Number=0000000000092660&sum=150000 [15:22:09]StoreToDocumentArchive [15:22:09]shift 435 fd 119117 [15:22:09]save to /storage/0435/doc_00119117 [15:22:09]save last doc name /storage/0435/doc_00119117 to /storage/kkm_last_doc_name [15:22:09]save OK [15:22:09]Clear old archive folders... [15:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:09]tlvbuf is 00BEE980 [15:22:09]SAM_PROTO_ClearQueue [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 09 00 00 [15:22:09]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [15:22:09]RAPDU: 90 00 [15:22:09]wFMCommunicate OK [15:22:09]SAM_PROTO_ClearQueue done [15:22:09]KKMCreateOFDPacket [15:22:09]OFDProtocolAddRootSTLVToBuf [15:22:09]FM_MakeSignedData [15:22:09]FM_MakeSignedData [15:22:09]SAM_PROTO_SignData [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 0D 01 02 [15:22:09]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [15:22:09]RAPDU: 90 00 [15:22:09]wFMCommunicate OK [15:22:09]wFMCommunicate request_size=255 [15:22:09]MH_SAM_APDU [15:22: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 A9 00 00 00 F4 03 04 00 21 05 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D1 01 00 35 04 06 00 FB [15:22:09]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 A9 00 00 00 F4 03 04 00 21 05 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D1 01 00 35 04 06 00 FB 00 00 84 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [15:22:09]RAPDU: 90 00 [15:22:09]wFMCommunicate OK [15:22:09]wFMCommunicate request_size=10 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 0D 02 02 05 3D AE 07 E6 0B [15:22:09]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 3D AE 07 E6 0B 00 00 CF [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [15:22:09]RAPDU: 90 00 [15:22:09]wFMCommunicate OK [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 0D 03 02 [15:22:09]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 0B 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 0B 00 66 03 00 59 41 95 EB 1F CB 0A 3E 90 00 31 [15:22:09]RAPDU: 59 41 95 EB 1F CB 0A 3E 90 00 [15:22:09]wFMCommunicate OK [15:22:09]SAM_PROTO_SignData done [15:22:09]FM_MakeSignedData done [15:22:09]CreateOFDProtocolMessage [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 11 00 00 [15:22:09]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:10]Read from MH i2c: E2 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 17 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 3F [15:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:22:10]wFMCommunicate OK [15:22:10]CreateOFDProtocolMessage done [15:22:10]OFDSenderStorePacket 119117 [15:22:10]StoreOFDPacket docnum=119117 [15:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E1 EA 07 01 5E 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 A9 00 00 00 F4 03 04 00 21 05 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D1 01 00 35 04 06 00 FB 3D AE 07 E6 0B 59 41 95 EB 1F CB 0A 3E [15:22:10]CheckFolder [15:22:10]dirname=/storage/ofd_packets [15:22:10]CheckFolder done [15:22:10]ProducePacketName [15:22:10]name=ofd_packets/00119117 [15:22:10]NVStorageSaveData ofd_packets/00119117 [15:22:10]File name is /storage/ofd_packets/00119117 [15:22:10]Write 301 bytes [15:22:10]NVStorageSaveData done [15:22:10]OFDSenderStorePacket done [15:22:10]KKMCreateOFDPacket done [15:22:10]NVStorageSaveData kkm_last_timestamp [15:22:10]File name is /storage/kkm_last_timestamp [15:22:10]Write 4 bytes [15:22:10]NVStorageSaveData done [15:22:10]ExternCall_PrintAddStr [15:22:10]wPrintStart [15:22:10]Write to MH i2c: 01 00 00 68 03 6B [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [15:22:10]RasterBufferAndPrint [15:22:10]line Счет N : (1)950038 [15:22:10]line ИНН: 02508201610067 [15:22:10]line Контрольно-Кассовый Чек [15:22:10]line ПРОДАЖА [15:22:10]line ТРК (МРК, ГНК) : 41 [15:22:10]line Товар: 2710124130 [15:22:10]line Аи-92-К-4 [15:22:10]line 22.130 * 67.80 [15:22:10]line = 1500.41 [15:22:10]line НДС 12% НСП 1% [15:22:10]line > о реализуемом товаре [15:22:10]line ОКРУГЛЕНИЕ: -0.41 [15:22:10]line ИТОГО: 1500.00 [15:22:10]line Внесено: 1500.00 [15:22:10]line СДАЧА: 0.00 [15:22:10]line НСП 1% : 13.28 [15:22:10]line НДС 12% : 159.34 [15:22:10]line Наличными: 1500.00 [15:22:10]line Безнал.: 0.00 [15:22:10]line Место: АЗС № 134 "Партнер Нефть" [15:22:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:22:10]line СНО: Общий режим [15:22:10]line Чек 169 30.07.2024 15:22 [15:22:10]line Смена: 435 ФФД: 1.0 [15:22:10]line ЗНМ: 0300000044 [15:22:10]line РНМ: 0000000000092660 [15:22:10]line Версия ККМ: 001 [15:22:10]line ФМ: 0000000000874939 [15:22:10]line ФД: 119117 [15:22:10]line ФПД: 276242331330059 [15:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T152209&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119117&fm=276242331330059&tin=02508201610067®Number=0000000000092660&sum=150000 [15:22:10]OFD Sender: Processing packet 119117 [packets to send 86, broken 85] [15:22:10]ProducePacketName [15:22:10]name=ofd_packets/00119117 [15:22:10]OFD Sender: To server: pG, [15:22:10]CommunicateWithHost lk.salyk.kg:30040 [15:22:10]ConnectInit lk.salyk.kg [15:22:10]written 0, free lines is 4095 [15:22:10]Write to MH i2c: 01 00 00 92 03 95 [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: 01 07 00 92 03 00 00 00 00 00 DF 0C 87 [15:22:10]RasterBufferAndPrint [15:22:10]line [15:22:10]line [15:22:10]line [15:22:10]line [15:22:10]line [15:22:10]written 0, free lines is 3301 [15:22:10]MH_Cut [15:22:10]Write to MH i2c: D1 01 00 99 03 01 6E [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: D1 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: D1 01 00 [15:22:10]MH_I2C_Read... [15:22:10]Read from MH i2c: D1 01 00 99 03 00 6D [15:22:10]Write to MH i2c: 01 00 00 9A 03 9D [15:22:10]Write i2c OK [15:22:10]MH_I2C_Read... [15:22:11]*** Cut start [15:22:11]*** Partial cut [15:22:11]*** CUTSNS_PIN = 1 [15:22:11]*** CUTSNS_PIN = 0 [15:22:11]*** Brake cut motor [15:22:12]Read from MH i2c: 01 [15:22:12]MH_I2C_Read... [15:22:12]*** Stop cut motor [15:22:12]*** Cut end [15:22:12]Read from MH i2c: 01 07 00 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [15:22:12]process_action close_receipt done [15:22:12]requested_data is exist [15:22:12]produce_requested_data [15:22:12]requested_item fm.sn is exist - process it [15:22:12]wFMCommunicate request_size=4 [15:22:12]MH_SAM_APDU [15:22:12]CAPDU: 80 11 00 00 [15:22:12]Write to MH i2c: E2 08 00 9B 03 80 11 00 00 00 00 00 00 18 [15:22:12]Write i2c OK [15:22:12]MH_I2C_Read... [15:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:12]Read from MH i2c: E2 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 17 00 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 17 00 9B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 73 [15:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:22:12]wFMCommunicate OK [15:22:12]requested_item fd.num is exist - process it [15:22:12]SAM_PROTO_GetFieldsCounters [15:22:12]wFMCommunicate request_size=4 [15:22:12]MH_SAM_APDU [15:22:12]CAPDU: 80 13 00 00 [15:22:12]Write to MH i2c: E2 08 00 9C 03 80 13 00 00 00 00 00 00 1B [15:22:12]Write i2c OK [15:22:12]MH_I2C_Read... [15:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:12]Read from MH i2c: E2 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 62 00 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 62 00 9C 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [15:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:12]wFMCommunicate OK [15:22:12]SAM_PROTO_GetFieldsCounters done [15:22:12]requested_item shift.num is exist - process it [15:22:12]requested_item shift.opened is exist - process it [15:22:12]req_shift_opened [15:22:12]FM_GetShiftState [15:22:12]SAM_PROTO_GetShiftState [15:22:12]wFMCommunicate request_size=4 [15:22:12]MH_SAM_APDU [15:22:12]CAPDU: 80 13 01 00 [15:22:12]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [15:22:12]Write i2c OK [15:22:12]MH_I2C_Read... [15:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:12]Read from MH i2c: E2 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 0E 00 [15:22:12]MH_I2C_Read... [15:22:12]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E8 [15:22:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:22:12]wFMCommunicate OK [15:22:12]SAM_PROTO_GetShiftState done [15:22:12]FM_GetShiftState done [15:22:12]req_shift_opened done [15:22:12]requested_item shift.open_date is exist - process it [15:22:12]req_shift_open_date [15:22:12]req_shift_open_date done [15:22:12]produce_requested_data done [15:22:12]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119117,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:22:12]process_action_free close_receipt [15:22:12]json_value_free [15:22:12]json_value_free done [15:22:12]process_json_proto returns [15:22:12]Send response to host [15:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119117,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:22:12]free response buf [15:22:12]execute_script done [15:22:12]execute_script returns [15:22:12]free content buf [15:22:12]Sock 10.Close socket [15:22:12]Sock 10.Thread stoped [15:22:12]Connected sock=11 [15:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E1 EA 07 01 5E 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 A9 00 00 00 F4 03 04 00 21 05 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4D D1 01 00 35 04 06 00 FB 3D AE 07 E6 0B 59 41 95 EB 1F CB 0A 3E [15:22:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5A 3B 47 00 25 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 34 39 33 39 10 04 04 00 4D D1 01 00 F4 03 04 00 AE B2 A8 66 B6 04 01 00 00 79 06 DB BA 02 87 83 A5 [15:22:13]CommunicateWithHost err = 0 [15:22:13]CheckOFDResponse [15:22:13]1017 (14) - 77093643461234 [15:22:13]1041 (16) - 0000000000874939 [15:22:13]1040 (4) - 119117 [15:22:13]1012 (4) - 30.07.2024 09:30 [15:22:13]1206 (1) - 0 [15:22:13]OFD Sender: Remove packet 119117 [15:22:13]ProducePacketName [15:22:13]name=ofd_packets/00119117 [15:22:13]NVStorageDeleteData [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: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:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:52]ConnectInit Can't connect to host [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:05]recv_with_timeout no data received [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:51]recv_with_timeout no data received [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:20]accept exits with 8 [15:28:20]New connection [15:28:20]New thread 3066723684 created [15:28:20]Thread 3066867044 joined [15:28:20]Waiting for new connection... [15:28:20] Sock 8.Parse request [15:28:20]Sock 8.Check first char [15:28:20]Sock 8.First char is OK [15:28:20]request: POST /json_proto HTTP/1.0 [15:28:20]Method: POST [15:28:20]URL: /json_proto [15:28:20]Method is POST - this is cgi request [15:28:20]url: /json_proto [15:28:20]query_string will be loaded in cgi processing [15:28:20]execute_cgi json_proto POST (null) [15:28:20]execute_cgi path=json_proto method=POST [15:28:20]POST find Content-Length [15:28:20]Host: 172.17.45.7:8080 [15:28:20]Content-Length: 678 [15:28:20]Content-Type: application/json [15:28:20] [15:28:20]POST finish read [15:28:20]Found Content-Length = 678 [15:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:20]execute_script... [15:28: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)950039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 13.280, "sum" : 900.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:20]POST & json_proto [15:28:20]process_json_proto [15:28:20]json parsed OK: [15:28:20]protocol is kg_v1.0 [15:28:20]action value=close_receipt [15:28:20]process_action close_receipt [15:28:20]cmd_close_receipt [15:28:20]MH_GetDate [15:28:20]Write to MH i2c: F0 00 00 9E 03 90 [15:28:20]Write i2c OK [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: F0 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: F0 09 00 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: F0 09 00 9E 03 00 95 06 A9 66 90 0F 3E 66 86 [15:28:20]GetLastDocTimeStamp 1722352929 [15:28:20]current date 1722353301 [15:28:20]FM_GetShiftState [15:28:20]SAM_PROTO_GetShiftState [15:28:20]wFMCommunicate request_size=4 [15:28:20]MH_SAM_APDU [15:28:20]CAPDU: 80 13 01 00 [15:28:20]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [15:28:20]Write i2c OK [15:28:20]MH_I2C_Read... [15:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:20]Read from MH i2c: E2 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 0E 00 [15:28:20]MH_I2C_Read... [15:28:20]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EA [15:28:20]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:28:20]wFMCommunicate OK [15:28:20]SAM_PROTO_GetShiftState done [15:28:20]FM_GetShiftState done [15:28:20]opened in 1722298242 [15:28:20]opened+sec_in_day 1722384642 [15:28:20]quantity*price = 90038 [15:28:20]sum+1 = 90039 [15:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 170 30.07.2024 15:28 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119118 ФПД: 49540041621378 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T152821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119118&fm=49540041621378&tin=02508201610067®Number=0000000000092660&sum=90000 [15:28:21]StoreToDocumentArchive [15:28:21]shift 435 fd 119118 [15:28:21]save to /storage/0435/doc_00119118 [15:28:21]save last doc name /storage/0435/doc_00119118 to /storage/kkm_last_doc_name [15:28:21]save OK [15:28:21]Clear old archive folders... [15:28:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:21]tlvbuf is 00BCA490 [15:28:21]SAM_PROTO_ClearQueue [15:28:21]wFMCommunicate request_size=4 [15:28:21]MH_SAM_APDU [15:28:21]CAPDU: 80 09 00 00 [15:28:21]Write to MH i2c: E2 08 00 AC 03 80 09 00 00 00 00 00 00 21 [15:28:21]Write i2c OK [15:28:21]MH_I2C_Read... [15:28:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:21]Read from MH i2c: E2 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: E2 03 00 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [15:28:21]RAPDU: 90 00 [15:28:21]wFMCommunicate OK [15:28:21]SAM_PROTO_ClearQueue done [15:28:21]KKMCreateOFDPacket [15:28:21]OFDProtocolAddRootSTLVToBuf [15:28:21]FM_MakeSignedData [15:28:21]FM_MakeSignedData [15:28:21]SAM_PROTO_SignData [15:28:21]wFMCommunicate request_size=4 [15:28:21]MH_SAM_APDU [15:28:21]CAPDU: 80 0D 01 02 [15:28:21]Write to MH i2c: E2 08 00 AD 03 80 0D 01 02 00 00 00 00 29 [15:28:21]Write i2c OK [15:28:21]MH_I2C_Read... [15:28:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:21]Read from MH i2c: E2 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: E2 03 00 [15:28:21]MH_I2C_Read... [15:28:21]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [15:28:21]RAPDU: 90 00 [15:28:21]wFMCommunicate OK [15:28:21]wFMCommunicate request_size=255 [15:28:21]MH_SAM_APDU [15:28: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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 95 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D1 01 00 35 04 06 00 2D [15:28:21]Write to MH i2c: E2 02 01 AE 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 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 95 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D1 01 00 35 04 06 00 2D 00 00 CB [15:28:21]Write i2c OK [15:28:21]MH_I2C_Read... [15:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:22]Read from MH i2c: E2 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 03 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [15:28:22]RAPDU: 90 00 [15:28:22]wFMCommunicate OK [15:28:22]wFMCommunicate request_size=10 [15:28:22]MH_SAM_APDU [15:28:22]CAPDU: 80 0D 02 02 05 0E 70 95 3F 82 [15:28:22]Write to MH i2c: E2 0D 00 AF 03 80 0D 02 02 05 00 0E 70 95 3F 82 00 00 0A [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:22]Read from MH i2c: E2 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 03 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [15:28:22]RAPDU: 90 00 [15:28:22]wFMCommunicate OK [15:28:22]wFMCommunicate request_size=4 [15:28:22]MH_SAM_APDU [15:28:22]CAPDU: 80 0D 03 02 [15:28:22]Write to MH i2c: E2 08 00 B0 03 80 0D 03 02 00 00 00 00 2E [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:22]Read from MH i2c: E2 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 0B 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 0B 00 B0 03 00 4C 29 6D DB D6 38 CC 75 90 00 3B [15:28:22]RAPDU: 4C 29 6D DB D6 38 CC 75 90 00 [15:28:22]wFMCommunicate OK [15:28:22]SAM_PROTO_SignData done [15:28:22]FM_MakeSignedData done [15:28:22]CreateOFDProtocolMessage [15:28:22]wFMCommunicate request_size=4 [15:28:22]MH_SAM_APDU [15:28:22]CAPDU: 80 11 00 00 [15:28:22]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:22]Read from MH i2c: E2 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 17 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 89 [15:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:28:22]wFMCommunicate OK [15:28:22]CreateOFDProtocolMessage done [15:28:22]OFDSenderStorePacket 119118 [15:28:22]StoreOFDPacket docnum=119118 [15:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F 7E 07 01 B7 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 95 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D1 01 00 35 04 06 00 2D 0E 70 95 3F 82 4C 29 6D DB D6 38 CC 75 [15:28:22]CheckFolder [15:28:22]dirname=/storage/ofd_packets [15:28:22]CheckFolder done [15:28:22]ProducePacketName [15:28:22]name=ofd_packets/00119118 [15:28:22]NVStorageSaveData ofd_packets/00119118 [15:28:22]File name is /storage/ofd_packets/00119118 [15:28:22]Write 301 bytes [15:28:22]NVStorageSaveData done [15:28:22]OFDSenderStorePacket done [15:28:22]KKMCreateOFDPacket done [15:28:22]NVStorageSaveData kkm_last_timestamp [15:28:22]File name is /storage/kkm_last_timestamp [15:28:22]Write 4 bytes [15:28:22]NVStorageSaveData done [15:28:22]ExternCall_PrintAddStr [15:28:22]wPrintStart [15:28:22]Write to MH i2c: 01 00 00 B2 03 B5 [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: 01 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: 01 07 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: 01 07 00 B2 03 00 00 00 00 00 FF 0F CA [15:28:22]RasterBufferAndPrint [15:28:22]line Счет N : (1)950039 [15:28:22]line ИНН: 02508201610067 [15:28:22]line Контрольно-Кассовый Чек [15:28:22]line ПРОДАЖА [15:28:22]line ТРК (МРК, ГНК) : 51 [15:28:22]line Товар: 2710124130 [15:28:22]line Аи-92-К-4 [15:28:22]line 13.280 * 67.80 [15:28:22]line = 900.38 [15:28:22]line НДС 12% НСП 1% [15:28:22]line > о реализуемом товаре [15:28:22]line ОКРУГЛЕНИЕ: -0.38 [15:28:22]line ИТОГО: 900.00 [15:28:22]line Внесено: 900.00 [15:28:22]line СДАЧА: 0.00 [15:28:22]line НСП 1% : 7.97 [15:28:22]line НДС 12% : 95.62 [15:28:22]line Наличными: 900.00 [15:28:22]line Безнал.: 0.00 [15:28:22]line Место: АЗС № 134 "Партнер Нефть" [15:28:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:28:22]line СНО: Общий режим [15:28:22]line Чек 170 30.07.2024 15:28 [15:28:22]line Смена: 435 ФФД: 1.0 [15:28:22]line ЗНМ: 0300000044 [15:28:22]line РНМ: 0000000000092660 [15:28:22]line Версия ККМ: 001 [15:28:22]line ФМ: 0000000000874939 [15:28:22]line ФД: 119118 [15:28:22]line ФПД: 49540041621378 [15:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T152821&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119118&fm=49540041621378&tin=02508201610067®Number=0000000000092660&sum=90000 [15:28:22]written 0, free lines is 4095 [15:28:22]OFD Sender: Processing packet 119118 [packets to send 86, broken 85] [15:28:22]ProducePacketName [15:28:22]name=ofd_packets/00119118 [15:28:22]OFD Sender: To server: pG, [15:28:22]CommunicateWithHost lk.salyk.kg:30040 [15:28:22]ConnectInit lk.salyk.kg [15:28:22]Write to MH i2c: 01 00 00 DC 03 DF [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: 01 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: 01 07 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 E1 0C D3 [15:28:22]RasterBufferAndPrint [15:28:22]line [15:28:22]line [15:28:22]line [15:28:22]line [15:28:22]line [15:28:22]written 0, free lines is 3303 [15:28:22]MH_Cut [15:28:22]Write to MH i2c: D1 01 00 E3 03 01 B8 [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: D1 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: D1 01 00 [15:28:22]MH_I2C_Read... [15:28:22]Read from MH i2c: D1 01 00 E3 03 00 B7 [15:28:22]Write to MH i2c: 01 00 00 E4 03 E7 [15:28:22]Write i2c OK [15:28:22]MH_I2C_Read... [15:28:23]*** Cut start [15:28:23]*** Partial cut [15:28:23]*** CUTSNS_PIN = 1 [15:28:23]*** CUTSNS_PIN = 0 [15:28:23]*** Brake cut motor [15:28:23]Connected sock=10 [15:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4F 7E 07 01 B7 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E0 33 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 B6 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 95 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4E D1 01 00 35 04 06 00 2D 0E 70 95 3F 82 4C 29 6D DB D6 38 CC 75 [15:28:24]Read from MH i2c: 01 [15:28:24]MH_I2C_Read... [15:28:24]*** Stop cut motor [15:28:24]*** Cut end [15:28:24]Read from MH i2c: 01 07 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [15:28:24]process_action close_receipt done [15:28:24]requested_data is exist [15:28:24]produce_requested_data [15:28:24]requested_item fm.sn is exist - process it [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 11 00 00 [15:28:24]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 17 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 BD [15:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:28:24]wFMCommunicate OK [15:28:24]requested_item fd.num is exist - process it [15:28:24]SAM_PROTO_GetFieldsCounters [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 13 00 00 [15:28:24]Write to MH i2c: E2 08 00 E6 03 80 13 00 00 00 00 00 00 65 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 62 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 62 00 E6 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [15:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:24]wFMCommunicate OK [15:28:24]SAM_PROTO_GetFieldsCounters done [15:28:24]requested_item shift.num is exist - process it [15:28:24]requested_item shift.opened is exist - process it [15:28:24]req_shift_opened [15:28:24]FM_GetShiftState [15:28:24]SAM_PROTO_GetShiftState [15:28:24]wFMCommunicate request_size=4 [15:28:24]MH_SAM_APDU [15:28:24]CAPDU: 80 13 01 00 [15:28:24]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [15:28:24]Write i2c OK [15:28:24]MH_I2C_Read... [15:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:24]Read from MH i2c: E2 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 0E 00 [15:28:24]MH_I2C_Read... [15:28:24]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 32 [15:28:24]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:28:24]wFMCommunicate OK [15:28:24]SAM_PROTO_GetShiftState done [15:28:24]FM_GetShiftState done [15:28:24]req_shift_opened done [15:28:24]requested_item shift.open_date is exist - process it [15:28:24]req_shift_open_date [15:28:24]req_shift_open_date done [15:28:24]produce_requested_data done [15:28:24]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119118,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:28:24]process_action_free close_receipt [15:28:24]json_value_free [15:28:24]json_value_free done [15:28:24]process_json_proto returns [15:28:24]Send response to host [15:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119118,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:28:24]free response buf [15:28:24]execute_script done [15:28:24]execute_script returns [15:28:24]free content buf [15:28:24]Sock 8.Close socket [15:28:24]Sock 8.Thread stoped [15:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 43 47 00 55 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 34 39 33 39 10 04 04 00 4E D1 01 00 F4 03 04 00 22 B4 A8 66 B6 04 01 00 00 08 31 9D 39 05 52 4A A2 [15:28:24]CommunicateWithHost err = 0 [15:28:24]CheckOFDResponse [15:28:24]1017 (14) - 77093643461234 [15:28:24]1041 (16) - 0000000000874939 [15:28:24]1040 (4) - 119118 [15:28:24]1012 (4) - 30.07.2024 09:36 [15:28:24]1206 (1) - 0 [15:28:24]OFD Sender: Remove packet 119118 [15:28:24]ProducePacketName [15:28:24]name=ofd_packets/00119118 [15:28:24]NVStorageDeleteData [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:49]accept exits with 9 [15:28:49]New connection [15:28:49]New thread 3066867044 created [15:28:49]Thread 3066723684 joined [15:28:49]Waiting for new connection... [15:28:49] Sock 9.Parse request [15:28:49]Sock 9.Check first char [15:28:49]Sock 9.First char is OK [15:28:49]request: POST /json_proto HTTP/1.0 [15:28:49]Method: POST [15:28:49]URL: /json_proto [15:28:49]Method is POST - this is cgi request [15:28:49]url: /json_proto [15:28:49]query_string will be loaded in cgi processing [15:28:49]execute_cgi json_proto POST (null) [15:28:49]execute_cgi path=json_proto method=POST [15:28:49]POST find Content-Length [15:28:49]Host: 172.17.45.7:8080 [15:28:49]Content-Length: 682 [15:28:49]Content-Type: application/json [15:28:49] [15:28:49]POST finish read [15:28:49]Found Content-Length = 682 [15:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 32.450, "sum" : 2200.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:49]execute_script... [15:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 32.450, "sum" : 2200.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2200.00, "total" : 2200.00, "payments": [ { "type": 0, "sum" : 2200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:28:49]POST & json_proto [15:28:49]process_json_proto [15:28:49]json parsed OK: [15:28:49]protocol is kg_v1.0 [15:28:49]action value=close_receipt [15:28:49]process_action close_receipt [15:28:49]cmd_close_receipt [15:28:49]MH_GetDate [15:28:49]Write to MH i2c: F0 00 00 E8 03 DA [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 09 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: F0 09 00 E8 03 00 B2 06 A9 66 90 0F 3E 66 ED [15:28:49]GetLastDocTimeStamp 1722353301 [15:28:49]current date 1722353330 [15:28:49]FM_GetShiftState [15:28:49]SAM_PROTO_GetShiftState [15:28:49]wFMCommunicate request_size=4 [15:28:49]MH_SAM_APDU [15:28:49]CAPDU: 80 13 01 00 [15:28:49]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [15:28:49]Write i2c OK [15:28:49]MH_I2C_Read... [15:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:49]Read from MH i2c: E2 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 [15:28:49]MH_I2C_Read... [15:28:49]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 34 [15:28:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:28:49]wFMCommunicate OK [15:28:49]SAM_PROTO_GetShiftState done [15:28:49]FM_GetShiftState done [15:28:49]opened in 1722298242 [15:28:49]opened+sec_in_day 1722384642 [15:28:49]quantity*price = 220011 [15:28:49]sum+1 = 220012 [15:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.64 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 171 30.07.2024 15:28 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119119 ФПД: 210806735269546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T152850&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119119&fm=210806735269546&tin=02508201610067®Number=0000000000092660&sum=220000 [15:28:50]StoreToDocumentArchive [15:28:50]shift 435 fd 119119 [15:28:50]save to /storage/0435/doc_00119119 [15:28:50]save last doc name /storage/0435/doc_00119119 to /storage/kkm_last_doc_name [15:28:50]save OK [15:28:50]Clear old archive folders... [15:28:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:28:50]tlvbuf is 00BD5ED0 [15:28:50]SAM_PROTO_ClearQueue [15:28:50]wFMCommunicate request_size=4 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 09 00 00 [15:28:50]Write to MH i2c: E2 08 00 F6 03 80 09 00 00 00 00 00 00 6B [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:50]Read from MH i2c: E2 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 [15:28:50]MH_I2C_Read... [15:28:50]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [15:28:50]RAPDU: 90 00 [15:28:50]wFMCommunicate OK [15:28:50]SAM_PROTO_ClearQueue done [15:28:50]KKMCreateOFDPacket [15:28:50]OFDProtocolAddRootSTLVToBuf [15:28:50]FM_MakeSignedData [15:28:50]FM_MakeSignedData [15:28:50]SAM_PROTO_SignData [15:28:50]wFMCommunicate request_size=4 [15:28:50]MH_SAM_APDU [15:28:50]CAPDU: 80 0D 01 02 [15:28:50]Write to MH i2c: E2 08 00 F7 03 80 0D 01 02 00 00 00 00 73 [15:28:50]Write i2c OK [15:28:50]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]wFMCommunicate request_size=255 [15:28:51]MH_SAM_APDU [15:28: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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B2 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D1 01 00 35 04 06 00 BF [15:28:51]Write to MH i2c: E2 02 01 F8 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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B2 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D1 01 00 35 04 06 00 BF 00 00 E4 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]wFMCommunicate request_size=10 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 0D 02 02 05 BA 44 92 6E AA [15:28:51]Write to MH i2c: E2 0D 00 F9 03 80 0D 02 02 05 00 BA 44 92 6E AA 00 00 28 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [15:28:51]RAPDU: 90 00 [15:28:51]wFMCommunicate OK [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 0D 03 02 [15:28:51]Write to MH i2c: E2 08 00 FA 03 80 0D 03 02 00 00 00 00 78 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 0B 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 0B 00 FA 03 00 1F 15 95 29 20 6D 75 F8 90 00 65 [15:28:51]RAPDU: 1F 15 95 29 20 6D 75 F8 90 00 [15:28:51]wFMCommunicate OK [15:28:51]SAM_PROTO_SignData done [15:28:51]FM_MakeSignedData done [15:28:51]CreateOFDProtocolMessage [15:28:51]wFMCommunicate request_size=4 [15:28:51]MH_SAM_APDU [15:28:51]CAPDU: 80 11 00 00 [15:28:51]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:51]Read from MH i2c: E2 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 17 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D3 [15:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:28:51]wFMCommunicate OK [15:28:51]CreateOFDProtocolMessage done [15:28:51]OFDSenderStorePacket 119119 [15:28:51]StoreOFDPacket docnum=119119 [15:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC 07 07 01 8D 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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B2 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D1 01 00 35 04 06 00 BF BA 44 92 6E AA 1F 15 95 29 20 6D 75 F8 [15:28:51]CheckFolder [15:28:51]dirname=/storage/ofd_packets [15:28:51]CheckFolder done [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00119119 [15:28:51]NVStorageSaveData ofd_packets/00119119 [15:28:51]File name is /storage/ofd_packets/00119119 [15:28:51]Write 301 bytes [15:28:51]NVStorageSaveData done [15:28:51]OFDSenderStorePacket done [15:28:51]KKMCreateOFDPacket done [15:28:51]NVStorageSaveData kkm_last_timestamp [15:28:51]File name is /storage/kkm_last_timestamp [15:28:51]Write 4 bytes [15:28:51]NVStorageSaveData done [15:28:51]ExternCall_PrintAddStr [15:28:51]wPrintStart [15:28:51]Write to MH i2c: 01 00 00 FC 03 FF [15:28:51]Write i2c OK [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 [15:28:51]MH_I2C_Read... [15:28:51]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [15:28:51]RasterBufferAndPrint [15:28:51]line Счет N : (1)950040 [15:28:51]line ИНН: 02508201610067 [15:28:51]line Контрольно-Кассовый Чек [15:28:51]line ПРОДАЖА [15:28:51]line ТРК (МРК, ГНК) : 41 [15:28:51]line Товар: 2710124130 [15:28:51]line Аи-92-К-4 [15:28:51]line 32.450 * 67.80 [15:28:51]line = 2200.11 [15:28:51]line НДС 12% НСП 1% [15:28:51]line > о реализуемом товаре [15:28:51]line ОКРУГЛЕНИЕ: -0.11 [15:28:51]line ИТОГО: 2200.00 [15:28:51]line Внесено: 2200.00 [15:28:51]line СДАЧА: 0.00 [15:28:51]line НСП 1% : 19.47 [15:28:51]line НДС 12% : 233.64 [15:28:51]line Наличными: 2200.00 [15:28:51]line Безнал.: 0.00 [15:28:51]line Место: АЗС № 134 "Партнер Нефть" [15:28:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:28:51]line СНО: Общий режим [15:28:51]line Чек 171 30.07.2024 15:28 [15:28:51]line Смена: 435 ФФД: 1.0 [15:28:51]line ЗНМ: 0300000044 [15:28:51]line РНМ: 0000000000092660 [15:28:51]line Версия ККМ: 001 [15:28:51]line ФМ: 0000000000874939 [15:28:51]line ФД: 119119 [15:28:51]line ФПД: 210806735269546 [15:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T152850&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119119&fm=210806735269546&tin=02508201610067®Number=0000000000092660&sum=220000 [15:28:51]OFD Sender: Processing packet 119119 [packets to send 86, broken 85] [15:28:51]ProducePacketName [15:28:51]name=ofd_packets/00119119 [15:28:51]OFD Sender: To server: pG, [15:28:51]CommunicateWithHost lk.salyk.kg:30040 [15:28:51]ConnectInit lk.salyk.kg [15:28:51]written 0, free lines is 4095 [15:28:52]Write to MH i2c: 01 00 00 26 04 2A [15:28:52]Write i2c OK [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: 01 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: 01 07 00 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 E4 0C 21 [15:28:52]RasterBufferAndPrint [15:28:52]line [15:28:52]line [15:28:52]line [15:28:52]line [15:28:52]line [15:28:52]written 0, free lines is 3305 [15:28:52]MH_Cut [15:28:52]Write to MH i2c: D1 01 00 2D 04 01 03 [15:28:52]Write i2c OK [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: D1 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: D1 01 00 [15:28:52]MH_I2C_Read... [15:28:52]Read from MH i2c: D1 01 00 2D 04 00 02 [15:28:52]Write to MH i2c: 01 00 00 2E 04 32 [15:28:52]Write i2c OK [15:28:52]MH_I2C_Read... [15:28:53]*** Cut start [15:28:53]*** Partial cut [15:28:53]*** CUTSNS_PIN = 1 [15:28:53]*** CUTSNS_PIN = 0 [15:28:53]*** Brake cut motor [15:28:53]Read from MH i2c: 01 [15:28:53]MH_I2C_Read... [15:28:53]*** Stop cut motor [15:28:53]*** Cut end [15:28:53]Read from MH i2c: 01 07 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [15:28:53]process_action close_receipt done [15:28:53]requested_data is exist [15:28:53]produce_requested_data [15:28:53]requested_item fm.sn is exist - process it [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 11 00 00 [15:28:53]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 17 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [15:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:28:53]wFMCommunicate OK [15:28:53]requested_item fd.num is exist - process it [15:28:53]SAM_PROTO_GetFieldsCounters [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 13 00 00 [15:28:53]Write to MH i2c: E2 08 00 30 04 80 13 00 00 00 00 00 00 B0 [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]Connected sock=8 [15:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC 07 07 01 8D 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 C2 7E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 6B 5B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 5B 00 00 00 00 07 04 06 00 60 5B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 B2 06 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D1 01 00 35 04 06 00 BF BA 44 92 6E AA 1F 15 95 29 20 6D 75 F8 [15:28:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 62 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 62 00 30 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [15:28:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 4F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:53]wFMCommunicate OK [15:28:53]SAM_PROTO_GetFieldsCounters done [15:28:53]requested_item shift.num is exist - process it [15:28:53]requested_item shift.opened is exist - process it [15:28:53]req_shift_opened [15:28:53]FM_GetShiftState [15:28:53]SAM_PROTO_GetShiftState [15:28:53]wFMCommunicate request_size=4 [15:28:53]MH_SAM_APDU [15:28:53]CAPDU: 80 13 01 00 [15:28:53]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [15:28:53]Write i2c OK [15:28:53]MH_I2C_Read... [15:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:53]Read from MH i2c: E2 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 0E 00 [15:28:53]MH_I2C_Read... [15:28:53]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 7D [15:28:53]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:28:53]wFMCommunicate OK [15:28:53]SAM_PROTO_GetShiftState done [15:28:53]FM_GetShiftState done [15:28:53]req_shift_opened done [15:28:53]requested_item shift.open_date is exist - process it [15:28:53]req_shift_open_date [15:28:53]req_shift_open_date done [15:28:53]produce_requested_data done [15:28:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119119,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:28:53]process_action_free close_receipt [15:28:53]json_value_free [15:28:53]json_value_free done [15:28:53]process_json_proto returns [15:28:53]Send response to host [15:28:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119119,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:28:53]free response buf [15:28:53]execute_script done [15:28:53]execute_script returns [15:28:53]free content buf [15:28:53]Sock 9.Close socket [15:28:53]Sock 9.Thread stoped [15:28:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DD 3E 47 00 18 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 4F D1 01 00 F4 03 04 00 3F B4 A8 66 B6 04 01 00 00 50 AD F9 D3 07 E7 55 C0 [15:28:54]CommunicateWithHost err = 0 [15:28:54]CheckOFDResponse [15:28:54]1017 (14) - 77093643461234 [15:28:54]1041 (16) - 0000000000874939 [15:28:54]1040 (4) - 119119 [15:28:54]1012 (4) - 30.07.2024 09:37 [15:28:54]1206 (1) - 0 [15:28:54]OFD Sender: Remove packet 119119 [15:28:54]ProducePacketName [15:28:54]name=ofd_packets/00119119 [15:28:54]NVStorageDeleteData [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:09]accept exits with 10 [15:31:09]New connection [15:31:09]New thread 3066723684 created [15:31:09]Thread 3066867044 joined [15:31:09]Waiting for new connection... [15:31:09] Sock 10.Parse request [15:31:09]Sock 10.Check first char [15:31:09]Sock 10.First char is OK [15:31:09]request: POST /json_proto HTTP/1.0 [15:31:09]Method: POST [15:31:09]URL: /json_proto [15:31:09]Method is POST - this is cgi request [15:31:09]url: /json_proto [15:31:09]query_string will be loaded in cgi processing [15:31:09]execute_cgi json_proto POST (null) [15:31:09]execute_cgi path=json_proto method=POST [15:31:09]POST find Content-Length [15:31:09]Host: 172.17.45.7:8080 [15:31:09]Content-Length: 677 [15:31:09]Content-Type: application/json [15:31:09] [15:31:09]POST finish read [15:31:09]Found Content-Length = 677 [15:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:09]execute_script... [15:31: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)950041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:09]POST & json_proto [15:31:09]process_json_proto [15:31:09]json parsed OK: [15:31:09]protocol is kg_v1.0 [15:31:09]action value=close_receipt [15:31:09]process_action close_receipt [15:31:09]cmd_close_receipt [15:31:09]MH_GetDate [15:31:09]Write to MH i2c: F0 00 00 32 04 25 [15:31:09]Write i2c OK [15:31:09]MH_I2C_Read... [15:31:09]Read from MH i2c: F0 [15:31:09]MH_I2C_Read... [15:31:09]Read from MH i2c: F0 09 00 [15:31:09]MH_I2C_Read... [15:31:09]Read from MH i2c: F0 09 00 32 04 00 3E 07 A9 66 90 0F 3E 66 C5 [15:31:09]GetLastDocTimeStamp 1722353330 [15:31:09]current date 1722353470 [15:31:09]FM_GetShiftState [15:31:09]SAM_PROTO_GetShiftState [15:31:09]wFMCommunicate request_size=4 [15:31:09]MH_SAM_APDU [15:31:09]CAPDU: 80 13 01 00 [15:31:09]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [15:31:09]Write i2c OK [15:31:09]MH_I2C_Read... [15:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:09]Read from MH i2c: E2 [15:31:09]MH_I2C_Read... [15:31:09]Read from MH i2c: E2 0E 00 [15:31:09]MH_I2C_Read... [15:31:09]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 7F [15:31:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:31:09]wFMCommunicate OK [15:31:09]SAM_PROTO_GetShiftState done [15:31:09]FM_GetShiftState done [15:31:09]opened in 1722298242 [15:31:09]opened+sec_in_day 1722384642 [15:31:09]quantity*price = 50036 [15:31:09]sum+1 = 50037 [15:31:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 172 30.07.2024 15:31 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119120 ФПД: 62881509847024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T153111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119120&fm=62881509847024&tin=02508201610067®Number=0000000000092660&sum=50000 [15:31:11]StoreToDocumentArchive [15:31:11]shift 435 fd 119120 [15:31:11]save to /storage/0435/doc_00119120 [15:31:11]save last doc name /storage/0435/doc_00119120 to /storage/kkm_last_doc_name [15:31:11]save OK [15:31:11]Clear old archive folders... [15:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:31:11]tlvbuf is 00C0EAD0 [15:31:11]SAM_PROTO_ClearQueue [15:31:11]wFMCommunicate request_size=4 [15:31:11]MH_SAM_APDU [15:31:11]CAPDU: 80 09 00 00 [15:31:11]Write to MH i2c: E2 08 00 40 04 80 09 00 00 00 00 00 00 B6 [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [15:31:11]RAPDU: 90 00 [15:31:11]wFMCommunicate OK [15:31:11]SAM_PROTO_ClearQueue done [15:31:11]KKMCreateOFDPacket [15:31:11]OFDProtocolAddRootSTLVToBuf [15:31:11]FM_MakeSignedData [15:31:11]FM_MakeSignedData [15:31:11]SAM_PROTO_SignData [15:31:11]wFMCommunicate request_size=4 [15:31:11]MH_SAM_APDU [15:31:11]CAPDU: 80 0D 01 02 [15:31:11]Write to MH i2c: E2 08 00 41 04 80 0D 01 02 00 00 00 00 BE [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [15:31:11]RAPDU: 90 00 [15:31:11]wFMCommunicate OK [15:31:11]wFMCommunicate request_size=255 [15:31:11]MH_SAM_APDU [15:31: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3F 07 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D1 01 00 35 04 06 00 39 [15:31:11]Write to MH i2c: E2 02 01 42 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3F 07 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D1 01 00 35 04 06 00 39 00 00 52 [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [15:31:11]RAPDU: 90 00 [15:31:11]wFMCommunicate OK [15:31:11]wFMCommunicate request_size=10 [15:31:11]MH_SAM_APDU [15:31:11]CAPDU: 80 0D 02 02 05 30 BE 0E AF F0 [15:31:11]Write to MH i2c: E2 0D 00 43 04 80 0D 02 02 05 00 30 BE 0E AF F0 00 00 66 [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [15:31:11]RAPDU: 90 00 [15:31:11]wFMCommunicate OK [15:31:11]wFMCommunicate request_size=4 [15:31:11]MH_SAM_APDU [15:31:11]CAPDU: 80 0D 03 02 [15:31:11]Write to MH i2c: E2 08 00 44 04 80 0D 03 02 00 00 00 00 C3 [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 0B 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 0B 00 44 04 00 1D 58 FB 37 92 B6 E0 A6 90 00 39 [15:31:11]RAPDU: 1D 58 FB 37 92 B6 E0 A6 90 00 [15:31:11]wFMCommunicate OK [15:31:11]SAM_PROTO_SignData done [15:31:11]FM_MakeSignedData done [15:31:11]CreateOFDProtocolMessage [15:31:11]wFMCommunicate request_size=4 [15:31:11]MH_SAM_APDU [15:31:11]CAPDU: 80 11 00 00 [15:31:11]Write to MH i2c: E2 08 00 45 04 80 11 00 00 00 00 00 00 C3 [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 17 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 17 00 45 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1E [15:31:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:31:11]wFMCommunicate OK [15:31:11]CreateOFDProtocolMessage done [15:31:11]OFDSenderStorePacket 119120 [15:31:11]StoreOFDPacket docnum=119120 [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572538 (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 R4676 (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: 7010342+1715343248=1722353590 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 B6 07 A9 66 90 0F 3E 66 0E [15:33:10]Current date/time: 30.07.2024 15:33 [15:33:10]FM_Init [15:33:10]wFMConnect [15:33:10]MH_SAM_On [15:33:10]Write to MH i2c: E0 00 00 08 00 E7 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_init finished! [15:33:10]*** atr: [15:33:10]*** 0F 3B D5 18 FF 81 91 FE [15:33:10]*** 1F C3 80 73 C8 21 10 0A [15:33:10]*** 00 00 00 00 00 00 00 00 [15:33:10]*** 00 00 00 00 00 00 00 00 [15:33:10]*** 00 00 00 00 00 00 00 00 [15:33:10]*** 00 00 00 00 00 00 00 00 [15:33:10]*** 00 00 00 00 00 00 00 00 [15:33:10]*** 00 00 00 00 00 00 00 00 [15:33:10]Read from MH i2c: E0 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E0 10 00 [15:33:10]MH_I2C_Read... [15:33:10]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 [15:33:10]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:33:10]wFMCommunicate request_size=10 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:33:10]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 11 00 00 [15:33:10]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 17 00 [15:33:10]MH_I2C_Read... [15:33:10]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 34 39 33 39 90 00 DF [15:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:33:10]wFMCommunicate OK [15:33:10]Detected FM SN is 0000000000874939 [15:33:10]Stored FM SN is 0000000000874939 [15:33:10]wFMCommunicate request_size=9 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 16 00 00 04 38 32 00 00 [15:33:10]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]FM PIN OK [15:33:10]wFMCommunicate request_size=8 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 14 04 00 03 02 00 01 [15:33:10]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=13 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:33:10]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 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 11 00 00 [15:33:10]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 17 00 [15:33:10]MH_I2C_Read... [15:33:10]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 34 39 33 39 90 00 E3 [15:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:33:10]wFMCommunicate OK [15:33:10]DocumentArchiveInit [15:33:10]Start Httpd... [15:33:10]Httpd thread 3067260260 created [15:33:10]Write to MH i2c: 01 00 00 0F 00 0F [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: 01 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: 01 07 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:33:10]Allocated Socket 6 [15:33:10]Bind OK [15:33:10]Listen OK [15:33:10]httpd running on port 8080 [15:33:10]Waiting for new connection... [15:33:10]MH Int Process started [15:33:10]OFD Sender: Processing packet 119120 [packets to send 87, broken 85] [15:33:10]ProducePacketName [15:33:10]name=ofd_packets/00119120 [15:33:10]OFD Sender: To server: pG, [15:33:10]CommunicateWithHost lk.salyk.kg:30040 [15:33:10]ConnectInit lk.salyk.kg [15:33:12]Connected sock=5 [15:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 9D 07 01 FB 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 3F 07 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D1 01 00 35 04 06 00 39 30 BE 0E AF F0 1D 58 FB 37 92 B6 E0 A6 [15:33:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 46 00 47 00 C9 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 50 D1 01 00 F4 03 04 00 42 B5 A8 66 B6 04 01 00 00 D1 2D 55 24 86 9A 15 BF [15:33:14]CommunicateWithHost err = 0 [15:33:14]CheckOFDResponse [15:33:14]1017 (14) - 77093643461234 [15:33:14]1041 (16) - 0000000000874939 [15:33:14]1040 (4) - 119120 [15:33:14]1012 (4) - 30.07.2024 09:41 [15:33:14]1206 (1) - 0 [15:33:14]OFD Sender: Remove packet 119120 [15:33:14]ProducePacketName [15:33:14]name=ofd_packets/00119120 [15:33:14]NVStorageDeleteData [15:33:14]OFD Sender: Processing packet 119121 [packets to send 86, broken 85] [15:33:14]ProducePacketName [15:33:14]name=ofd_packets/00119121 [15:33:14]OFD Sender: To server: pG, [15:33:14]CommunicateWithHost lk.salyk.kg:30040 [15:33:14]ConnectInit lk.salyk.kg [15:33:15]Connected sock=5 [15:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D4 51 07 01 57 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 AD 00 00 00 F4 03 04 00 52 07 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D1 01 00 35 04 06 00 DC 04 EA 7C FD 56 1B 85 2B DE 07 3E CC 98 [15:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 E5 47 00 67 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 51 D1 01 00 F4 03 04 00 45 B5 A8 66 B6 04 01 00 00 CF 49 76 69 58 16 F2 C8 [15:33:15]CommunicateWithHost err = 0 [15:33:15]CheckOFDResponse [15:33:15]1017 (14) - 77093643461234 [15:33:15]1041 (16) - 0000000000874939 [15:33:15]1040 (4) - 119121 [15:33:15]1012 (4) - 30.07.2024 09:41 [15:33:15]1206 (1) - 0 [15:33:15]OFD Sender: Remove packet 119121 [15:33:15]ProducePacketName [15:33:15]name=ofd_packets/00119121 [15:33:15]NVStorageDeleteData [15:33:16]OFD Sender: No OFD packet to send [15:33:17]accept exits with 7 [15:33:17]New connection [15:33:17]New thread 3066973540 created [15:33:17]Waiting for new connection... [15:33:17] Sock 7.Parse request [15:33:17]Sock 7.Check first char [15:33:17]Sock 7.First char is OK [15:33:17]request: POST /json_proto HTTP/1.0 [15:33:17]Method: POST [15:33:17]URL: /json_proto [15:33:17]Method is POST - this is cgi request [15:33:17]url: /json_proto [15:33:17]query_string will be loaded in cgi processing [15:33:17]execute_cgi json_proto POST (null) [15:33:17]execute_cgi path=json_proto method=POST [15:33:17]POST find Content-Length [15:33:17]Host: 172.17.45.7:8080 [15:33:17]Content-Length: 215 [15:33:17]Content-Type: application/json [15:33:17] [15:33:17]POST finish read [15:33:17]Found Content-Length = 215 [15:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:17]execute_script... [15:33:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:17]POST & json_proto [15:33:17]process_json_proto [15:33:17]json parsed OK: [15:33:17]protocol is kg_v1.0 [15:33:17]action value=get_value [15:33:17]process_action get_value [15:33:17]cmd_get_value [15:33:17]process_action get_value done [15:33:17]requested_data is exist [15:33:17]produce_requested_data [15:33:17]requested_item kkm.sn is exist - process it [15:33:17]requested_item kkm.ver is exist - process it [15:33:17]requested_item fm.sn is exist - process it [15:33:17]wFMCommunicate request_size=4 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 11 00 00 [15:33:17]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:17]Read from MH i2c: E2 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 17 00 [15:33:17]MH_I2C_Read... [15:33:17]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 34 39 33 39 90 00 E5 [15:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:33:17]wFMCommunicate OK [15:33:17]requested_item fd.num is exist - process it [15:33:17]SAM_PROTO_GetFieldsCounters [15:33:17]wFMCommunicate request_size=4 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 13 00 00 [15:33:17]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:17]Read from MH i2c: E2 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 62 00 [15:33:17]MH_I2C_Read... [15:33:17]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [15:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:17]wFMCommunicate OK [15:33:17]SAM_PROTO_GetFieldsCounters done [15:33:17]requested_item shift.num is exist - process it [15:33:17]requested_item shift.opened is exist - process it [15:33:17]req_shift_opened [15:33:17]FM_GetShiftState [15:33:17]SAM_PROTO_GetShiftState [15:33:17]wFMCommunicate request_size=4 [15:33:17]MH_SAM_APDU [15:33:17]CAPDU: 80 13 01 00 [15:33:17]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:33:17]Write i2c OK [15:33:17]MH_I2C_Read... [15:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:17]Read from MH i2c: E2 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 0E 00 [15:33:17]MH_I2C_Read... [15:33:17]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5A [15:33:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:33:17]wFMCommunicate OK [15:33:17]SAM_PROTO_GetShiftState done [15:33:17]FM_GetShiftState done [15:33:17]req_shift_opened done [15:33:17]requested_item shift.open_date is exist - process it [15:33:17]req_shift_open_date [15:33:17]req_shift_open_date done [15:33:17]produce_requested_data done [15:33:17]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119121,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:33:17]process_action_free get_value [15:33:17]json_value_free [15:33:17]json_value_free done [15:33:17]process_json_proto returns [15:33:17]Send response to host [15:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119121,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:33:17]free response buf [15:33:17]execute_script done [15:33:17]execute_script returns [15:33:17]free content buf [15:33:17]Sock 7.Close socket [15:33:17]Sock 7.Thread stoped [15:33:17]accept exits with 5 [15:33:17]New connection [15:33:17]New thread 3066830180 created [15:33:17]Thread 3066973540 joined [15:33:17]Waiting for new connection... [15:33:17] Sock 5.Parse request [15:33:17]Sock 5.Check first char [15:33:17]Sock 5.First char is OK [15:33:17]request: POST /json_proto HTTP/1.0 [15:33:17]Method: POST [15:33:17]URL: /json_proto [15:33:17]Method is POST - this is cgi request [15:33:17]url: /json_proto [15:33:17]query_string will be loaded in cgi processing [15:33:17]execute_cgi json_proto POST (null) [15:33:17]execute_cgi path=json_proto method=POST [15:33:17]POST find Content-Length [15:33:17]Host: 172.17.45.7:8080 [15:33:17]Content-Length: 331 [15:33:17]Content-Type: application/json [15:33:17] [15:33:17]POST finish read [15:33:17]Found Content-Length = 331 [15:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:33:17]execute_script... [15:33:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:33:17]POST & json_proto [15:33:17]process_json_proto [15:33:17]json parsed OK: [15:33:17]protocol is kg_v1.0 [15:33:17]action value=get_value [15:33:17]process_action get_value [15:33:18]cmd_get_value [15:33:18]process_action get_value done [15:33:18]requested_data is exist [15:33:18]produce_requested_data [15:33:18]requested_item fm.sale.total is exist - process it [15:33:18]SAM_PROTO_GetFMData [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 13 03 00 [15:33:18]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 FD 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 EB CD 01 00 69 04 A3 00 6F 04 04 00 54 C0 01 00 B1 04 05 00 88 19 A5 79 03 70 04 05 00 D0 74 AF A9 02 72 04 04 00 B8 A4 F5 CF 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 02 80 5E 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 E5 DE DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 0D 00 00 B1 04 04 00 58 14 44 3B 70 04 04 00 58 14 44 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5C 62 4B 06 EF 03 09 90 00 CA [15:33:18]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 EB CD 01 00 69 04 A3 00 6F 04 04 00 54 C0 01 00 B1 04 05 00 88 19 A5 79 03 70 04 05 00 D0 74 AF A9 02 72 04 04 00 B8 A4 F5 CF 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 02 80 5E 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 E5 DE DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 0D 00 00 B1 04 04 00 58 14 44 3B 70 04 04 00 58 14 44 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5C 62 4B 06 EF 03 09 90 00 [15:33:18]wFMCommunicate OK [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 17 00 00 [15:33:18]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:18]Read from MH i2c: E2 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 FD 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F 47 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 66 [15:33:18]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F 47 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [15:33:18]wFMCommunicate OK [15:33:18]wFMCommunicate request_size=4 [15:33:18]MH_SAM_APDU [15:33:18]CAPDU: 80 17 00 00 [15:33:18]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:19]Read from MH i2c: E2 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 FD 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [15:33:19]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [15:33:19]wFMCommunicate OK [15:33:19]wFMCommunicate request_size=4 [15:33:19]MH_SAM_APDU [15:33:19]CAPDU: 80 17 00 00 [15:33:19]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:19]Read from MH i2c: E2 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 FD 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [15:33:19]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:33:19]wFMCommunicate OK [15:33:19]wFMCommunicate request_size=4 [15:33:19]MH_SAM_APDU [15:33:19]CAPDU: 80 17 00 00 [15:33:19]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [15:33:19]Read from MH i2c: E2 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 E2 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [15:33:19]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:33:19]wFMCommunicate OK [15:33:19]SAM_PROTO_GetFMData done [15:33:19]requested_item fm.sale_refund.total is exist - process it [15:33:19]requested_item fm.buy.total is exist - process it [15:33:19]requested_item shift.sale.total is exist - process it [15:33:19]SAM_PROTO_GetShiftData [15:33:19]wFMCommunicate request_size=4 [15:33:19]MH_SAM_APDU [15:33:19]CAPDU: 80 13 02 00 [15:33:19]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:33:20]Read from MH i2c: E2 [15:33:20]MH_I2C_Read... [15:33:20]Read from MH i2c: E2 FD 00 [15:33:20]MH_I2C_Read... [15:33:20]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9E 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 78 B1 9D 01 70 04 03 00 B8 6F 96 72 04 04 00 C0 41 07 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EE F0 2B 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 66 A9 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 80 26 04 70 04 03 00 80 26 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 E5 70 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 4F [15:33:20]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9E 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 78 B1 9D 01 70 04 03 00 B8 6F 96 72 04 04 00 C0 41 07 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EE F0 2B 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 66 A9 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 80 26 04 70 04 03 00 80 26 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 E5 70 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [15:33:20]wFMCommunicate OK [15:33:20]wFMCommunicate request_size=4 [15:33:20]MH_SAM_APDU [15:33:20]CAPDU: 80 17 00 00 [15:33:20]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:33:20]Write i2c OK [15:33:20]MH_I2C_Read... [15:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:20]Read from MH i2c: E2 [15:33:20]MH_I2C_Read... [15:33:20]Read from MH i2c: E2 FD 00 [15:33:20]MH_I2C_Read... [15:33:20]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 68 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 B4 [15:33:20]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 68 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [15:33:20]wFMCommunicate OK [15:33:20]wFMCommunicate request_size=4 [15:33:20]MH_SAM_APDU [15:33:20]CAPDU: 80 17 00 00 [15:33:20]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:33:20]Write i2c OK [15:33:20]MH_I2C_Read... [15:33:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:20]Read from MH i2c: E2 [15:33:20]MH_I2C_Read... [15:33:20]Read from MH i2c: E2 FD 00 [15:33:20]MH_I2C_Read... [15:33:20]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 C6 [15:33:20]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [15:33:20]wFMCommunicate OK [15:33:20]wFMCommunicate request_size=4 [15:33:20]MH_SAM_APDU [15:33:20]CAPDU: 80 17 00 00 [15:33:20]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:33:20]Write i2c OK [15:33:20]MH_I2C_Read... [15:33:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:21]Read from MH i2c: E2 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 FD 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 FD 00 1B 00 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 90 00 10 [15:33:21]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:33:21]wFMCommunicate OK [15:33:21]wFMCommunicate request_size=4 [15:33:21]MH_SAM_APDU [15:33:21]CAPDU: 80 17 00 00 [15:33:21]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:33:21]Write i2c OK [15:33:21]MH_I2C_Read... [15:33:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [15:33:21]Read from MH i2c: E2 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 D8 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 D8 00 1C 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:33:21]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:33:21]wFMCommunicate OK [15:33:21]SAM_PROTO_GetShiftData done [15:33:21]requested_item shift.sale.total_cash is exist - process it [15:33:21]requested_item shift.sale_refund.total is exist - process it [15:33:21]requested_item shift.sale_refund.total_cash is exist - process it [15:33:21]requested_item shift.buy.total is exist - process it [15:33:21]requested_item shift.buy.total_cash is exist - process it [15:33:21]produce_requested_data done [15:33:21]produce_requested_data return {"fm.sale.total":149257650.00,"fm.sale_refund.total":9943174.00,"fm.buy.total":0.00,"shift.sale.total":271118.00,"shift.sale.total_cash":98590.00,"shift.sale_refund.total":2720.00,"shift.sale_refund.total_cash":2720.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:33:21]process_action_free get_value [15:33:21]json_value_free [15:33:21]json_value_free done [15:33:21]process_json_proto returns [15:33:21]Send response to host [15:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149257650.00,"fm.sale_refund.total":9943174.00,"fm.buy.total":0.00,"shift.sale.total":271118.00,"shift.sale.total_cash":98590.00,"shift.sale_refund.total":2720.00,"shift.sale_refund.total_cash":2720.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:33:21]free response buf [15:33:21]execute_script done [15:33:21]execute_script returns [15:33:21]free content buf [15:33:21]Sock 5.Close socket [15:33:21]Sock 5.Thread stoped [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]accept exits with 7 [15:33:36]New connection [15:33:36]New thread 3066973540 created [15:33:36]Thread 3066830180 joined [15:33:36]Waiting for new connection... [15:33:36] Sock 7.Parse request [15:33:36]Sock 7.Check first char [15:33:36]Sock 7.First char is OK [15:33:36]request: POST /json_proto HTTP/1.0 [15:33:36]Method: POST [15:33:36]URL: /json_proto [15:33:36]Method is POST - this is cgi request [15:33:36]url: /json_proto [15:33:36]query_string will be loaded in cgi processing [15:33:36]execute_cgi json_proto POST (null) [15:33:36]execute_cgi path=json_proto method=POST [15:33:36]POST find Content-Length [15:33:36]Host: 172.17.45.7:8080 [15:33:36]Content-Length: 215 [15:33:36]Content-Type: application/json [15:33:36] [15:33:36]POST finish read [15:33:36]Found Content-Length = 215 [15:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:36]execute_script... [15:33:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:36]POST & json_proto [15:33:36]process_json_proto [15:33:36]json parsed OK: [15:33:36]protocol is kg_v1.0 [15:33:36]action value=get_value [15:33:36]process_action get_value [15:33:36]cmd_get_value [15:33:36]process_action get_value done [15:33:36]requested_data is exist [15:33:36]produce_requested_data [15:33:36]requested_item kkm.sn is exist - process it [15:33:36]requested_item kkm.ver is exist - process it [15:33:36]requested_item fm.sn is exist - process it [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 11 00 00 [15:33:36]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 17 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F2 [15:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:33:36]wFMCommunicate OK [15:33:36]requested_item fd.num is exist - process it [15:33:36]SAM_PROTO_GetFieldsCounters [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 00 00 [15:33:36]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 62 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 62 00 1E 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_GetFieldsCounters done [15:33:36]requested_item shift.num is exist - process it [15:33:36]requested_item shift.opened is exist - process it [15:33:36]req_shift_opened [15:33:36]FM_GetShiftState [15:33:36]SAM_PROTO_GetShiftState [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 01 00 [15:33:36]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:36]Read from MH i2c: E2 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0E 00 [15:33:36]MH_I2C_Read... [15:33:36]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 67 [15:33:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:33:36]wFMCommunicate OK [15:33:36]SAM_PROTO_GetShiftState done [15:33:36]FM_GetShiftState done [15:33:36]req_shift_opened done [15:33:36]requested_item shift.open_date is exist - process it [15:33:36]req_shift_open_date [15:33:36]req_shift_open_date done [15:33:36]produce_requested_data done [15:33:36]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119121,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:33:36]process_action_free get_value [15:33:36]json_value_free [15:33:36]json_value_free done [15:33:36]process_json_proto returns [15:33:36]Send response to host [15:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119121,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:33:36]free response buf [15:33:36]execute_script done [15:33:36]execute_script returns [15:33:36]free content buf [15:33:36]Sock 7.Close socket [15:33:36]Sock 7.Thread stoped [15:33:36]accept exits with 10 [15:33:36]New connection [15:33:36]New thread 3066830180 created [15:33:36]Thread 3066973540 joined [15:33:36]Waiting for new connection... [15:33:36] Sock 10.Parse request [15:33:36]Sock 10.Check first char [15:33:36]Sock 10.First char is OK [15:33:36]request: POST /json_proto HTTP/1.0 [15:33:36]Method: POST [15:33:36]URL: /json_proto [15:33:36]Method is POST - this is cgi request [15:33:36]url: /json_proto [15:33:36]query_string will be loaded in cgi processing [15:33:36]execute_cgi json_proto POST (null) [15:33:36]execute_cgi path=json_proto method=POST [15:33:36]POST find Content-Length [15:33:36]Host: 172.17.45.7:8080 [15:33:36]Content-Length: 331 [15:33:36]Content-Type: application/json [15:33:36] [15:33:36]POST finish read [15:33:36]Found Content-Length = 331 [15:33:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:33:36]execute_script... [15:33:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:33:36]POST & json_proto [15:33:36]process_json_proto [15:33:36]json parsed OK: [15:33:36]protocol is kg_v1.0 [15:33:36]action value=get_value [15:33:36]process_action get_value [15:33:36]cmd_get_value [15:33:36]process_action get_value done [15:33:36]requested_data is exist [15:33:36]produce_requested_data [15:33:36]requested_item fm.sale.total is exist - process it [15:33:36]SAM_PROTO_GetFMData [15:33:36]wFMCommunicate request_size=4 [15:33:36]MH_SAM_APDU [15:33:36]CAPDU: 80 13 03 00 [15:33:36]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [15:33:36]OFD Sender: No OFD packet to send [15:33:36]Write i2c OK [15:33:36]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 20 00 00 C5 04 85 04 C1 04 6E 04 04 00 EB CD 01 00 69 04 A3 00 6F 04 04 00 54 C0 01 00 B1 04 05 00 88 19 A5 79 03 70 04 05 00 D0 74 AF A9 02 72 04 04 00 B8 A4 F5 CF 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 02 80 5E 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 E5 DE DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 0D 00 00 B1 04 04 00 58 14 44 3B 70 04 04 00 58 14 44 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5C 62 4B 06 EF 03 09 90 00 D7 [15:33:37]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 EB CD 01 00 69 04 A3 00 6F 04 04 00 54 C0 01 00 B1 04 05 00 88 19 A5 79 03 70 04 05 00 D0 74 AF A9 02 72 04 04 00 B8 A4 F5 CF 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 02 80 5E 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 E5 DE DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 97 0D 00 00 B1 04 04 00 58 14 44 3B 70 04 04 00 58 14 44 3B 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5C 62 4B 06 EF 03 09 90 00 [15:33:37]wFMCommunicate OK [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 17 00 00 [15:33:37]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 21 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F 47 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 73 [15:33:37]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 4F 47 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [15:33:37]wFMCommunicate OK [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 17 00 00 [15:33:37]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 22 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 B4 [15:33:37]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [15:33:37]wFMCommunicate OK [15:33:37]wFMCommunicate request_size=4 [15:33:37]MH_SAM_APDU [15:33:37]CAPDU: 80 17 00 00 [15:33:37]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [15:33:37]Write i2c OK [15:33:37]MH_I2C_Read... [15:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:37]Read from MH i2c: E2 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 [15:33:37]MH_I2C_Read... [15:33:37]Read from MH i2c: E2 FD 00 23 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2F [15:33:38]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 17 00 00 [15:33:38]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 E2 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 E2 00 24 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:33:38]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetFMData done [15:33:38]requested_item fm.sale_refund.total is exist - process it [15:33:38]requested_item fm.buy.total is exist - process it [15:33:38]requested_item shift.sale.total is exist - process it [15:33:38]SAM_PROTO_GetShiftData [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 13 02 00 [15:33:38]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 FD 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 FD 00 25 00 00 BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9E 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 78 B1 9D 01 70 04 03 00 B8 6F 96 72 04 04 00 C0 41 07 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EE F0 2B 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 66 A9 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 80 26 04 70 04 03 00 80 26 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 E5 70 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 5C [15:33:38]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AD 00 00 00 69 04 9E 00 6F 04 04 00 A9 00 00 00 B1 04 04 00 78 B1 9D 01 70 04 03 00 B8 6F 96 72 04 04 00 C0 41 07 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EE F0 2B 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 66 A9 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 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 80 26 04 70 04 03 00 80 26 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 E5 70 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 17 00 00 [15:33:38]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 FD 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 FD 00 26 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 68 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 C1 [15:33:39]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 68 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [15:33:39]wFMCommunicate OK [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 17 00 00 [15:33:39]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 FD 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 FD 00 27 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 D3 [15:33:39]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [15:33:39]wFMCommunicate OK [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 17 00 00 [15:33:39]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 FD 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 FD 00 28 00 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 90 00 1D [15:33:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:33:39]wFMCommunicate OK [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 17 00 00 [15:33:39]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 D8 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 D8 00 29 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:33:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:33:40]wFMCommunicate OK [15:33:40]SAM_PROTO_GetShiftData done [15:33:40]requested_item shift.sale.total_cash is exist - process it [15:33:40]requested_item shift.sale_refund.total is exist - process it [15:33:40]requested_item shift.sale_refund.total_cash is exist - process it [15:33:40]requested_item shift.buy.total is exist - process it [15:33:40]requested_item shift.buy.total_cash is exist - process it [15:33:40]produce_requested_data done [15:33:40]produce_requested_data return {"fm.sale.total":149257650.00,"fm.sale_refund.total":9943174.00,"fm.buy.total":0.00,"shift.sale.total":271118.00,"shift.sale.total_cash":98590.00,"shift.sale_refund.total":2720.00,"shift.sale_refund.total_cash":2720.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:33:40]process_action_free get_value [15:33:40]json_value_free [15:33:40]json_value_free done [15:33:40]process_json_proto returns [15:33:40]Send response to host [15:33:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149257650.00,"fm.sale_refund.total":9943174.00,"fm.buy.total":0.00,"shift.sale.total":271118.00,"shift.sale.total_cash":98590.00,"shift.sale_refund.total":2720.00,"shift.sale_refund.total_cash":2720.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:33:40]free response buf [15:33:40]execute_script done [15:33:40]execute_script returns [15:33:40]free content buf [15:33:40]Sock 10.Close socket [15:33:40]Sock 10.Thread stoped [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]int [15:34:36]Write to MH i2c: 01 00 00 2A 00 2A [15:34:36]*** FLAG_PRN_KEY set [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 2A 00 00 08 00 00 00 FF 0F 47 [15:34:36]state=0 [15:34:36]Key pressed [15:34:36]Feed [15:34:36]Write to MH i2c: D8 00 00 2B 00 02 [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: D8 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: D8 01 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: D8 01 00 2B 00 00 03 [15:34:36]int [15:34:36]Write to MH i2c: 01 00 00 2C 00 2C [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 2C 00 00 48 00 00 00 3D 00 B8 [15:34:36]state=2 [15:34:36]Key pressed [15:34:36]OFD Sender: No OFD packet to send [15:34:36]int [15:34:36]Write to MH i2c: 01 00 00 2D 00 2D [15:34:36]*** FLAG_PRN_KEY reset [15:34:36]Write i2c OK [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 [15:34:36]MH_I2C_Read... [15:34:36]Read from MH i2c: 01 07 00 2D 00 00 00 00 00 00 F6 0F 39 [15:34:36]state=2 [15:34:36]Stop feed [15:34:38]int [15:34:38]Write to MH i2c: 01 00 00 2E 00 2E [15:34:38]*** FLAG_PRN_KEY set [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 2E 00 00 08 00 00 00 FF 0F 4B [15:34:38]state=0 [15:34:38]Key pressed [15:34:38]Feed [15:34:38]Write to MH i2c: D8 00 00 2F 00 06 [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: D8 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: D8 01 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: D8 01 00 2F 00 00 07 [15:34:38]int [15:34:38]Write to MH i2c: 01 00 00 30 00 30 [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 30 00 00 48 00 00 00 3C 00 BB [15:34:38]state=2 [15:34:38]Key pressed [15:34:38]int [15:34:38]Write to MH i2c: 01 00 00 31 00 31 [15:34:38]*** FLAG_PRN_KEY reset [15:34:38]Write i2c OK [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 [15:34:38]MH_I2C_Read... [15:34:38]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 F5 0F 3C [15:34:38]state=2 [15:34:38]Stop feed [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:34]ConnectInit Can't connect to host [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:14]accept exits with 7 [15:38:14]New connection [15:38:14]New thread 3066973540 created [15:38:14]Thread 3066830180 joined [15:38:14]Waiting for new connection... [15:38:14] Sock 7.Parse request [15:38:14]Sock 7.Check first char [15:38:14]Sock 7.First char is OK [15:38:14]request: POST /json_proto HTTP/1.0 [15:38:14]Method: POST [15:38:14]URL: /json_proto [15:38:14]Method is POST - this is cgi request [15:38:14]url: /json_proto [15:38:14]query_string will be loaded in cgi processing [15:38:14]execute_cgi json_proto POST (null) [15:38:14]execute_cgi path=json_proto method=POST [15:38:14]POST find Content-Length [15:38:14]Host: 172.17.45.7:8080 [15:38:14]Content-Length: 1210 [15:38:14]Content-Type: application/json [15:38:14] [15:38:14]POST finish read [15:38:14]Found Content-Length = 1210 [15:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)950043\u000A30.07.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3921361\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:14]execute_script... [15:38:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)950043\u000A30.07.2024 15:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 67.80\u000A\u0418\u0422\u041E\u0413: 1356.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3921361\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:14]POST & json_proto [15:38:14]process_json_proto [15:38:14]json parsed OK: [15:38:14]protocol is kg_v1.0 [15:38:14]action value=print_text [15:38:14]process_action print_text [15:38:14]cmd_print_text [15:38:14]ExternCall_PrintAddStr [15:38:14]wPrintStart [15:38:14]Write to MH i2c: 01 00 00 32 00 32 [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 07 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 07 00 32 00 00 00 00 00 00 FF 0F 47 [15:38:14]RasterBufferAndPrint [15:38:14]line *****ТОВАРНЫЙ ЧЕК***** [15:38:14]line АЗС-134 [15:38:14]line Партнер нефть [15:38:14]line 02508201610067 [15:38:14]line Кассир : Айдарали у Б. [15:38:14]line Счет N : (1)950043 [15:38:14]line 30.07.2024 15:35 [15:38:14]line ПРОДАЖА [15:38:14]line ТРК (МРК, ГНК): 41 [15:38:14]line Вид ГСМ : 2710124130 [15:38:14]line Аи-92-К-4 [15:38:14]line 20.000 x 67.80 [15:38:14]line ИТОГ: 1356.00 [15:38:14]line Тип оплаты: Талоны: Топливные Талоны [15:38:14]line 3921361 [15:38:14]line ______________________ [15:38:14]line (подпись) [15:38:14]written 0, free lines is 4095 [15:38:14]Write to MH i2c: 01 00 00 46 00 46 [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 07 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 07 00 46 00 00 00 00 00 00 14 0E 6F [15:38:14]RasterBufferAndPrint [15:38:14]line [15:38:14]line [15:38:14]line [15:38:14]line [15:38:14]line [15:38:14]written 0, free lines is 3606 [15:38:14]MH_Cut [15:38:14]Write to MH i2c: D1 01 00 4D 00 01 1F [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: D1 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: D1 01 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: D1 01 00 4D 00 00 1E [15:38:14]Write to MH i2c: 01 00 00 4E 00 4E [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:15]*** Cut start [15:38:15]*** Partial cut [15:38:15]*** CUTSNS_PIN = 1 [15:38:15]*** CUTSNS_PIN = 0 [15:38:15]*** Brake cut motor [15:38:15]Read from MH i2c: 01 [15:38:15]MH_I2C_Read... [15:38:15]*** Stop cut motor [15:38:15]*** Cut end [15:38:15]Read from MH i2c: 01 07 00 [15:38:15]MH_I2C_Read... [15:38:15]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 FF 0F 63 [15:38:15]process_action print_text done [15:38:15]requested_data is exist [15:38:15]produce_requested_data [15:38:15]requested_item fm.sn is exist - process it [15:38:15]wFMCommunicate request_size=4 [15:38:15]MH_SAM_APDU [15:38:15]CAPDU: 80 11 00 00 [15:38:15]Write to MH i2c: E2 08 00 4F 00 80 11 00 00 00 00 00 00 C9 [15:38:15]Write i2c OK [15:38:15]MH_I2C_Read... [15:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:16]Read from MH i2c: E2 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 17 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 17 00 4F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 24 [15:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:38:16]wFMCommunicate OK [15:38:16]requested_item fd.num is exist - process it [15:38:16]SAM_PROTO_GetFieldsCounters [15:38:16]wFMCommunicate request_size=4 [15:38:16]MH_SAM_APDU [15:38:16]CAPDU: 80 13 00 00 [15:38:16]Write to MH i2c: E2 08 00 50 00 80 13 00 00 00 00 00 00 CC [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:16]Read from MH i2c: E2 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 62 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 62 00 50 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [15:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 51 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:16]wFMCommunicate OK [15:38:16]SAM_PROTO_GetFieldsCounters done [15:38:16]requested_item shift.num is exist - process it [15:38:16]requested_item shift.opened is exist - process it [15:38:16]req_shift_opened [15:38:16]FM_GetShiftState [15:38:16]SAM_PROTO_GetShiftState [15:38:16]wFMCommunicate request_size=4 [15:38:16]MH_SAM_APDU [15:38:16]CAPDU: 80 13 01 00 [15:38:16]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [15:38:16]Write i2c OK [15:38:16]MH_I2C_Read... [15:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:16]Read from MH i2c: E2 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 0E 00 [15:38:16]MH_I2C_Read... [15:38:16]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [15:38:16]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:38:16]wFMCommunicate OK [15:38:16]SAM_PROTO_GetShiftState done [15:38:16]FM_GetShiftState done [15:38:16]req_shift_opened done [15:38:16]requested_item shift.open_date is exist - process it [15:38:16]req_shift_open_date [15:38:16]req_shift_open_date done [15:38:16]produce_requested_data done [15:38:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119121,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:38:16]process_action_free print_text [15:38:16]json_value_free [15:38:16]json_value_free done [15:38:16]process_json_proto returns [15:38:16]Send response to host [15:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119121,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:38:16]free response buf [15:38:16]execute_script done [15:38:16]execute_script returns [15:38:16]free content buf [15:38:16]Sock 7.Close socket [15:38:16]Sock 7.Thread stoped [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:34]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:17]accept exits with 9 [15:41:17]New connection [15:41:17]New thread 3066830180 created [15:41:17]Thread 3066973540 joined [15:41:17]Waiting for new connection... [15:41:17] Sock 9.Parse request [15:41:17]Sock 9.Check first char [15:41:17]Sock 9.First char is OK [15:41:17]request: POST /json_proto HTTP/1.0 [15:41:17]Method: POST [15:41:17]URL: /json_proto [15:41:17]Method is POST - this is cgi request [15:41:17]url: /json_proto [15:41:17]query_string will be loaded in cgi processing [15:41:17]execute_cgi json_proto POST (null) [15:41:17]execute_cgi path=json_proto method=POST [15:41:17]POST find Content-Length [15:41:17]Host: 172.17.45.7:8080 [15:41:17]Content-Length: 819 [15:41:17]Content-Type: application/json [15:41:17] [15:41:17]POST finish read [15:41:17]Found Content-Length = 819 [15:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:17]execute_script... [15:41:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:17]POST & json_proto [15:41:17]process_json_proto [15:41:17]json parsed OK: [15:41:17]protocol is kg_v1.0 [15:41:17]action value=close_receipt [15:41:17]process_action close_receipt [15:41:17]cmd_close_receipt [15:41:17]MH_GetDate [15:41:17]Write to MH i2c: F0 00 00 52 00 41 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: F0 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: F0 09 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: F0 09 00 52 00 00 9E 09 A9 66 90 0F 3E 66 43 [15:41:17]GetLastDocTimeStamp 1722353490 [15:41:17]current date 1722354078 [15:41:17]FM_GetShiftState [15:41:17]SAM_PROTO_GetShiftState [15:41:17]wFMCommunicate request_size=4 [15:41:17]MH_SAM_APDU [15:41:17]CAPDU: 80 13 01 00 [15:41:17]Write to MH i2c: E2 08 00 53 00 80 13 01 00 00 00 00 00 D0 [15:41:17]Write i2c OK [15:41:17]MH_I2C_Read... [15:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:17]Read from MH i2c: E2 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 0E 00 [15:41:17]MH_I2C_Read... [15:41:17]Read from MH i2c: E2 0E 00 53 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9B [15:41:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:41:17]wFMCommunicate OK [15:41:17]SAM_PROTO_GetShiftState done [15:41:17]FM_GetShiftState done [15:41:17]opened in 1722298242 [15:41:17]opened+sec_in_day 1722384642 [15:41:17]quantity*price = 250012 [15:41:17]sum+1 = 250013 [15:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 174 30.07.2024 15:41 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119122 ФПД: 24670304283322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154118&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119122&fm=24670304283322&tin=02508201610067®Number=0000000000092660&sum=250000 [15:41:19]StoreToDocumentArchive [15:41:19]shift 435 fd 119122 [15:41:19]save to /storage/0435/doc_00119122 [15:41:19]save last doc name /storage/0435/doc_00119122 to /storage/kkm_last_doc_name [15:41:19]save OK [15:41:19]Clear old archive folders... [15:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:41:19]tlvbuf is 014BFD60 [15:41:19]SAM_PROTO_ClearQueue [15:41:19]wFMCommunicate request_size=4 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 09 00 00 [15:41:19]Write to MH i2c: E2 08 00 60 00 80 09 00 00 00 00 00 00 D2 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:19]Read from MH i2c: E2 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [15:41:19]RAPDU: 90 00 [15:41:19]wFMCommunicate OK [15:41:19]SAM_PROTO_ClearQueue done [15:41:19]KKMCreateOFDPacket [15:41:19]OFDProtocolAddRootSTLVToBuf [15:41:19]FM_MakeSignedData [15:41:19]FM_MakeSignedData [15:41:19]SAM_PROTO_SignData [15:41:19]wFMCommunicate request_size=4 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 0D 01 02 [15:41:19]Write to MH i2c: E2 08 00 61 00 80 0D 01 02 00 00 00 00 DA [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:19]Read from MH i2c: E2 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [15:41:19]RAPDU: 90 00 [15:41:19]wFMCommunicate OK [15:41:19]wFMCommunicate request_size=255 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9E 09 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D1 01 00 35 04 06 00 16 70 00 B9 [15:41:19]Write to MH i2c: E2 02 01 62 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9E 09 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D1 01 00 35 04 06 00 16 70 00 B9 00 00 46 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:19]Read from MH i2c: E2 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [15:41:19]RAPDU: 90 00 [15:41:19]wFMCommunicate OK [15:41:19]wFMCommunicate request_size=7 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 0D 02 02 02 2A BA [15:41:19]Write to MH i2c: E2 0A 00 63 00 80 0D 02 02 02 00 2A BA 00 00 C5 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:19]Read from MH i2c: E2 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 03 00 63 00 00 90 00 D7 [15:41:19]RAPDU: 90 00 [15:41:19]wFMCommunicate OK [15:41:19]wFMCommunicate request_size=4 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 0D 03 02 [15:41:19]Write to MH i2c: E2 08 00 64 00 80 0D 03 02 00 00 00 00 DF [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:19]Read from MH i2c: E2 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 0B 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 0B 00 64 00 00 02 BA BA 31 D5 6E 41 99 90 00 A4 [15:41:19]RAPDU: 02 BA BA 31 D5 6E 41 99 90 00 [15:41:19]wFMCommunicate OK [15:41:19]SAM_PROTO_SignData done [15:41:19]FM_MakeSignedData done [15:41:19]CreateOFDProtocolMessage [15:41:19]wFMCommunicate request_size=4 [15:41:19]MH_SAM_APDU [15:41:19]CAPDU: 80 11 00 00 [15:41:19]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:19]Read from MH i2c: E2 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: E2 17 00 [15:41:19]MH_I2C_Read... [15:41:19]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 34 39 33 39 90 00 3A [15:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:41:19]wFMCommunicate OK [15:41:19]CreateOFDProtocolMessage done [15:41:19]OFDSenderStorePacket 119122 [15:41:19]StoreOFDPacket docnum=119122 [15:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 20 90 04 01 26 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9E 09 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D1 01 00 35 04 06 00 16 70 00 B9 2A BA 02 BA BA 31 D5 6E 41 99 [15:41:19]CheckFolder [15:41:19]dirname=/storage/ofd_packets [15:41:19]CheckFolder done [15:41:19]ProducePacketName [15:41:19]name=ofd_packets/00119122 [15:41:19]NVStorageSaveData ofd_packets/00119122 [15:41:19]File name is /storage/ofd_packets/00119122 [15:41:19]Write 298 bytes [15:41:19]NVStorageSaveData done [15:41:19]OFDSenderStorePacket done [15:41:19]KKMCreateOFDPacket done [15:41:19]NVStorageSaveData kkm_last_timestamp [15:41:19]File name is /storage/kkm_last_timestamp [15:41:19]Write 4 bytes [15:41:19]NVStorageSaveData done [15:41:19]ExternCall_PrintAddStr [15:41:19]wPrintStart [15:41:19]Write to MH i2c: 01 00 00 66 00 66 [15:41:19]Write i2c OK [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: 01 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: 01 07 00 [15:41:19]MH_I2C_Read... [15:41:19]Read from MH i2c: 01 07 00 66 00 00 00 00 00 00 FF 0F 7B [15:41:19]RasterBufferAndPrint [15:41:19]line Счет N : (1)950044 [15:41:19]line ИНН: 02508201610067 [15:41:19]line Контрольно-Кассовый Чек [15:41:19]line ПРОДАЖА [15:41:19]line ТРК (МРК, ГНК) : 64 [15:41:19]line Товар: 2710194800 [15:41:19]line ДТ-К-5 [15:41:19]line 32.810 * 76.20 [15:41:19]line = 2500.12 [15:41:19]line НДС 12% НСП 1% [15:41:19]line > о реализуемом товаре [15:41:19]line ОКРУГЛЕНИЕ: -0.12 [15:41:19]line ИТОГО: 2500.00 [15:41:19]line НСП 1% : 22.12 [15:41:19]line НДС 12% : 265.50 [15:41:19]line Наличными: 0.00 [15:41:19]line Безнал.: 2500.00 [15:41:19]line Место: АЗС № 134 "Партнер Нефть" [15:41:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:41:19]line СНО: Общий режим [15:41:19]line Чек 174 30.07.2024 15:41 [15:41:19]line Смена: 435 ФФД: 1.0 [15:41:19]line ЗНМ: 0300000044 [15:41:19]line РНМ: 0000000000092660 [15:41:19]line Версия ККМ: 001 [15:41:19]line Платежная система: O! деньги [15:41:19]line ФМ: 0000000000874939 [15:41:19]line ФД: 119122 [15:41:19]line ФПД: 24670304283322 [15:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154118&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119122&fm=24670304283322&tin=02508201610067®Number=0000000000092660&sum=250000 [15:41:19]written 0, free lines is 4095 [15:41:19]OFD Sender: Processing packet 119122 [packets to send 86, broken 85] [15:41:19]ProducePacketName [15:41:19]name=ofd_packets/00119122 [15:41:19]OFD Sender: To server: pG, [15:41:19]CommunicateWithHost lk.salyk.kg:30040 [15:41:19]ConnectInit lk.salyk.kg [15:41:20]Write to MH i2c: 01 00 00 90 00 90 [15:41:20]Write i2c OK [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: 01 [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: 01 07 00 [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 E0 0C 83 [15:41:20]RasterBufferAndPrint [15:41:20]line [15:41:20]line [15:41:20]line [15:41:20]line [15:41:20]line [15:41:20]written 0, free lines is 3302 [15:41:20]MH_Cut [15:41:20]Write to MH i2c: D1 01 00 97 00 01 69 [15:41:20]Write i2c OK [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: D1 [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: D1 01 00 [15:41:20]MH_I2C_Read... [15:41:20]Read from MH i2c: D1 01 00 97 00 00 68 [15:41:20]Write to MH i2c: 01 00 00 98 00 98 [15:41:20]Write i2c OK [15:41:20]MH_I2C_Read... [15:41:20]*** Cut start [15:41:20]*** Partial cut [15:41:20]*** CUTSNS_PIN = 1 [15:41:20]*** CUTSNS_PIN = 0 [15:41:21]*** Brake cut motor [15:41:21]Read from MH i2c: 01 [15:41:21]MH_I2C_Read... [15:41:21]*** Stop cut motor [15:41:21]*** Cut end [15:41:21]Read from MH i2c: 01 07 00 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [15:41:21]process_action close_receipt done [15:41:21]requested_data is exist [15:41:21]produce_requested_data [15:41:21]requested_item fm.sn is exist - process it [15:41:21]wFMCommunicate request_size=4 [15:41:21]MH_SAM_APDU [15:41:21]CAPDU: 80 11 00 00 [15:41:21]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [15:41:21]Write i2c OK [15:41:21]MH_I2C_Read... [15:41:21]Connected sock=11 [15:41:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 20 90 04 01 26 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 9E 09 A9 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:21]66 Read from MH i2c: 0E E2 04 [15:41:21]04 MH_I2C_Read... [15:41:21]00 B3 01 00 Read from MH i2c: 00 E2 17 00 B9 [15:41:21]04 MH_I2C_Read... [15:41:21]01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 Read from MH i2c: 30 30 E2 30 17 30 00 30 99 30 00 30 00 30 11 30 04 30 10 38 00 37 30 30 34 39 30 33 39 30 10 30 30 04 30 30 04 30 00 30 52 38 37 D1 34 01 39 00 33 35 04 39 06 90 00 16 00 70 6E 00 [15:41:21]B9 RAPDU: 2A 11 BA 04 02 10 BA 00 BA 30 31 30 D5 30 6E 30 41 99 30 [15:41:21]30 30 30 30 30 38 37 34 39 33 39 90 00 [15:41:21]wFMCommunicate OK [15:41:21]requested_item fd.num is exist - process it [15:41:21]SAM_PROTO_GetFieldsCounters [15:41:21]wFMCommunicate request_size=4 [15:41:21]MH_SAM_APDU [15:41:21]CAPDU: 80 13 00 00 [15:41:21]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [15:41:21]Write i2c OK [15:41:21]MH_I2C_Read... [15:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:21]Read from MH i2c: E2 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: E2 62 00 [15:41:21]MH_I2C_Read... [15:41:21]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [15:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 52 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:21]wFMCommunicate OK [15:41:21]SAM_PROTO_GetFieldsCounters done [15:41:21]requested_item shift.num is exist - process it [15:41:21]requested_item shift.opened is exist - process it [15:41:21]req_shift_opened [15:41:21]FM_GetShiftState [15:41:21]SAM_PROTO_GetShiftState [15:41:21]wFMCommunicate request_size=4 [15:41:21]MH_SAM_APDU [15:41:21]CAPDU: 80 13 01 00 [15:41:21]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [15:41:21]Write i2c OK [15:41:21]MH_I2C_Read... [15:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:21]Read from MH i2c: E2 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: E2 0E 00 [15:41:21]MH_I2C_Read... [15:41:21]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [15:41:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:41:21]wFMCommunicate OK [15:41:21]SAM_PROTO_GetShiftState done [15:41:21]FM_GetShiftState done [15:41:21]req_shift_opened done [15:41:21]requested_item shift.open_date is exist - process it [15:41:21]req_shift_open_date [15:41:21]req_shift_open_date done [15:41:21]produce_requested_data done [15:41:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119122,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:41:21]process_action_free close_receipt [15:41:21]json_value_free [15:41:21]json_value_free done [15:41:21]process_json_proto returns [15:41:21]Send response to host [15:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119122,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:41:21]free response buf [15:41:21]execute_script done [15:41:21]execute_script returns [15:41:21]free content buf [15:41:21]Sock 9.Close socket [15:41:21]Sock 9.Thread stoped [15:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9C C4 47 00 06 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 52 D1 01 00 F4 03 04 00 2B B7 A8 66 B6 04 01 00 00 3A A5 D4 FF CF 8A A6 61 [15:41:23]CommunicateWithHost err = 0 [15:41:23]CheckOFDResponse [15:41:23]1017 (14) - 77093643461234 [15:41:23]1041 (16) - 0000000000874939 [15:41:23]1040 (4) - 119122 [15:41:23]1012 (4) - 30.07.2024 09:49 [15:41:23]1206 (1) - 0 [15:41:23]OFD Sender: Remove packet 119122 [15:41:23]ProducePacketName [15:41:23]name=ofd_packets/00119122 [15:41:23]NVStorageDeleteData [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:21]accept exits with 10 [15:43:21]New connection [15:43:21]New thread 3066973540 created [15:43:21]Thread 3066830180 joined [15:43:21]Waiting for new connection... [15:43:21] Sock 10.Parse request [15:43:21]Sock 10.Check first char [15:43:21]Sock 10.First char is OK [15:43:21]request: POST /json_proto HTTP/1.0 [15:43:21]Method: POST [15:43:21]URL: /json_proto [15:43:21]Method is POST - this is cgi request [15:43:21]url: /json_proto [15:43:21]query_string will be loaded in cgi processing [15:43:21]execute_cgi json_proto POST (null) [15:43:21]execute_cgi path=json_proto method=POST [15:43:21]POST find Content-Length [15:43:21]Host: 172.17.45.7:8080 [15:43:21]Content-Length: 677 [15:43:21]Content-Type: application/json [15:43:21] [15:43:21]POST finish read [15:43:21]Found Content-Length = 677 [15:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:21]execute_script... [15:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:21]POST & json_proto [15:43:21]process_json_proto [15:43:21]json parsed OK: [15:43:21]protocol is kg_v1.0 [15:43:21]action value=close_receipt [15:43:21]process_action close_receipt [15:43:21]cmd_close_receipt [15:43:21]MH_GetDate [15:43:21]Write to MH i2c: F0 00 00 9C 00 8B [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: F0 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: F0 09 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: F0 09 00 9C 00 00 1A 0A A9 66 90 0F 3E 66 0A [15:43:21]GetLastDocTimeStamp 1722354078 [15:43:21]current date 1722354202 [15:43:21]FM_GetShiftState [15:43:21]SAM_PROTO_GetShiftState [15:43:21]wFMCommunicate request_size=4 [15:43:21]MH_SAM_APDU [15:43:21]CAPDU: 80 13 01 00 [15:43:21]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [15:43:21]Write i2c OK [15:43:21]MH_I2C_Read... [15:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:21]Read from MH i2c: E2 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: E2 0E 00 [15:43:21]MH_I2C_Read... [15:43:21]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E5 [15:43:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:43:21]wFMCommunicate OK [15:43:21]SAM_PROTO_GetShiftState done [15:43:21]FM_GetShiftState done [15:43:21]opened in 1722298242 [15:43:21]opened+sec_in_day 1722384642 [15:43:21]quantity*price = 54017 [15:43:21]sum+1 = 54019 [15:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.36 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 175 30.07.2024 15:43 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119123 ФПД: 198133350326738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154322&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119123&fm=198133350326738&tin=02508201610067®Number=0000000000092660&sum=54000 [15:43:22]StoreToDocumentArchive [15:43:22]shift 435 fd 119123 [15:43:22]save to /storage/0435/doc_00119123 [15:43:22]save last doc name /storage/0435/doc_00119123 to /storage/kkm_last_doc_name [15:43:22]save OK [15:43:22]Clear old archive folders... [15:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:22]tlvbuf is 014B68E0 [15:43:22]SAM_PROTO_ClearQueue [15:43:22]wFMCommunicate request_size=4 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 09 00 00 [15:43:22]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 03 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [15:43:22]RAPDU: 90 00 [15:43:22]wFMCommunicate OK [15:43:22]SAM_PROTO_ClearQueue done [15:43:22]KKMCreateOFDPacket [15:43:22]OFDProtocolAddRootSTLVToBuf [15:43:22]FM_MakeSignedData [15:43:22]FM_MakeSignedData [15:43:22]SAM_PROTO_SignData [15:43:22]wFMCommunicate request_size=4 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 0D 01 02 [15:43:22]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 03 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [15:43:22]RAPDU: 90 00 [15:43:22]wFMCommunicate OK [15:43:22]wFMCommunicate request_size=255 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1A 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D1 01 00 35 04 06 00 B4 [15:43:22]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1A 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 53 D1 01 00 35 04 06 00 B4 00 00 FF [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:22]Read from MH i2c: E2 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 03 00 [15:43:22]MH_I2C_Read... [15:43:22]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [15:43:22]RAPDU: 90 00 [15:43:22]wFMCommunicate OK [15:43:22]wFMCommunicate request_size=10 [15:43:22]MH_SAM_APDU [15:43:22]CAPDU: 80 0D 02 02 05 33 83 F6 E1 D2 [15:43:22]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 33 83 F6 E1 D2 00 00 90 [15:43:22]Write i2c OK [15:43:22]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [15:43:23]RAPDU: 90 00 [15:43:23]wFMCommunicate OK [15:43:23]wFMCommunicate request_size=4 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 0D 03 02 [15:43:23]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 0B 00 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 0B 00 AE 00 00 19 06 A6 81 DF 89 5E 66 90 00 9C [15:43:23]RAPDU: 19 06 A6 81 DF 89 5E 66 90 00 [15:43:23]wFMCommunicate OK [15:43:23]SAM_PROTO_SignData done [15:43:23]FM_MakeSignedData done [15:43:23]CreateOFDProtocolMessage [15:43:23]wFMCommunicate request_size=4 [15:43:23]MH_SAM_APDU [15:43:23]CAPDU: 80 11 00 00 [15:43:23]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [15:43:23]Write i2c OK [15:43:23]MH_I2C_Read... [15:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:23]Read from MH i2c: E2 [15:43:23]MH_I2C_Read... [15:43:23]Read from MH i2c: E2 17 00 [15:43:23]MH_I2C_Read... [15:43: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 34 39 33 39 90 00 84 [15:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:43:23]wFMCommunicate OK [15:43:23]CreateOFDProtocolMessage done [15:43:23]OFDSenderStorePacket 119123 [15:43:23]StoreOFDPacket docnum=119123 [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 7011016+1715343248=1722354264 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 59 0A A9 66 90 0F 3E 66 B4 [15:44:25]Current date/time: 30.07.2024 15:44 [15:44:25]FM_Init [15:44:25]wFMConnect [15:44:25]MH_SAM_On [15:44:25]Write to MH i2c: E0 00 00 08 00 E7 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_init finished! [15:44:25]*** atr: [15:44:25]*** 0F 3B D5 18 FF 81 91 FE [15:44:25]*** 1F C3 80 73 C8 21 10 0A [15:44:25]*** 00 00 00 00 00 00 00 00 [15:44:25]*** 00 00 00 00 00 00 00 00 [15:44:25]*** 00 00 00 00 00 00 00 00 [15:44:25]*** 00 00 00 00 00 00 00 00 [15:44:25]*** 00 00 00 00 00 00 00 00 [15:44:25]*** 00 00 00 00 00 00 00 00 [15:44:25]Read from MH i2c: E0 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E0 10 00 [15:44:25]MH_I2C_Read... [15:44:25]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 [15:44:25]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [15:44:25]wFMCommunicate request_size=10 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [15:44:25]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [15:44:25]RAPDU: 90 00 [15:44:25]wFMCommunicate OK [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 11 00 00 [15:44:25]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 17 00 [15:44:25]MH_I2C_Read... [15:44:25]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 34 39 33 39 90 00 DF [15:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:44:25]wFMCommunicate OK [15:44:25]Detected FM SN is 0000000000874939 [15:44:25]Stored FM SN is 0000000000874939 [15:44:25]wFMCommunicate request_size=9 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 16 00 00 04 38 32 00 00 [15:44:25]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [15:44:25]RAPDU: 90 00 [15:44:25]wFMCommunicate OK [15:44:25]FM PIN OK [15:44:25]wFMCommunicate request_size=8 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 14 04 00 03 02 00 01 [15:44:25]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [15:44:25]RAPDU: 90 00 [15:44:25]wFMCommunicate OK [15:44:25]wFMCommunicate request_size=13 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [15:44:25]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 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [15:44:25]RAPDU: 90 00 [15:44:25]wFMCommunicate OK [15:44:25]wFMCommunicate request_size=4 [15:44:25]MH_SAM_APDU [15:44:25]CAPDU: 80 11 00 00 [15:44:25]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:25]Read from MH i2c: E2 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: E2 17 00 [15:44:25]MH_I2C_Read... [15:44:25]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 34 39 33 39 90 00 E3 [15:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:44:25]wFMCommunicate OK [15:44:25]DocumentArchiveInit [15:44:25]Start Httpd... [15:44:25]Httpd thread 3067170148 created [15:44:25]Write to MH i2c: 01 00 00 0F 00 0F [15:44:25]Write i2c OK [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: 01 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: 01 07 00 [15:44:25]MH_I2C_Read... [15:44:25]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [15:44:25]MH Int Process started [15:44:25]Allocated Socket 8 [15:44:25]Bind OK [15:44:25]Listen OK [15:44:25]httpd running on port 8080 [15:44:25]Waiting for new connection... [15:44:25]OFD Sender: Processing packet 119124 [packets to send 86, broken 85] [15:44:25]ProducePacketName [15:44:25]name=ofd_packets/00119124 [15:44:25]OFD Sender: To server: pG, [15:44:25]CommunicateWithHost lk.salyk.kg:30040 [15:44:25]ConnectInit lk.salyk.kg [15:44:25]Connected sock=5 [15:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 7D 7F 23 01 C2 B8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 1F 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 53 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D1 01 00 35 04 06 00 4D EF 79 AF 24 1D 5E B0 05 32 9B 57 DE 24 [15:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C0 C1 47 00 0D 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 54 D1 01 00 F4 03 04 00 E3 B7 A8 66 B6 04 01 00 00 16 9F 4F C7 F7 A2 0F 1A [15:44:26]CommunicateWithHost err = 0 [15:44:26]CheckOFDResponse [15:44:26]1017 (14) - 77093643461234 [15:44:26]1041 (16) - 0000000000874939 [15:44:26]1040 (4) - 119124 [15:44:26]1012 (4) - 30.07.2024 09:52 [15:44:26]1206 (1) - 0 [15:44:26]OFD Sender: Remove packet 119124 [15:44:26]ProducePacketName [15:44:26]name=ofd_packets/00119124 [15:44:26]NVStorageDeleteData [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:35]accept exits with 9 [15:44:35]New connection [15:44:35]New thread 3066883428 created [15:44:35]Waiting for new connection... [15:44:35] Sock 9.Parse request [15:44:35]Sock 9.Check first char [15:44:35]Sock 9.First char is OK [15:44:35]request: POST /json_proto HTTP/1.0 [15:44:35]Method: POST [15:44:35]URL: /json_proto [15:44:35]Method is POST - this is cgi request [15:44:35]url: /json_proto [15:44:35]query_string will be loaded in cgi processing [15:44:35]execute_cgi json_proto POST (null) [15:44:35]execute_cgi path=json_proto method=POST [15:44:35]POST find Content-Length [15:44:35]Host: 172.17.45.7:8080 [15:44:35]Content-Length: 215 [15:44:35]Content-Type: application/json [15:44:35] [15:44:35]POST finish read [15:44:35]Found Content-Length = 215 [15:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:35]execute_script... [15:44:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:35]POST & json_proto [15:44:35]process_json_proto [15:44:35]json parsed OK: [15:44:35]protocol is kg_v1.0 [15:44:35]action value=get_value [15:44:35]process_action get_value [15:44:35]cmd_get_value [15:44:35]process_action get_value done [15:44:35]requested_data is exist [15:44:35]produce_requested_data [15:44:35]requested_item kkm.sn is exist - process it [15:44:35]requested_item kkm.ver is exist - process it [15:44:35]requested_item fm.sn is exist - process it [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 11 00 00 [15:44:35]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:35]Read from MH i2c: E2 17 00 [15:44:35]MH_I2C_Read... [15:44:35]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 34 39 33 39 90 00 E5 [15:44:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:44:35]wFMCommunicate OK [15:44:35]requested_item fd.num is exist - process it [15:44:35]SAM_PROTO_GetFieldsCounters [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 13 00 00 [15:44:35]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 62 00 [15:44:35]MH_I2C_Read... [15:44:35]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [15:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 54 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_GetFieldsCounters done [15:44:35]requested_item shift.num is exist - process it [15:44:35]requested_item shift.opened is exist - process it [15:44:35]req_shift_opened [15:44:35]FM_GetShiftState [15:44:35]SAM_PROTO_GetShiftState [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 13 01 00 [15:44:35]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:35]Read from MH i2c: E2 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0E 00 [15:44:35]MH_I2C_Read... [15:44:35]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5A [15:44:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:44:35]wFMCommunicate OK [15:44:35]SAM_PROTO_GetShiftState done [15:44:35]FM_GetShiftState done [15:44:35]req_shift_opened done [15:44:35]requested_item shift.open_date is exist - process it [15:44:35]req_shift_open_date [15:44:35]req_shift_open_date done [15:44:35]produce_requested_data done [15:44:35]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119124,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:44:35]process_action_free get_value [15:44:35]json_value_free [15:44:35]json_value_free done [15:44:35]process_json_proto returns [15:44:35]Send response to host [15:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119124,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:44:35]free response buf [15:44:35]execute_script done [15:44:35]execute_script returns [15:44:35]free content buf [15:44:35]Sock 9.Close socket [15:44:35]Sock 9.Thread stoped [15:44:35]accept exits with 10 [15:44:35]New connection [15:44:35]New thread 3066740068 created [15:44:35]Thread 3066883428 joined [15:44:35]Waiting for new connection... [15:44:35] Sock 10.Parse request [15:44:35]Sock 10.Check first char [15:44:35]Sock 10.First char is OK [15:44:35]request: POST /json_proto HTTP/1.0 [15:44:35]Method: POST [15:44:35]URL: /json_proto [15:44:35]Method is POST - this is cgi request [15:44:35]url: /json_proto [15:44:35]query_string will be loaded in cgi processing [15:44:35]execute_cgi json_proto POST (null) [15:44:35]execute_cgi path=json_proto method=POST [15:44:35]POST find Content-Length [15:44:35]Host: 172.17.45.7:8080 [15:44:35]Content-Length: 331 [15:44:35]Content-Type: application/json [15:44:35] [15:44:35]POST finish read [15:44:35]Found Content-Length = 331 [15:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:44:35]execute_script... [15:44:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [15:44:35]POST & json_proto [15:44:35]process_json_proto [15:44:35]json parsed OK: [15:44:35]protocol is kg_v1.0 [15:44:35]action value=get_value [15:44:35]process_action get_value [15:44:35]cmd_get_value [15:44:35]process_action get_value done [15:44:35]requested_data is exist [15:44:35]produce_requested_data [15:44:35]requested_item fm.sale.total is exist - process it [15:44:35]SAM_PROTO_GetFMData [15:44:35]wFMCommunicate request_size=4 [15:44:35]MH_SAM_APDU [15:44:35]CAPDU: 80 13 03 00 [15:44:35]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [15:44:35]Write i2c OK [15:44:35]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 EE CD 01 00 69 04 A3 00 6F 04 04 00 56 C0 01 00 B1 04 05 00 08 BD A9 79 03 70 04 05 00 C0 47 B0 A9 02 72 04 04 00 48 75 F9 CF 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 D2 80 80 5E 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 67 E9 DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 98 0D 00 00 B1 04 04 00 48 E7 44 3B 70 04 04 00 48 E7 44 3B 72 04 00 00 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 C4 78 4B 06 EF 03 09 90 00 4E [15:44:36]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 EE CD 01 00 69 04 A3 00 6F 04 04 00 56 C0 01 00 B1 04 05 00 08 BD A9 79 03 70 04 05 00 C0 47 B0 A9 02 72 04 04 00 48 75 F9 CF 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 D2 80 80 5E 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 67 E9 DF 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 98 0D 00 00 B1 04 04 00 48 E7 44 3B 70 04 04 00 48 E7 44 3B 72 04 00 00 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 C4 78 4B 06 EF 03 09 90 00 [15:44:36]wFMCommunicate OK [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 17 00 00 [15:44:36]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2D 49 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 46 [15:44:36]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2D 49 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [15:44:36]wFMCommunicate OK [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 17 00 00 [15:44:36]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]OFD Sender: No OFD packet to send [15:44:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [15:44:36]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [15:44:36]wFMCommunicate OK [15:44:36]wFMCommunicate request_size=4 [15:44:36]MH_SAM_APDU [15:44:36]CAPDU: 80 17 00 00 [15:44:36]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [15:44:36]Write i2c OK [15:44:36]MH_I2C_Read... [15:44:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:44:36]Read from MH i2c: E2 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 [15:44:36]MH_I2C_Read... [15:44:36]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [15:44:37]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 17 00 00 [15:44:37]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 E2 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [15:44:37]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]SAM_PROTO_GetFMData done [15:44:37]requested_item fm.sale_refund.total is exist - process it [15:44:37]requested_item fm.buy.total is exist - process it [15:44:37]requested_item shift.sale.total is exist - process it [15:44:37]SAM_PROTO_GetShiftData [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 13 02 00 [15:44:37]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 FD 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 B0 00 00 00 69 04 9E 00 6F 04 04 00 AB 00 00 00 B1 04 04 00 F8 54 A2 01 70 04 03 00 A8 42 97 72 04 04 00 50 12 0B 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0C 6F 2C 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 E8 B3 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 97 00 6F 04 04 00 05 00 00 00 B1 04 03 00 70 F9 04 70 04 03 00 70 F9 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 4D 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 D5 [15:44:37]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 B0 00 00 00 69 04 9E 00 6F 04 04 00 AB 00 00 00 B1 04 04 00 F8 54 A2 01 70 04 03 00 A8 42 97 72 04 04 00 50 12 0B 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 0C 6F 2C 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 E8 B3 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 97 00 6F 04 04 00 05 00 00 00 B1 04 03 00 70 F9 04 70 04 03 00 70 F9 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 4D 87 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [15:44:37]wFMCommunicate OK [15:44:37]wFMCommunicate request_size=4 [15:44:37]MH_SAM_APDU [15:44:37]CAPDU: 80 17 00 00 [15:44:37]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [15:44:37]Write i2c OK [15:44:37]MH_I2C_Read... [15:44:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:44:37]Read from MH i2c: E2 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 FD 00 [15:44:37]MH_I2C_Read... [15:44:37]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 46 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 94 [15:44:37]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 46 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 17 00 00 [15:44:38]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 FD 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 C6 [15:44:38]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 17 00 00 [15:44:38]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 FD 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 FD 00 1B 00 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 90 00 10 [15:44:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [15:44:38]wFMCommunicate OK [15:44:38]wFMCommunicate request_size=4 [15:44:38]MH_SAM_APDU [15:44:38]CAPDU: 80 17 00 00 [15:44:38]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [15:44:38]Read from MH i2c: E2 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 D8 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: E2 D8 00 1C 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [15:44:38]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [15:44:38]wFMCommunicate OK [15:44:38]SAM_PROTO_GetShiftData done [15:44:38]requested_item shift.sale.total_cash is exist - process it [15:44:38]requested_item shift.sale_refund.total is exist - process it [15:44:38]requested_item shift.sale_refund.total_cash is exist - process it [15:44:38]requested_item shift.buy.total is exist - process it [15:44:38]requested_item shift.buy.total_cash is exist - process it [15:44:38]produce_requested_data done [15:44:38]produce_requested_data return {"fm.sale.total":149260690.00,"fm.sale_refund.total":9943714.00,"fm.buy.total":0.00,"shift.sale.total":274158.00,"shift.sale.total_cash":99130.00,"shift.sale_refund.total":3260.00,"shift.sale_refund.total_cash":3260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [15:44:38]process_action_free get_value [15:44:38]json_value_free [15:44:38]json_value_free done [15:44:38]process_json_proto returns [15:44:38]Send response to host [15:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149260690.00,"fm.sale_refund.total":9943714.00,"fm.buy.total":0.00,"shift.sale.total":274158.00,"shift.sale.total_cash":99130.00,"shift.sale_refund.total":3260.00,"shift.sale_refund.total_cash":3260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [15:44:38]free response buf [15:44:38]execute_script done [15:44:38]execute_script returns [15:44:38]free content buf [15:44:38]Sock 10.Close socket [15:44:38]Sock 10.Thread stoped [15:44:38]accept exits with 9 [15:44:38]New connection [15:44:38]New thread 3066883428 created [15:44:38]Thread 3066740068 joined [15:44:38]Waiting for new connection... [15:44:38] Sock 9.Parse request [15:44:38]Sock 9.Check first char [15:44:38]Sock 9.First char is OK [15:44:38]request: POST /json_proto HTTP/1.0 [15:44:38]Method: POST [15:44:38]URL: /json_proto [15:44:38]Method is POST - this is cgi request [15:44:38]url: /json_proto [15:44:38]query_string will be loaded in cgi processing [15:44:38]execute_cgi json_proto POST (null) [15:44:38]execute_cgi path=json_proto method=POST [15:44:38]POST find Content-Length [15:44:38]Host: 172.17.45.7:8080 [15:44:38]Content-Length: 144 [15:44:38]Content-Type: application/json [15:44:38] [15:44:38]POST finish read [15:44:38]Found Content-Length = 144 [15:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:44:38]execute_script... [15:44:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [15:44:38]POST & json_proto [15:44:38]process_json_proto [15:44:38]json parsed OK: [15:44:38]protocol is kg_v1.0 [15:44:38]action value=print_doc [15:44:38]process_action print_doc [15:44:38]ExternCall_PrintAddStr [15:44:38]wPrintStart [15:44:38]Write to MH i2c: 01 00 00 1D 00 1D [15:44:38]Write i2c OK [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 07 00 [15:44:38]MH_I2C_Read... [15:44:38]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [15:44:39]RasterBufferAndPrint [15:44:39]line Счет N : (1)950045 [15:44:39]line ИНН: 02508201610067 [15:44:39]line Контрольно-Кассовый Чек [15:44:39]line ВОЗВРАТ ПРОДАЖИ [15:44:39]line ТРК (МРК, ГНК) : 63 [15:44:39]line Товар: 2710124500 [15:44:39]line Аи-95-К-3 [15:44:39]line 7.280 * 74.20 [15:44:39]line = 540.18 [15:44:39]line НДС 12% НСП 1% [15:44:39]line > о реализуемом товаре [15:44:39]line ОКРУГЛЕНИЕ: -0.18 [15:44:39]line ИТОГО: 540.00 [15:44:39]line НСП 1% : 4.78 [15:44:39]line НДС 12% : 57.36 [15:44:39]line Наличными: 540.00 [15:44:39]line Безнал.: 0.00 [15:44:39]line Место: АЗС № 134 "Партнер Нефть" [15:44:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:44:39]line СНО: Общий режим [15:44:39]line Чек 176 30.07.2024 15:43 [15:44:39]line Смена: 435 ФФД: 1.0 [15:44:39]line ЗНМ: 0300000044 [15:44:39]line РНМ: 0000000000092660 [15:44:39]line Версия ККМ: 001 [15:44:39]line ФД осн.: 119123 [15:44:39]line ФМ осн.: 0000000000874939 [15:44:39]line ФМ: 0000000000874939 [15:44:39]line ФД: 119124 [15:44:39]line ФПД: 85690934043677 [15:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154327&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119124&fm=85690934043677&tin=02508201610067®Number=0000000000092660&sum=54000 [15:44:39]written 0, free lines is 4095 [15:44:39]Write to MH i2c: 01 00 00 47 00 47 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 E7 0C 41 [15:44:39]RasterBufferAndPrint [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]line [15:44:39]written 0, free lines is 3316 [15:44:39]MH_Cut [15:44:39]Write to MH i2c: D1 01 00 4E 00 01 20 [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 01 00 [15:44:39]MH_I2C_Read... [15:44:39]Read from MH i2c: D1 01 00 4E 00 00 1F [15:44:39]Write to MH i2c: 01 00 00 4F 00 4F [15:44:39]Write i2c OK [15:44:39]MH_I2C_Read... [15:44:40]*** Cut start [15:44:40]*** Partial cut [15:44:40]*** CUTSNS_PIN = 1 [15:44:40]*** CUTSNS_PIN = 0 [15:44:40]*** Brake cut motor [15:44:40]Read from MH i2c: 01 [15:44:40]MH_I2C_Read... [15:44:40]*** Stop cut motor [15:44:40]*** Cut end [15:44:40]Read from MH i2c: 01 07 00 [15:44:40]MH_I2C_Read... [15:44:40]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [15:44:40]process_action print_doc done [15:44:40]requested_data is exist [15:44:40]produce_requested_data [15:44:40]produce_requested_data return (null) [15:44:40]process_action_free print_doc [15:44:40]json_value_free [15:44:40]json_value_free done [15:44:40]process_json_proto returns [15:44:40]Send response to host [15:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [15:44:40]free response buf [15:44:40]execute_script done [15:44:40]execute_script returns [15:44:40]free content buf [15:44:40]Sock 9.Close socket [15:44:40]Sock 9.Thread stoped [15:44:41]accept exits with 10 [15:44:41]New connection [15:44:41]New thread 3066740068 created [15:44:41]Thread 3066883428 joined [15:44:41]Waiting for new connection... [15:44:41] Sock 10.Parse request [15:44:41]Sock 10.Check first char [15:44:41]Sock 10.First char is OK [15:44:41]request: POST /json_proto HTTP/1.0 [15:44:41]Method: POST [15:44:41]URL: /json_proto [15:44:41]Method is POST - this is cgi request [15:44:41]url: /json_proto [15:44:41]query_string will be loaded in cgi processing [15:44:41]execute_cgi json_proto POST (null) [15:44:41]execute_cgi path=json_proto method=POST [15:44:41]POST find Content-Length [15:44:41]Host: 172.17.45.7:8080 [15:44:41]Content-Length: 677 [15:44:41]Content-Type: application/json [15:44:41] [15:44:41]POST finish read [15:44:41]Found Content-Length = 677 [15:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:41]execute_script... [15:44: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)950046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 7.280, "sum" : 540.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:41]POST & json_proto [15:44:41]process_json_proto [15:44:41]json parsed OK: [15:44:41]protocol is kg_v1.0 [15:44:41]action value=close_receipt [15:44:41]process_action close_receipt [15:44:41]cmd_close_receipt [15:44:41]MH_GetDate [15:44:41]Write to MH i2c: F0 00 00 50 00 3F [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: F0 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: F0 09 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: F0 09 00 50 00 00 69 0A A9 66 90 0F 3E 66 0D [15:44:41]GetLastDocTimeStamp 1722354207 [15:44:41]current date 1722354281 [15:44:41]FM_GetShiftState [15:44:41]SAM_PROTO_GetShiftState [15:44:41]wFMCommunicate request_size=4 [15:44:41]MH_SAM_APDU [15:44:41]CAPDU: 80 13 01 00 [15:44:41]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [15:44:41]Write i2c OK [15:44:41]MH_I2C_Read... [15:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:41]Read from MH i2c: E2 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 0E 00 [15:44:41]MH_I2C_Read... [15:44:41]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [15:44:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:44:41]wFMCommunicate OK [15:44:41]SAM_PROTO_GetShiftState done [15:44:41]FM_GetShiftState done [15:44:41]opened in 1722298242 [15:44:41]opened+sec_in_day 1722384642 [15:44:41]quantity*price = 54017 [15:44:41]sum+1 = 54019 [15:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.36 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 177 30.07.2024 15:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119125 ФПД: 141349843770616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154441&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119125&fm=141349843770616&tin=02508201610067®Number=0000000000092660&sum=54000 [15:44:42]StoreToDocumentArchive [15:44:42]shift 435 fd 119125 [15:44:42]save to /storage/0435/doc_00119125 [15:44:42]save last doc name /storage/0435/doc_00119125 to /storage/kkm_last_doc_name [15:44:42]save OK [15:44:42]Clear old archive folders... [15:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:42]tlvbuf is 01760830 [15:44:42]SAM_PROTO_ClearQueue [15:44:42]wFMCommunicate request_size=4 [15:44:42]MH_SAM_APDU [15:44:42]CAPDU: 80 09 00 00 [15:44:42]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [15:44:42]Write i2c OK [15:44:42]MH_I2C_Read... [15:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:42]Read from MH i2c: E2 [15:44:42]MH_I2C_Read... [15:44:42]Read from MH i2c: E2 03 00 [15:44:42]MH_I2C_Read... [15:44:42]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [15:44:42]RAPDU: 90 00 [15:44:42]wFMCommunicate OK [15:44:42]SAM_PROTO_ClearQueue done [15:44:42]KKMCreateOFDPacket [15:44:42]OFDProtocolAddRootSTLVToBuf [15:44:42]FM_MakeSignedData [15:44:42]FM_MakeSignedData [15:44:42]SAM_PROTO_SignData [15:44:42]wFMCommunicate request_size=4 [15:44:42]MH_SAM_APDU [15:44:42]CAPDU: 80 0D 01 02 [15:44:42]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [15:44:42]Write i2c OK [15:44:42]MH_I2C_Read... [15:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:42]Read from MH i2c: E2 [15:44:42]MH_I2C_Read... [15:44:42]Read from MH i2c: E2 03 00 [15:44:42]MH_I2C_Read... [15:44:42]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [15:44:42]RAPDU: 90 00 [15:44:42]wFMCommunicate OK [15:44:42]wFMCommunicate request_size=255 [15:44:42]MH_SAM_APDU [15:44:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 69 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D1 01 00 35 04 06 00 80 [15:44:42]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 69 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D1 01 00 35 04 06 00 80 00 00 D2 [15:44:42]Write i2c OK [15:44:42]MH_I2C_Read... [15:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:42]Read from MH i2c: E2 [15:44:42]MH_I2C_Read... [15:44:42]Read from MH i2c: E2 03 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [15:44:43]RAPDU: 90 00 [15:44:43]wFMCommunicate OK [15:44:43]wFMCommunicate request_size=10 [15:44:43]MH_SAM_APDU [15:44:43]CAPDU: 80 0D 02 02 05 8E 93 3A 1C F8 [15:44:43]Write to MH i2c: E2 0D 00 61 00 80 0D 02 02 05 00 8E 93 3A 1C F8 00 00 54 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:43]Read from MH i2c: E2 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 03 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [15:44:43]RAPDU: 90 00 [15:44:43]wFMCommunicate OK [15:44:43]wFMCommunicate request_size=4 [15:44:43]MH_SAM_APDU [15:44:43]CAPDU: 80 0D 03 02 [15:44:43]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:43]Read from MH i2c: E2 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 0B 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 0B 00 62 00 00 F8 69 42 DA 6D D7 00 52 90 00 F1 [15:44:43]RAPDU: F8 69 42 DA 6D D7 00 52 90 00 [15:44:43]wFMCommunicate OK [15:44:43]SAM_PROTO_SignData done [15:44:43]FM_MakeSignedData done [15:44:43]CreateOFDProtocolMessage [15:44:43]wFMCommunicate request_size=4 [15:44:43]MH_SAM_APDU [15:44:43]CAPDU: 80 11 00 00 [15:44:43]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:43]Read from MH i2c: E2 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: E2 17 00 [15:44:43]MH_I2C_Read... [15:44:43]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 34 39 33 39 90 00 38 [15:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:44:43]wFMCommunicate OK [15:44:43]CreateOFDProtocolMessage done [15:44:43]OFDSenderStorePacket 119125 [15:44:43]StoreOFDPacket docnum=119125 [15:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 28 07 01 2C A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 69 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D1 01 00 35 04 06 00 80 8E 93 3A 1C F8 F8 69 42 DA 6D D7 00 52 [15:44:43]CheckFolder [15:44:43]dirname=/storage/ofd_packets [15:44:43]CheckFolder done [15:44:43]ProducePacketName [15:44:43]name=ofd_packets/00119125 [15:44:43]NVStorageSaveData ofd_packets/00119125 [15:44:43]File name is /storage/ofd_packets/00119125 [15:44:43]Write 301 bytes [15:44:43]NVStorageSaveData done [15:44:43]OFDSenderStorePacket done [15:44:43]KKMCreateOFDPacket done [15:44:43]NVStorageSaveData kkm_last_timestamp [15:44:43]File name is /storage/kkm_last_timestamp [15:44:43]Write 4 bytes [15:44:43]NVStorageSaveData done [15:44:43]ExternCall_PrintAddStr [15:44:43]wPrintStart [15:44:43]Write to MH i2c: 01 00 00 64 00 64 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: 01 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: 01 07 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [15:44:43]RasterBufferAndPrint [15:44:43]line Счет N : (1)950046 [15:44:43]line ИНН: 02508201610067 [15:44:43]line Контрольно-Кассовый Чек [15:44:43]line ПРОДАЖА [15:44:43]line ТРК (МРК, ГНК) : 53 [15:44:43]line Товар: 2710124500 [15:44:43]line Аи-95-К-3 [15:44:43]line 7.280 * 74.20 [15:44:43]line = 540.18 [15:44:43]line НДС 12% НСП 1% [15:44:43]line > о реализуемом товаре [15:44:43]line ОКРУГЛЕНИЕ: -0.18 [15:44:43]line ИТОГО: 540.00 [15:44:43]line Внесено: 540.00 [15:44:43]line СДАЧА: 0.00 [15:44:43]line НСП 1% : 4.78 [15:44:43]line НДС 12% : 57.36 [15:44:43]line Наличными: 540.00 [15:44:43]line Безнал.: 0.00 [15:44:43]line Место: АЗС № 134 "Партнер Нефть" [15:44:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:44:43]line СНО: Общий режим [15:44:43]line Чек 177 30.07.2024 15:44 [15:44:43]line Смена: 435 ФФД: 1.0 [15:44:43]line ЗНМ: 0300000044 [15:44:43]line РНМ: 0000000000092660 [15:44:43]line Версия ККМ: 001 [15:44:43]line ФМ: 0000000000874939 [15:44:43]line ФД: 119125 [15:44:43]line ФПД: 141349843770616 [15:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154441&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119125&fm=141349843770616&tin=02508201610067®Number=0000000000092660&sum=54000 [15:44:43]OFD Sender: Processing packet 119125 [packets to send 86, broken 85] [15:44:43]ProducePacketName [15:44:43]name=ofd_packets/00119125 [15:44:43]OFD Sender: To server: pG, [15:44:43]CommunicateWithHost lk.salyk.kg:30040 [15:44:43]ConnectInit lk.salyk.kg [15:44:43]written 0, free lines is 4095 [15:44:43]Write to MH i2c: 01 00 00 8E 00 8E [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: 01 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: 01 07 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 D4 0C 75 [15:44:43]RasterBufferAndPrint [15:44:43]line [15:44:43]line [15:44:43]line [15:44:43]line [15:44:43]line [15:44:43]written 0, free lines is 3307 [15:44:43]MH_Cut [15:44:43]Write to MH i2c: D1 01 00 95 00 01 67 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: D1 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: D1 01 00 [15:44:43]MH_I2C_Read... [15:44:43]Read from MH i2c: D1 01 00 95 00 00 66 [15:44:43]Write to MH i2c: 01 00 00 96 00 96 [15:44:43]Write i2c OK [15:44:43]MH_I2C_Read... [15:44:44]*** Cut start [15:44:44]*** Partial cut [15:44:44]*** CUTSNS_PIN = 1 [15:44:44]*** CUTSNS_PIN = 0 [15:44:44]*** Brake cut motor [15:44:45]Read from MH i2c: 01 [15:44:45]MH_I2C_Read... [15:44:45]*** Stop cut motor [15:44:45]*** Cut end [15:44:45]Read from MH i2c: 01 07 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [15:44:45]process_action close_receipt done [15:44:45]requested_data is exist [15:44:45]produce_requested_data [15:44:45]requested_item fm.sn is exist - process it [15:44:45]wFMCommunicate request_size=4 [15:44:45]MH_SAM_APDU [15:44:45]CAPDU: 80 11 00 00 [15:44:45]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 17 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [15:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:44:45]wFMCommunicate OK [15:44:45]requested_item fd.num is exist - process it [15:44:45]SAM_PROTO_GetFieldsCounters [15:44:45]wFMCommunicate request_size=4 [15:44:45]MH_SAM_APDU [15:44:45]CAPDU: 80 13 00 00 [15:44:45]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 62 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 62 00 98 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [15:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 55 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:45]wFMCommunicate OK [15:44:45]SAM_PROTO_GetFieldsCounters done [15:44:45]requested_item shift.num is exist - process it [15:44:45]requested_item shift.opened is exist - process it [15:44:45]req_shift_opened [15:44:45]FM_GetShiftState [15:44:45]SAM_PROTO_GetShiftState [15:44:45]wFMCommunicate request_size=4 [15:44:45]MH_SAM_APDU [15:44:45]CAPDU: 80 13 01 00 [15:44:45]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [15:44:45]Write i2c OK [15:44:45]MH_I2C_Read... [15:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:45]Read from MH i2c: E2 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0E 00 [15:44:45]MH_I2C_Read... [15:44:45]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E1 [15:44:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:44:45]wFMCommunicate OK [15:44:45]SAM_PROTO_GetShiftState done [15:44:45]FM_GetShiftState done [15:44:45]req_shift_opened done [15:44:45]requested_item shift.open_date is exist - process it [15:44:45]req_shift_open_date [15:44:45]req_shift_open_date done [15:44:45]produce_requested_data done [15:44:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119125,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:44:45]process_action_free close_receipt [15:44:45]json_value_free [15:44:45]json_value_free done [15:44:45]process_json_proto returns [15:44:45]Send response to host [15:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119125,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:44:45]free response buf [15:44:45]execute_script done [15:44:45]execute_script returns [15:44:45]free content buf [15:44:45]Sock 10.Close socket [15:44:45]Sock 10.Thread stoped [15:44:48]ConnectInit Can't take IP for lk.salyk.kg [15:44:48]CommunicateWithHost connect error [15:44:48]CommunicateWithHost err = -1 [15:44:48]OFD Sender: Server communicate error [15:44:53]OFD Sender: Processing packet 119125 [packets to send 86, broken 85] [15:44:53]ProducePacketName [15:44:53]name=ofd_packets/00119125 [15:44:53]OFD Sender: To server: pG, [15:44:53]CommunicateWithHost lk.salyk.kg:30040 [15:44:53]ConnectInit lk.salyk.kg [15:44:54]Connected sock=7 [15:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 28 07 01 2C A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 70 1C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 02 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 69 0A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D1 01 00 35 04 06 00 80 8E 93 3A 1C F8 F8 69 42 DA 6D D7 00 52 [15:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FC 73 47 00 6F 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 55 D1 01 00 F4 03 04 00 00 B8 A8 66 B6 04 01 00 00 40 8E 89 05 AA 7B A9 AA [15:44:58]CommunicateWithHost err = 0 [15:44:58]CheckOFDResponse [15:44:58]1017 (14) - 77093643461234 [15:44:58]1041 (16) - 0000000000874939 [15:44:58]1040 (4) - 119125 [15:44:58]1012 (4) - 30.07.2024 09:53 [15:44:58]1206 (1) - 0 [15:44:58]OFD Sender: Remove packet 119125 [15:44:58]ProducePacketName [15:44:58]name=ofd_packets/00119125 [15:44:58]NVStorageDeleteData [15:44:59]OFD Sender: No OFD packet to send [15:45:03]recv_with_timeout no data received [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:32]recv_with_timeout no data received [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:50]ConnectInit Can't connect to host [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]OFD Sender: No OFD packet to send [15:48:19]OFD Sender: No OFD packet to send [15:48:24]OFD Sender: No OFD packet to send [15:48:29]OFD Sender: No OFD packet to send [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]OFD Sender: No OFD packet to send [15:49:04]OFD Sender: No OFD packet to send [15:49:09]OFD Sender: No OFD packet to send [15:49:14]OFD Sender: No OFD packet to send [15:49:17]accept exits with 9 [15:49:17]New connection [15:49:17]New thread 3066883428 created [15:49:17]Thread 3066740068 joined [15:49:17]Waiting for new connection... [15:49:17] Sock 9.Parse request [15:49:17]Sock 9.Check first char [15:49:17]Sock 9.First char is OK [15:49:17]request: POST /json_proto HTTP/1.0 [15:49:17]Method: POST [15:49:17]URL: /json_proto [15:49:17]Method is POST - this is cgi request [15:49:17]url: /json_proto [15:49:17]query_string will be loaded in cgi processing [15:49:17]execute_cgi json_proto POST (null) [15:49:17]execute_cgi path=json_proto method=POST [15:49:17]POST find Content-Length [15:49:17]Host: 172.17.45.7:8080 [15:49:17]Content-Length: 677 [15:49:17]Content-Type: application/json [15:49:17] [15:49:17]POST finish read [15:49:17]Found Content-Length = 677 [15:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:17]execute_script... [15:49:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:17]POST & json_proto [15:49:17]process_json_proto [15:49:17]json parsed OK: [15:49:17]protocol is kg_v1.0 [15:49:17]action value=close_receipt [15:49:17]process_action close_receipt [15:49:17]cmd_close_receipt [15:49:17]MH_GetDate [15:49:17]Write to MH i2c: F0 00 00 9A 00 89 [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: F0 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: F0 09 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: F0 09 00 9A 00 00 7E 0B A9 66 90 0F 3E 66 6D [15:49:17]GetLastDocTimeStamp 1722354281 [15:49:17]current date 1722354558 [15:49:17]FM_GetShiftState [15:49:17]SAM_PROTO_GetShiftState [15:49:17]wFMCommunicate request_size=4 [15:49:17]MH_SAM_APDU [15:49:17]CAPDU: 80 13 01 00 [15:49:17]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [15:49:17]Write i2c OK [15:49:17]MH_I2C_Read... [15:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:17]Read from MH i2c: E2 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 0E 00 [15:49:17]MH_I2C_Read... [15:49:17]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [15:49:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:49:17]wFMCommunicate OK [15:49:17]SAM_PROTO_GetShiftState done [15:49:17]FM_GetShiftState done [15:49:17]opened in 1722298242 [15:49:17]opened+sec_in_day 1722384642 [15:49:17]quantity*price = 30035 [15:49:17]sum+1 = 30036 [15:49:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 178 30.07.2024 15:49 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119126 ФПД: 67114550101051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154918&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119126&fm=67114550101051&tin=02508201610067®Number=0000000000092660&sum=30000 [15:49:18]StoreToDocumentArchive [15:49:18]shift 435 fd 119126 [15:49:18]save to /storage/0435/doc_00119126 [15:49:18]save last doc name /storage/0435/doc_00119126 to /storage/kkm_last_doc_name [15:49:18]save OK [15:49:18]Clear old archive folders... [15:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:49:18]tlvbuf is 01762140 [15:49:18]SAM_PROTO_ClearQueue [15:49:18]wFMCommunicate request_size=4 [15:49:18]MH_SAM_APDU [15:49:18]CAPDU: 80 09 00 00 [15:49:18]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [15:49:18]Write i2c OK [15:49:18]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [15:49:19]RAPDU: 90 00 [15:49:19]wFMCommunicate OK [15:49:19]SAM_PROTO_ClearQueue done [15:49:19]KKMCreateOFDPacket [15:49:19]OFDProtocolAddRootSTLVToBuf [15:49:19]FM_MakeSignedData [15:49:19]FM_MakeSignedData [15:49:19]SAM_PROTO_SignData [15:49:19]wFMCommunicate request_size=4 [15:49:19]MH_SAM_APDU [15:49:19]CAPDU: 80 0D 01 02 [15:49:19]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [15:49:19]RAPDU: 90 00 [15:49:19]wFMCommunicate OK [15:49:19]wFMCommunicate request_size=255 [15:49:19]MH_SAM_APDU [15:49: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B2 00 00 00 F4 03 04 00 7E 0B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D1 01 00 35 04 06 00 3D [15:49:19]Write to MH i2c: E2 02 01 AA 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B2 00 00 00 F4 03 04 00 7E 0B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D1 01 00 35 04 06 00 3D 00 00 28 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [15:49:19]RAPDU: 90 00 [15:49:19]wFMCommunicate OK [15:49:19]wFMCommunicate request_size=10 [15:49:19]MH_SAM_APDU [15:49:19]CAPDU: 80 0D 02 02 05 0A 52 EB 04 3B [15:49:19]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 0A 52 EB 04 3B 00 00 B5 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [15:49:19]RAPDU: 90 00 [15:49:19]wFMCommunicate OK [15:49:19]wFMCommunicate request_size=4 [15:49:19]MH_SAM_APDU [15:49:19]CAPDU: 80 0D 03 02 [15:49:19]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 0B 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 0B 00 AC 00 00 91 C7 7E A6 29 27 A4 61 90 00 F9 [15:49:19]RAPDU: 91 C7 7E A6 29 27 A4 61 90 00 [15:49:19]wFMCommunicate OK [15:49:19]SAM_PROTO_SignData done [15:49:19]FM_MakeSignedData done [15:49:19]CreateOFDProtocolMessage [15:49:19]wFMCommunicate request_size=4 [15:49:19]MH_SAM_APDU [15:49:19]CAPDU: 80 11 00 00 [15:49:19]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:19]Read from MH i2c: E2 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: E2 17 00 [15:49:19]MH_I2C_Read... [15:49:19]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 34 39 33 39 90 00 82 [15:49:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:49:19]wFMCommunicate OK [15:49:19]CreateOFDProtocolMessage done [15:49:19]OFDSenderStorePacket 119126 [15:49:19]StoreOFDPacket docnum=119126 [15:49:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D5 74 07 01 64 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B2 00 00 00 F4 03 04 00 7E 0B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D1 01 00 35 04 06 00 3D 0A 52 EB 04 3B 91 C7 7E A6 29 27 A4 61 [15:49:19]CheckFolder [15:49:19]dirname=/storage/ofd_packets [15:49:19]CheckFolder done [15:49:19]ProducePacketName [15:49:19]name=ofd_packets/00119126 [15:49:19]NVStorageSaveData ofd_packets/00119126 [15:49:19]File name is /storage/ofd_packets/00119126 [15:49:19]Write 301 bytes [15:49:19]NVStorageSaveData done [15:49:19]OFDSenderStorePacket done [15:49:19]KKMCreateOFDPacket done [15:49:19]NVStorageSaveData kkm_last_timestamp [15:49:19]File name is /storage/kkm_last_timestamp [15:49:19]Write 4 bytes [15:49:19]NVStorageSaveData done [15:49:19]ExternCall_PrintAddStr [15:49:19]wPrintStart [15:49:19]Write to MH i2c: 01 00 00 AE 00 AE [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: 01 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: 01 07 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [15:49:19]RasterBufferAndPrint [15:49:19]line Счет N : (1)950047 [15:49:19]line ИНН: 02508201610067 [15:49:19]line Контрольно-Кассовый Чек [15:49:19]line ПРОДАЖА [15:49:19]line ТРК (МРК, ГНК) : 41 [15:49:19]line Товар: 2710124130 [15:49:19]line Аи-92-К-4 [15:49:19]line 4.430 * 67.80 [15:49:19]line = 300.35 [15:49:19]line НДС 12% НСП 1% [15:49:19]line > о реализуемом товаре [15:49:19]line ОКРУГЛЕНИЕ: -0.35 [15:49:19]line ИТОГО: 300.00 [15:49:19]line Внесено: 300.00 [15:49:19]line СДАЧА: 0.00 [15:49:19]line НСП 1% : 2.66 [15:49:19]line НДС 12% : 31.90 [15:49:19]line Наличными: 300.00 [15:49:19]line Безнал.: 0.00 [15:49:19]line Место: АЗС № 134 "Партнер Нефть" [15:49:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:49:19]line СНО: Общий режим [15:49:19]line Чек 178 30.07.2024 15:49 [15:49:19]line Смена: 435 ФФД: 1.0 [15:49:19]line ЗНМ: 0300000044 [15:49:19]line РНМ: 0000000000092660 [15:49:19]line Версия ККМ: 001 [15:49:19]line ФМ: 0000000000874939 [15:49:19]line ФД: 119126 [15:49:19]line ФПД: 67114550101051 [15:49:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T154918&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119126&fm=67114550101051&tin=02508201610067®Number=0000000000092660&sum=30000 [15:49:19]written 0, free lines is 4095 [15:49:19]OFD Sender: Processing packet 119126 [packets to send 86, broken 85] [15:49:19]ProducePacketName [15:49:19]name=ofd_packets/00119126 [15:49:19]OFD Sender: To server: pG, [15:49:19]CommunicateWithHost lk.salyk.kg:30040 [15:49:19]ConnectInit lk.salyk.kg [15:49:19]Write to MH i2c: 01 00 00 D8 00 D8 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: 01 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: 01 07 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 D0 0C BB [15:49:19]RasterBufferAndPrint [15:49:19]line [15:49:19]line [15:49:19]line [15:49:19]line [15:49:19]line [15:49:19]written 0, free lines is 3287 [15:49:19]MH_Cut [15:49:19]Write to MH i2c: D1 01 00 DF 00 01 B1 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: D1 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: D1 01 00 [15:49:19]MH_I2C_Read... [15:49:19]Read from MH i2c: D1 01 00 DF 00 00 B0 [15:49:19]Write to MH i2c: 01 00 00 E0 00 E0 [15:49:19]Write i2c OK [15:49:19]MH_I2C_Read... [15:49:20]Connected sock=10 [15:49:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D5 74 07 01 64 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B2 00 00 00 F4 03 04 00 7E 0B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D1 01 00 35 04 06 00 3D 0A 52 EB 04 3B 91 C7 7E A6 29 27 A4 61 [15:49:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 40 BB 47 00 6D DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 56 D1 01 00 F4 03 04 00 09 B9 A8 66 B6 04 01 00 00 86 04 A0 E7 D5 55 50 41 [15:49:20]CommunicateWithHost err = 0 [15:49:20]CheckOFDResponse [15:49:20]1017 (14) - 77093643461234 [15:49:20]1041 (16) - 0000000000874939 [15:49:20]1040 (4) - 119126 [15:49:20]1012 (4) - 30.07.2024 09:57 [15:49:20]1206 (1) - 0 [15:49:20]OFD Sender: Remove packet 119126 [15:49:20]ProducePacketName [15:49:20]name=ofd_packets/00119126 [15:49:20]NVStorageDeleteData [15:49:20]*** Cut start [15:49:20]*** Partial cut [15:49:20]*** CUTSNS_PIN = 1 [15:49:20]*** CUTSNS_PIN = 0 [15:49:20]OFD Sender: No OFD packet to send [15:49:20]*** Brake cut motor [15:49:21]Read from MH i2c: 01 [15:49:21]MH_I2C_Read... [15:49:21]*** Stop cut motor [15:49:21]*** Cut end [15:49:21]Read from MH i2c: 01 07 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [15:49:21]process_action close_receipt done [15:49:21]requested_data is exist [15:49:21]produce_requested_data [15:49:21]requested_item fm.sn is exist - process it [15:49:21]wFMCommunicate request_size=4 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 11 00 00 [15:49:21]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 17 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [15:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:49:21]wFMCommunicate OK [15:49:21]requested_item fd.num is exist - process it [15:49:21]SAM_PROTO_GetFieldsCounters [15:49:21]wFMCommunicate request_size=4 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 13 00 00 [15:49:21]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 62 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 62 00 E2 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [15:49:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 56 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:21]wFMCommunicate OK [15:49:21]SAM_PROTO_GetFieldsCounters done [15:49:21]requested_item shift.num is exist - process it [15:49:21]requested_item shift.opened is exist - process it [15:49:21]req_shift_opened [15:49:21]FM_GetShiftState [15:49:21]SAM_PROTO_GetShiftState [15:49:21]wFMCommunicate request_size=4 [15:49:21]MH_SAM_APDU [15:49:21]CAPDU: 80 13 01 00 [15:49:21]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [15:49:21]Write i2c OK [15:49:21]MH_I2C_Read... [15:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:21]Read from MH i2c: E2 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 0E 00 [15:49:21]MH_I2C_Read... [15:49:21]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2B [15:49:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:49:21]wFMCommunicate OK [15:49:21]SAM_PROTO_GetShiftState done [15:49:21]FM_GetShiftState done [15:49:21]req_shift_opened done [15:49:21]requested_item shift.open_date is exist - process it [15:49:21]req_shift_open_date [15:49:21]req_shift_open_date done [15:49:21]produce_requested_data done [15:49:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119126,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:49:21]process_action_free close_receipt [15:49:21]json_value_free [15:49:21]json_value_free done [15:49:21]process_json_proto returns [15:49:21]Send response to host [15:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119126,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:49:21]free response buf [15:49:21]execute_script done [15:49:21]execute_script returns [15:49:21]free content buf [15:49:21]Sock 9.Close socket [15:49:21]Sock 9.Thread stoped [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]accept exits with 7 [15:51:00]New connection [15:51:00]New thread 3066740068 created [15:51:00]Thread 3066883428 joined [15:51:00]Waiting for new connection... [15:51:00] Sock 7.Parse request [15:51:00]Sock 7.Check first char [15:51:00]Sock 7.First char is OK [15:51:00]request: POST /json_proto HTTP/1.0 [15:51:00]Method: POST [15:51:00]URL: /json_proto [15:51:00]Method is POST - this is cgi request [15:51:00]url: /json_proto [15:51:00]query_string will be loaded in cgi processing [15:51:00]execute_cgi json_proto POST (null) [15:51:00]execute_cgi path=json_proto method=POST [15:51:00]POST find Content-Length [15:51:00]Host: 172.17.45.7:8080 [15:51:00]Content-Length: 674 [15:51:00]Content-Type: application/json [15:51:00] [15:51:00]POST finish read [15:51:00]Found Content-Length = 674 [15:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:00]execute_script... [15:51: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)950048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:00]POST & json_proto [15:51:00]process_json_proto [15:51:00]json parsed OK: [15:51:00]protocol is kg_v1.0 [15:51:00]action value=close_receipt [15:51:00]process_action close_receipt [15:51:00]cmd_close_receipt [15:51:00]MH_GetDate [15:51:00]Write to MH i2c: F0 00 00 E4 00 D3 [15:51:00]Write i2c OK [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: F0 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: F0 09 00 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: F0 09 00 E4 00 00 E4 0B A9 66 90 0F 3E 66 1D [15:51:00]GetLastDocTimeStamp 1722354558 [15:51:00]current date 1722354660 [15:51:00]FM_GetShiftState [15:51:00]SAM_PROTO_GetShiftState [15:51:00]wFMCommunicate request_size=4 [15:51:00]MH_SAM_APDU [15:51:00]CAPDU: 80 13 01 00 [15:51:00]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [15:51:00]Write i2c OK [15:51:00]MH_I2C_Read... [15:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:00]Read from MH i2c: E2 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: E2 0E 00 [15:51:00]MH_I2C_Read... [15:51:00]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2D [15:51:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:51:00]wFMCommunicate OK [15:51:00]SAM_PROTO_GetShiftState done [15:51:00]FM_GetShiftState done [15:51:00]opened in 1722298242 [15:51:00]opened+sec_in_day 1722384642 [15:51:00]quantity*price = 50063 [15:51:00]sum+1 = 50064 [15:51:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 180 30.07.2024 15:57 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119128 ФПД: 221973642642563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T155737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119128&fm=221973642642563&tin=02508201610067®Number=0000000000092660&sum=30000 [15:57:37]StoreToDocumentArchive [15:57:37]shift 435 fd 119128 [15:57:37]save to /storage/0435/doc_00119128 [15:57:37]save last doc name /storage/0435/doc_00119128 to /storage/kkm_last_doc_name [15:57:37]save OK [15:57:37]Clear old archive folders... [15:57:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:37]tlvbuf is 01751630 [15:57:37]SAM_PROTO_ClearQueue [15:57:37]wFMCommunicate request_size=4 [15:57:37]MH_SAM_APDU [15:57:37]CAPDU: 80 09 00 00 [15:57:37]Write to MH i2c: E2 08 00 3C 01 80 09 00 00 00 00 00 00 AF [15:57:37]Write i2c OK [15:57:37]MH_I2C_Read... [15:57:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:37]Read from MH i2c: E2 [15:57:37]MH_I2C_Read... [15:57:37]Read from MH i2c: E2 03 00 [15:57:37]MH_I2C_Read... [15:57:37]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [15:57:37]RAPDU: 90 00 [15:57:37]wFMCommunicate OK [15:57:37]SAM_PROTO_ClearQueue done [15:57:37]KKMCreateOFDPacket [15:57:37]OFDProtocolAddRootSTLVToBuf [15:57:37]FM_MakeSignedData [15:57:37]FM_MakeSignedData [15:57:37]SAM_PROTO_SignData [15:57:37]wFMCommunicate request_size=4 [15:57:37]MH_SAM_APDU [15:57:37]CAPDU: 80 0D 01 02 [15:57:37]Write to MH i2c: E2 08 00 3D 01 80 0D 01 02 00 00 00 00 B7 [15:57:37]Write i2c OK [15:57:37]MH_I2C_Read... [15:57:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:37]Read from MH i2c: E2 [15:57:37]MH_I2C_Read... [15:57:37]Read from MH i2c: E2 03 00 [15:57:37]MH_I2C_Read... [15:57:37]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [15:57:37]RAPDU: 90 00 [15:57:37]wFMCommunicate OK [15:57:37]wFMCommunicate request_size=255 [15:57:37]MH_SAM_APDU [15:57: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B4 00 00 00 F4 03 04 00 71 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D1 01 00 35 04 06 00 C9 [15:57:37]Write to MH i2c: E2 02 01 3E 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B4 00 00 00 F4 03 04 00 71 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D1 01 00 35 04 06 00 C9 00 00 42 [15:57:37]Write i2c OK [15:57:37]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [15:57:38]RAPDU: 90 00 [15:57:38]wFMCommunicate OK [15:57:38]wFMCommunicate request_size=10 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 0D 02 02 05 E2 44 1E 84 83 [15:57:38]Write to MH i2c: E2 0D 00 3F 01 80 0D 02 02 05 00 E2 44 1E 84 83 00 00 0F [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [15:57:38]RAPDU: 90 00 [15:57:38]wFMCommunicate OK [15:57:38]wFMCommunicate request_size=4 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 0D 03 02 [15:57:38]Write to MH i2c: E2 08 00 40 01 80 0D 03 02 00 00 00 00 BC [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 0B 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 0B 00 40 01 00 35 FA D0 24 71 68 A8 FB 90 00 5C [15:57:38]RAPDU: 35 FA D0 24 71 68 A8 FB 90 00 [15:57:38]wFMCommunicate OK [15:57:38]SAM_PROTO_SignData done [15:57:38]FM_MakeSignedData done [15:57:38]CreateOFDProtocolMessage [15:57:38]wFMCommunicate request_size=4 [15:57:38]MH_SAM_APDU [15:57:38]CAPDU: 80 11 00 00 [15:57:38]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:38]Read from MH i2c: E2 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: E2 17 00 [15:57:38]MH_I2C_Read... [15:57:38]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 34 39 33 39 90 00 17 [15:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:57:38]wFMCommunicate OK [15:57:38]CreateOFDProtocolMessage done [15:57:38]OFDSenderStorePacket 119128 [15:57:38]StoreOFDPacket docnum=119128 [15:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 1D 07 01 97 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B4 00 00 00 F4 03 04 00 71 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D1 01 00 35 04 06 00 C9 E2 44 1E 84 83 35 FA D0 24 71 68 A8 FB [15:57:38]CheckFolder [15:57:38]dirname=/storage/ofd_packets [15:57:38]CheckFolder done [15:57:38]ProducePacketName [15:57:38]name=ofd_packets/00119128 [15:57:38]NVStorageSaveData ofd_packets/00119128 [15:57:38]File name is /storage/ofd_packets/00119128 [15:57:38]Write 301 bytes [15:57:38]NVStorageSaveData done [15:57:38]OFDSenderStorePacket done [15:57:38]KKMCreateOFDPacket done [15:57:38]NVStorageSaveData kkm_last_timestamp [15:57:38]File name is /storage/kkm_last_timestamp [15:57:38]Write 4 bytes [15:57:38]NVStorageSaveData done [15:57:38]ExternCall_PrintAddStr [15:57:38]wPrintStart [15:57:38]Write to MH i2c: 01 00 00 42 01 43 [15:57:38]Write i2c OK [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: 01 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: 01 07 00 [15:57:38]MH_I2C_Read... [15:57:38]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [15:57:38]RasterBufferAndPrint [15:57:38]line Счет N : (1)950049 [15:57:38]line ИНН: 02508201610067 [15:57:38]line Контрольно-Кассовый Чек [15:57:38]line ПРОДАЖА [15:57:38]line ТРК (МРК, ГНК) : 51 [15:57:38]line Товар: 2710124130 [15:57:38]line Аи-92-К-4 [15:57:38]line 4.430 * 67.80 [15:57:38]line = 300.35 [15:57:38]line НДС 12% НСП 1% [15:57:38]line > о реализуемом товаре [15:57:38]line ОКРУГЛЕНИЕ: -0.35 [15:57:38]line ИТОГО: 300.00 [15:57:38]line Внесено: 300.00 [15:57:38]line СДАЧА: 0.00 [15:57:38]line НСП 1% : 2.66 [15:57:38]line НДС 12% : 31.90 [15:57:38]line Наличными: 300.00 [15:57:38]line Безнал.: 0.00 [15:57:38]line Место: АЗС № 134 "Партнер Нефть" [15:57:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:57:38]line СНО: Общий режим [15:57:38]line Чек 180 30.07.2024 15:57 [15:57:38]line Смена: 435 ФФД: 1.0 [15:57:38]line ЗНМ: 0300000044 [15:57:38]line РНМ: 0000000000092660 [15:57:38]line Версия ККМ: 001 [15:57:38]line ФМ: 0000000000874939 [15:57:38]line ФД: 119128 [15:57:38]line ФПД: 221973642642563 [15:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T155737&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119128&fm=221973642642563&tin=02508201610067®Number=0000000000092660&sum=30000 [15:57:38]written 0, free lines is 4095 [15:57:38]OFD Sender: Processing packet 119128 [packets to send 86, broken 85] [15:57:38]ProducePacketName [15:57:38]name=ofd_packets/00119128 [15:57:38]OFD Sender: To server: pG, [15:57:38]CommunicateWithHost lk.salyk.kg:30040 [15:57:38]ConnectInit lk.salyk.kg [15:57:39]Write to MH i2c: 01 00 00 6C 01 6D [15:57:39]Write i2c OK [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: 01 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: 01 07 00 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 D0 0C 50 [15:57:39]RasterBufferAndPrint [15:57:39]line [15:57:39]line [15:57:39]line [15:57:39]line [15:57:39]line [15:57:39]written 0, free lines is 3287 [15:57:39]MH_Cut [15:57:39]Write to MH i2c: D1 01 00 73 01 01 46 [15:57:39]Write i2c OK [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: D1 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: D1 01 00 [15:57:39]MH_I2C_Read... [15:57:39]Read from MH i2c: D1 01 00 73 01 00 45 [15:57:39]Write to MH i2c: 01 00 00 74 01 75 [15:57:39]Write i2c OK [15:57:39]MH_I2C_Read... [15:57:39]*** Cut start [15:57:39]*** Partial cut [15:57:39]*** CUTSNS_PIN = 1 [15:57:39]*** CUTSNS_PIN = 0 [15:57:40]*** Brake cut motor [15:57:40]Read from MH i2c: 01 [15:57:40]MH_I2C_Read... [15:57:40]*** Stop cut motor [15:57:40]*** Cut end [15:57:40]Read from MH i2c: 01 07 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: 01 07 00 74 01 00 00 00 00 00 FF 0F 8A [15:57:40]process_action close_receipt done [15:57:40]requested_data is exist [15:57:40]produce_requested_data [15:57:40]requested_item fm.sn is exist - process it [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 11 00 00 [15:57:40]Write to MH i2c: E2 08 00 75 01 80 11 00 00 00 00 00 00 F0 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 17 00 [15:57:40]MH_I2C_Read... [15:57:40]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 34 39 33 39 90 00 4B [15:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:57:40]wFMCommunicate OK [15:57:40]requested_item fd.num is exist - process it [15:57:40]SAM_PROTO_GetFieldsCounters [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 13 00 00 [15:57:40]Write to MH i2c: E2 08 00 76 01 80 13 00 00 00 00 00 00 F3 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 62 00 [15:57:40]MH_I2C_Read... [15:57:40]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [15:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 58 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:40]wFMCommunicate OK [15:57:40]SAM_PROTO_GetFieldsCounters done [15:57:40]requested_item shift.num is exist - process it [15:57:40]requested_item shift.opened is exist - process it [15:57:40]req_shift_opened [15:57:40]FM_GetShiftState [15:57:40]SAM_PROTO_GetShiftState [15:57:40]wFMCommunicate request_size=4 [15:57:40]MH_SAM_APDU [15:57:40]CAPDU: 80 13 01 00 [15:57:40]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [15:57:40]Write i2c OK [15:57:40]MH_I2C_Read... [15:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:40]Read from MH i2c: E2 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 0E 00 [15:57:40]MH_I2C_Read... [15:57:40]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C0 [15:57:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:57:40]wFMCommunicate OK [15:57:40]SAM_PROTO_GetShiftState done [15:57:40]FM_GetShiftState done [15:57:40]req_shift_opened done [15:57:40]requested_item shift.open_date is exist - process it [15:57:40]req_shift_open_date [15:57:40]req_shift_open_date done [15:57:40]produce_requested_data done [15:57:40]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119128,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:57:40]process_action_free close_receipt [15:57:40]json_value_free [15:57:40]json_value_free done [15:57:40]process_json_proto returns [15:57:40]Send response to host [15:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119128,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:57:40]free response buf [15:57:40]execute_script done [15:57:40]execute_script returns [15:57:40]free content buf [15:57:40]Sock 10.Close socket [15:57:40]Sock 10.Thread stoped [15:57:41]Connected sock=11 [15:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 F1 1D 07 01 97 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 B4 00 00 00 F4 03 04 00 71 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D1 01 00 35 04 06 00 C9 E2 44 1E 84 83 35 FA D0 24 71 68 A8 FB [15:57:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 78 DF 47 00 99 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 58 D1 01 00 F4 03 04 00 FE BA A8 66 B6 04 01 00 00 68 99 D2 81 37 6E F1 7D [15:57:45]CommunicateWithHost err = 0 [15:57:45]CheckOFDResponse [15:57:45]1017 (14) - 77093643461234 [15:57:45]1041 (16) - 0000000000874939 [15:57:45]1040 (4) - 119128 [15:57:45]1012 (4) - 30.07.2024 10:05 [15:57:45]1206 (1) - 0 [15:57:45]OFD Sender: Remove packet 119128 [15:57:45]ProducePacketName [15:57:45]name=ofd_packets/00119128 [15:57:45]NVStorageDeleteData [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:14]accept exits with 9 [15:58:14]New connection [15:58:14]New thread 3066740068 created [15:58:14]Thread 3066883428 joined [15:58:14]Waiting for new connection... [15:58:14] Sock 9.Parse request [15:58:14]Sock 9.Check first char [15:58:14]Sock 9.First char is OK [15:58:14]request: POST /json_proto HTTP/1.0 [15:58:14]Method: POST [15:58:14]URL: /json_proto [15:58:14]Method is POST - this is cgi request [15:58:14]url: /json_proto [15:58:14]query_string will be loaded in cgi processing [15:58:14]execute_cgi json_proto POST (null) [15:58:14]execute_cgi path=json_proto method=POST [15:58:14]POST find Content-Length [15:58:14]Host: 172.17.45.7:8080 [15:58:14]Content-Length: 682 [15:58:14]Content-Type: application/json [15:58:14] [15:58:14]POST finish read [15:58:14]Found Content-Length = 682 [15:58:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:14]execute_script... [15:58: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)950050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:14]POST & json_proto [15:58:14]process_json_proto [15:58:14]json parsed OK: [15:58:14]protocol is kg_v1.0 [15:58:14]action value=close_receipt [15:58:14]process_action close_receipt [15:58:14]cmd_close_receipt [15:58:14]MH_GetDate [15:58:14]Write to MH i2c: F0 00 00 78 01 68 [15:58:14]Write i2c OK [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: F0 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: F0 09 00 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: F0 09 00 78 01 00 96 0D A9 66 90 0F 3E 66 66 [15:58:14]GetLastDocTimeStamp 1722355057 [15:58:14]current date 1722355094 [15:58:14]FM_GetShiftState [15:58:14]SAM_PROTO_GetShiftState [15:58:14]wFMCommunicate request_size=4 [15:58:14]MH_SAM_APDU [15:58:14]CAPDU: 80 13 01 00 [15:58:14]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [15:58:14]Write i2c OK [15:58:14]MH_I2C_Read... [15:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:14]Read from MH i2c: E2 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: E2 0E 00 [15:58:14]MH_I2C_Read... [15:58:14]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C2 [15:58:14]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:58:14]wFMCommunicate OK [15:58:14]SAM_PROTO_GetShiftState done [15:58:14]FM_GetShiftState done [15:58:14]opened in 1722298242 [15:58:14]opened+sec_in_day 1722384642 [15:58:14]quantity*price = 100005 [15:58:14]sum+1 = 100006 [15:58:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 181 30.07.2024 15:58 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119129 ФПД: 281282873589764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T155814&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119129&fm=281282873589764&tin=02508201610067®Number=0000000000092660&sum=100000 [15:58:15]StoreToDocumentArchive [15:58:15]shift 435 fd 119129 [15:58:15]save to /storage/0435/doc_00119129 [15:58:15]save last doc name /storage/0435/doc_00119129 to /storage/kkm_last_doc_name [15:58:15]save OK [15:58:15]Clear old archive folders... [15:58:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:15]tlvbuf is 01756030 [15:58:15]SAM_PROTO_ClearQueue [15:58:15]wFMCommunicate request_size=4 [15:58:15]MH_SAM_APDU [15:58:15]CAPDU: 80 09 00 00 [15:58:15]Write to MH i2c: E2 08 00 86 01 80 09 00 00 00 00 00 00 F9 [15:58:15]Write i2c OK [15:58:15]MH_I2C_Read... [15:58:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:15]Read from MH i2c: E2 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 03 00 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [15:58:15]RAPDU: 90 00 [15:58:15]wFMCommunicate OK [15:58:15]SAM_PROTO_ClearQueue done [15:58:15]KKMCreateOFDPacket [15:58:15]OFDProtocolAddRootSTLVToBuf [15:58:15]FM_MakeSignedData [15:58:15]FM_MakeSignedData [15:58:15]SAM_PROTO_SignData [15:58:15]wFMCommunicate request_size=4 [15:58:15]MH_SAM_APDU [15:58:15]CAPDU: 80 0D 01 02 [15:58:15]Write to MH i2c: E2 08 00 87 01 80 0D 01 02 00 00 00 00 01 [15:58:15]Write i2c OK [15:58:15]MH_I2C_Read... [15:58:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:15]Read from MH i2c: E2 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 03 00 [15:58:15]MH_I2C_Read... [15:58:15]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [15:58:15]RAPDU: 90 00 [15:58:15]wFMCommunicate OK [15:58:15]wFMCommunicate request_size=255 [15:58:15]MH_SAM_APDU [15:58: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D1 01 00 35 04 06 00 FF [15:58:15]Write to MH i2c: E2 02 01 88 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D1 01 00 35 04 06 00 FF 00 00 59 [15:58:15]Write i2c OK [15:58:15]MH_I2C_Read... [15:58:15]OFD Sender: No OFD packet to send [15:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [15:58:16]RAPDU: 90 00 [15:58:16]wFMCommunicate OK [15:58:16]wFMCommunicate request_size=10 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 0D 02 02 05 D3 45 C3 00 04 [15:58:16]Write to MH i2c: E2 0D 00 89 01 80 0D 02 02 05 00 D3 45 C3 00 04 00 00 ED [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [15:58:16]RAPDU: 90 00 [15:58:16]wFMCommunicate OK [15:58:16]wFMCommunicate request_size=4 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 0D 03 02 [15:58:16]Write to MH i2c: E2 08 00 8A 01 80 0D 03 02 00 00 00 00 06 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 0B 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 0B 00 8A 01 00 A9 13 8E E7 C9 83 78 1F 90 00 1B [15:58:16]RAPDU: A9 13 8E E7 C9 83 78 1F 90 00 [15:58:16]wFMCommunicate OK [15:58:16]SAM_PROTO_SignData done [15:58:16]FM_MakeSignedData done [15:58:16]CreateOFDProtocolMessage [15:58:16]wFMCommunicate request_size=4 [15:58:16]MH_SAM_APDU [15:58:16]CAPDU: 80 11 00 00 [15:58:16]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:16]Read from MH i2c: E2 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 17 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [15:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:58:16]wFMCommunicate OK [15:58:16]CreateOFDProtocolMessage done [15:58:16]OFDSenderStorePacket 119129 [15:58:16]StoreOFDPacket docnum=119129 [15:58:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C9 49 07 01 89 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D1 01 00 35 04 06 00 FF D3 45 C3 00 04 A9 13 8E E7 C9 83 78 1F [15:58:16]CheckFolder [15:58:16]dirname=/storage/ofd_packets [15:58:16]CheckFolder done [15:58:16]ProducePacketName [15:58:16]name=ofd_packets/00119129 [15:58:16]NVStorageSaveData ofd_packets/00119129 [15:58:16]File name is /storage/ofd_packets/00119129 [15:58:16]Write 301 bytes [15:58:16]NVStorageSaveData done [15:58:16]OFDSenderStorePacket done [15:58:16]KKMCreateOFDPacket done [15:58:16]NVStorageSaveData kkm_last_timestamp [15:58:16]File name is /storage/kkm_last_timestamp [15:58:16]Write 4 bytes [15:58:16]NVStorageSaveData done [15:58:16]ExternCall_PrintAddStr [15:58:16]wPrintStart [15:58:16]Write to MH i2c: 01 00 00 8C 01 8D [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 07 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [15:58:16]RasterBufferAndPrint [15:58:16]line Счет N : (1)950050 [15:58:16]line ИНН: 02508201610067 [15:58:16]line Контрольно-Кассовый Чек [15:58:16]line ПРОДАЖА [15:58:16]line ТРК (МРК, ГНК) : 41 [15:58:16]line Товар: 2710124130 [15:58:16]line Аи-92-К-4 [15:58:16]line 14.750 * 67.80 [15:58:16]line = 1000.05 [15:58:16]line НДС 12% НСП 1% [15:58:16]line > о реализуемом товаре [15:58:16]line ОКРУГЛЕНИЕ: -0.05 [15:58:16]line ИТОГО: 1000.00 [15:58:16]line Внесено: 1000.00 [15:58:16]line СДАЧА: 0.00 [15:58:16]line НСП 1% : 8.85 [15:58:16]line НДС 12% : 106.20 [15:58:16]line Наличными: 1000.00 [15:58:16]line Безнал.: 0.00 [15:58:16]line Место: АЗС № 134 "Партнер Нефть" [15:58:16]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:58:16]line СНО: Общий режим [15:58:16]line Чек 181 30.07.2024 15:58 [15:58:16]line Смена: 435 ФФД: 1.0 [15:58:16]line ЗНМ: 0300000044 [15:58:16]line РНМ: 0000000000092660 [15:58:16]line Версия ККМ: 001 [15:58:16]line ФМ: 0000000000874939 [15:58:16]line ФД: 119129 [15:58:16]line ФПД: 281282873589764 [15:58:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T155814&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119129&fm=281282873589764&tin=02508201610067®Number=0000000000092660&sum=100000 [15:58:16]OFD Sender: Processing packet 119129 [packets to send 86, broken 85] [15:58:16]ProducePacketName [15:58:16]name=ofd_packets/00119129 [15:58:16]OFD Sender: To server: pG, [15:58:16]CommunicateWithHost lk.salyk.kg:30040 [15:58:16]ConnectInit lk.salyk.kg [15:58:16]written 0, free lines is 4095 [15:58:16]Write to MH i2c: 01 00 00 B6 01 B7 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 07 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 D4 0C 9E [15:58:16]RasterBufferAndPrint [15:58:16]line [15:58:16]line [15:58:16]line [15:58:16]line [15:58:16]line [15:58:16]written 0, free lines is 3290 [15:58:16]MH_Cut [15:58:16]Write to MH i2c: D1 01 00 BD 01 01 90 [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: D1 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: D1 01 00 [15:58:16]MH_I2C_Read... [15:58:16]Read from MH i2c: D1 01 00 BD 01 00 8F [15:58:16]Write to MH i2c: 01 00 00 BE 01 BF [15:58:16]Write i2c OK [15:58:16]MH_I2C_Read... [15:58:17]*** Cut start [15:58:17]*** Partial cut [15:58:17]*** CUTSNS_PIN = 1 [15:58:17]*** CUTSNS_PIN = 0 [15:58:17]Connected sock=10 [15:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C9 49 07 01 89 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 96 0D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D1 01 00 35 04 06 00 FF D3 45 C3 00 04 A9 13 8E E7 C9 83 78 1F [15:58:17]*** Brake cut motor [15:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 CD 47 00 98 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 59 D1 01 00 F4 03 04 00 22 BB A8 66 B6 04 01 00 00 A3 5D EA 87 78 CF CA C5 [15:58:18]CommunicateWithHost err = 0 [15:58:18]CheckOFDResponse [15:58:18]1017 (14) - 77093643461234 [15:58:18]1041 (16) - 0000000000874939 [15:58:18]1040 (4) - 119129 [15:58:18]1012 (4) - 30.07.2024 10:06 [15:58:18]1206 (1) - 0 [15:58:18]OFD Sender: Remove packet 119129 [15:58:18]ProducePacketName [15:58:18]name=ofd_packets/00119129 [15:58:18]NVStorageDeleteData [15:58:18]Read from MH i2c: 01 [15:58:18]MH_I2C_Read... [15:58:18]*** Stop cut motor [15:58:18]*** Cut end [15:58:18]Read from MH i2c: 01 07 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 FF 0F D4 [15:58:18]process_action close_receipt done [15:58:18]requested_data is exist [15:58:18]produce_requested_data [15:58:18]requested_item fm.sn is exist - process it [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 11 00 00 [15:58:18]Write to MH i2c: E2 08 00 BF 01 80 11 00 00 00 00 00 00 3A [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 17 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 17 00 BF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [15:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [15:58:18]wFMCommunicate OK [15:58:18]requested_item fd.num is exist - process it [15:58:18]SAM_PROTO_GetFieldsCounters [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 13 00 00 [15:58:18]Write to MH i2c: E2 08 00 C0 01 80 13 00 00 00 00 00 00 3D [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 62 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 62 00 C0 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:58:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 59 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_GetFieldsCounters done [15:58:18]requested_item shift.num is exist - process it [15:58:18]requested_item shift.opened is exist - process it [15:58:18]req_shift_opened [15:58:18]FM_GetShiftState [15:58:18]SAM_PROTO_GetShiftState [15:58:18]wFMCommunicate request_size=4 [15:58:18]MH_SAM_APDU [15:58:18]CAPDU: 80 13 01 00 [15:58:18]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [15:58:18]Write i2c OK [15:58:18]MH_I2C_Read... [15:58:18]OFD Sender: No OFD packet to send [15:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:18]Read from MH i2c: E2 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0E 00 [15:58:18]MH_I2C_Read... [15:58:18]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0A [15:58:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [15:58:18]wFMCommunicate OK [15:58:18]SAM_PROTO_GetShiftState done [15:58:18]FM_GetShiftState done [15:58:18]req_shift_opened done [15:58:18]requested_item shift.open_date is exist - process it [15:58:18]req_shift_open_date [15:58:18]req_shift_open_date done [15:58:18]produce_requested_data done [15:58:18]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119129,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [15:58:18]process_action_free close_receipt [15:58:18]json_value_free [15:58:18]json_value_free done [15:58:18]process_json_proto returns [15:58:18]Send response to host [15:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119129,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [15:58:18]free response buf [15:58:18]execute_script done [15:58:18]execute_script returns [15:58:18]free content buf [15:58:18]Sock 9.Close socket [15:58:18]Sock 9.Thread stoped [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]ConnectInit Can't connect to host [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:04:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2D 51 07 01 3E 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 B6 00 00 00 F4 03 04 00 26 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D1 01 00 35 04 06 00 3C 8E D0 09 D0 19 88 4A 58 5E E9 28 7D 32 [16:04:56]CheckFolder [16:04:56]dirname=/storage/ofd_packets [16:04:56]CheckFolder done [16:04:56]ProducePacketName [16:04:56]name=ofd_packets/00119130 [16:04:56]NVStorageSaveData ofd_packets/00119130 [16:04:56]File name is /storage/ofd_packets/00119130 [16:04:56]Write 301 bytes [16:04:56]NVStorageSaveData done [16:04:56]OFDSenderStorePacket done [16:04:56]KKMCreateOFDPacket done [16:04:56]NVStorageSaveData kkm_last_timestamp [16:04:56]File name is /storage/kkm_last_timestamp [16:04:56]Write 4 bytes [16:04:56]NVStorageSaveData done [16:04:56]ExternCall_PrintAddStr [16:04:56]wPrintStart [16:04:56]Write to MH i2c: 01 00 00 D6 01 D7 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [16:04:56]RasterBufferAndPrint [16:04:56]line Счет N : (1)950052 [16:04:56]line ИНН: 02508201610067 [16:04:56]line Контрольно-Кассовый Чек [16:04:56]line ПРОДАЖА [16:04:56]line ТРК (МРК, ГНК) : 61 [16:04:56]line Товар: 2710124130 [16:04:56]line Аи-92-К-4 [16:04:56]line 22.130 * 67.80 [16:04:56]line = 1500.41 [16:04:56]line НДС 12% НСП 1% [16:04:56]line > о реализуемом товаре [16:04:56]line ОКРУГЛЕНИЕ: -0.41 [16:04:56]line ИТОГО: 1500.00 [16:04:56]line Внесено: 1500.00 [16:04:56]line СДАЧА: 0.00 [16:04:56]line НСП 1% : 13.28 [16:04:56]line НДС 12% : 159.34 [16:04:56]line Наличными: 1500.00 [16:04:56]line Безнал.: 0.00 [16:04:56]line Место: АЗС № 134 "Партнер Нефть" [16:04:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:04:56]line СНО: Общий режим [16:04:56]line Чек 182 30.07.2024 16:04 [16:04:56]line Смена: 435 ФФД: 1.0 [16:04:56]line ЗНМ: 0300000044 [16:04:56]line РНМ: 0000000000092660 [16:04:56]line Версия ККМ: 001 [16:04:56]line ФМ: 0000000000874939 [16:04:56]line ФД: 119130 [16:04:56]line ФПД: 66584073326617 [16:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160454&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119130&fm=66584073326617&tin=02508201610067®Number=0000000000092660&sum=150000 [16:04:56]OFD Sender: Processing packet 119130 [packets to send 86, broken 85] [16:04:56]ProducePacketName [16:04:56]name=ofd_packets/00119130 [16:04:56]OFD Sender: To server: pG, [16:04:56]CommunicateWithHost lk.salyk.kg:30040 [16:04:56]ConnectInit lk.salyk.kg [16:04:56]written 0, free lines is 4095 [16:04:56]Write to MH i2c: 01 00 00 00 02 02 [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 D5 0C EA [16:04:56]RasterBufferAndPrint [16:04:56]line [16:04:56]line [16:04:56]line [16:04:56]line [16:04:56]line [16:04:56]written 0, free lines is 3293 [16:04:56]MH_Cut [16:04:56]Write to MH i2c: D1 01 00 07 02 01 DB [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: D1 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: D1 01 00 [16:04:56]MH_I2C_Read... [16:04:56]Read from MH i2c: D1 01 00 07 02 00 DA [16:04:56]Write to MH i2c: 01 00 00 08 02 0A [16:04:56]Write i2c OK [16:04:56]MH_I2C_Read... [16:04:57]*** Cut start [16:04:57]*** Partial cut [16:04:57]*** CUTSNS_PIN = 1 [16:04:57]*** CUTSNS_PIN = 0 [16:04:57]*** Brake cut motor [16:04:58]ConnectInit Can't connect to host [16:04:58]Read from MH i2c: 01 [16:04:58]MH_I2C_Read... [16:04:58]*** Stop cut motor [16:04:58]*** Cut end [16:04:58]Read from MH i2c: 01 07 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [16:04:58]process_action close_receipt done [16:04:58]requested_data is exist [16:04:58]produce_requested_data [16:04:58]requested_item fm.sn is exist - process it [16:04:58]wFMCommunicate request_size=4 [16:04:58]MH_SAM_APDU [16:04:58]CAPDU: 80 11 00 00 [16:04:58]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:58]Read from MH i2c: E2 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 17 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E0 [16:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:04:58]wFMCommunicate OK [16:04:58]requested_item fd.num is exist - process it [16:04:58]SAM_PROTO_GetFieldsCounters [16:04:58]wFMCommunicate request_size=4 [16:04:58]MH_SAM_APDU [16:04:58]CAPDU: 80 13 00 00 [16:04:58]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:58]Read from MH i2c: E2 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 62 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 62 00 0A 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [16:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:58]wFMCommunicate OK [16:04:58]SAM_PROTO_GetFieldsCounters done [16:04:58]requested_item shift.num is exist - process it [16:04:58]requested_item shift.opened is exist - process it [16:04:58]req_shift_opened [16:04:58]FM_GetShiftState [16:04:58]SAM_PROTO_GetShiftState [16:04:58]wFMCommunicate request_size=4 [16:04:58]MH_SAM_APDU [16:04:58]CAPDU: 80 13 01 00 [16:04:58]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [16:04:58]Write i2c OK [16:04:58]MH_I2C_Read... [16:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:58]Read from MH i2c: E2 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 0E 00 [16:04:58]MH_I2C_Read... [16:04:58]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 55 [16:04:58]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:04:58]wFMCommunicate OK [16:04:58]SAM_PROTO_GetShiftState done [16:04:58]FM_GetShiftState done [16:04:58]req_shift_opened done [16:04:58]requested_item shift.open_date is exist - process it [16:04:58]req_shift_open_date [16:04:58]req_shift_open_date done [16:04:58]produce_requested_data done [16:04:58]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119130,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:04:58]process_action_free close_receipt [16:04:58]json_value_free [16:04:58]json_value_free done [16:04:58]process_json_proto returns [16:04:58]Send response to host [16:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119130,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:04:58]free response buf [16:04:58]execute_script done [16:04:58]execute_script returns [16:04:58]free content buf [16:04:58]Sock 7.Close socket [16:04:58]Sock 7.Thread stoped [16:05:01]ConnectInit Can't take IP for lk.salyk.kg [16:05:01]CommunicateWithHost connect error [16:05:01]CommunicateWithHost err = -1 [16:05:01]OFD Sender: Server communicate error [16:05:01]accept exits with 9 [16:05:01]New connection [16:05:01]New thread 3066740068 created [16:05:01]Thread 3066883428 joined [16:05:01]Waiting for new connection... [16:05:01] Sock 9.Parse request [16:05:01]Sock 9.Check first char [16:05:01]Sock 9.First char is OK [16:05:01]request: POST /json_proto HTTP/1.0 [16:05:01]Method: POST [16:05:01]URL: /json_proto [16:05:01]Method is POST - this is cgi request [16:05:01]url: /json_proto [16:05:01]query_string will be loaded in cgi processing [16:05:01]execute_cgi json_proto POST (null) [16:05:01]execute_cgi path=json_proto method=POST [16:05:01]POST find Content-Length [16:05:01]Host: 172.17.45.7:8080 [16:05:01]Content-Length: 819 [16:05:01]Content-Type: application/json [16:05:01] [16:05:01]POST finish read [16:05:01]Found Content-Length = 819 [16:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:01]execute_script... [16:05: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)950051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:01]POST & json_proto [16:05:01]process_json_proto [16:05:01]json parsed OK: [16:05:01]protocol is kg_v1.0 [16:05:01]action value=close_receipt [16:05:01]process_action close_receipt [16:05:01]cmd_close_receipt [16:05:01]MH_GetDate [16:05:01]Write to MH i2c: F0 00 00 0C 02 FD [16:05:01]Write i2c OK [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: F0 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: F0 09 00 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: F0 09 00 0C 02 00 2E 0F A9 66 90 0F 3E 66 95 [16:05:01]GetLastDocTimeStamp 1722355494 [16:05:01]current date 1722355502 [16:05:01]FM_GetShiftState [16:05:01]SAM_PROTO_GetShiftState [16:05:01]wFMCommunicate request_size=4 [16:05:01]MH_SAM_APDU [16:05:01]CAPDU: 80 13 01 00 [16:05:01]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [16:05:01]Write i2c OK [16:05:01]MH_I2C_Read... [16:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:01]Read from MH i2c: E2 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: E2 0E 00 [16:05:01]MH_I2C_Read... [16:05:01]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 57 [16:05:01]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:05:01]wFMCommunicate OK [16:05:01]SAM_PROTO_GetShiftState done [16:05:01]FM_GetShiftState done [16:05:01]opened in 1722298242 [16:05:01]opened+sec_in_day 1722384642 [16:05:01]quantity*price = 200025 [16:05:01]sum+1 = 200026 [16:05:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 183 30.07.2024 16:05 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119131 ФПД: 147694879405054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160502&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119131&fm=147694879405054&tin=02508201610067®Number=0000000000092660&sum=200000 [16:05:02]StoreToDocumentArchive [16:05:02]shift 435 fd 119131 [16:05:02]save to /storage/0435/doc_00119131 [16:05:02]save last doc name /storage/0435/doc_00119131 to /storage/kkm_last_doc_name [16:05:02]save OK [16:05:02]Clear old archive folders... [16:05:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:05:02]tlvbuf is 01709BB0 [16:05:02]SAM_PROTO_ClearQueue [16:05:02]wFMCommunicate request_size=4 [16:05:02]MH_SAM_APDU [16:05:02]CAPDU: 80 09 00 00 [16:05:02]Write to MH i2c: E2 08 00 1A 02 80 09 00 00 00 00 00 00 8E [16:05:02]Write i2c OK [16:05:02]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [16:05:03]RAPDU: 90 00 [16:05:03]wFMCommunicate OK [16:05:03]SAM_PROTO_ClearQueue done [16:05:03]KKMCreateOFDPacket [16:05:03]OFDProtocolAddRootSTLVToBuf [16:05:03]FM_MakeSignedData [16:05:03]FM_MakeSignedData [16:05:03]SAM_PROTO_SignData [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 0D 01 02 [16:05:03]Write to MH i2c: E2 08 00 1B 02 80 0D 01 02 00 00 00 00 96 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [16:05:03]RAPDU: 90 00 [16:05:03]wFMCommunicate OK [16:05:03]wFMCommunicate request_size=255 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D1 01 00 35 04 06 00 86 53 E4 D2 [16:05:03]Write to MH i2c: E2 02 01 1C 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D1 01 00 35 04 06 00 86 53 E4 D2 00 00 87 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]ConnectInit Can't connect to host [16:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [16:05:03]RAPDU: 90 00 [16:05:03]wFMCommunicate OK [16:05:03]wFMCommunicate request_size=7 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 0D 02 02 02 73 FE [16:05:03]Write to MH i2c: E2 0A 00 1D 02 80 0D 02 02 02 00 73 FE 00 00 0E [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [16:05:03]RAPDU: 90 00 [16:05:03]wFMCommunicate OK [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 0D 03 02 [16:05:03]Write to MH i2c: E2 08 00 1E 02 80 0D 03 02 00 00 00 00 9B [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 0B 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 0B 00 1E 02 00 20 22 55 45 86 04 49 78 90 00 C3 [16:05:03]RAPDU: 20 22 55 45 86 04 49 78 90 00 [16:05:03]wFMCommunicate OK [16:05:03]SAM_PROTO_SignData done [16:05:03]FM_MakeSignedData done [16:05:03]CreateOFDProtocolMessage [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 11 00 00 [16:05:03]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 17 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [16:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:05:03]wFMCommunicate OK [16:05:03]CreateOFDProtocolMessage done [16:05:03]OFDSenderStorePacket 119131 [16:05:03]StoreOFDPacket docnum=119131 [16:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 47 04 01 D0 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D1 01 00 35 04 06 00 86 53 E4 D2 73 FE 20 22 55 45 86 04 49 78 [16:05:03]CheckFolder [16:05:03]dirname=/storage/ofd_packets [16:05:03]CheckFolder done [16:05:03]ProducePacketName [16:05:03]name=ofd_packets/00119131 [16:05:03]NVStorageSaveData ofd_packets/00119131 [16:05:03]File name is /storage/ofd_packets/00119131 [16:05:03]Write 298 bytes [16:05:03]NVStorageSaveData done [16:05:03]OFDSenderStorePacket done [16:05:03]KKMCreateOFDPacket done [16:05:03]NVStorageSaveData kkm_last_timestamp [16:05:03]File name is /storage/kkm_last_timestamp [16:05:03]Write 4 bytes [16:05:03]NVStorageSaveData done [16:05:03]ExternCall_PrintAddStr [16:05:03]wPrintStart [16:05:03]Write to MH i2c: 01 00 00 20 02 22 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [16:05:03]RasterBufferAndPrint [16:05:03]line Счет N : (1)950051 [16:05:03]line ИНН: 02508201610067 [16:05:03]line Контрольно-Кассовый Чек [16:05:03]line ПРОДАЖА [16:05:03]line ТРК (МРК, ГНК) : 44 [16:05:03]line Товар: 2710194800 [16:05:03]line ДТ-К-5 [16:05:03]line 26.250 * 76.20 [16:05:03]line = 2000.25 [16:05:03]line НДС 12% НСП 1% [16:05:03]line > о реализуемом товаре [16:05:03]line ОКРУГЛЕНИЕ: -0.25 [16:05:03]line ИТОГО: 2000.00 [16:05:03]line НСП 1% : 17.70 [16:05:03]line НДС 12% : 212.42 [16:05:03]line Наличными: 0.00 [16:05:03]line Безнал.: 2000.00 [16:05:03]line Место: АЗС № 134 "Партнер Нефть" [16:05:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:05:03]line СНО: Общий режим [16:05:03]line Чек 183 30.07.2024 16:05 [16:05:03]line Смена: 435 ФФД: 1.0 [16:05:03]line ЗНМ: 0300000044 [16:05:03]line РНМ: 0000000000092660 [16:05:03]line Версия ККМ: 001 [16:05:03]line Платежная система: O! деньги [16:05:03]line ФМ: 0000000000874939 [16:05:03]line ФД: 119131 [16:05:03]line ФПД: 147694879405054 [16:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160502&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119131&fm=147694879405054&tin=02508201610067®Number=0000000000092660&sum=200000 [16:05:03]written 0, free lines is 4095 [16:05:03]OFD Sender: Processing packet 119130 [packets to send 87, broken 85] [16:05:03]ProducePacketName [16:05:03]name=ofd_packets/00119130 [16:05:03]OFD Sender: To server: pG, [16:05:03]CommunicateWithHost lk.salyk.kg:30040 [16:05:03]ConnectInit lk.salyk.kg [16:05:03]Write to MH i2c: 01 00 00 4A 02 4C [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 DD 0C 3C [16:05:03]RasterBufferAndPrint [16:05:03]line [16:05:03]line [16:05:03]line [16:05:03]line [16:05:03]line [16:05:03]written 0, free lines is 3299 [16:05:03]MH_Cut [16:05:03]Write to MH i2c: D1 01 00 51 02 01 25 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: D1 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: D1 01 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: D1 01 00 51 02 00 24 [16:05:03]Write to MH i2c: 01 00 00 52 02 54 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:04]*** Cut start [16:05:04]*** Partial cut [16:05:04]*** CUTSNS_PIN = 1 [16:05:04]*** CUTSNS_PIN = 0 [16:05:04]*** Brake cut motor [16:05:05]Read from MH i2c: 01 [16:05:05]MH_I2C_Read... [16:05:05]*** Stop cut motor [16:05:05]*** Cut end [16:05:05]Read from MH i2c: 01 07 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 FF 0F 69 [16:05:05]process_action close_receipt done [16:05:05]requested_data is exist [16:05:05]produce_requested_data [16:05:05]requested_item fm.sn is exist - process it [16:05:05]wFMCommunicate request_size=4 [16:05:05]MH_SAM_APDU [16:05:05]CAPDU: 80 11 00 00 [16:05:05]Write to MH i2c: E2 08 00 53 02 80 11 00 00 00 00 00 00 CF [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 17 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 17 00 53 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2A [16:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:05:05]wFMCommunicate OK [16:05:05]requested_item fd.num is exist - process it [16:05:05]SAM_PROTO_GetFieldsCounters [16:05:05]wFMCommunicate request_size=4 [16:05:05]MH_SAM_APDU [16:05:05]CAPDU: 80 13 00 00 [16:05:05]Write to MH i2c: E2 08 00 54 02 80 13 00 00 00 00 00 00 D2 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 62 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 62 00 54 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:05]wFMCommunicate OK [16:05:05]SAM_PROTO_GetFieldsCounters done [16:05:05]requested_item shift.num is exist - process it [16:05:05]requested_item shift.opened is exist - process it [16:05:05]req_shift_opened [16:05:05]FM_GetShiftState [16:05:05]SAM_PROTO_GetShiftState [16:05:05]wFMCommunicate request_size=4 [16:05:05]MH_SAM_APDU [16:05:05]CAPDU: 80 13 01 00 [16:05:05]Write to MH i2c: E2 08 00 55 02 80 13 01 00 00 00 00 00 D4 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:05]Read from MH i2c: E2 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 0E 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: E2 0E 00 55 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9F [16:05:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:05:05]wFMCommunicate OK [16:05:05]SAM_PROTO_GetShiftState done [16:05:05]FM_GetShiftState done [16:05:05]req_shift_opened done [16:05:05]requested_item shift.open_date is exist - process it [16:05:05]req_shift_open_date [16:05:05]req_shift_open_date done [16:05:05]produce_requested_data done [16:05:05]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119131,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:05:05]process_action_free close_receipt [16:05:05]json_value_free [16:05:05]json_value_free done [16:05:05]process_json_proto returns [16:05:05]Send response to host [16:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119131,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:05:05]free response buf [16:05:05]execute_script done [16:05:05]execute_script returns [16:05:05]free content buf [16:05:05]Sock 9.Close socket [16:05:05]Sock 9.Thread stoped [16:05:11]Connected sock=10 [16:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2D 51 07 01 3E 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 B6 00 00 00 F4 03 04 00 26 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5A D1 01 00 35 04 06 00 3C 8E D0 09 D0 19 88 4A 58 5E E9 28 7D 32 [16:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5F 8C 47 00 3E 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 34 39 33 39 10 04 04 00 5A D1 01 00 F4 03 04 00 C0 BC A8 66 B6 04 01 00 00 12 0E 11 CB D1 F5 1B 12 [16:05:12]CommunicateWithHost err = 0 [16:05:12]CheckOFDResponse [16:05:12]1017 (14) - 77093643461234 [16:05:12]1041 (16) - 0000000000874939 [16:05:12]1040 (4) - 119130 [16:05:12]1012 (4) - 30.07.2024 10:13 [16:05:12]1206 (1) - 0 [16:05:12]OFD Sender: Remove packet 119130 [16:05:12]ProducePacketName [16:05:12]name=ofd_packets/00119130 [16:05:12]NVStorageDeleteData [16:05:13]OFD Sender: Processing packet 119131 [packets to send 86, broken 85] [16:05:13]ProducePacketName [16:05:13]name=ofd_packets/00119131 [16:05:13]OFD Sender: To server: pG, [16:05:13]CommunicateWithHost lk.salyk.kg:30040 [16:05:13]ConnectInit lk.salyk.kg [16:05:14]Connected sock=9 [16:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 47 04 01 D0 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2E 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D1 01 00 35 04 06 00 86 53 E4 D2 73 FE 20 22 55 45 86 04 49 78 [16:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 07 47 00 4A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5B D1 01 00 F4 03 04 00 C3 BC A8 66 B6 04 01 00 00 EA BB A7 92 E0 54 BB 3E [16:05:15]CommunicateWithHost err = 0 [16:05:15]CheckOFDResponse [16:05:15]1017 (14) - 77093643461234 [16:05:15]1041 (16) - 0000000000874939 [16:05:15]1040 (4) - 119131 [16:05:15]1012 (4) - 30.07.2024 10:13 [16:05:15]1206 (1) - 0 [16:05:15]OFD Sender: Remove packet 119131 [16:05:15]ProducePacketName [16:05:15]name=ofd_packets/00119131 [16:05:15]NVStorageDeleteData [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:35]accept exits with 7 [16:06:35]New connection [16:06:35]New thread 3066883428 created [16:06:35]Thread 3066740068 joined [16:06:35]Waiting for new connection... [16:06:35] Sock 7.Parse request [16:06:35]Sock 7.Check first char [16:06:35]Sock 7.First char is OK [16:06:35]request: POST /json_proto HTTP/1.0 [16:06:35]Method: POST [16:06:35]URL: /json_proto [16:06:35]Method is POST - this is cgi request [16:06:35]url: /json_proto [16:06:35]query_string will be loaded in cgi processing [16:06:35]execute_cgi json_proto POST (null) [16:06:35]execute_cgi path=json_proto method=POST [16:06:35]POST find Content-Length [16:06:35]Host: 172.17.45.7:8080 [16:06:35]Content-Length: 739 [16:06:35]Content-Type: application/json [16:06:35] [16:06:35]POST finish read [16:06:35]Found Content-Length = 739 [16:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119130, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [16:06:35]execute_script... [16:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119130, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [16:06:35]POST & json_proto [16:06:35]process_json_proto [16:06:35]json parsed OK: [16:06:35]protocol is kg_v1.0 [16:06:35]action value=close_receipt [16:06:35]process_action close_receipt [16:06:35]cmd_close_receipt [16:06:35]MH_GetDate [16:06:35]Write to MH i2c: F0 00 00 56 02 47 [16:06:35]Write i2c OK [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: F0 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: F0 09 00 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: F0 09 00 56 02 00 8B 0F A9 66 90 0F 3E 66 3C [16:06:35]GetLastDocTimeStamp 1722355502 [16:06:35]current date 1722355595 [16:06:35]FM_GetShiftState [16:06:35]SAM_PROTO_GetShiftState [16:06:35]wFMCommunicate request_size=4 [16:06:35]MH_SAM_APDU [16:06:35]CAPDU: 80 13 01 00 [16:06:35]Write to MH i2c: E2 08 00 57 02 80 13 01 00 00 00 00 00 D6 [16:06:35]Write i2c OK [16:06:35]MH_I2C_Read... [16:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:35]Read from MH i2c: E2 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: E2 0E 00 [16:06:35]MH_I2C_Read... [16:06:35]Read from MH i2c: E2 0E 00 57 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A1 [16:06:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:06:35]wFMCommunicate OK [16:06:35]SAM_PROTO_GetShiftState done [16:06:35]FM_GetShiftState done [16:06:35]opened in 1722298242 [16:06:35]opened+sec_in_day 1722384642 [16:06:35]quantity*price = 150041 [16:06:35]sum+1 = 150042 [16:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 184 30.07.2024 16:06 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119130 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119132 ФПД: 134659517191697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160635&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119132&fm=134659517191697&tin=02508201610067®Number=0000000000092660&sum=150000 [16:06:36]StoreToDocumentArchive [16:06:36]shift 435 fd 119132 [16:06:36]save to /storage/0435/doc_00119132 [16:06:36]save last doc name /storage/0435/doc_00119132 to /storage/kkm_last_doc_name [16:06:36]save OK [16:06:36]Clear old archive folders... [16:06:36]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:06:36]tlvbuf is 0176F630 [16:06:36]SAM_PROTO_ClearQueue [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 09 00 00 [16:06:36]Write to MH i2c: E2 08 00 66 02 80 09 00 00 00 00 00 00 DA [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [16:06:36]RAPDU: 90 00 [16:06:36]wFMCommunicate OK [16:06:36]SAM_PROTO_ClearQueue done [16:06:36]KKMCreateOFDPacket [16:06:36]OFDProtocolAddRootSTLVToBuf [16:06:36]FM_MakeSignedData [16:06:36]FM_MakeSignedData [16:06:36]SAM_PROTO_SignData [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 0D 01 02 [16:06:36]Write to MH i2c: E2 08 00 67 02 80 0D 01 02 00 00 00 00 E2 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [16:06:36]RAPDU: 90 00 [16:06:36]wFMCommunicate OK [16:06:36]wFMCommunicate request_size=255 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 0D 02 02 FA 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 B8 00 00 00 F4 03 04 00 8B 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 5A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [16:06:36]Write to MH i2c: E2 02 01 68 02 80 0D 02 02 FA 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 B8 00 00 00 F4 03 04 00 8B 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 5A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 7E [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [16:06:36]RAPDU: 90 00 [16:06:36]wFMCommunicate OK [16:06:36]wFMCommunicate request_size=38 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D1 01 00 35 04 06 00 7A 78 DC B0 16 11 [16:06:36]Write to MH i2c: E2 29 00 69 02 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D1 01 00 35 04 06 00 7A 78 DC B0 16 11 00 00 49 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:36]Read from MH i2c: E2 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 [16:06:36]MH_I2C_Read... [16:06:36]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [16:06:36]RAPDU: 90 00 [16:06:36]wFMCommunicate OK [16:06:36]wFMCommunicate request_size=4 [16:06:36]MH_SAM_APDU [16:06:36]CAPDU: 80 0D 03 02 [16:06:36]Write to MH i2c: E2 08 00 6A 02 80 0D 03 02 00 00 00 00 E7 [16:06:36]Write i2c OK [16:06:36]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0B 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 0B 00 6A 02 00 71 9E 52 39 46 64 8C DA 90 00 92 [16:06:37]RAPDU: 71 9E 52 39 46 64 8C DA 90 00 [16:06:37]wFMCommunicate OK [16:06:37]SAM_PROTO_SignData done [16:06:37]FM_MakeSignedData done [16:06:37]CreateOFDProtocolMessage [16:06:37]wFMCommunicate request_size=4 [16:06:37]MH_SAM_APDU [16:06:37]CAPDU: 80 11 00 00 [16:06:37]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:37]Read from MH i2c: E2 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: E2 17 00 [16:06:37]MH_I2C_Read... [16:06:37]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 34 39 33 39 90 00 42 [16:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:06:37]wFMCommunicate OK [16:06:37]CreateOFDProtocolMessage done [16:06:37]OFDSenderStorePacket 119132 [16:06:37]StoreOFDPacket docnum=119132 [16:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 D5 A6 23 01 CD 71 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 B8 00 00 00 F4 03 04 00 8B 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 5A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D1 01 00 35 04 06 00 7A 78 DC B0 16 11 71 9E 52 39 46 64 8C DA [16:06:37]CheckFolder [16:06:37]dirname=/storage/ofd_packets [16:06:37]CheckFolder done [16:06:37]ProducePacketName [16:06:37]name=ofd_packets/00119132 [16:06:37]NVStorageSaveData ofd_packets/00119132 [16:06:37]File name is /storage/ofd_packets/00119132 [16:06:37]Write 329 bytes [16:06:37]NVStorageSaveData done [16:06:37]OFDSenderStorePacket done [16:06:37]KKMCreateOFDPacket done [16:06:37]NVStorageSaveData kkm_last_timestamp [16:06:37]File name is /storage/kkm_last_timestamp [16:06:37]Write 4 bytes [16:06:37]NVStorageSaveData done [16:06:37]ExternCall_PrintAddStr [16:06:37]wPrintStart [16:06:37]Write to MH i2c: 01 00 00 6C 02 6E [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: 01 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: 01 07 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FF 0F 83 [16:06:37]RasterBufferAndPrint [16:06:37]line Счет N : (1)950052 [16:06:37]line ИНН: 02508201610067 [16:06:37]line Контрольно-Кассовый Чек [16:06:37]line ВОЗВРАТ ПРОДАЖИ [16:06:37]line ТРК (МРК, ГНК) : 61 [16:06:37]line Товар: 2710124130 [16:06:37]line Аи-92-К-4 [16:06:37]line 22.130 * 67.80 [16:06:37]line = 1500.41 [16:06:37]line НДС 12% НСП 1% [16:06:37]line > о реализуемом товаре [16:06:37]line ОКРУГЛЕНИЕ: -0.41 [16:06:37]line ИТОГО: 1500.00 [16:06:37]line НСП 1% : 13.28 [16:06:37]line НДС 12% : 159.34 [16:06:37]line Наличными: 1500.00 [16:06:37]line Безнал.: 0.00 [16:06:37]line Место: АЗС № 134 "Партнер Нефть" [16:06:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:06:37]line СНО: Общий режим [16:06:37]line Чек 184 30.07.2024 16:06 [16:06:37]line Смена: 435 ФФД: 1.0 [16:06:37]line ЗНМ: 0300000044 [16:06:37]line РНМ: 0000000000092660 [16:06:37]line Версия ККМ: 001 [16:06:37]line ФД осн.: 119130 [16:06:37]line ФМ осн.: 0000000000874939 [16:06:37]line ФМ: 0000000000874939 [16:06:37]line ФД: 119132 [16:06:37]line ФПД: 134659517191697 [16:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160635&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119132&fm=134659517191697&tin=02508201610067®Number=0000000000092660&sum=150000 [16:06:37]OFD Sender: Processing packet 119132 [packets to send 86, broken 85] [16:06:37]ProducePacketName [16:06:37]name=ofd_packets/00119132 [16:06:37]OFD Sender: To server: pG, [16:06:37]CommunicateWithHost lk.salyk.kg:30040 [16:06:37]ConnectInit lk.salyk.kg [16:06:37]written 0, free lines is 4095 [16:06:37]Write to MH i2c: 01 00 00 96 02 98 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: 01 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: 01 07 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 E7 0C 92 [16:06:37]RasterBufferAndPrint [16:06:37]line [16:06:37]line [16:06:37]line [16:06:37]line [16:06:37]line [16:06:37]written 0, free lines is 3310 [16:06:37]MH_Cut [16:06:37]Write to MH i2c: D1 01 00 9D 02 01 71 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: D1 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: D1 01 00 [16:06:37]MH_I2C_Read... [16:06:37]Read from MH i2c: D1 01 00 9D 02 00 70 [16:06:37]Write to MH i2c: 01 00 00 9E 02 A0 [16:06:37]Write i2c OK [16:06:37]MH_I2C_Read... [16:06:38]*** Cut start [16:06:38]*** Partial cut [16:06:38]*** CUTSNS_PIN = 1 [16:06:38]*** CUTSNS_PIN = 0 [16:06:38]*** Brake cut motor [16:06:39]Read from MH i2c: 01 [16:06:39]MH_I2C_Read... [16:06:39]*** Stop cut motor [16:06:39]*** Cut end [16:06:39]Read from MH i2c: 01 07 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: 01 07 00 9E 02 00 00 00 00 00 FF 0F B5 [16:06:39]process_action close_receipt done [16:06:39]requested_data is exist [16:06:39]produce_requested_data [16:06:39]requested_item fm.sn is exist - process it [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 11 00 00 [16:06:39]Write to MH i2c: E2 08 00 9F 02 80 11 00 00 00 00 00 00 1B [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 17 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 17 00 9F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 76 [16:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:06:39]wFMCommunicate OK [16:06:39]requested_item fd.num is exist - process it [16:06:39]SAM_PROTO_GetFieldsCounters [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 13 00 00 [16:06:39]Write to MH i2c: E2 08 00 A0 02 80 13 00 00 00 00 00 00 1E [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 62 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 62 00 A0 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [16:06:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:39]wFMCommunicate OK [16:06:39]SAM_PROTO_GetFieldsCounters done [16:06:39]requested_item shift.num is exist - process it [16:06:39]requested_item shift.opened is exist - process it [16:06:39]req_shift_opened [16:06:39]FM_GetShiftState [16:06:39]SAM_PROTO_GetShiftState [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 13 01 00 [16:06:39]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 0E 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EB [16:06:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:06:39]wFMCommunicate OK [16:06:39]SAM_PROTO_GetShiftState done [16:06:39]FM_GetShiftState done [16:06:39]req_shift_opened done [16:06:39]requested_item shift.open_date is exist - process it [16:06:39]req_shift_open_date [16:06:39]req_shift_open_date done [16:06:39]produce_requested_data done [16:06:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119132,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:06:39]process_action_free close_receipt [16:06:39]json_value_free [16:06:39]json_value_free done [16:06:39]process_json_proto returns [16:06:39]Send response to host [16:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119132,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:06:39]free response buf [16:06:39]execute_script done [16:06:39]execute_script returns [16:06:39]free content buf [16:06:39]Sock 7.Close socket [16:06:39]Sock 7.Thread stoped [16:06:39]accept exits with 10 [16:06:39]New connection [16:06:39]New thread 3066740068 created [16:06:39]Thread 3066883428 joined [16:06:39]Waiting for new connection... [16:06:39] Sock 10.Parse request [16:06:39]Sock 10.Check first char [16:06:39]Sock 10.First char is OK [16:06:39]request: POST /json_proto HTTP/1.0 [16:06:39]Method: POST [16:06:39]URL: /json_proto [16:06:39]Method is POST - this is cgi request [16:06:39]url: /json_proto [16:06:39]query_string will be loaded in cgi processing [16:06:39]execute_cgi json_proto POST (null) [16:06:39]execute_cgi path=json_proto method=POST [16:06:39]POST find Content-Length [16:06:39]Host: 172.17.45.7:8080 [16:06:39]Content-Length: 682 [16:06:39]Content-Type: application/json [16:06:39] [16:06:39]POST finish read [16:06:39]Found Content-Length = 682 [16:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 15.490, "sum" : 1050.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:39]execute_script... [16:06: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)950052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 15.490, "sum" : 1050.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:39]POST & json_proto [16:06:39]process_json_proto [16:06:39]json parsed OK: [16:06:39]protocol is kg_v1.0 [16:06:39]action value=close_receipt [16:06:39]process_action close_receipt [16:06:39]cmd_close_receipt [16:06:39]MH_GetDate [16:06:39]Write to MH i2c: F0 00 00 A2 02 93 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: F0 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: F0 09 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: F0 09 00 A2 02 00 90 0F A9 66 90 0F 3E 66 8D [16:06:39]GetLastDocTimeStamp 1722355595 [16:06:39]current date 1722355600 [16:06:39]FM_GetShiftState [16:06:39]SAM_PROTO_GetShiftState [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 13 01 00 [16:06:39]Write to MH i2c: E2 08 00 A3 02 80 13 01 00 00 00 00 00 22 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 0E 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 0E 00 A3 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 ED [16:06:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:06:39]wFMCommunicate OK [16:06:39]SAM_PROTO_GetShiftState done [16:06:39]FM_GetShiftState done [16:06:39]opened in 1722298242 [16:06:39]opened+sec_in_day 1722384642 [16:06:39]quantity*price = 105022 [16:06:39]sum+1 = 105023 [16:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1050.00 Внесено: 1500.00 СДАЧА: 450.00 НСП 1% : 9.29 НДС 12% : 111.53 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 185 30.07.2024 16:06 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119133 ФПД: 205718829686336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160640&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119133&fm=205718829686336&tin=02508201610067®Number=0000000000092660&sum=105000 [16:06:41]StoreToDocumentArchive [16:06:41]shift 435 fd 119133 [16:06:41]save to /storage/0435/doc_00119133 [16:06:41]save last doc name /storage/0435/doc_00119133 to /storage/kkm_last_doc_name [16:06:41]save OK [16:06:41]Clear old archive folders... [16:06:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:41]tlvbuf is 0170BE60 [16:06:41]SAM_PROTO_ClearQueue [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 09 00 00 [16:06:41]Write to MH i2c: E2 08 00 B0 02 80 09 00 00 00 00 00 00 24 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:41]Read from MH i2c: E2 03 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [16:06:41]RAPDU: 90 00 [16:06:41]wFMCommunicate OK [16:06:41]SAM_PROTO_ClearQueue done [16:06:41]KKMCreateOFDPacket [16:06:41]OFDProtocolAddRootSTLVToBuf [16:06:41]FM_MakeSignedData [16:06:41]FM_MakeSignedData [16:06:41]SAM_PROTO_SignData [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 0D 01 02 [16:06:41]Write to MH i2c: E2 08 00 B1 02 80 0D 01 02 00 00 00 00 2C [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 03 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [16:06:41]RAPDU: 90 00 [16:06:41]wFMCommunicate OK [16:06:41]wFMCommunicate request_size=255 [16:06:41]MH_SAM_APDU [16:06: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 82 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 90 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D1 01 00 35 04 06 00 BB [16:06:41]Write to MH i2c: E2 02 01 B2 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 82 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 90 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D1 01 00 35 04 06 00 BB 00 00 53 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 03 00 [16:06:41]MH_I2C_Read... [16:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 CC 47 00 73 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5C D1 01 00 F4 03 04 00 19 BD A8 66 B6 04 01 00 00 94 22 A0 BC 7E F2 24 9F [16:06:41]CommunicateWithHost err = 0 [16:06:41]CheckOFDResponse [16:06:41]1017 (14) - 77093643461234 [16:06:41]1041 (16) - 0000000000874939 [16:06:41]1040 (4) - 119132 [16:06:41]1012 (4) - 30.07.2024 10:14 [16:06:41]1206 (1) - 0 [16:06:41]OFD Sender: Remove packet 119132 [16:06:41]ProducePacketName [16:06:41]name=ofd_packets/00119132 [16:06:41]NVStorageDeleteData [16:06:41]Read from MH i2c: E2 03 00 B2 02 00 90 00 28 [16:06:41]RAPDU: 90 00 [16:06:41]wFMCommunicate OK [16:06:41]wFMCommunicate request_size=10 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 0D 02 02 05 19 A5 C4 5E 40 [16:06:41]Write to MH i2c: E2 0D 00 B3 02 80 0D 02 02 05 00 19 A5 C4 5E 40 00 00 59 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 03 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [16:06:41]RAPDU: 90 00 [16:06:41]wFMCommunicate OK [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 0D 03 02 [16:06:41]Write to MH i2c: E2 08 00 B4 02 80 0D 03 02 00 00 00 00 31 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 0B 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 0B 00 B4 02 00 CD E7 77 06 79 69 00 05 90 00 4A [16:06:41]RAPDU: CD E7 77 06 79 69 00 05 90 00 [16:06:41]wFMCommunicate OK [16:06:41]SAM_PROTO_SignData done [16:06:41]FM_MakeSignedData done [16:06:41]CreateOFDProtocolMessage [16:06:41]wFMCommunicate request_size=4 [16:06:41]MH_SAM_APDU [16:06:41]CAPDU: 80 11 00 00 [16:06:41]Write to MH i2c: E2 08 00 B5 02 80 11 00 00 00 00 00 00 31 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:41]Read from MH i2c: E2 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: E2 17 00 [16:06:41]MH_I2C_Read... [16:06:41]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 34 39 33 39 90 00 8C [16:06:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:06:41]wFMCommunicate OK [16:06:41]CreateOFDProtocolMessage done [16:06:41]OFDSenderStorePacket 119133 [16:06:41]StoreOFDPacket docnum=119133 [16:06:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 60 AD 07 01 33 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 82 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 90 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D1 01 00 35 04 06 00 BB 19 A5 C4 5E 40 CD E7 77 06 79 69 00 05 [16:06:41]CheckFolder [16:06:41]dirname=/storage/ofd_packets [16:06:41]CheckFolder done [16:06:41]ProducePacketName [16:06:41]name=ofd_packets/00119133 [16:06:41]NVStorageSaveData ofd_packets/00119133 [16:06:41]File name is /storage/ofd_packets/00119133 [16:06:41]Write 301 bytes [16:06:41]NVStorageSaveData done [16:06:41]OFDSenderStorePacket done [16:06:41]KKMCreateOFDPacket done [16:06:41]NVStorageSaveData kkm_last_timestamp [16:06:41]File name is /storage/kkm_last_timestamp [16:06:41]Write 4 bytes [16:06:41]NVStorageSaveData done [16:06:41]ExternCall_PrintAddStr [16:06:41]wPrintStart [16:06:41]Write to MH i2c: 01 00 00 B6 02 B8 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 07 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [16:06:41]RasterBufferAndPrint [16:06:41]line Счет N : (1)950052 [16:06:41]line ИНН: 02508201610067 [16:06:41]line Контрольно-Кассовый Чек [16:06:41]line ПРОДАЖА [16:06:41]line ТРК (МРК, ГНК) : 61 [16:06:41]line Товар: 2710124130 [16:06:41]line Аи-92-К-4 [16:06:42]line 15.490 * 67.80 [16:06:42]line = 1050.22 [16:06:42]line НДС 12% НСП 1% [16:06:42]line > о реализуемом товаре [16:06:42]line ОКРУГЛЕНИЕ: -0.22 [16:06:42]line ИТОГО: 1050.00 [16:06:42]line Внесено: 1500.00 [16:06:42]line СДАЧА: 450.00 [16:06:42]line НСП 1% : 9.29 [16:06:42]line НДС 12% : 111.53 [16:06:42]line Наличными: 1050.00 [16:06:42]line Безнал.: 0.00 [16:06:42]line Место: АЗС № 134 "Партнер Нефть" [16:06:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:06:42]line СНО: Общий режим [16:06:42]line Чек 185 30.07.2024 16:06 [16:06:42]line Смена: 435 ФФД: 1.0 [16:06:42]line ЗНМ: 0300000044 [16:06:42]line РНМ: 0000000000092660 [16:06:42]line Версия ККМ: 001 [16:06:42]line ФМ: 0000000000874939 [16:06:42]line ФД: 119133 [16:06:42]line ФПД: 205718829686336 [16:06:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160640&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119133&fm=205718829686336&tin=02508201610067®Number=0000000000092660&sum=105000 [16:06:42]OFD Sender: Processing packet 119133 [packets to send 86, broken 85] [16:06:42]ProducePacketName [16:06:42]name=ofd_packets/00119133 [16:06:42]OFD Sender: To server: pG, [16:06:42]CommunicateWithHost lk.salyk.kg:30040 [16:06:42]ConnectInit lk.salyk.kg [16:06:42]written 0, free lines is 4095 [16:06:42]Write to MH i2c: 01 00 00 E0 02 E2 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 E0 02 00 00 00 00 00 DE 0C D3 [16:06:42]RasterBufferAndPrint [16:06:42]line [16:06:42]line [16:06:42]line [16:06:42]line [16:06:42]line [16:06:42]written 0, free lines is 3307 [16:06:42]MH_Cut [16:06:42]Write to MH i2c: D1 01 00 E7 02 01 BB [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: D1 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: D1 01 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: D1 01 00 E7 02 00 BA [16:06:42]Write to MH i2c: 01 00 00 E8 02 EA [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:43]*** Cut start [16:06:43]*** Partial cut [16:06:43]*** CUTSNS_PIN = 1 [16:06:43]*** CUTSNS_PIN = 0 [16:06:43]*** Brake cut motor [16:06:44]Read from MH i2c: 01 [16:06:44]MH_I2C_Read... [16:06:44]*** Stop cut motor [16:06:44]*** Cut end [16:06:44]Read from MH i2c: 01 07 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 FF 0F FF [16:06:44]process_action close_receipt done [16:06:44]requested_data is exist [16:06:44]produce_requested_data [16:06:44]requested_item fm.sn is exist - process it [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 11 00 00 [16:06:44]Write to MH i2c: E2 08 00 E9 02 80 11 00 00 00 00 00 00 65 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 17 00 E9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C0 [16:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:06:44]wFMCommunicate OK [16:06:44]requested_item fd.num is exist - process it [16:06:44]SAM_PROTO_GetFieldsCounters [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 13 00 00 [16:06:44]Write to MH i2c: E2 08 00 EA 02 80 13 00 00 00 00 00 00 68 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 62 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 62 00 EA 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:06:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_GetFieldsCounters done [16:06:44]requested_item shift.num is exist - process it [16:06:44]requested_item shift.opened is exist - process it [16:06:44]req_shift_opened [16:06:44]FM_GetShiftState [16:06:44]SAM_PROTO_GetShiftState [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 13 01 00 [16:06:44]Write to MH i2c: E2 08 00 EB 02 80 13 01 00 00 00 00 00 6A [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0E 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0E 00 EB 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 35 [16:06:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_GetShiftState done [16:06:44]FM_GetShiftState done [16:06:44]req_shift_opened done [16:06:44]requested_item shift.open_date is exist - process it [16:06:44]req_shift_open_date [16:06:44]req_shift_open_date done [16:06:44]produce_requested_data done [16:06:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119133,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:06:44]process_action_free close_receipt [16:06:44]json_value_free [16:06:44]json_value_free done [16:06:44]process_json_proto returns [16:06:44]Send response to host [16:06:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119133,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:06:44]free response buf [16:06:44]execute_script done [16:06:44]execute_script returns [16:06:44]free content buf [16:06:44]Sock 10.Close socket [16:06:44]Sock 10.Thread stoped [16:06:47]Connected sock=9 [16:06:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 60 AD 07 01 33 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 82 3C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3E 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 90 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D1 01 00 35 04 06 00 BB 19 A5 C4 5E 40 CD E7 77 06 79 69 00 05 [16:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A5 1C 47 00 E5 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5D D1 01 00 F4 03 04 00 21 BD A8 66 B6 04 01 00 00 CF 45 60 CB 3D 8D 52 DB [16:06:48]CommunicateWithHost err = 0 [16:06:48]CheckOFDResponse [16:06:48]1017 (14) - 77093643461234 [16:06:48]1041 (16) - 0000000000874939 [16:06:48]1040 (4) - 119133 [16:06:48]1012 (4) - 30.07.2024 10:14 [16:06:48]1206 (1) - 0 [16:06:48]OFD Sender: Remove packet 119133 [16:06:48]ProducePacketName [16:06:48]name=ofd_packets/00119133 [16:06:48]NVStorageDeleteData [16:06:49]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:47]recv_with_timeout no data received [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:00]accept exits with 7 [16:08:00]New connection [16:08:00]New thread 3066883428 created [16:08:00]Thread 3066740068 joined [16:08:00]Waiting for new connection... [16:08:00] Sock 7.Parse request [16:08:00]Sock 7.Check first char [16:08:00]Sock 7.First char is OK [16:08:00]request: POST /json_proto HTTP/1.0 [16:08:00]Method: POST [16:08:00]URL: /json_proto [16:08:00]Method is POST - this is cgi request [16:08:00]url: /json_proto [16:08:00]query_string will be loaded in cgi processing [16:08:00]execute_cgi json_proto POST (null) [16:08:00]execute_cgi path=json_proto method=POST [16:08:00]POST find Content-Length [16:08:00]Host: 172.17.45.7:8080 [16:08:00]Content-Length: 682 [16:08:00]Content-Type: application/json [16:08:00] [16:08:00]POST finish read [16:08:00]Found Content-Length = 682 [16:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:08:00]execute_script... [16:08: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)950053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:08:00]POST & json_proto [16:08:00]process_json_proto [16:08:00]json parsed OK: [16:08:00]protocol is kg_v1.0 [16:08:00]action value=close_receipt [16:08:00]process_action close_receipt [16:08:00]cmd_close_receipt [16:08:00]MH_GetDate [16:08:00]Write to MH i2c: F0 00 00 EC 02 DD [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: F0 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: F0 09 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: F0 09 00 EC 02 00 E1 0F A9 66 90 0F 3E 66 28 [16:08:00]GetLastDocTimeStamp 1722355600 [16:08:00]current date 1722355681 [16:08:00]FM_GetShiftState [16:08:00]SAM_PROTO_GetShiftState [16:08:00]wFMCommunicate request_size=4 [16:08:00]MH_SAM_APDU [16:08:00]CAPDU: 80 13 01 00 [16:08:00]Write to MH i2c: E2 08 00 ED 02 80 13 01 00 00 00 00 00 6C [16:08:00]Write i2c OK [16:08:00]MH_I2C_Read... [16:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:00]Read from MH i2c: E2 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 0E 00 [16:08:00]MH_I2C_Read... [16:08:00]Read from MH i2c: E2 0E 00 ED 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 37 [16:08:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:08:00]wFMCommunicate OK [16:08:00]SAM_PROTO_GetShiftState done [16:08:00]FM_GetShiftState done [16:08:00]opened in 1722298242 [16:08:00]opened+sec_in_day 1722384642 [16:08:00]quantity*price = 100005 [16:08:00]sum+1 = 100006 [16:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 186 30.07.2024 16:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119134 ФПД: 146841068382954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160801&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119134&fm=146841068382954&tin=02508201610067®Number=0000000000092660&sum=100000 [16:08:02]StoreToDocumentArchive [16:08:02]shift 435 fd 119134 [16:08:02]save to /storage/0435/doc_00119134 [16:08:02]save last doc name /storage/0435/doc_00119134 to /storage/kkm_last_doc_name [16:08:02]save OK [16:08:02]Clear old archive folders... [16:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:02]tlvbuf is 0175EBE0 [16:08:02]SAM_PROTO_ClearQueue [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 09 00 00 [16:08:02]Write to MH i2c: E2 08 00 FA 02 80 09 00 00 00 00 00 00 6E [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [16:08:02]RAPDU: 90 00 [16:08:02]wFMCommunicate OK [16:08:02]SAM_PROTO_ClearQueue done [16:08:02]KKMCreateOFDPacket [16:08:02]OFDProtocolAddRootSTLVToBuf [16:08:02]FM_MakeSignedData [16:08:02]FM_MakeSignedData [16:08:02]SAM_PROTO_SignData [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 0D 01 02 [16:08:02]Write to MH i2c: E2 08 00 FB 02 80 0D 01 02 00 00 00 00 76 [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [16:08:02]RAPDU: 90 00 [16:08:02]wFMCommunicate OK [16:08:02]wFMCommunicate request_size=255 [16:08:02]MH_SAM_APDU [16:08: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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D1 01 00 35 04 06 00 85 [16:08:02]Write to MH i2c: E2 02 01 FC 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D1 01 00 35 04 06 00 85 00 00 AB [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [16:08:02]RAPDU: 90 00 [16:08:02]wFMCommunicate OK [16:08:02]wFMCommunicate request_size=10 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 0D 02 02 05 8D 19 B8 2A EA [16:08:02]Write to MH i2c: E2 0D 00 FD 02 80 0D 02 02 05 00 8D 19 B8 2A EA 00 00 F5 [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 03 00 FD 02 00 90 00 73 [16:08:02]RAPDU: 90 00 [16:08:02]wFMCommunicate OK [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 0D 03 02 [16:08:02]Write to MH i2c: E2 08 00 FE 02 80 0D 03 02 00 00 00 00 7B [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 0B 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 0B 00 FE 02 00 D0 C2 99 F1 35 C1 7C D5 90 00 DF [16:08:02]RAPDU: D0 C2 99 F1 35 C1 7C D5 90 00 [16:08:02]wFMCommunicate OK [16:08:02]SAM_PROTO_SignData done [16:08:02]FM_MakeSignedData done [16:08:02]CreateOFDProtocolMessage [16:08:02]wFMCommunicate request_size=4 [16:08:02]MH_SAM_APDU [16:08:02]CAPDU: 80 11 00 00 [16:08:02]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:02]Read from MH i2c: E2 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: E2 17 00 [16:08:02]MH_I2C_Read... [16:08:02]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 34 39 33 39 90 00 D6 [16:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:08:02]wFMCommunicate OK [16:08:02]CreateOFDProtocolMessage done [16:08:02]OFDSenderStorePacket 119134 [16:08:02]StoreOFDPacket docnum=119134 [16:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 84 07 01 4B 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D1 01 00 35 04 06 00 85 8D 19 B8 2A EA D0 C2 99 F1 35 C1 7C D5 [16:08:02]CheckFolder [16:08:02]dirname=/storage/ofd_packets [16:08:02]CheckFolder done [16:08:02]ProducePacketName [16:08:02]name=ofd_packets/00119134 [16:08:02]NVStorageSaveData ofd_packets/00119134 [16:08:02]File name is /storage/ofd_packets/00119134 [16:08:02]Write 301 bytes [16:08:02]NVStorageSaveData done [16:08:02]OFDSenderStorePacket done [16:08:02]KKMCreateOFDPacket done [16:08:02]NVStorageSaveData kkm_last_timestamp [16:08:02]File name is /storage/kkm_last_timestamp [16:08:02]Write 4 bytes [16:08:02]NVStorageSaveData done [16:08:02]OFD Sender: Processing packet 119134 [packets to send 86, broken 85] [16:08:02]ProducePacketName [16:08:02]name=ofd_packets/00119134 [16:08:02]OFD Sender: To server: pG, [16:08:02]CommunicateWithHost lk.salyk.kg:30040 [16:08:02]ConnectInit lk.salyk.kg [16:08:02]ExternCall_PrintAddStr [16:08:02]wPrintStart [16:08:02]Write to MH i2c: 01 00 00 00 03 03 [16:08:02]Write i2c OK [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: 01 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: 01 07 00 [16:08:02]MH_I2C_Read... [16:08:02]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [16:08:02]RasterBufferAndPrint [16:08:02]line Счет N : (1)950053 [16:08:02]line ИНН: 02508201610067 [16:08:02]line Контрольно-Кассовый Чек [16:08:02]line ПРОДАЖА [16:08:02]line ТРК (МРК, ГНК) : 51 [16:08:02]line Товар: 2710124130 [16:08:02]line Аи-92-К-4 [16:08:02]line 14.750 * 67.80 [16:08:02]line = 1000.05 [16:08:02]line НДС 12% НСП 1% [16:08:02]line > о реализуемом товаре [16:08:02]line ОКРУГЛЕНИЕ: -0.05 [16:08:02]line ИТОГО: 1000.00 [16:08:02]line Внесено: 1000.00 [16:08:02]line СДАЧА: 0.00 [16:08:02]line НСП 1% : 8.85 [16:08:02]line НДС 12% : 106.20 [16:08:02]line Наличными: 1000.00 [16:08:02]line Безнал.: 0.00 [16:08:02]line Место: АЗС № 134 "Партнер Нефть" [16:08:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:08:02]line СНО: Общий режим [16:08:02]line Чек 186 30.07.2024 16:08 [16:08:02]line Смена: 435 ФФД: 1.0 [16:08:02]line ЗНМ: 0300000044 [16:08:02]line РНМ: 0000000000092660 [16:08:02]line Версия ККМ: 001 [16:08:02]line ФМ: 0000000000874939 [16:08:02]line ФД: 119134 [16:08:02]line ФПД: 146841068382954 [16:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160801&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119134&fm=146841068382954&tin=02508201610067®Number=0000000000092660&sum=100000 [16:08:02]written 0, free lines is 4095 [16:08:03]Write to MH i2c: 01 00 00 2A 03 2D [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: 01 07 00 2A 03 00 00 00 00 00 DC 0C 1C [16:08:03]RasterBufferAndPrint [16:08:03]line [16:08:03]line [16:08:03]line [16:08:03]line [16:08:03]line [16:08:03]written 0, free lines is 3299 [16:08:03]MH_Cut [16:08:03]Write to MH i2c: D1 01 00 31 03 01 06 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: D1 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: D1 01 00 [16:08:03]MH_I2C_Read... [16:08:03]Read from MH i2c: D1 01 00 31 03 00 05 [16:08:03]Write to MH i2c: 01 00 00 32 03 35 [16:08:03]Write i2c OK [16:08:03]MH_I2C_Read... [16:08:04]*** Cut start [16:08:04]*** Partial cut [16:08:04]*** CUTSNS_PIN = 1 [16:08:04]*** CUTSNS_PIN = 0 [16:08:04]*** Brake cut motor [16:08:04]Read from MH i2c: 01 [16:08:04]MH_I2C_Read... [16:08:04]*** Stop cut motor [16:08:04]*** Cut end [16:08:04]Read from MH i2c: 01 07 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [16:08:04]process_action close_receipt done [16:08:04]requested_data is exist [16:08:04]produce_requested_data [16:08:04]requested_item fm.sn is exist - process it [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 11 00 00 [16:08:04]Write to MH i2c: E2 08 00 33 03 80 11 00 00 00 00 00 00 B0 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 17 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 17 00 33 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0B [16:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:08:04]wFMCommunicate OK [16:08:04]requested_item fd.num is exist - process it [16:08:04]SAM_PROTO_GetFieldsCounters [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 13 00 00 [16:08:04]Write to MH i2c: E2 08 00 34 03 80 13 00 00 00 00 00 00 B3 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 62 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 62 00 34 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [16:08:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_GetFieldsCounters done [16:08:04]requested_item shift.num is exist - process it [16:08:04]requested_item shift.opened is exist - process it [16:08:04]req_shift_opened [16:08:04]FM_GetShiftState [16:08:04]SAM_PROTO_GetShiftState [16:08:04]wFMCommunicate request_size=4 [16:08:04]MH_SAM_APDU [16:08:04]CAPDU: 80 13 01 00 [16:08:04]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [16:08:04]Write i2c OK [16:08:04]MH_I2C_Read... [16:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:04]Read from MH i2c: E2 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0E 00 [16:08:04]MH_I2C_Read... [16:08:04]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 80 [16:08:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:08:04]wFMCommunicate OK [16:08:04]SAM_PROTO_GetShiftState done [16:08:04]FM_GetShiftState done [16:08:04]req_shift_opened done [16:08:04]requested_item shift.open_date is exist - process it [16:08:04]req_shift_open_date [16:08:04]req_shift_open_date done [16:08:04]produce_requested_data done [16:08:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119134,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:08:04]process_action_free close_receipt [16:08:04]json_value_free [16:08:04]json_value_free done [16:08:04]process_json_proto returns [16:08:04]Send response to host [16:08:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119134,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:08:04]free response buf [16:08:04]execute_script done [16:08:04]execute_script returns [16:08:04]free content buf [16:08:04]Sock 7.Close socket [16:08:04]Sock 7.Thread stoped [16:08:07]ConnectInit Can't take IP for lk.salyk.kg [16:08:07]CommunicateWithHost connect error [16:08:07]CommunicateWithHost err = -1 [16:08:07]OFD Sender: Server communicate error [16:08:12]OFD Sender: Processing packet 119134 [packets to send 86, broken 85] [16:08:12]ProducePacketName [16:08:12]name=ofd_packets/00119134 [16:08:12]OFD Sender: To server: pG, [16:08:12]CommunicateWithHost lk.salyk.kg:30040 [16:08:12]ConnectInit lk.salyk.kg [16:08:14]recv_with_timeout no data received [16:08:34]Connected sock=7 [16:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 85 84 07 01 4B 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 E1 0F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D1 01 00 35 04 06 00 85 8D 19 B8 2A EA D0 C2 99 F1 35 C1 7C D5 [16:08:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 84 FB 47 00 2A 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5E D1 01 00 F4 03 04 00 8C BD A8 66 B6 04 01 00 00 BE 96 E6 17 22 B7 28 DC [16:08:35]CommunicateWithHost err = 0 [16:08:35]CheckOFDResponse [16:08:35]1017 (14) - 77093643461234 [16:08:35]1041 (16) - 0000000000874939 [16:08:35]1040 (4) - 119134 [16:08:35]1012 (4) - 30.07.2024 10:16 [16:08:35]1206 (1) - 0 [16:08:35]OFD Sender: Remove packet 119134 [16:08:35]ProducePacketName [16:08:35]name=ofd_packets/00119134 [16:08:35]NVStorageDeleteData [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:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:45]accept exits with 10 [16:09:45]New connection [16:09:45]New thread 3066740068 created [16:09:45]Thread 3066883428 joined [16:09:45]Waiting for new connection... [16:09:45] Sock 10.Parse request [16:09:45]Sock 10.Check first char [16:09:45]Sock 10.First char is OK [16:09:45]request: POST /json_proto HTTP/1.0 [16:09:45]Method: POST [16:09:45]URL: /json_proto [16:09:45]Method is POST - this is cgi request [16:09:45]url: /json_proto [16:09:45]query_string will be loaded in cgi processing [16:09:45]execute_cgi json_proto POST (null) [16:09:45]execute_cgi path=json_proto method=POST [16:09:45]POST find Content-Length [16:09:45]Host: 172.17.45.7:8080 [16:09:45]Content-Length: 682 [16:09:45]Content-Type: application/json [16:09:45] [16:09:45]POST finish read [16:09:45]Found Content-Length = 682 [16:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:09:45]execute_script... [16: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)950054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:09:45]POST & json_proto [16:09:45]process_json_proto [16:09:45]json parsed OK: [16:09:45]protocol is kg_v1.0 [16:09:45]action value=close_receipt [16:09:45]process_action close_receipt [16:09:45]cmd_close_receipt [16:09:45]MH_GetDate [16:09:45]Write to MH i2c: F0 00 00 36 03 28 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: F0 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: F0 09 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: F0 09 00 36 03 00 49 10 A9 66 90 0F 3E 66 DC [16:09:45]GetLastDocTimeStamp 1722355681 [16:09:45]current date 1722355785 [16:09:45]FM_GetShiftState [16:09:45]SAM_PROTO_GetShiftState [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 13 01 00 [16:09:45]Write to MH i2c: E2 08 00 37 03 80 13 01 00 00 00 00 00 B7 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0E 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0E 00 37 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 82 [16:09:45]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:09:45]wFMCommunicate OK [16:09:45]SAM_PROTO_GetShiftState done [16:09:45]FM_GetShiftState done [16:09:45]opened in 1722298242 [16:09:45]opened+sec_in_day 1722384642 [16:09:45]quantity*price = 100005 [16:09:45]sum+1 = 100006 [16:09:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 187 30.07.2024 16:09 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119135 ФПД: 159242353920555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160945&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119135&fm=159242353920555&tin=02508201610067®Number=0000000000092660&sum=100000 [16:09:46]StoreToDocumentArchive [16:09:46]shift 435 fd 119135 [16:09:46]save to /storage/0435/doc_00119135 [16:09:46]save last doc name /storage/0435/doc_00119135 to /storage/kkm_last_doc_name [16:09:46]save OK [16:09:46]Clear old archive folders... [16:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:46]tlvbuf is 01705F70 [16:09:46]SAM_PROTO_ClearQueue [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 09 00 00 [16:09:46]Write to MH i2c: E2 08 00 44 03 80 09 00 00 00 00 00 00 B9 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_ClearQueue done [16:09:46]KKMCreateOFDPacket [16:09:46]OFDProtocolAddRootSTLVToBuf [16:09:46]FM_MakeSignedData [16:09:46]FM_MakeSignedData [16:09:46]SAM_PROTO_SignData [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 01 02 [16:09:46]Write to MH i2c: E2 08 00 45 03 80 0D 01 02 00 00 00 00 C1 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]wFMCommunicate request_size=255 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D1 01 00 35 04 06 00 90 [16:09:46]Write to MH i2c: E2 02 01 46 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D1 01 00 35 04 06 00 90 00 00 6C [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]wFMCommunicate request_size=10 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 02 02 05 D4 7F F0 4A 2B [16:09:46]Write to MH i2c: E2 0D 00 47 03 80 0D 02 02 05 00 D4 7F F0 4A 2B 00 00 86 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 03 00 47 03 00 90 00 BE [16:09:46]RAPDU: 90 00 [16:09:46]wFMCommunicate OK [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 0D 03 02 [16:09:46]Write to MH i2c: E2 08 00 48 03 80 0D 03 02 00 00 00 00 C6 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 0B 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 0B 00 48 03 00 B9 B5 AF 7B FF C2 DD DC 90 00 D9 [16:09:46]RAPDU: B9 B5 AF 7B FF C2 DD DC 90 00 [16:09:46]wFMCommunicate OK [16:09:46]SAM_PROTO_SignData done [16:09:46]FM_MakeSignedData done [16:09:46]CreateOFDProtocolMessage [16:09:46]wFMCommunicate request_size=4 [16:09:46]MH_SAM_APDU [16:09:46]CAPDU: 80 11 00 00 [16:09:46]Write to MH i2c: E2 08 00 49 03 80 11 00 00 00 00 00 00 C6 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:46]Read from MH i2c: E2 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: E2 17 00 [16:09:46]MH_I2C_Read... [16:09:46]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 34 39 33 39 90 00 21 [16:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:09:46]wFMCommunicate OK [16:09:46]CreateOFDProtocolMessage done [16:09:46]OFDSenderStorePacket 119135 [16:09:46]StoreOFDPacket docnum=119135 [16:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DE 8A 07 01 55 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D1 01 00 35 04 06 00 90 D4 7F F0 4A 2B B9 B5 AF 7B FF C2 DD DC [16:09:46]CheckFolder [16:09:46]dirname=/storage/ofd_packets [16:09:46]CheckFolder done [16:09:46]ProducePacketName [16:09:46]name=ofd_packets/00119135 [16:09:46]NVStorageSaveData ofd_packets/00119135 [16:09:46]File name is /storage/ofd_packets/00119135 [16:09:46]Write 301 bytes [16:09:46]NVStorageSaveData done [16:09:46]OFDSenderStorePacket done [16:09:46]KKMCreateOFDPacket done [16:09:46]NVStorageSaveData kkm_last_timestamp [16:09:46]File name is /storage/kkm_last_timestamp [16:09:46]Write 4 bytes [16:09:46]NVStorageSaveData done [16:09:46]ExternCall_PrintAddStr [16:09:46]wPrintStart [16:09:46]Write to MH i2c: 01 00 00 4A 03 4D [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 4A 03 00 00 00 00 00 FF 0F 62 [16:09:46]RasterBufferAndPrint [16:09:46]line Счет N : (1)950054 [16:09:46]line ИНН: 02508201610067 [16:09:46]line Контрольно-Кассовый Чек [16:09:46]line ПРОДАЖА [16:09:46]line ТРК (МРК, ГНК) : 41 [16:09:46]line Товар: 2710124130 [16:09:46]line Аи-92-К-4 [16:09:46]line 14.750 * 67.80 [16:09:46]line = 1000.05 [16:09:46]line НДС 12% НСП 1% [16:09:46]line > о реализуемом товаре [16:09:46]line ОКРУГЛЕНИЕ: -0.05 [16:09:46]line ИТОГО: 1000.00 [16:09:46]line Внесено: 1000.00 [16:09:46]line СДАЧА: 0.00 [16:09:46]line НСП 1% : 8.85 [16:09:46]line НДС 12% : 106.20 [16:09:46]line Наличными: 1000.00 [16:09:46]line Безнал.: 0.00 [16:09:46]line Место: АЗС № 134 "Партнер Нефть" [16:09:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:09:46]line СНО: Общий режим [16:09:46]line Чек 187 30.07.2024 16:09 [16:09:46]line Смена: 435 ФФД: 1.0 [16:09:46]line ЗНМ: 0300000044 [16:09:46]line РНМ: 0000000000092660 [16:09:46]line Версия ККМ: 001 [16:09:46]line ФМ: 0000000000874939 [16:09:46]line ФД: 119135 [16:09:46]line ФПД: 159242353920555 [16:09:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T160945&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119135&fm=159242353920555&tin=02508201610067®Number=0000000000092660&sum=100000 [16:09:47]OFD Sender: Processing packet 119135 [packets to send 86, broken 85] [16:09:47]ProducePacketName [16:09:47]name=ofd_packets/00119135 [16:09:47]OFD Sender: To server: pG, [16:09:47]CommunicateWithHost lk.salyk.kg:30040 [16:09:47]ConnectInit lk.salyk.kg [16:09:47]written 0, free lines is 4095 [16:09:47]Write to MH i2c: 01 00 00 74 03 77 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 74 03 00 00 00 00 00 DC 0C 66 [16:09:47]RasterBufferAndPrint [16:09:47]line [16:09:47]line [16:09:47]line [16:09:47]line [16:09:47]line [16:09:47]written 0, free lines is 3298 [16:09:47]MH_Cut [16:09:47]Write to MH i2c: D1 01 00 7B 03 01 50 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: D1 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: D1 01 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: D1 01 00 7B 03 00 4F [16:09:47]Write to MH i2c: 01 00 00 7C 03 7F [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:48]*** Cut start [16:09:48]*** Partial cut [16:09:48]*** CUTSNS_PIN = 1 [16:09:48]*** CUTSNS_PIN = 0 [16:09:48]*** Brake cut motor [16:09:49]Read from MH i2c: 01 [16:09:49]MH_I2C_Read... [16:09:49]*** Stop cut motor [16:09:49]*** Cut end [16:09:49]Read from MH i2c: 01 07 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 FF 0F 94 [16:09:49]process_action close_receipt done [16:09:49]requested_data is exist [16:09:49]produce_requested_data [16:09:49]requested_item fm.sn is exist - process it [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 11 00 00 [16:09:49]Write to MH i2c: E2 08 00 7D 03 80 11 00 00 00 00 00 00 FA [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 17 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 17 00 7D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 55 [16:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:09:49]wFMCommunicate OK [16:09:49]requested_item fd.num is exist - process it [16:09:49]SAM_PROTO_GetFieldsCounters [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 13 00 00 [16:09:49]Write to MH i2c: E2 08 00 7E 03 80 13 00 00 00 00 00 00 FD [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 62 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 62 00 7E 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [16:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 5F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:49]wFMCommunicate OK [16:09:49]SAM_PROTO_GetFieldsCounters done [16:09:49]requested_item shift.num is exist - process it [16:09:49]requested_item shift.opened is exist - process it [16:09:49]req_shift_opened [16:09:49]FM_GetShiftState [16:09:49]SAM_PROTO_GetShiftState [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 13 01 00 [16:09:49]Write to MH i2c: E2 08 00 7F 03 80 13 01 00 00 00 00 00 FF [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 0E 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 0E 00 7F 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CA [16:09:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:09:49]wFMCommunicate OK [16:09:49]SAM_PROTO_GetShiftState done [16:09:49]FM_GetShiftState done [16:09:49]req_shift_opened done [16:09:49]requested_item shift.open_date is exist - process it [16:09:49]req_shift_open_date [16:09:49]req_shift_open_date done [16:09:49]produce_requested_data done [16:09:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119135,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:09:49]process_action_free close_receipt [16:09:49]json_value_free [16:09:49]json_value_free done [16:09:49]process_json_proto returns [16:09:49]Send response to host [16:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119135,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:09:49]free response buf [16:09:49]execute_script done [16:09:49]execute_script returns [16:09:49]free content buf [16:09:49]Sock 10.Close socket [16:09:49]Sock 10.Thread stoped [16:09:49]Connected sock=7 [16:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DE 8A 07 01 55 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 49 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D1 01 00 35 04 06 00 90 D4 7F F0 4A 2B B9 B5 AF 7B FF C2 DD DC [16:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2B D0 47 00 77 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 5F D1 01 00 F4 03 04 00 D7 BD A8 66 B6 04 01 00 00 5F 3D 9C 3D F4 A6 CE B3 [16:09:50]CommunicateWithHost err = 0 [16:09:50]CheckOFDResponse [16:09:50]1017 (14) - 77093643461234 [16:09:50]1041 (16) - 0000000000874939 [16:09:50]1040 (4) - 119135 [16:09:50]1012 (4) - 30.07.2024 10:17 [16:09:50]1206 (1) - 0 [16:09:50]OFD Sender: Remove packet 119135 [16:09:50]ProducePacketName [16:09:50]name=ofd_packets/00119135 [16:09:50]NVStorageDeleteData [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:03]recv_with_timeout no data received [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:46]accept exits with 9 [16:11:46]New connection [16:11:46]New thread 3066883428 created [16:11:46]Thread 3066740068 joined [16:11:46]Waiting for new connection... [16:11:46] Sock 9.Parse request [16:11:46]Sock 9.Check first char [16:11:46]Sock 9.First char is OK [16:11:46]request: POST /json_proto HTTP/1.0 [16:11:46]Method: POST [16:11:46]URL: /json_proto [16:11:46]Method is POST - this is cgi request [16:11:46]url: /json_proto [16:11:46]query_string will be loaded in cgi processing [16:11:46]execute_cgi json_proto POST (null) [16:11:46]execute_cgi path=json_proto method=POST [16:11:46]POST find Content-Length [16:11:46]Host: 172.17.45.7:8080 [16:11:46]Content-Length: 677 [16:11:46]Content-Type: application/json [16:11:46] [16:11:46]POST finish read [16:11:46]Found Content-Length = 677 [16:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:11:46]execute_script... [16:11: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)950055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 2.950, "sum" : 200.01, "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:11:46]POST & json_proto [16:11:46]process_json_proto [16:11:46]json parsed OK: [16:11:46]protocol is kg_v1.0 [16:11:46]action value=close_receipt [16:11:46]process_action close_receipt [16:11:46]cmd_close_receipt [16:11:46]MH_GetDate [16:11:46]Write to MH i2c: F0 00 00 80 03 72 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: F0 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: F0 09 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: F0 09 00 80 03 00 C2 10 A9 66 90 0F 3E 66 9F [16:11:46]GetLastDocTimeStamp 1722355785 [16:11:46]current date 1722355906 [16:11:46]FM_GetShiftState [16:11:46]SAM_PROTO_GetShiftState [16:11:46]wFMCommunicate request_size=4 [16:11:46]MH_SAM_APDU [16:11:46]CAPDU: 80 13 01 00 [16:11:46]Write to MH i2c: E2 08 00 81 03 80 13 01 00 00 00 00 00 01 [16:11:46]Write i2c OK [16:11:46]MH_I2C_Read... [16:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:46]Read from MH i2c: E2 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 0E 00 [16:11:46]MH_I2C_Read... [16:11:46]Read from MH i2c: E2 0E 00 81 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CC [16:11:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:11:46]wFMCommunicate OK [16:11:46]SAM_PROTO_GetShiftState done [16:11:46]FM_GetShiftState done [16:11:46]opened in 1722298242 [16:11:46]opened+sec_in_day 1722384642 [16:11:46]quantity*price = 20001 [16:11:46]sum+1 = 20002 [16:11:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 188 30.07.2024 16:11 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119136 ФПД: 41920980098879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T161146&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119136&fm=41920980098879&tin=02508201610067®Number=0000000000092660&sum=20000 [16:11:47]StoreToDocumentArchive [16:11:47]shift 435 fd 119136 [16:11:47]save to /storage/0435/doc_00119136 [16:11:47]save last doc name /storage/0435/doc_00119136 to /storage/kkm_last_doc_name [16:11:47]save OK [16:11:47]Clear old archive folders... [16:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:47]tlvbuf is 01760CA0 [16:11:47]SAM_PROTO_ClearQueue [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 09 00 00 [16:11:47]Write to MH i2c: E2 08 00 8E 03 80 09 00 00 00 00 00 00 03 [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [16:11:47]RAPDU: 90 00 [16:11:47]wFMCommunicate OK [16:11:47]SAM_PROTO_ClearQueue done [16:11:47]KKMCreateOFDPacket [16:11:47]OFDProtocolAddRootSTLVToBuf [16:11:47]FM_MakeSignedData [16:11:47]FM_MakeSignedData [16:11:47]SAM_PROTO_SignData [16:11:47]wFMCommunicate request_size=4 [16:11:47]MH_SAM_APDU [16:11:47]CAPDU: 80 0D 01 02 [16:11:47]Write to MH i2c: E2 08 00 8F 03 80 0D 01 02 00 00 00 00 0B [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:47]Read from MH i2c: E2 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 [16:11:47]MH_I2C_Read... [16:11:47]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [16:11:47]RAPDU: 90 00 [16:11:47]wFMCommunicate OK [16:11:47]wFMCommunicate request_size=255 [16:11:47]MH_SAM_APDU [16:11: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 BC 00 00 00 F4 03 04 00 C2 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D1 01 00 35 04 06 00 26 [16:11:47]Write to MH i2c: E2 02 01 90 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 BC 00 00 00 F4 03 04 00 C2 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D1 01 00 35 04 06 00 26 00 00 3A [16:11:47]Write i2c OK [16:11:47]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [16:11:48]RAPDU: 90 00 [16:11:48]wFMCommunicate OK [16:11:48]wFMCommunicate request_size=10 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 0D 02 02 05 20 7D 20 9F 3F [16:11:48]Write to MH i2c: E2 0D 00 91 03 80 0D 02 02 05 00 20 7D 20 9F 3F 00 00 B3 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [16:11:48]RAPDU: 90 00 [16:11:48]wFMCommunicate OK [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 0D 03 02 [16:11:48]Write to MH i2c: E2 08 00 92 03 80 0D 03 02 00 00 00 00 10 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0B 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 0B 00 92 03 00 B0 D5 EC F6 5C 83 8B 81 90 00 63 [16:11:48]RAPDU: B0 D5 EC F6 5C 83 8B 81 90 00 [16:11:48]wFMCommunicate OK [16:11:48]SAM_PROTO_SignData done [16:11:48]FM_MakeSignedData done [16:11:48]CreateOFDProtocolMessage [16:11:48]wFMCommunicate request_size=4 [16:11:48]MH_SAM_APDU [16:11:48]CAPDU: 80 11 00 00 [16:11:48]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:48]Read from MH i2c: E2 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: E2 17 00 [16:11:48]MH_I2C_Read... [16:11:48]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 34 39 33 39 90 00 6B [16:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:11:48]wFMCommunicate OK [16:11:48]CreateOFDProtocolMessage done [16:11:48]OFDSenderStorePacket 119136 [16:11:48]StoreOFDPacket docnum=119136 [16:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EA 9A 07 01 F3 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 BC 00 00 00 F4 03 04 00 C2 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D1 01 00 35 04 06 00 26 20 7D 20 9F 3F B0 D5 EC F6 5C 83 8B 81 [16:11:48]CheckFolder [16:11:48]dirname=/storage/ofd_packets [16:11:48]CheckFolder done [16:11:48]ProducePacketName [16:11:48]name=ofd_packets/00119136 [16:11:48]NVStorageSaveData ofd_packets/00119136 [16:11:48]File name is /storage/ofd_packets/00119136 [16:11:48]Write 301 bytes [16:11:48]NVStorageSaveData done [16:11:48]OFDSenderStorePacket done [16:11:48]KKMCreateOFDPacket done [16:11:48]NVStorageSaveData kkm_last_timestamp [16:11:48]File name is /storage/kkm_last_timestamp [16:11:48]Write 4 bytes [16:11:48]NVStorageSaveData done [16:11:48]ExternCall_PrintAddStr [16:11:48]wPrintStart [16:11:48]Write to MH i2c: 01 00 00 94 03 97 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [16:11:48]RasterBufferAndPrint [16:11:48]line Счет N : (1)950055 [16:11:48]line ИНН: 02508201610067 [16:11:48]line Контрольно-Кассовый Чек [16:11:48]line ПРОДАЖА [16:11:48]line ТРК (МРК, ГНК) : 61 [16:11:48]line Товар: 2710124130 [16:11:48]line Аи-92-К-4 [16:11:48]line 2.950 * 67.80 [16:11:48]line = 200.01 [16:11:48]line НДС 12% НСП 1% [16:11:48]line > о реализуемом товаре [16:11:48]line ОКРУГЛЕНИЕ: -0.01 [16:11:48]line ИТОГО: 200.00 [16:11:48]line Внесено: 200.00 [16:11:48]line СДАЧА: 0.00 [16:11:48]line НСП 1% : 1.77 [16:11:48]line НДС 12% : 21.24 [16:11:48]line Наличными: 200.00 [16:11:48]line Безнал.: 0.00 [16:11:48]line Место: АЗС № 134 "Партнер Нефть" [16:11:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:11:48]line СНО: Общий режим [16:11:48]line Чек 188 30.07.2024 16:11 [16:11:48]line Смена: 435 ФФД: 1.0 [16:11:48]line ЗНМ: 0300000044 [16:11:48]line РНМ: 0000000000092660 [16:11:48]line Версия ККМ: 001 [16:11:48]line ФМ: 0000000000874939 [16:11:48]line ФД: 119136 [16:11:48]line ФПД: 41920980098879 [16:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T161146&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119136&fm=41920980098879&tin=02508201610067®Number=0000000000092660&sum=20000 [16:11:48]written 0, free lines is 4095 [16:11:48]OFD Sender: Processing packet 119136 [packets to send 86, broken 85] [16:11:48]ProducePacketName [16:11:48]name=ofd_packets/00119136 [16:11:48]OFD Sender: To server: pG, [16:11:48]CommunicateWithHost lk.salyk.kg:30040 [16:11:48]ConnectInit lk.salyk.kg [16:11:48]Connected sock=11 [16:11:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EA 9A 07 01 F3 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 BC 00 00 00 F4 03 04 00 C2 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D1 01 00 35 04 06 00 26 20 7D 20 9F 3F B0 D5 EC F6 5C 83 8B 81 [16:11:48]Write to MH i2c: 01 00 00 BE 03 C1 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 E4 0C B8 [16:11:48]RasterBufferAndPrint [16:11:48]line [16:11:48]line [16:11:48]line [16:11:48]line [16:11:48]line [16:11:48]written 0, free lines is 3306 [16:11:48]MH_Cut [16:11:48]Write to MH i2c: D1 01 00 C5 03 01 9A [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: D1 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: D1 01 00 [16:11:48]MH_I2C_Read... [16:11:48]Read from MH i2c: D1 01 00 C5 03 00 99 [16:11:48]Write to MH i2c: 01 00 00 C6 03 C9 [16:11:48]Write i2c OK [16:11:48]MH_I2C_Read... [16:11:49]*** Cut start [16:11:49]*** Partial cut [16:11:49]*** CUTSNS_PIN = 1 [16:11:49]*** CUTSNS_PIN = 0 [16:11:49]*** Brake cut motor [16:11:49]Read from MH i2c: 01 [16:11:49]MH_I2C_Read... [16:11:49]*** Stop cut motor [16:11:49]*** Cut end [16:11:49]Read from MH i2c: 01 07 00 [16:11:49]MH_I2C_Read... [16:11:49]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 FF 0F DE [16:11:49]process_action close_receipt done [16:11:49]requested_data is exist [16:11:49]produce_requested_data [16:11:49]requested_item fm.sn is exist - process it [16:11:49]wFMCommunicate request_size=4 [16:11:49]MH_SAM_APDU [16:11:49]CAPDU: 80 11 00 00 [16:11:49]Write to MH i2c: E2 08 00 C7 03 80 11 00 00 00 00 00 00 44 [16:11:49]Write i2c OK [16:11:49]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 17 00 C7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 9F [16:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:11:50]wFMCommunicate OK [16:11:50]requested_item fd.num is exist - process it [16:11:50]SAM_PROTO_GetFieldsCounters [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 13 00 00 [16:11:50]Write to MH i2c: E2 08 00 C8 03 80 13 00 00 00 00 00 00 47 [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 62 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 62 00 C8 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [16:11:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 60 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_GetFieldsCounters done [16:11:50]requested_item shift.num is exist - process it [16:11:50]requested_item shift.opened is exist - process it [16:11:50]req_shift_opened [16:11:50]FM_GetShiftState [16:11:50]SAM_PROTO_GetShiftState [16:11:50]wFMCommunicate request_size=4 [16:11:50]MH_SAM_APDU [16:11:50]CAPDU: 80 13 01 00 [16:11:50]Write to MH i2c: E2 08 00 C9 03 80 13 01 00 00 00 00 00 49 [16:11:50]Write i2c OK [16:11:50]MH_I2C_Read... [16:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:50]Read from MH i2c: E2 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0E 00 [16:11:50]MH_I2C_Read... [16:11:50]Read from MH i2c: E2 0E 00 C9 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 14 [16:11:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:11:50]wFMCommunicate OK [16:11:50]SAM_PROTO_GetShiftState done [16:11:50]FM_GetShiftState done [16:11:50]req_shift_opened done [16:11:50]requested_item shift.open_date is exist - process it [16:11:50]req_shift_open_date [16:11:50]req_shift_open_date done [16:11:50]produce_requested_data done [16:11:50]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119136,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:11:50]process_action_free close_receipt [16:11:50]json_value_free [16:11:50]json_value_free done [16:11:50]process_json_proto returns [16:11:50]Send response to host [16:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119136,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:11:50]free response buf [16:11:50]execute_script done [16:11:50]execute_script returns [16:11:50]free content buf [16:11:50]Sock 9.Close socket [16:11:50]Sock 9.Thread stoped [16:11:53]recv_with_timeout no data received [16:11:53]recv_with_timeout no data received [16:11:53]CommunicateWithHost answer receiving error [16:11:53]CommunicateWithHost err = -3 [16:11:53]OFD Sender: Server communicate error [16:11:58]OFD Sender: Processing packet 119136 [packets to send 86, broken 85] [16:11:58]ProducePacketName [16:11:58]name=ofd_packets/00119136 [16:11:58]OFD Sender: To server: pG, [16:11:58]CommunicateWithHost lk.salyk.kg:30040 [16:11:58]ConnectInit lk.salyk.kg [16:11:59]Connected sock=9 [16: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 34 39 33 39 0F 01 00 00 EA 9A 07 01 F3 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 BC 00 00 00 F4 03 04 00 C2 10 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D1 01 00 35 04 06 00 26 20 7D 20 9F 3F B0 D5 EC F6 5C 83 8B 81 [16:12:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 20 0F 47 00 95 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 60 D1 01 00 F4 03 04 00 58 BE A8 66 B6 04 01 00 00 8C FC 95 42 1E 1F 09 52 [16:12:00]CommunicateWithHost err = 0 [16:12:00]CheckOFDResponse [16:12:00]1017 (14) - 77093643461234 [16:12:00]1041 (16) - 0000000000874939 [16:12:00]1040 (4) - 119136 [16:12:00]1012 (4) - 30.07.2024 10:20 [16:12:00]1206 (1) - 0 [16:12:00]OFD Sender: Remove packet 119136 [16:12:00]ProducePacketName [16:12:00]name=ofd_packets/00119136 [16:12:00]NVStorageDeleteData [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:15:05]OFD Sender: No OFD packet to send [16:15:10]OFD Sender: No OFD packet to send [16:15:15]OFD Sender: No OFD packet to send [16:15:20]OFD Sender: No OFD packet to send [16:15:25]OFD Sender: No OFD packet to send [16:15:28]accept exits with 10 [16:15:28]New connection [16:15:28]New thread 3066740068 created [16:15:28]Thread 3066883428 joined [16:15:28]Waiting for new connection... [16:15:28] Sock 10.Parse request [16:15:28]Sock 10.Check first char [16:15:28]Sock 10.First char is OK [16:15:28]request: POST /json_proto HTTP/1.0 [16:15:28]Method: POST [16:15:28]URL: /json_proto [16:15:28]Method is POST - this is cgi request [16:15:28]url: /json_proto [16:15:28]query_string will be loaded in cgi processing [16:15:28]execute_cgi json_proto POST (null) [16:15:28]execute_cgi path=json_proto method=POST [16:15:28]POST find Content-Length [16:15:28]Host: 172.17.45.7:8080 [16:15:28]Content-Length: 677 [16:15:28]Content-Type: application/json [16:15:28] [16:15:28]POST finish read [16:15:28]Found Content-Length = 677 [16:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:28]execute_script... [16:15:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:15:28]POST & json_proto [16:15:28]process_json_proto [16:15:28]json parsed OK: [16:15:28]protocol is kg_v1.0 [16:15:28]action value=close_receipt [16:15:28]process_action close_receipt [16:15:28]cmd_close_receipt [16:15:28]MH_GetDate [16:15:28]Write to MH i2c: F0 00 00 CA 03 BC [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: F0 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: F0 09 00 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: F0 09 00 CA 03 00 A1 11 A9 66 90 0F 3E 66 C9 [16:15:28]GetLastDocTimeStamp 1722355906 [16:15:28]current date 1722356129 [16:15:28]FM_GetShiftState [16:15:28]SAM_PROTO_GetShiftState [16:15:28]wFMCommunicate request_size=4 [16:15:28]MH_SAM_APDU [16:15:28]CAPDU: 80 13 01 00 [16:15:28]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [16:15:28]Write i2c OK [16:15:28]MH_I2C_Read... [16:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:28]Read from MH i2c: E2 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: E2 0E 00 [16:15:28]MH_I2C_Read... [16:15:28]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 16 [16:15:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:15:28]wFMCommunicate OK [16:15:28]SAM_PROTO_GetShiftState done [16:15:28]FM_GetShiftState done [16:15:28]opened in 1722298242 [16:15:28]opened+sec_in_day 1722384642 [16:15:28]quantity*price = 50036 [16:15:28]sum+1 = 50037 [16:15:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 189 30.07.2024 16:15 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119137 ФПД: 215521670233714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T161529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119137&fm=215521670233714&tin=02508201610067®Number=0000000000092660&sum=50000 [16:15:30]StoreToDocumentArchive [16:15:30]shift 435 fd 119137 [16:15:30]save to /storage/0435/doc_00119137 [16:15:30]save last doc name /storage/0435/doc_00119137 to /storage/kkm_last_doc_name [16:15:30]save OK [16:15:30]Clear old archive folders... [16:15:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:15:30]tlvbuf is 01773920 [16:15:30]SAM_PROTO_ClearQueue [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 09 00 00 [16:15:30]Write to MH i2c: E2 08 00 D8 03 80 09 00 00 00 00 00 00 4D [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [16:15:30]RAPDU: 90 00 [16:15:30]wFMCommunicate OK [16:15:30]SAM_PROTO_ClearQueue done [16:15:30]KKMCreateOFDPacket [16:15:30]OFDProtocolAddRootSTLVToBuf [16:15:30]FM_MakeSignedData [16:15:30]FM_MakeSignedData [16:15:30]SAM_PROTO_SignData [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 0D 01 02 [16:15:30]Write to MH i2c: E2 08 00 D9 03 80 0D 01 02 00 00 00 00 55 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [16:15:30]RAPDU: 90 00 [16:15:30]wFMCommunicate OK [16:15:30]wFMCommunicate request_size=255 [16:15:30]MH_SAM_APDU [16:15: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 A1 11 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D1 01 00 35 04 06 00 C4 [16:15:30]Write to MH i2c: E2 02 01 DA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 A1 11 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D1 01 00 35 04 06 00 C4 00 00 02 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [16:15:30]RAPDU: 90 00 [16:15:30]wFMCommunicate OK [16:15:30]wFMCommunicate request_size=10 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 0D 02 02 05 04 0C 98 7E 72 [16:15:30]Write to MH i2c: E2 0D 00 DB 03 80 0D 02 02 05 00 04 0C 98 7E 72 00 00 FA [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [16:15:30]RAPDU: 90 00 [16:15:30]wFMCommunicate OK [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 0D 03 02 [16:15:30]Write to MH i2c: E2 08 00 DC 03 80 0D 03 02 00 00 00 00 5A [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 0B 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 0B 00 DC 03 00 56 EB E5 07 93 CE F3 36 90 00 12 [16:15:30]RAPDU: 56 EB E5 07 93 CE F3 36 90 00 [16:15:30]wFMCommunicate OK [16:15:30]SAM_PROTO_SignData done [16:15:30]FM_MakeSignedData done [16:15:30]CreateOFDProtocolMessage [16:15:30]wFMCommunicate request_size=4 [16:15:30]MH_SAM_APDU [16:15:30]CAPDU: 80 11 00 00 [16:15:30]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:30]Read from MH i2c: E2 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: E2 17 00 [16:15:30]MH_I2C_Read... [16:15:30]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 34 39 33 39 90 00 B5 [16:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:15:30]wFMCommunicate OK [16:15:30]CreateOFDProtocolMessage done [16:15:30]OFDSenderStorePacket 119137 [16:15:30]StoreOFDPacket docnum=119137 [16:15:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 03 4A 07 01 44 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 A1 11 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D1 01 00 35 04 06 00 C4 04 0C 98 7E 72 56 EB E5 07 93 CE F3 36 [16:15:30]CheckFolder [16:15:30]dirname=/storage/ofd_packets [16:15:30]CheckFolder done [16:15:30]ProducePacketName [16:15:30]name=ofd_packets/00119137 [16:15:30]NVStorageSaveData ofd_packets/00119137 [16:15:30]File name is /storage/ofd_packets/00119137 [16:15:30]Write 301 bytes [16:15:30]NVStorageSaveData done [16:15:30]OFDSenderStorePacket done [16:15:30]KKMCreateOFDPacket done [16:15:30]NVStorageSaveData kkm_last_timestamp [16:15:30]File name is /storage/kkm_last_timestamp [16:15:30]Write 4 bytes [16:15:30]NVStorageSaveData done [16:15:30]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:15:30]ProducePacketName [16:15:30]name=ofd_packets/00119137 [16:15:30]OFD Sender: To server: pG, [16:15:30]CommunicateWithHost lk.salyk.kg:30040 [16:15:30]ConnectInit lk.salyk.kg [16:15:30]ExternCall_PrintAddStr [16:15:30]wPrintStart [16:15:30]Write to MH i2c: 01 00 00 DE 03 E1 [16:15:30]Write i2c OK [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: 01 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: 01 07 00 [16:15:30]MH_I2C_Read... [16:15:30]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [16:15:30]RasterBufferAndPrint [16:15:30]line Счет N : (1)950056 [16:15:30]line ИНН: 02508201610067 [16:15:30]line Контрольно-Кассовый Чек [16:15:30]line ПРОДАЖА [16:15:30]line ТРК (МРК, ГНК) : 31 [16:15:30]line Товар: 2710124130 [16:15:30]line Аи-92-К-4 [16:15:30]line 7.380 * 67.80 [16:15:30]line = 500.36 [16:15:30]line НДС 12% НСП 1% [16:15:30]line > о реализуемом товаре [16:15:30]line ОКРУГЛЕНИЕ: -0.36 [16:15:30]line ИТОГО: 500.00 [16:15:30]line Внесено: 500.00 [16:15:30]line СДАЧА: 0.00 [16:15:30]line НСП 1% : 4.43 [16:15:30]line НДС 12% : 53.14 [16:15:30]line Наличными: 500.00 [16:15:30]line Безнал.: 0.00 [16:15:30]line Место: АЗС № 134 "Партнер Нефть" [16:15:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:15:30]line СНО: Общий режим [16:15:30]line Чек 189 30.07.2024 16:15 [16:15:30]line Смена: 435 ФФД: 1.0 [16:15:30]line ЗНМ: 0300000044 [16:15:30]line РНМ: 0000000000092660 [16:15:30]line Версия ККМ: 001 [16:15:30]line ФМ: 0000000000874939 [16:15:30]line ФД: 119137 [16:15:30]line ФПД: 215521670233714 [16:15:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T161529&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119137&fm=215521670233714&tin=02508201610067®Number=0000000000092660&sum=50000 [16:15:30]written 0, free lines is 4095 [16:15:31]Write to MH i2c: 01 00 00 08 04 0C [16:15:31]Write i2c OK [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: 01 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: 01 07 00 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 D8 0C F7 [16:15:31]RasterBufferAndPrint [16:15:31]line [16:15:31]line [16:15:31]line [16:15:31]line [16:15:31]line [16:15:31]written 0, free lines is 3296 [16:15:31]MH_Cut [16:15:31]Write to MH i2c: D1 01 00 0F 04 01 E5 [16:15:31]Write i2c OK [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: D1 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: D1 01 00 [16:15:31]MH_I2C_Read... [16:15:31]Read from MH i2c: D1 01 00 0F 04 00 E4 [16:15:31]Write to MH i2c: 01 00 00 10 04 14 [16:15:31]Write i2c OK [16:15:31]MH_I2C_Read... [16:15:32]*** Cut start [16:15:32]*** Partial cut [16:15:32]*** CUTSNS_PIN = 1 [16:15:32]*** CUTSNS_PIN = 0 [16:15:32]*** Brake cut motor [16:15:32]Read from MH i2c: 01 [16:15:32]MH_I2C_Read... [16:15:32]*** Stop cut motor [16:15:32]*** Cut end [16:15:32]Read from MH i2c: 01 07 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: 01 07 00 10 04 00 00 00 00 00 FF 0F 29 [16:15:32]process_action close_receipt done [16:15:32]requested_data is exist [16:15:32]produce_requested_data [16:15:32]requested_item fm.sn is exist - process it [16:15:32]wFMCommunicate request_size=4 [16:15:32]MH_SAM_APDU [16:15:32]CAPDU: 80 11 00 00 [16:15:32]Write to MH i2c: E2 08 00 11 04 80 11 00 00 00 00 00 00 8F [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:32]Read from MH i2c: E2 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 17 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 17 00 11 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [16:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:15:32]wFMCommunicate OK [16:15:32]requested_item fd.num is exist - process it [16:15:32]SAM_PROTO_GetFieldsCounters [16:15:32]wFMCommunicate request_size=4 [16:15:32]MH_SAM_APDU [16:15:32]CAPDU: 80 13 00 00 [16:15:32]Write to MH i2c: E2 08 00 12 04 80 13 00 00 00 00 00 00 92 [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:32]Read from MH i2c: E2 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 62 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 62 00 12 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:15:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 61 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:15:32]wFMCommunicate OK [16:15:32]SAM_PROTO_GetFieldsCounters done [16:15:32]requested_item shift.num is exist - process it [16:15:32]requested_item shift.opened is exist - process it [16:15:32]req_shift_opened [16:15:32]FM_GetShiftState [16:15:32]SAM_PROTO_GetShiftState [16:15:32]wFMCommunicate request_size=4 [16:15:32]MH_SAM_APDU [16:15:32]CAPDU: 80 13 01 00 [16:15:32]Write to MH i2c: E2 08 00 13 04 80 13 01 00 00 00 00 00 94 [16:15:32]Write i2c OK [16:15:32]MH_I2C_Read... [16:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:32]Read from MH i2c: E2 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 0E 00 [16:15:32]MH_I2C_Read... [16:15:32]Read from MH i2c: E2 0E 00 13 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5F [16:15:32]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:15:32]wFMCommunicate OK [16:15:32]SAM_PROTO_GetShiftState done [16:15:32]FM_GetShiftState done [16:15:32]req_shift_opened done [16:15:32]requested_item shift.open_date is exist - process it [16:15:32]req_shift_open_date [16:15:32]req_shift_open_date done [16:15:32]produce_requested_data done [16:15:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119137,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:15:32]process_action_free close_receipt [16:15:32]json_value_free [16:15:32]json_value_free done [16:15:32]process_json_proto returns [16:15:32]Send response to host [16:15:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119137,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:15:32]free response buf [16:15:32]execute_script done [16:15:32]execute_script returns [16:15:32]free content buf [16:15:32]Sock 10.Close socket [16:15:32]Sock 10.Thread stoped [16:15:35]ConnectInit Can't take IP for lk.salyk.kg [16:15:35]CommunicateWithHost connect error [16:15:35]CommunicateWithHost err = -1 [16:15:35]OFD Sender: Server communicate error [16:15:40]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:15:40]ProducePacketName [16:15:40]name=ofd_packets/00119137 [16:15:40]OFD Sender: To server: pG, [16:15:40]CommunicateWithHost lk.salyk.kg:30040 [16:15:40]ConnectInit lk.salyk.kg [16:15:45]ConnectInit Can't take IP for lk.salyk.kg [16:15:45]CommunicateWithHost connect error [16:15:45]CommunicateWithHost err = -1 [16:15:45]OFD Sender: Server communicate error [16:15:50]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:15:50]ProducePacketName [16:15:50]name=ofd_packets/00119137 [16:15:50]OFD Sender: To server: pG, [16:15:50]CommunicateWithHost lk.salyk.kg:30040 [16:15:50]ConnectInit lk.salyk.kg [16:15:55]ConnectInit Can't take IP for lk.salyk.kg [16:15:55]CommunicateWithHost connect error [16:15:55]CommunicateWithHost err = -1 [16:15:55]OFD Sender: Server communicate error [16:16:00]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:16:00]ProducePacketName [16:16:00]name=ofd_packets/00119137 [16:16:00]OFD Sender: To server: pG, [16:16:00]CommunicateWithHost lk.salyk.kg:30040 [16:16:00]ConnectInit lk.salyk.kg [16:16:05]ConnectInit Can't take IP for lk.salyk.kg [16:16:05]CommunicateWithHost connect error [16:16:05]CommunicateWithHost err = -1 [16:16:05]OFD Sender: Server communicate error [16:16:10]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:16:10]ProducePacketName [16:16:10]name=ofd_packets/00119137 [16:16:10]OFD Sender: To server: pG, [16:16:10]CommunicateWithHost lk.salyk.kg:30040 [16:16:10]ConnectInit lk.salyk.kg [16:16:15]ConnectInit Can't take IP for lk.salyk.kg [16:16:15]CommunicateWithHost connect error [16:16:15]CommunicateWithHost err = -1 [16:16:15]OFD Sender: Server communicate error [16:16:20]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:16:20]ProducePacketName [16:16:20]name=ofd_packets/00119137 [16:16:20]OFD Sender: To server: pG, [16:16:20]CommunicateWithHost lk.salyk.kg:30040 [16:16:20]ConnectInit lk.salyk.kg [16:16:25]ConnectInit Can't take IP for lk.salyk.kg [16:16:25]CommunicateWithHost connect error [16:16:25]CommunicateWithHost err = -1 [16:16:25]OFD Sender: Server communicate error [16:16:30]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:16:30]ProducePacketName [16:16:30]name=ofd_packets/00119137 [16:16:30]OFD Sender: To server: pG, [16:16:30]CommunicateWithHost lk.salyk.kg:30040 [16:16:30]ConnectInit lk.salyk.kg [16:16:35]ConnectInit Can't take IP for lk.salyk.kg [16:16:35]CommunicateWithHost connect error [16:16:35]CommunicateWithHost err = -1 [16:16:35]OFD Sender: Server communicate error [16:16:40]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:16:40]ProducePacketName [16:16:40]name=ofd_packets/00119137 [16:16:40]OFD Sender: To server: pG, [16:16:40]CommunicateWithHost lk.salyk.kg:30040 [16:16:40]ConnectInit lk.salyk.kg [16:16:45]ConnectInit Can't take IP for lk.salyk.kg [16:16:45]CommunicateWithHost connect error [16:16:45]CommunicateWithHost err = -1 [16:16:45]OFD Sender: Server communicate error [16:16:50]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:16:50]ProducePacketName [16:16:50]name=ofd_packets/00119137 [16:16:50]OFD Sender: To server: pG, [16:16:50]CommunicateWithHost lk.salyk.kg:30040 [16:16:50]ConnectInit lk.salyk.kg [16:16:55]ConnectInit Can't take IP for lk.salyk.kg [16:16:55]CommunicateWithHost connect error [16:16:55]CommunicateWithHost err = -1 [16:16:55]OFD Sender: Server communicate error [16:17:00]OFD Sender: Processing packet 119137 [packets to send 86, broken 85] [16:17:00]ProducePacketName [16:17:00]name=ofd_packets/00119137 [16:17:00]OFD Sender: To server: pG, [16:17:00]CommunicateWithHost lk.salyk.kg:30040 [16:17:00]ConnectInit lk.salyk.kg [16:17:01]Connected sock=10 [16:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 03 4A 07 01 44 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 A1 11 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D1 01 00 35 04 06 00 C4 04 0C 98 7E 72 56 EB E5 07 93 CE F3 36 [16:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5D B1 47 00 DD C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 61 D1 01 00 F4 03 04 00 86 BF A8 66 B6 04 01 00 00 C4 4E CA 75 93 91 2B 87 [16:17:02]CommunicateWithHost err = 0 [16:17:02]CheckOFDResponse [16:17:02]1017 (14) - 77093643461234 [16:17:02]1041 (16) - 0000000000874939 [16:17:02]1040 (4) - 119137 [16:17:02]1012 (4) - 30.07.2024 10:25 [16:17:02]1206 (1) - 0 [16:17:02]OFD Sender: Remove packet 119137 [16:17:02]ProducePacketName [16:17:02]name=ofd_packets/00119137 [16:17:02]NVStorageDeleteData [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:15]ConnectInit Can't connect to host [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:22]recv_with_timeout no data received [16:20:27]OFD Sender: No OFD packet to send [16:20:28]accept exits with 9 [16:20:28]New connection [16:20:28]New thread 3066883428 created [16:20:28]Thread 3066740068 joined [16:20:28]Waiting for new connection... [16:20:28] Sock 9.Parse request [16:20:28]Sock 9.Check first char [16:20:28]Sock 9.First char is OK [16:20:28]request: POST /json_proto HTTP/1.0 [16:20:28]Method: POST [16:20:28]URL: /json_proto [16:20:28]Method is POST - this is cgi request [16:20:28]url: /json_proto [16:20:28]query_string will be loaded in cgi processing [16:20:28]execute_cgi json_proto POST (null) [16:20:28]execute_cgi path=json_proto method=POST [16:20:28]POST find Content-Length [16:20:28]Host: 172.17.45.7:8080 [16:20:28]Content-Length: 677 [16:20:28]Content-Type: application/json [16:20:28] [16:20:28]POST finish read [16:20:28]Found Content-Length = 677 [16:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:28]execute_script... [16:20:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:28]POST & json_proto [16:20:28]process_json_proto [16:20:28]json parsed OK: [16:20:28]protocol is kg_v1.0 [16:20:28]action value=close_receipt [16:20:28]process_action close_receipt [16:20:28]cmd_close_receipt [16:20:28]MH_GetDate [16:20:28]Write to MH i2c: F0 00 00 14 04 07 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 09 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: F0 09 00 14 04 00 CC 12 A9 66 90 0F 3E 66 40 [16:20:28]GetLastDocTimeStamp 1722356129 [16:20:28]current date 1722356428 [16:20:28]FM_GetShiftState [16:20:28]SAM_PROTO_GetShiftState [16:20:28]wFMCommunicate request_size=4 [16:20:28]MH_SAM_APDU [16:20:28]CAPDU: 80 13 01 00 [16:20:28]Write to MH i2c: E2 08 00 15 04 80 13 01 00 00 00 00 00 96 [16:20:28]Write i2c OK [16:20:28]MH_I2C_Read... [16:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:28]Read from MH i2c: E2 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 [16:20:28]MH_I2C_Read... [16:20:28]Read from MH i2c: E2 0E 00 15 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 61 [16:20:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:20:28]wFMCommunicate OK [16:20:28]SAM_PROTO_GetShiftState done [16:20:28]FM_GetShiftState done [16:20:28]opened in 1722298242 [16:20:28]opened+sec_in_day 1722384642 [16:20:28]quantity*price = 50036 [16:20:28]sum+1 = 50037 [16:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 190 30.07.2024 16:20 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119138 ФПД: 203970742436190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119138&fm=203970742436190&tin=02508201610067®Number=0000000000092660&sum=50000 [16:20:29]StoreToDocumentArchive [16:20:29]shift 435 fd 119138 [16:20:29]save to /storage/0435/doc_00119138 [16:20:29]save last doc name /storage/0435/doc_00119138 to /storage/kkm_last_doc_name [16:20:29]save OK [16:20:29]Clear old archive folders... [16:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:29]tlvbuf is 01766E90 [16:20:29]SAM_PROTO_ClearQueue [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 09 00 00 [16:20:29]Write to MH i2c: E2 08 00 22 04 80 09 00 00 00 00 00 00 98 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 22 04 00 90 00 9A [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]SAM_PROTO_ClearQueue done [16:20:29]KKMCreateOFDPacket [16:20:29]OFDProtocolAddRootSTLVToBuf [16:20:29]FM_MakeSignedData [16:20:29]FM_MakeSignedData [16:20:29]SAM_PROTO_SignData [16:20:29]wFMCommunicate request_size=4 [16:20:29]MH_SAM_APDU [16:20:29]CAPDU: 80 0D 01 02 [16:20:29]Write to MH i2c: E2 08 00 23 04 80 0D 01 02 00 00 00 00 A0 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:29]Read from MH i2c: E2 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 [16:20:29]MH_I2C_Read... [16:20:29]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [16:20:29]RAPDU: 90 00 [16:20:29]wFMCommunicate OK [16:20:29]wFMCommunicate request_size=255 [16:20:29]MH_SAM_APDU [16:20: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC 12 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D1 01 00 35 04 06 00 B9 [16:20:29]Write to MH i2c: E2 02 01 24 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC 12 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D1 01 00 35 04 06 00 B9 00 00 70 [16:20:29]Write i2c OK [16:20:29]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [16:20:30]RAPDU: 90 00 [16:20:30]wFMCommunicate OK [16:20:30]wFMCommunicate request_size=10 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 0D 02 02 05 82 A3 A5 C1 5E [16:20:30]Write to MH i2c: E2 0D 00 25 04 80 0D 02 02 05 00 82 A3 A5 C1 5E 00 00 96 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [16:20:30]RAPDU: 90 00 [16:20:30]wFMCommunicate OK [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 0D 03 02 [16:20:30]Write to MH i2c: E2 08 00 26 04 80 0D 03 02 00 00 00 00 A5 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 0B 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 0B 00 26 04 00 47 70 C9 4E A3 B4 F2 08 90 00 C5 [16:20:30]RAPDU: 47 70 C9 4E A3 B4 F2 08 90 00 [16:20:30]wFMCommunicate OK [16:20:30]SAM_PROTO_SignData done [16:20:30]FM_MakeSignedData done [16:20:30]CreateOFDProtocolMessage [16:20:30]wFMCommunicate request_size=4 [16:20:30]MH_SAM_APDU [16:20:30]CAPDU: 80 11 00 00 [16:20:30]Write to MH i2c: E2 08 00 27 04 80 11 00 00 00 00 00 00 A5 [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:30]Read from MH i2c: E2 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: E2 17 00 [16:20:30]MH_I2C_Read... [16:20:30]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 34 39 33 39 90 00 00 [16:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:20:30]wFMCommunicate OK [16:20:30]CreateOFDProtocolMessage done [16:20:30]OFDSenderStorePacket 119138 [16:20:30]StoreOFDPacket docnum=119138 [16:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 7E 07 01 11 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC 12 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D1 01 00 35 04 06 00 B9 82 A3 A5 C1 5E 47 70 C9 4E A3 B4 F2 08 [16:20:30]CheckFolder [16:20:30]dirname=/storage/ofd_packets [16:20:30]CheckFolder done [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00119138 [16:20:30]NVStorageSaveData ofd_packets/00119138 [16:20:30]File name is /storage/ofd_packets/00119138 [16:20:30]Write 301 bytes [16:20:30]NVStorageSaveData done [16:20:30]OFDSenderStorePacket done [16:20:30]KKMCreateOFDPacket done [16:20:30]NVStorageSaveData kkm_last_timestamp [16:20:30]File name is /storage/kkm_last_timestamp [16:20:30]Write 4 bytes [16:20:30]NVStorageSaveData done [16:20:30]OFD Sender: Processing packet 119138 [packets to send 86, broken 85] [16:20:30]ProducePacketName [16:20:30]name=ofd_packets/00119138 [16:20:30]OFD Sender: To server: pG, [16:20:30]CommunicateWithHost lk.salyk.kg:30040 [16:20:30]ConnectInit lk.salyk.kg [16:20:30]ExternCall_PrintAddStr [16:20:30]wPrintStart [16:20:30]Write to MH i2c: 01 00 00 28 04 2C [16:20:30]Write i2c OK [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 [16:20:30]MH_I2C_Read... [16:20:30]Read from MH i2c: 01 07 00 28 04 00 00 00 00 00 FF 0F 41 [16:20:30]RasterBufferAndPrint [16:20:30]line Счет N : (1)950057 [16:20:30]line ИНН: 02508201610067 [16:20:30]line Контрольно-Кассовый Чек [16:20:30]line ПРОДАЖА [16:20:30]line ТРК (МРК, ГНК) : 61 [16:20:30]line Товар: 2710124130 [16:20:30]line Аи-92-К-4 [16:20:30]line 7.380 * 67.80 [16:20:30]line = 500.36 [16:20:30]line НДС 12% НСП 1% [16:20:30]line > о реализуемом товаре [16:20:30]line ОКРУГЛЕНИЕ: -0.36 [16:20:30]line ИТОГО: 500.00 [16:20:30]line Внесено: 500.00 [16:20:30]line СДАЧА: 0.00 [16:20:30]line НСП 1% : 4.43 [16:20:30]line НДС 12% : 53.14 [16:20:30]line Наличными: 500.00 [16:20:30]line Безнал.: 0.00 [16:20:30]line Место: АЗС № 134 "Партнер Нефть" [16:20:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:20:30]line СНО: Общий режим [16:20:30]line Чек 190 30.07.2024 16:20 [16:20:30]line Смена: 435 ФФД: 1.0 [16:20:30]line ЗНМ: 0300000044 [16:20:30]line РНМ: 0000000000092660 [16:20:30]line Версия ККМ: 001 [16:20:30]line ФМ: 0000000000874939 [16:20:30]line ФД: 119138 [16:20:30]line ФПД: 203970742436190 [16:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162028&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119138&fm=203970742436190&tin=02508201610067®Number=0000000000092660&sum=50000 [16:20:30]written 0, free lines is 4095 [16:20:31]Write to MH i2c: 01 00 00 52 04 56 [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: 01 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: 01 07 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 DF 0C 48 [16:20:31]RasterBufferAndPrint [16:20:31]line [16:20:31]line [16:20:31]line [16:20:31]line [16:20:31]line [16:20:31]written 0, free lines is 3301 [16:20:31]MH_Cut [16:20:31]Write to MH i2c: D1 01 00 59 04 01 2F [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: D1 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: D1 01 00 [16:20:31]MH_I2C_Read... [16:20:31]Read from MH i2c: D1 01 00 59 04 00 2E [16:20:31]Write to MH i2c: 01 00 00 5A 04 5E [16:20:31]Write i2c OK [16:20:31]MH_I2C_Read... [16:20:31]*** Cut start [16:20:31]*** Partial cut [16:20:31]*** CUTSNS_PIN = 1 [16:20:31]*** CUTSNS_PIN = 0 [16:20:31]Connected sock=11 [16:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9D 7E 07 01 11 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 CC 12 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D1 01 00 35 04 06 00 B9 82 A3 A5 C1 5E 47 70 C9 4E A3 B4 F2 08 [16:20:32]*** Brake cut motor [16:20:32]Read from MH i2c: 01 [16:20:32]MH_I2C_Read... [16:20:32]*** Stop cut motor [16:20:32]*** Cut end [16:20:32]Read from MH i2c: 01 07 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: 01 07 00 5A 04 00 00 00 00 00 FF 0F 73 [16:20:32]process_action close_receipt done [16:20:32]requested_data is exist [16:20:32]produce_requested_data [16:20:32]requested_item fm.sn is exist - process it [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 11 00 00 [16:20:32]Write to MH i2c: E2 08 00 5B 04 80 11 00 00 00 00 00 00 D9 [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 17 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 17 00 5B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 34 [16:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:20:32]wFMCommunicate OK [16:20:32]requested_item fd.num is exist - process it [16:20:32]SAM_PROTO_GetFieldsCounters [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 13 00 00 [16:20:32]Write to MH i2c: E2 08 00 5C 04 80 13 00 00 00 00 00 00 DC [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 62 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 62 00 5C 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [16:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 62 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:32]wFMCommunicate OK [16:20:32]SAM_PROTO_GetFieldsCounters done [16:20:32]requested_item shift.num is exist - process it [16:20:32]requested_item shift.opened is exist - process it [16:20:32]req_shift_opened [16:20:32]FM_GetShiftState [16:20:32]SAM_PROTO_GetShiftState [16:20:32]wFMCommunicate request_size=4 [16:20:32]MH_SAM_APDU [16:20:32]CAPDU: 80 13 01 00 [16:20:32]Write to MH i2c: E2 08 00 5D 04 80 13 01 00 00 00 00 00 DE [16:20:32]Write i2c OK [16:20:32]MH_I2C_Read... [16:20:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9B 88 47 00 E0 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 62 D1 01 00 F4 03 04 00 59 C0 A8 66 B6 04 01 00 00 C2 AD C1 93 89 82 CF F6 [16:20:32]CommunicateWithHost err = 0 [16:20:32]CheckOFDResponse [16:20:32]1017 (14) - 77093643461234 [16:20:32]1041 (16) - 0000000000874939 [16:20:32]1040 (4) - 119138 [16:20:32]1012 (4) - 30.07.2024 10:28 [16:20:32]1206 (1) - 0 [16:20:32]OFD Sender: Remove packet 119138 [16:20:32]ProducePacketName [16:20:32]name=ofd_packets/00119138 [16:20:32]NVStorageDeleteData [16:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:32]Read from MH i2c: E2 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 0E 00 [16:20:32]MH_I2C_Read... [16:20:32]Read from MH i2c: E2 0E 00 5D 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A9 [16:20:32]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:20:32]wFMCommunicate OK [16:20:32]SAM_PROTO_GetShiftState done [16:20:32]FM_GetShiftState done [16:20:32]req_shift_opened done [16:20:32]requested_item shift.open_date is exist - process it [16:20:32]req_shift_open_date [16:20:32]req_shift_open_date done [16:20:32]produce_requested_data done [16:20:32]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119138,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:20:32]process_action_free close_receipt [16:20:32]json_value_free [16:20:32]json_value_free done [16:20:32]process_json_proto returns [16:20:32]Send response to host [16:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119138,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:20:32]free response buf [16:20:32]execute_script done [16:20:32]execute_script returns [16:20:32]free content buf [16:20:32]Sock 9.Close socket [16:20:32]Sock 9.Thread stoped [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:32]accept exits with 10 [16:21:32]New connection [16:21:32]New thread 3066740068 created [16:21:32]Thread 3066883428 joined [16:21:32]Waiting for new connection... [16:21:32] Sock 10.Parse request [16:21:32]Sock 10.Check first char [16:21:32]Sock 10.First char is OK [16:21:32]request: POST /json_proto HTTP/1.0 [16:21:32]Method: POST [16:21:32]URL: /json_proto [16:21:32]Method is POST - this is cgi request [16:21:32]url: /json_proto [16:21:32]query_string will be loaded in cgi processing [16:21:32]execute_cgi json_proto POST (null) [16:21:32]execute_cgi path=json_proto method=POST [16:21:32]POST find Content-Length [16:21:32]Host: 172.17.45.7:8080 [16:21:32]Content-Length: 674 [16:21:32]Content-Type: application/json [16:21:32] [16:21:32]POST finish read [16:21:32]Found Content-Length = 674 [16:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:32]execute_script... [16:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:32]POST & json_proto [16:21:32]process_json_proto [16:21:32]json parsed OK: [16:21:32]protocol is kg_v1.0 [16:21:32]action value=close_receipt [16:21:32]process_action close_receipt [16:21:32]cmd_close_receipt [16:21:32]MH_GetDate [16:21:32]Write to MH i2c: F0 00 00 5E 04 51 [16:21:32]Write i2c OK [16:21:32]MH_I2C_Read... [16:21:32]Read from MH i2c: F0 [16:21:32]MH_I2C_Read... [16:21:32]Read from MH i2c: F0 09 00 [16:21:32]MH_I2C_Read... [16:21:32]Read from MH i2c: F0 09 00 5E 04 00 0C 13 A9 66 90 0F 3E 66 CB [16:21:32]GetLastDocTimeStamp 1722356428 [16:21:32]current date 1722356492 [16:21:32]FM_GetShiftState [16:21:32]SAM_PROTO_GetShiftState [16:21:32]wFMCommunicate request_size=4 [16:21:32]MH_SAM_APDU [16:21:32]CAPDU: 80 13 01 00 [16:21:32]Write to MH i2c: E2 08 00 5F 04 80 13 01 00 00 00 00 00 E0 [16:21:32]Write i2c OK [16:21:32]MH_I2C_Read... [16:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:32]Read from MH i2c: E2 [16:21:32]MH_I2C_Read... [16:21:32]Read from MH i2c: E2 0E 00 [16:21:32]MH_I2C_Read... [16:21:32]Read from MH i2c: E2 0E 00 5F 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AB [16:21:32]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:21:32]wFMCommunicate OK [16:21:32]SAM_PROTO_GetShiftState done [16:21:32]FM_GetShiftState done [16:21:32]opened in 1722298242 [16:21:32]opened+sec_in_day 1722384642 [16:21:32]quantity*price = 38023 [16:21:32]sum+1 = 38025 [16:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.38 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 191 30.07.2024 16:21 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119139 ФПД: 6760142180407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162132&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119139&fm=6760142180407&tin=02508201610067®Number=0000000000092660&sum=38000 [16:21:33]StoreToDocumentArchive [16:21:33]shift 435 fd 119139 [16:21:33]save to /storage/0435/doc_00119139 [16:21:33]save last doc name /storage/0435/doc_00119139 to /storage/kkm_last_doc_name [16:21:33]save OK [16:21:33]Clear old archive folders... [16:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:33]tlvbuf is 0170C160 [16:21:33]SAM_PROTO_ClearQueue [16:21:33]wFMCommunicate request_size=4 [16:21:33]MH_SAM_APDU [16:21:33]CAPDU: 80 09 00 00 [16:21:33]Write to MH i2c: E2 08 00 6C 04 80 09 00 00 00 00 00 00 E2 [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:33]Read from MH i2c: E2 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 03 00 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [16:21:33]RAPDU: 90 00 [16:21:33]wFMCommunicate OK [16:21:33]SAM_PROTO_ClearQueue done [16:21:33]KKMCreateOFDPacket [16:21:33]OFDProtocolAddRootSTLVToBuf [16:21:33]FM_MakeSignedData [16:21:33]FM_MakeSignedData [16:21:33]SAM_PROTO_SignData [16:21:33]wFMCommunicate request_size=4 [16:21:33]MH_SAM_APDU [16:21:33]CAPDU: 80 0D 01 02 [16:21:33]Write to MH i2c: E2 08 00 6D 04 80 0D 01 02 00 00 00 00 EA [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:33]Read from MH i2c: E2 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 03 00 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 03 00 6D 04 00 90 00 E5 [16:21:33]RAPDU: 90 00 [16:21:33]wFMCommunicate OK [16:21:33]wFMCommunicate request_size=255 [16:21:33]MH_SAM_APDU [16:21:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 0C 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D1 01 00 35 04 06 00 06 25 F7 DF [16:21:33]Write to MH i2c: E2 02 01 6E 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 0C 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D1 01 00 35 04 06 00 06 25 F7 DF 00 00 E5 [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]wFMCommunicate request_size=7 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 0D 02 02 02 90 37 [16:21:34]Write to MH i2c: E2 0A 00 6F 04 80 0D 02 02 02 00 90 37 00 00 B8 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 0D 03 02 [16:21:34]Write to MH i2c: E2 08 00 70 04 80 0D 03 02 00 00 00 00 EF [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 0B 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 0B 00 70 04 00 CF 38 F1 A4 C5 0D 52 54 90 00 04 [16:21:34]RAPDU: CF 38 F1 A4 C5 0D 52 54 90 00 [16:21:34]wFMCommunicate OK [16:21:34]SAM_PROTO_SignData done [16:21:34]FM_MakeSignedData done [16:21:34]CreateOFDProtocolMessage [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 11 00 00 [16:21:34]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 17 00 [16:21:34]MH_I2C_Read... [16:21:34]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 34 39 33 39 90 00 4A [16:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:21:34]wFMCommunicate OK [16:21:34]CreateOFDProtocolMessage done [16:21:34]OFDSenderStorePacket 119139 [16:21:34]StoreOFDPacket docnum=119139 [16:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6E 0F 04 01 07 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 0C 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D1 01 00 35 04 06 00 06 25 F7 DF 90 37 CF 38 F1 A4 C5 0D 52 54 [16:21:34]CheckFolder [16:21:34]dirname=/storage/ofd_packets [16:21:34]CheckFolder done [16:21:34]ProducePacketName [16:21:34]name=ofd_packets/00119139 [16:21:34]NVStorageSaveData ofd_packets/00119139 [16:21:34]File name is /storage/ofd_packets/00119139 [16:21:34]Write 298 bytes [16:21:34]NVStorageSaveData done [16:21:34]OFDSenderStorePacket done [16:21:34]KKMCreateOFDPacket done [16:21:34]NVStorageSaveData kkm_last_timestamp [16:21:34]File name is /storage/kkm_last_timestamp [16:21:34]Write 4 bytes [16:21:34]NVStorageSaveData done [16:21:34]ExternCall_PrintAddStr [16:21:34]wPrintStart [16:21:34]Write to MH i2c: 01 00 00 72 04 76 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: 01 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: 01 07 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 FF 0F 8B [16:21:34]RasterBufferAndPrint [16:21:34]line Счет N : (1)950058 [16:21:34]line ИНН: 02508201610067 [16:21:34]line Контрольно-Кассовый Чек [16:21:34]line ПРОДАЖА [16:21:34]line ТРК (МРК, ГНК) : 34 [16:21:34]line Товар: 2710194800 [16:21:34]line ДТ-К-5 [16:21:34]line 4.990 * 76.20 [16:21:34]line = 380.24 [16:21:34]line НДС 12% НСП 1% [16:21:34]line > о реализуемом товаре [16:21:34]line ОКРУГЛЕНИЕ: -0.24 [16:21:34]line ИТОГО: 380.00 [16:21:34]line Внесено: 380.00 [16:21:34]line СДАЧА: 0.00 [16:21:34]line НСП 1% : 3.36 [16:21:34]line НДС 12% : 40.38 [16:21:34]line Наличными: 380.00 [16:21:34]line Безнал.: 0.00 [16:21:34]line Место: АЗС № 134 "Партнер Нефть" [16:21:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:21:34]line СНО: Общий режим [16:21:34]line Чек 191 30.07.2024 16:21 [16:21:34]line Смена: 435 ФФД: 1.0 [16:21:34]line ЗНМ: 0300000044 [16:21:34]line РНМ: 0000000000092660 [16:21:34]line Версия ККМ: 001 [16:21:34]line ФМ: 0000000000874939 [16:21:34]line ФД: 119139 [16:21:34]line ФПД: 6760142180407 [16:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162132&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119139&fm=6760142180407&tin=02508201610067®Number=0000000000092660&sum=38000 [16:21:34]OFD Sender: Processing packet 119139 [packets to send 86, broken 85] [16:21:34]ProducePacketName [16:21:34]name=ofd_packets/00119139 [16:21:34]OFD Sender: To server: pG, [16:21:34]CommunicateWithHost lk.salyk.kg:30040 [16:21:34]ConnectInit lk.salyk.kg [16:21:34]written 0, free lines is 4095 [16:21:35]Write to MH i2c: 01 00 00 9C 04 A0 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 DD 0C 90 [16:21:35]RasterBufferAndPrint [16:21:35]line [16:21:35]line [16:21:35]line [16:21:35]line [16:21:35]line [16:21:35]written 0, free lines is 3299 [16:21:35]MH_Cut [16:21:35]Write to MH i2c: D1 01 00 A3 04 01 79 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: D1 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: D1 01 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: D1 01 00 A3 04 00 78 [16:21:35]Write to MH i2c: 01 00 00 A4 04 A8 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** Cut start [16:21:35]*** Partial cut [16:21:35]*** CUTSNS_PIN = 1 [16:21:35]*** CUTSNS_PIN = 0 [16:21:36]*** Brake cut motor [16:21:36]Read from MH i2c: 01 [16:21:36]MH_I2C_Read... [16:21:36]*** Stop cut motor [16:21:36]*** Cut end [16:21:36]Read from MH i2c: 01 07 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 07 00 A4 04 00 00 00 00 00 FF 0F BD [16:21:36]process_action close_receipt done [16:21:36]requested_data is exist [16:21:36]produce_requested_data [16:21:36]requested_item fm.sn is exist - process it [16:21:36]wFMCommunicate request_size=4 [16:21:36]MH_SAM_APDU [16:21:36]CAPDU: 80 11 00 00 [16:21:36]Write to MH i2c: E2 08 00 A5 04 80 11 00 00 00 00 00 00 23 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:36]Read from MH i2c: E2 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: E2 17 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: E2 17 00 A5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7E [16:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:21:36]wFMCommunicate OK [16:21:36]requested_item fd.num is exist - process it [16:21:36]SAM_PROTO_GetFieldsCounters [16:21:36]wFMCommunicate request_size=4 [16:21:36]MH_SAM_APDU [16:21:36]CAPDU: 80 13 00 00 [16:21:36]Write to MH i2c: E2 08 00 A6 04 80 13 00 00 00 00 00 00 26 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:36]Read from MH i2c: E2 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: E2 62 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: E2 62 00 A6 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:21:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 63 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:36]wFMCommunicate OK [16:21:36]SAM_PROTO_GetFieldsCounters done [16:21:36]requested_item shift.num is exist - process it [16:21:36]requested_item shift.opened is exist - process it [16:21:36]req_shift_opened [16:21:36]FM_GetShiftState [16:21:36]SAM_PROTO_GetShiftState [16:21:36]wFMCommunicate request_size=4 [16:21:36]MH_SAM_APDU [16:21:36]CAPDU: 80 13 01 00 [16:21:36]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:36]Read from MH i2c: E2 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: E2 0E 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F3 [16:21:36]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:21:36]wFMCommunicate OK [16:21:36]SAM_PROTO_GetShiftState done [16:21:36]FM_GetShiftState done [16:21:36]req_shift_opened done [16:21:36]requested_item shift.open_date is exist - process it [16:21:36]req_shift_open_date [16:21:36]req_shift_open_date done [16:21:36]produce_requested_data done [16:21:36]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119139,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:21:36]process_action_free close_receipt [16:21:36]json_value_free [16:21:36]json_value_free done [16:21:36]process_json_proto returns [16:21:36]Send response to host [16:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119139,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:21:36]free response buf [16:21:36]execute_script done [16:21:36]execute_script returns [16:21:36]free content buf [16:21:36]Sock 10.Close socket [16:21:36]Sock 10.Thread stoped [16:21:38]Connected sock=9 [16:21:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6E 0F 04 01 07 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 0C 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D1 01 00 35 04 06 00 06 25 F7 DF 90 37 CF 38 F1 A4 C5 0D 52 54 [16:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 23 BD 47 00 DA 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 63 D1 01 00 F4 03 04 00 9B C0 A8 66 B6 04 01 00 00 1C 0C FB 92 39 5B 8A DA [16:21:40]CommunicateWithHost err = 0 [16:21:40]CheckOFDResponse [16:21:40]1017 (14) - 77093643461234 [16:21:40]1041 (16) - 0000000000874939 [16:21:40]1040 (4) - 119139 [16:21:40]1012 (4) - 30.07.2024 10:29 [16:21:40]1206 (1) - 0 [16:21:40]OFD Sender: Remove packet 119139 [16:21:40]ProducePacketName [16:21:40]name=ofd_packets/00119139 [16:21:40]NVStorageDeleteData [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:00]accept exits with 7 [16:22:00]New connection [16:22:00]New thread 3066883428 created [16:22:00]Thread 3066740068 joined [16:22:00]Waiting for new connection... [16:22:00] Sock 7.Parse request [16:22:00]Sock 7.Check first char [16:22:00]Sock 7.First char is OK [16:22:00]request: POST /json_proto HTTP/1.0 [16:22:00]Method: POST [16:22:00]URL: /json_proto [16:22:00]Method is POST - this is cgi request [16:22:00]url: /json_proto [16:22:00]query_string will be loaded in cgi processing [16:22:00]execute_cgi json_proto POST (null) [16:22:00]execute_cgi path=json_proto method=POST [16:22:00]POST find Content-Length [16:22:00]Host: 172.17.45.7:8080 [16:22:00]Content-Length: 677 [16:22:00]Content-Type: application/json [16:22:00] [16:22:00]POST finish read [16:22:00]Found Content-Length = 677 [16:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:00]execute_script... [16:22: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)950059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:00]POST & json_proto [16:22:00]process_json_proto [16:22:00]json parsed OK: [16:22:00]protocol is kg_v1.0 [16:22:00]action value=close_receipt [16:22:00]process_action close_receipt [16:22:00]cmd_close_receipt [16:22:00]MH_GetDate [16:22:00]Write to MH i2c: F0 00 00 A8 04 9B [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: F0 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: F0 09 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: F0 09 00 A8 04 00 28 13 A9 66 90 0F 3E 66 31 [16:22:00]GetLastDocTimeStamp 1722356492 [16:22:00]current date 1722356520 [16:22:00]FM_GetShiftState [16:22:00]SAM_PROTO_GetShiftState [16:22:00]wFMCommunicate request_size=4 [16:22:00]MH_SAM_APDU [16:22:00]CAPDU: 80 13 01 00 [16:22:00]Write to MH i2c: E2 08 00 A9 04 80 13 01 00 00 00 00 00 2A [16:22:00]Write i2c OK [16:22:00]MH_I2C_Read... [16:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:00]Read from MH i2c: E2 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 0E 00 [16:22:00]MH_I2C_Read... [16:22:00]Read from MH i2c: E2 0E 00 A9 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F5 [16:22:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:22:00]wFMCommunicate OK [16:22:00]SAM_PROTO_GetShiftState done [16:22:00]FM_GetShiftState done [16:22:00]opened in 1722298242 [16:22:00]opened+sec_in_day 1722384642 [16:22:00]quantity*price = 50036 [16:22:00]sum+1 = 50037 [16:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 192 30.07.2024 16:22 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119140 ФПД: 121931032694969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162200&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119140&fm=121931032694969&tin=02508201610067®Number=0000000000092660&sum=50000 [16:22:01]StoreToDocumentArchive [16:22:01]shift 435 fd 119140 [16:22:01]save to /storage/0435/doc_00119140 [16:22:01]save last doc name /storage/0435/doc_00119140 to /storage/kkm_last_doc_name [16:22:01]save OK [16:22:01]Clear old archive folders... [16:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:01]tlvbuf is 01766310 [16:22:01]SAM_PROTO_ClearQueue [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 09 00 00 [16:22:01]Write to MH i2c: E2 08 00 B6 04 80 09 00 00 00 00 00 00 2C [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_ClearQueue done [16:22:01]KKMCreateOFDPacket [16:22:01]OFDProtocolAddRootSTLVToBuf [16:22:01]FM_MakeSignedData [16:22:01]FM_MakeSignedData [16:22:01]SAM_PROTO_SignData [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 01 02 [16:22:01]Write to MH i2c: E2 08 00 B7 04 80 0D 01 02 00 00 00 00 34 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]wFMCommunicate request_size=255 [16:22:01]MH_SAM_APDU [16:22: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D1 01 00 35 04 06 00 6E [16:22:01]Write to MH i2c: E2 02 01 B8 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D1 01 00 35 04 06 00 6E 00 00 1A [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 B8 04 00 90 00 30 [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]wFMCommunicate request_size=10 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 02 02 05 E5 47 E4 10 B9 [16:22:01]Write to MH i2c: E2 0D 00 B9 04 80 0D 02 02 05 00 E5 47 E4 10 B9 00 00 1A [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [16:22:01]RAPDU: 90 00 [16:22:01]wFMCommunicate OK [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 0D 03 02 [16:22:01]Write to MH i2c: E2 08 00 BA 04 80 0D 03 02 00 00 00 00 39 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:01]Read from MH i2c: E2 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0B 00 [16:22:01]MH_I2C_Read... [16:22:01]Read from MH i2c: E2 0B 00 BA 04 00 4A 06 EC 8B 43 93 E3 EE 90 00 A8 [16:22:01]RAPDU: 4A 06 EC 8B 43 93 E3 EE 90 00 [16:22:01]wFMCommunicate OK [16:22:01]SAM_PROTO_SignData done [16:22:01]FM_MakeSignedData done [16:22:01]CreateOFDProtocolMessage [16:22:01]wFMCommunicate request_size=4 [16:22:01]MH_SAM_APDU [16:22:01]CAPDU: 80 11 00 00 [16:22:01]Write to MH i2c: E2 08 00 BB 04 80 11 00 00 00 00 00 00 39 [16:22:01]Write i2c OK [16:22:01]MH_I2C_Read... [16:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:02]Read from MH i2c: E2 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: E2 17 00 [16:22:02]MH_I2C_Read... [16:22:02]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 34 39 33 39 90 00 94 [16:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:02]wFMCommunicate OK [16:22:02]CreateOFDProtocolMessage done [16:22:02]OFDSenderStorePacket 119140 [16:22:02]StoreOFDPacket docnum=119140 [16:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1C F9 07 01 CE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D1 01 00 35 04 06 00 6E E5 47 E4 10 B9 4A 06 EC 8B 43 93 E3 EE [16:22:02]CheckFolder [16:22:02]dirname=/storage/ofd_packets [16:22:02]CheckFolder done [16:22:02]ProducePacketName [16:22:02]name=ofd_packets/00119140 [16:22:02]NVStorageSaveData ofd_packets/00119140 [16:22:02]File name is /storage/ofd_packets/00119140 [16:22:02]Write 301 bytes [16:22:02]NVStorageSaveData done [16:22:02]OFDSenderStorePacket done [16:22:02]KKMCreateOFDPacket done [16:22:02]NVStorageSaveData kkm_last_timestamp [16:22:02]File name is /storage/kkm_last_timestamp [16:22:02]Write 4 bytes [16:22:02]NVStorageSaveData done [16:22:02]OFD Sender: Processing packet 119140 [packets to send 86, broken 85] [16:22:02]ProducePacketName [16:22:02]name=ofd_packets/00119140 [16:22:02]OFD Sender: To server: pG, [16:22:02]CommunicateWithHost lk.salyk.kg:30040 [16:22:02]ConnectInit lk.salyk.kg [16:22:02]ExternCall_PrintAddStr [16:22:02]wPrintStart [16:22:02]Write to MH i2c: 01 00 00 BC 04 C0 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 FF 0F D5 [16:22:02]RasterBufferAndPrint [16:22:02]line Счет N : (1)950059 [16:22:02]line ИНН: 02508201610067 [16:22:02]line Контрольно-Кассовый Чек [16:22:02]line ПРОДАЖА [16:22:02]line ТРК (МРК, ГНК) : 51 [16:22:02]line Товар: 2710124130 [16:22:02]line Аи-92-К-4 [16:22:02]line 7.380 * 67.80 [16:22:02]line = 500.36 [16:22:02]line НДС 12% НСП 1% [16:22:02]line > о реализуемом товаре [16:22:02]line ОКРУГЛЕНИЕ: -0.36 [16:22:02]line ИТОГО: 500.00 [16:22:02]line Внесено: 500.00 [16:22:02]line СДАЧА: 0.00 [16:22:02]line НСП 1% : 4.43 [16:22:02]line НДС 12% : 53.14 [16:22:02]line Наличными: 500.00 [16:22:02]line Безнал.: 0.00 [16:22:02]line Место: АЗС № 134 "Партнер Нефть" [16:22:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:22:02]line СНО: Общий режим [16:22:02]line Чек 192 30.07.2024 16:22 [16:22:02]line Смена: 435 ФФД: 1.0 [16:22:02]line ЗНМ: 0300000044 [16:22:02]line РНМ: 0000000000092660 [16:22:02]line Версия ККМ: 001 [16:22:02]line ФМ: 0000000000874939 [16:22:02]line ФД: 119140 [16:22:02]line ФПД: 121931032694969 [16:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162200&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119140&fm=121931032694969&tin=02508201610067®Number=0000000000092660&sum=50000 [16:22:02]written 0, free lines is 4095 [16:22:02]Write to MH i2c: 01 00 00 E6 04 EA [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: 01 07 00 E6 04 00 00 00 00 00 D8 0C D5 [16:22:02]RasterBufferAndPrint [16:22:02]line [16:22:02]line [16:22:02]line [16:22:02]line [16:22:02]line [16:22:02]written 0, free lines is 3297 [16:22:02]MH_Cut [16:22:02]Write to MH i2c: D1 01 00 ED 04 01 C3 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: D1 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: D1 01 00 [16:22:02]MH_I2C_Read... [16:22:02]Read from MH i2c: D1 01 00 ED 04 00 C2 [16:22:02]Write to MH i2c: 01 00 00 EE 04 F2 [16:22:02]Write i2c OK [16:22:02]MH_I2C_Read... [16:22:03]Connected sock=11 [16:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1C F9 07 01 CE B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 28 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D1 01 00 35 04 06 00 6E E5 47 E4 10 B9 4A 06 EC 8B 43 93 E3 EE [16:22:03]*** Cut start [16:22:03]*** Partial cut [16:22:03]*** CUTSNS_PIN = 1 [16:22:03]*** CUTSNS_PIN = 0 [16:22:03]*** Brake cut motor [16:22:04]Read from MH i2c: 01 [16:22:04]MH_I2C_Read... [16:22:04]*** Stop cut motor [16:22:04]*** Cut end [16:22:04]Read from MH i2c: 01 07 00 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 FF 0F 07 [16:22:04]process_action close_receipt done [16:22:04]requested_data is exist [16:22:04]produce_requested_data [16:22:04]requested_item fm.sn is exist - process it [16:22:04]wFMCommunicate request_size=4 [16:22:04]MH_SAM_APDU [16:22:04]CAPDU: 80 11 00 00 [16:22:04]Write to MH i2c: E2 08 00 EF 04 80 11 00 00 00 00 00 00 6D [16:22:04]Write i2c OK [16:22:04]MH_I2C_Read... [16:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:04]Read from MH i2c: E2 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: E2 17 00 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: E2 17 00 EF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C8 [16:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:04]wFMCommunicate OK [16:22:04]requested_item fd.num is exist - process it [16:22:04]SAM_PROTO_GetFieldsCounters [16:22:04]wFMCommunicate request_size=4 [16:22:04]MH_SAM_APDU [16:22:04]CAPDU: 80 13 00 00 [16:22:04]Write to MH i2c: E2 08 00 F0 04 80 13 00 00 00 00 00 00 70 [16:22:04]Write i2c OK [16:22:04]MH_I2C_Read... [16:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:04]Read from MH i2c: E2 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: E2 62 00 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: E2 62 00 F0 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:22:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 64 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:04]wFMCommunicate OK [16:22:04]SAM_PROTO_GetFieldsCounters done [16:22:04]requested_item shift.num is exist - process it [16:22:04]requested_item shift.opened is exist - process it [16:22:04]req_shift_opened [16:22:04]FM_GetShiftState [16:22:04]SAM_PROTO_GetShiftState [16:22:04]wFMCommunicate request_size=4 [16:22:04]MH_SAM_APDU [16:22:04]CAPDU: 80 13 01 00 [16:22:04]Write to MH i2c: E2 08 00 F1 04 80 13 01 00 00 00 00 00 72 [16:22:04]Write i2c OK [16:22:04]MH_I2C_Read... [16:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:04]Read from MH i2c: E2 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: E2 0E 00 [16:22:04]MH_I2C_Read... [16:22:04]Read from MH i2c: E2 0E 00 F1 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3D [16:22:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:22:04]wFMCommunicate OK [16:22:04]SAM_PROTO_GetShiftState done [16:22:04]FM_GetShiftState done [16:22:04]req_shift_opened done [16:22:04]requested_item shift.open_date is exist - process it [16:22:04]req_shift_open_date [16:22:04]req_shift_open_date done [16:22:04]produce_requested_data done [16:22:04]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119140,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:22:04]process_action_free close_receipt [16:22:04]json_value_free [16:22:04]json_value_free done [16:22:04]process_json_proto returns [16:22:04]Send response to host [16:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119140,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:22:04]free response buf [16:22:04]execute_script done [16:22:04]execute_script returns [16:22:04]free content buf [16:22:04]Sock 7.Close socket [16:22:04]Sock 7.Thread stoped [16:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F5 85 47 00 05 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 64 D1 01 00 F4 03 04 00 B4 C0 A8 66 B6 04 01 00 00 51 AC 03 81 FE 14 8A 89 [16:22:05]CommunicateWithHost err = 0 [16:22:05]CheckOFDResponse [16:22:05]1017 (14) - 77093643461234 [16:22:05]1041 (16) - 0000000000874939 [16:22:05]1040 (4) - 119140 [16:22:05]1012 (4) - 30.07.2024 10:30 [16:22:05]1206 (1) - 0 [16:22:05]OFD Sender: Remove packet 119140 [16:22:05]ProducePacketName [16:22:05]name=ofd_packets/00119140 [16:22:05]NVStorageDeleteData [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:17]accept exits with 9 [16:22:17]New connection [16:22:17]New thread 3066740068 created [16:22:17]Thread 3066883428 joined [16:22:17]Waiting for new connection... [16:22:17] Sock 9.Parse request [16:22:17]Sock 9.Check first char [16:22:17]Sock 9.First char is OK [16:22:17]request: POST /json_proto HTTP/1.0 [16:22:17]Method: POST [16:22:17]URL: /json_proto [16:22:17]Method is POST - this is cgi request [16:22:17]url: /json_proto [16:22:17]query_string will be loaded in cgi processing [16:22:17]execute_cgi json_proto POST (null) [16:22:17]execute_cgi path=json_proto method=POST [16:22:17]POST find Content-Length [16:22:17]Host: 172.17.45.7:8080 [16:22:17]Content-Length: 734 [16:22:17]Content-Type: application/json [16:22:17] [16:22:17]POST finish read [16:22:17]Found Content-Length = 734 [16:22:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119140, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:17]execute_script... [16:22:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119140, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:17]POST & json_proto [16:22:17]process_json_proto [16:22:17]json parsed OK: [16:22:17]protocol is kg_v1.0 [16:22:17]action value=close_receipt [16:22:17]process_action close_receipt [16:22:17]cmd_close_receipt [16:22:17]MH_GetDate [16:22:17]Write to MH i2c: F0 00 00 F2 04 E5 [16:22:17]Write i2c OK [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: F0 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: F0 09 00 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: F0 09 00 F2 04 00 39 13 A9 66 90 0F 3E 66 8C [16:22:17]GetLastDocTimeStamp 1722356520 [16:22:17]current date 1722356537 [16:22:17]FM_GetShiftState [16:22:17]SAM_PROTO_GetShiftState [16:22:17]wFMCommunicate request_size=4 [16:22:17]MH_SAM_APDU [16:22:17]CAPDU: 80 13 01 00 [16:22:17]Write to MH i2c: E2 08 00 F3 04 80 13 01 00 00 00 00 00 74 [16:22:17]Write i2c OK [16:22:17]MH_I2C_Read... [16:22:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:17]Read from MH i2c: E2 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 0E 00 [16:22:17]MH_I2C_Read... [16:22:17]Read from MH i2c: E2 0E 00 F3 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3F [16:22:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:22:17]wFMCommunicate OK [16:22:17]SAM_PROTO_GetShiftState done [16:22:17]FM_GetShiftState done [16:22:17]opened in 1722298242 [16:22:17]opened+sec_in_day 1722384642 [16:22:17]quantity*price = 50036 [16:22:17]sum+1 = 50037 [16:22:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 193 30.07.2024 16:22 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119140 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119141 ФПД: 199371360225420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162217&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119141&fm=199371360225420&tin=02508201610067®Number=0000000000092660&sum=50000 [16:22:18]StoreToDocumentArchive [16:22:18]shift 435 fd 119141 [16:22:18]save to /storage/0435/doc_00119141 [16:22:18]save last doc name /storage/0435/doc_00119141 to /storage/kkm_last_doc_name [16:22:18]save OK [16:22:18]Clear old archive folders... [16:22:18]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:22:18]tlvbuf is 01704850 [16:22:18]SAM_PROTO_ClearQueue [16:22:18]wFMCommunicate request_size=4 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 09 00 00 [16:22:18]Write to MH i2c: E2 08 00 02 05 80 09 00 00 00 00 00 00 79 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [16:22:18]RAPDU: 90 00 [16:22:18]wFMCommunicate OK [16:22:18]SAM_PROTO_ClearQueue done [16:22:18]KKMCreateOFDPacket [16:22:18]OFDProtocolAddRootSTLVToBuf [16:22:18]FM_MakeSignedData [16:22:18]FM_MakeSignedData [16:22:18]SAM_PROTO_SignData [16:22:18]wFMCommunicate request_size=4 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 0D 01 02 [16:22:18]Write to MH i2c: E2 08 00 03 05 80 0D 01 02 00 00 00 00 81 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [16:22:18]RAPDU: 90 00 [16:22:18]wFMCommunicate OK [16:22:18]wFMCommunicate request_size=255 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 0D 02 02 FA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [16:22:18]Write to MH i2c: E2 02 01 04 05 80 0D 02 02 FA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 6D [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [16:22:18]RAPDU: 90 00 [16:22:18]wFMCommunicate OK [16:22:18]wFMCommunicate request_size=38 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D1 01 00 35 04 06 00 B5 53 C3 1A C8 8C [16:22:18]Write to MH i2c: E2 29 00 05 05 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D1 01 00 35 04 06 00 B5 53 C3 1A C8 8C 00 00 85 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [16:22:18]RAPDU: 90 00 [16:22:18]wFMCommunicate OK [16:22:18]wFMCommunicate request_size=4 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 0D 03 02 [16:22:18]Write to MH i2c: E2 08 00 06 05 80 0D 03 02 00 00 00 00 86 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 0B 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 0B 00 06 05 00 D8 9E EB 3F 7A 67 7B BB 90 00 3E [16:22:18]RAPDU: D8 9E EB 3F 7A 67 7B BB 90 00 [16:22:18]wFMCommunicate OK [16:22:18]SAM_PROTO_SignData done [16:22:18]FM_MakeSignedData done [16:22:18]CreateOFDProtocolMessage [16:22:18]wFMCommunicate request_size=4 [16:22:18]MH_SAM_APDU [16:22:18]CAPDU: 80 11 00 00 [16:22:18]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:18]Read from MH i2c: E2 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: E2 17 00 [16:22:18]MH_I2C_Read... [16:22:18]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 34 39 33 39 90 00 E1 [16:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:18]wFMCommunicate OK [16:22:18]CreateOFDProtocolMessage done [16:22:18]OFDSenderStorePacket 119141 [16:22:18]StoreOFDPacket docnum=119141 [16:22:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 92 A5 23 01 1C 60 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D1 01 00 35 04 06 00 B5 53 C3 1A C8 8C D8 9E EB 3F 7A 67 7B BB [16:22:18]CheckFolder [16:22:18]dirname=/storage/ofd_packets [16:22:18]CheckFolder done [16:22:18]ProducePacketName [16:22:18]name=ofd_packets/00119141 [16:22:18]NVStorageSaveData ofd_packets/00119141 [16:22:18]File name is /storage/ofd_packets/00119141 [16:22:18]Write 329 bytes [16:22:18]NVStorageSaveData done [16:22:18]OFDSenderStorePacket done [16:22:18]KKMCreateOFDPacket done [16:22:18]NVStorageSaveData kkm_last_timestamp [16:22:18]File name is /storage/kkm_last_timestamp [16:22:18]Write 4 bytes [16:22:18]NVStorageSaveData done [16:22:18]ExternCall_PrintAddStr [16:22:18]wPrintStart [16:22:18]Write to MH i2c: 01 00 00 08 05 0D [16:22:18]Write i2c OK [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: 01 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: 01 07 00 [16:22:18]MH_I2C_Read... [16:22:18]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 FF 0F 22 [16:22:18]RasterBufferAndPrint [16:22:18]line Счет N : (1)950059 [16:22:18]line ИНН: 02508201610067 [16:22:18]line Контрольно-Кассовый Чек [16:22:18]line ВОЗВРАТ ПРОДАЖИ [16:22:18]line ТРК (МРК, ГНК) : 51 [16:22:18]line Товар: 2710124130 [16:22:18]line Аи-92-К-4 [16:22:18]line 7.380 * 67.80 [16:22:18]line = 500.36 [16:22:18]line НДС 12% НСП 1% [16:22:18]line > о реализуемом товаре [16:22:18]line ОКРУГЛЕНИЕ: -0.36 [16:22:18]line ИТОГО: 500.00 [16:22:18]line НСП 1% : 4.43 [16:22:18]line НДС 12% : 53.14 [16:22:18]line Наличными: 500.00 [16:22:18]line Безнал.: 0.00 [16:22:18]line Место: АЗС № 134 "Партнер Нефть" [16:22:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:22:18]line СНО: Общий режим [16:22:18]line Чек 193 30.07.2024 16:22 [16:22:18]line Смена: 435 ФФД: 1.0 [16:22:18]line ЗНМ: 0300000044 [16:22:18]line РНМ: 0000000000092660 [16:22:18]line Версия ККМ: 001 [16:22:18]line ФД осн.: 119140 [16:22:18]line ФМ осн.: 0000000000874939 [16:22:18]line ФМ: 0000000000874939 [16:22:18]line ФД: 119141 [16:22:18]line ФПД: 199371360225420 [16:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162217&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119141&fm=199371360225420&tin=02508201610067®Number=0000000000092660&sum=50000 [16:22:19]OFD Sender: Processing packet 119141 [packets to send 86, broken 85] [16:22:19]ProducePacketName [16:22:19]name=ofd_packets/00119141 [16:22:19]OFD Sender: To server: pG, [16:22:19]CommunicateWithHost lk.salyk.kg:30040 [16:22:19]ConnectInit lk.salyk.kg [16:22:19]written 0, free lines is 4095 [16:22:19]Write to MH i2c: 01 00 00 32 05 37 [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: 01 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: 01 07 00 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 E7 0C 31 [16:22:19]RasterBufferAndPrint [16:22:19]line [16:22:19]line [16:22:19]line [16:22:19]line [16:22:19]line [16:22:19]written 0, free lines is 3310 [16:22:19]MH_Cut [16:22:19]Write to MH i2c: D1 01 00 39 05 01 10 [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: D1 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: D1 01 00 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: D1 01 00 39 05 00 0F [16:22:19]Write to MH i2c: 01 00 00 3A 05 3F [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:20]*** Cut start [16:22:20]*** Partial cut [16:22:20]*** CUTSNS_PIN = 1 [16:22:20]*** CUTSNS_PIN = 0 [16:22:20]*** Brake cut motor [16:22:21]Read from MH i2c: 01 [16:22:21]MH_I2C_Read... [16:22:21]*** Stop cut motor [16:22:21]*** Cut end [16:22:21]Read from MH i2c: 01 07 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [16:22:21]process_action close_receipt done [16:22:21]requested_data is exist [16:22:21]produce_requested_data [16:22:21]requested_item fm.sn is exist - process it [16:22:21]wFMCommunicate request_size=4 [16:22:21]MH_SAM_APDU [16:22:21]CAPDU: 80 11 00 00 [16:22:21]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 17 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 15 [16:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:21]wFMCommunicate OK [16:22:21]requested_item fd.num is exist - process it [16:22:21]SAM_PROTO_GetFieldsCounters [16:22:21]wFMCommunicate request_size=4 [16:22:21]MH_SAM_APDU [16:22:21]CAPDU: 80 13 00 00 [16:22:21]Write to MH i2c: E2 08 00 3C 05 80 13 00 00 00 00 00 00 BD [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 62 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 62 00 3C 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:22:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 65 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:21]wFMCommunicate OK [16:22:21]SAM_PROTO_GetFieldsCounters done [16:22:21]requested_item shift.num is exist - process it [16:22:21]requested_item shift.opened is exist - process it [16:22:21]req_shift_opened [16:22:21]FM_GetShiftState [16:22:21]SAM_PROTO_GetShiftState [16:22:21]wFMCommunicate request_size=4 [16:22:21]MH_SAM_APDU [16:22:21]CAPDU: 80 13 01 00 [16:22:21]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:21]Read from MH i2c: E2 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 0E 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8A [16:22:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:22:21]wFMCommunicate OK [16:22:21]SAM_PROTO_GetShiftState done [16:22:21]FM_GetShiftState done [16:22:21]req_shift_opened done [16:22:21]requested_item shift.open_date is exist - process it [16:22:21]req_shift_open_date [16:22:21]req_shift_open_date done [16:22:21]produce_requested_data done [16:22:21]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119141,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:22:21]process_action_free close_receipt [16:22:21]json_value_free [16:22:21]json_value_free done [16:22:21]process_json_proto returns [16:22:21]Send response to host [16:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119141,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:22:21]free response buf [16:22:21]execute_script done [16:22:21]execute_script returns [16:22:21]free content buf [16:22:21]Sock 9.Close socket [16:22:21]Sock 9.Thread stoped [16:22:24]ConnectInit Can't take IP for lk.salyk.kg [16:22:24]CommunicateWithHost connect error [16:22:24]CommunicateWithHost err = -1 [16:22:24]OFD Sender: Server communicate error [16:22:27]recv_with_timeout no data received [16:22:29]OFD Sender: Processing packet 119141 [packets to send 86, broken 85] [16:22:29]ProducePacketName [16:22:29]name=ofd_packets/00119141 [16:22:29]OFD Sender: To server: pG, [16:22:29]CommunicateWithHost lk.salyk.kg:30040 [16:22:29]ConnectInit lk.salyk.kg [16:22:30]Connected sock=9 [16:22:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 92 A5 23 01 1C 60 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 39 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 64 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D1 01 00 35 04 06 00 B5 53 C3 1A C8 8C D8 9E EB 3F 7A 67 7B BB [16:22:31]accept exits with 7 [16:22:31]New connection [16:22:31]New thread 3066883428 created [16:22:31]Thread 3066740068 joined [16:22:31]Waiting for new connection... [16:22:31] Sock 7.Parse request [16:22:31]Sock 7.Check first char [16:22:31]Sock 7.First char is OK [16:22:31]request: POST /json_proto HTTP/1.0 [16:22:31]Method: POST [16:22:31]URL: /json_proto [16:22:31]Method is POST - this is cgi request [16:22:31]url: /json_proto [16:22:31]query_string will be loaded in cgi processing [16:22:31]execute_cgi json_proto POST (null) [16:22:31]execute_cgi path=json_proto method=POST [16:22:31]POST find Content-Length [16:22:31]Host: 172.17.45.7:8080 [16:22:31]Content-Length: 682 [16:22:31]Content-Type: application/json [16:22:31] [16:22:31]POST finish read [16:22:31]Found Content-Length = 682 [16:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:22:31]execute_script... [16:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:22:31]POST & json_proto [16:22:31]process_json_proto [16:22:31]json parsed OK: [16:22:31]protocol is kg_v1.0 [16:22:31]action value=close_receipt [16:22:31]process_action close_receipt [16:22:31]cmd_close_receipt [16:22:31]MH_GetDate [16:22:31]Write to MH i2c: F0 00 00 3E 05 32 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: F0 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: F0 09 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: F0 09 00 3E 05 00 47 13 A9 66 90 0F 3E 66 E7 [16:22:31]GetLastDocTimeStamp 1722356537 [16:22:31]current date 1722356551 [16:22:31]FM_GetShiftState [16:22:31]SAM_PROTO_GetShiftState [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 13 01 00 [16:22:31]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0E 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8C [16:22:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_GetShiftState done [16:22:31]FM_GetShiftState done [16:22:31]opened in 1722298242 [16:22:31]opened+sec_in_day 1722384642 [16:22:31]quantity*price = 100005 [16:22:31]sum+1 = 100006 [16:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 194 30.07.2024 16:22 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119142 ФПД: 90331923233487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162231&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119142&fm=90331923233487&tin=02508201610067®Number=0000000000092660&sum=100000 [16:22:32]StoreToDocumentArchive [16:22:32]shift 435 fd 119142 [16:22:32]save to /storage/0435/doc_00119142 [16:22:32]save last doc name /storage/0435/doc_00119142 to /storage/kkm_last_doc_name [16:22:32]save OK [16:22:32]Clear old archive folders... [16:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:22:32]tlvbuf is 0177F280 [16:22:32]SAM_PROTO_ClearQueue [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 09 00 00 [16:22:32]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_ClearQueue done [16:22:32]KKMCreateOFDPacket [16:22:32]OFDProtocolAddRootSTLVToBuf [16:22:32]FM_MakeSignedData [16:22:32]FM_MakeSignedData [16:22:32]SAM_PROTO_SignData [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 01 02 [16:22:32]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=255 [16:22:32]MH_SAM_APDU [16:22: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 47 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D1 01 00 35 04 06 00 52 [16:22:32]Write to MH i2c: E2 02 01 4E 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 47 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D1 01 00 35 04 06 00 52 00 00 47 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=10 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 02 02 05 28 0A 32 3A CF [16:22:32]Write to MH i2c: E2 0D 00 4F 05 80 0D 02 02 05 00 28 0A 32 3A CF 00 00 45 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 03 02 [16:22:32]Write to MH i2c: E2 08 00 50 05 80 0D 03 02 00 00 00 00 D0 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 50 05 00 78 80 90 34 D3 E5 9A 8C 90 00 6B [16:22:32]RAPDU: 78 80 90 34 D3 E5 9A 8C 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_SignData done [16:22:32]FM_MakeSignedData done [16:22:32]CreateOFDProtocolMessage [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 11 00 00 [16:22:32]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2B [16:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:32]wFMCommunicate OK [16:22:32]CreateOFDProtocolMessage done [16:22:32]OFDSenderStorePacket 119142 [16:22:32]StoreOFDPacket docnum=119142 [16:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9F 3B 07 01 11 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 47 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D1 01 00 35 04 06 00 52 28 0A 32 3A CF 78 80 90 34 D3 E5 9A 8C [16:22:32]CheckFolder [16:22:32]dirname=/storage/ofd_packets [16:22:32]CheckFolder done [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00119142 [16:22:32]NVStorageSaveData ofd_packets/00119142 [16:22:32]File name is /storage/ofd_packets/00119142 [16:22:32]Write 301 bytes [16:22:32]NVStorageSaveData done [16:22:32]OFDSenderStorePacket done [16:22:32]KKMCreateOFDPacket done [16:22:32]NVStorageSaveData kkm_last_timestamp [16:22:32]File name is /storage/kkm_last_timestamp [16:22:32]Write 4 bytes [16:22:32]NVStorageSaveData done [16:22:32]ExternCall_PrintAddStr [16:22:32]wPrintStart [16:22:32]Write to MH i2c: 01 00 00 52 05 57 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [16:22:32]RasterBufferAndPrint [16:22:32]line Счет N : (1)950060 [16:22:32]line ИНН: 02508201610067 [16:22:32]line Контрольно-Кассовый Чек [16:22:32]line ПРОДАЖА [16:22:32]line ТРК (МРК, ГНК) : 41 [16:22:32]line Товар: 2710124130 [16:22:32]line Аи-92-К-4 [16:22:32]line 14.750 * 67.80 [16:22:32]line = 1000.05 [16:22:32]line НДС 12% НСП 1% [16:22:32]line > о реализуемом товаре [16:22:32]line ОКРУГЛЕНИЕ: -0.05 [16:22:32]line ИТОГО: 1000.00 [16:22:32]line Внесено: 1000.00 [16:22:32]line СДАЧА: 0.00 [16:22:32]line НСП 1% : 8.85 [16:22:32]line НДС 12% : 106.20 [16:22:33]line Наличными: 1000.00 [16:22:33]line Безнал.: 0.00 [16:22:33]line Место: АЗС № 134 "Партнер Нефть" [16:22:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:22:33]line СНО: Общий режим [16:22:33]line Чек 194 30.07.2024 16:22 [16:22:33]line Смена: 435 ФФД: 1.0 [16:22:33]line ЗНМ: 0300000044 [16:22:33]line РНМ: 0000000000092660 [16:22:33]line Версия ККМ: 001 [16:22:33]line ФМ: 0000000000874939 [16:22:33]line ФД: 119142 [16:22:33]line ФПД: 90331923233487 [16:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162231&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119142&fm=90331923233487&tin=02508201610067®Number=0000000000092660&sum=100000 [16:22:33]written 0, free lines is 4095 [16:22:33]Write to MH i2c: 01 00 00 7C 05 81 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 EB 0C 7F [16:22:33]RasterBufferAndPrint [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]written 0, free lines is 3318 [16:22:33]MH_Cut [16:22:33]Write to MH i2c: D1 01 00 83 05 01 5A [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: D1 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: D1 01 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: D1 01 00 83 05 00 59 [16:22:33]Write to MH i2c: 01 00 00 84 05 89 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:34]*** Cut start [16:22:34]*** Partial cut [16:22:34]*** CUTSNS_PIN = 1 [16:22:34]*** CUTSNS_PIN = 0 [16:22:34]*** Brake cut motor [16:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 95 62 47 00 FB 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 65 D1 01 00 F4 03 04 00 D0 C0 A8 66 B6 04 01 00 00 8F AB 8C 40 B7 98 74 23 [16:22:34]CommunicateWithHost err = 0 [16:22:34]CheckOFDResponse [16:22:34]1017 (14) - 77093643461234 [16:22:34]1041 (16) - 0000000000874939 [16:22:34]1040 (4) - 119141 [16:22:34]1012 (4) - 30.07.2024 10:30 [16:22:34]1206 (1) - 0 [16:22:34]OFD Sender: Remove packet 119141 [16:22:34]ProducePacketName [16:22:34]name=ofd_packets/00119141 [16:22:34]NVStorageDeleteData [16:22:34]Read from MH i2c: 01 [16:22:34]MH_I2C_Read... [16:22:34]*** Stop cut motor [16:22:34]*** Cut end [16:22:34]Read from MH i2c: 01 07 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 FF 0F 9E [16:22:34]process_action close_receipt done [16:22:34]requested_data is exist [16:22:34]produce_requested_data [16:22:34]requested_item fm.sn is exist - process it [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 11 00 00 [16:22:34]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 17 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5F [16:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:22:34]wFMCommunicate OK [16:22:34]requested_item fd.num is exist - process it [16:22:34]SAM_PROTO_GetFieldsCounters [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 00 00 [16:22:34]Write to MH i2c: E2 08 00 86 05 80 13 00 00 00 00 00 00 07 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:35]Read from MH i2c: E2 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 62 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 62 00 86 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 66 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:35]wFMCommunicate OK [16:22:35]SAM_PROTO_GetFieldsCounters done [16:22:35]requested_item shift.num is exist - process it [16:22:35]requested_item shift.opened is exist - process it [16:22:35]req_shift_opened [16:22:35]FM_GetShiftState [16:22:35]SAM_PROTO_GetShiftState [16:22:35]wFMCommunicate request_size=4 [16:22:35]MH_SAM_APDU [16:22:35]CAPDU: 80 13 01 00 [16:22:35]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [16:22:35]Write i2c OK [16:22:35]MH_I2C_Read... [16:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:35]Read from MH i2c: E2 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 0E 00 [16:22:35]MH_I2C_Read... [16:22:35]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D4 [16:22:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:22:35]wFMCommunicate OK [16:22:35]SAM_PROTO_GetShiftState done [16:22:35]FM_GetShiftState done [16:22:35]req_shift_opened done [16:22:35]requested_item shift.open_date is exist - process it [16:22:35]req_shift_open_date [16:22:35]req_shift_open_date done [16:22:35]produce_requested_data done [16:22:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119142,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:22:35]process_action_free close_receipt [16:22:35]json_value_free [16:22:35]json_value_free done [16:22:35]process_json_proto returns [16:22:35]Send response to host [16:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119142,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:22:35]free response buf [16:22:35]execute_script done [16:22:35]execute_script returns [16:22:35]free content buf [16:22:35]Sock 7.Close socket [16:22:35]Sock 7.Thread stoped [16:22:35]OFD Sender: Processing packet 119142 [packets to send 86, broken 85] [16:22:35]ProducePacketName [16:22:35]name=ofd_packets/00119142 [16:22:35]OFD Sender: To server: pG, [16:22:35]CommunicateWithHost lk.salyk.kg:30040 [16:22:35]ConnectInit lk.salyk.kg [16:22:35]Connected sock=7 [16:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 9F 3B 07 01 11 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 47 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D1 01 00 35 04 06 00 52 28 0A 32 3A CF 78 80 90 34 D3 E5 9A 8C [16:22:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CF 6D 47 00 0D 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 66 D1 01 00 F4 03 04 00 D5 C0 A8 66 B6 04 01 00 00 5F 25 0B 1F C6 DC D4 0D [16:22:37]CommunicateWithHost err = 0 [16:22:37]CheckOFDResponse [16:22:37]1017 (14) - 77093643461234 [16:22:37]1041 (16) - 0000000000874939 [16:22:37]1040 (4) - 119142 [16:22:37]1012 (4) - 30.07.2024 10:30 [16:22:37]1206 (1) - 0 [16:22:37]OFD Sender: Remove packet 119142 [16:22:37]ProducePacketName [16:22:37]name=ofd_packets/00119142 [16:22:37]NVStorageDeleteData [16:22:37]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:08]OFD Sender: No OFD packet to send [16:23:11]accept exits with 10 [16:23:11]New connection [16:23:11]New thread 3066740068 created [16:23:11]Thread 3066883428 joined [16:23:11]Waiting for new connection... [16:23:11] Sock 10.Parse request [16:23:11]Sock 10.Check first char [16:23:11]Sock 10.First char is OK [16:23:11]request: POST /json_proto HTTP/1.0 [16:23:11]Method: POST [16:23:11]URL: /json_proto [16:23:11]Method is POST - this is cgi request [16:23:11]url: /json_proto [16:23:11]query_string will be loaded in cgi processing [16:23:11]execute_cgi json_proto POST (null) [16:23:11]execute_cgi path=json_proto method=POST [16:23:11]POST find Content-Length [16:23:11]Host: 172.17.45.7:8080 [16:23:11]Content-Length: 674 [16:23:11]Content-Type: application/json [16:23:11] [16:23:11]POST finish read [16:23:11]Found Content-Length = 674 [16:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:11]execute_script... [16:23: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)950061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:11]POST & json_proto [16:23:11]process_json_proto [16:23:11]json parsed OK: [16:23:11]protocol is kg_v1.0 [16:23:11]action value=close_receipt [16:23:11]process_action close_receipt [16:23:11]cmd_close_receipt [16:23:11]MH_GetDate [16:23:11]Write to MH i2c: F0 00 00 88 05 7C [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: F0 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: F0 09 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: F0 09 00 88 05 00 70 13 A9 66 90 0F 3E 66 5A [16:23:11]GetLastDocTimeStamp 1722356551 [16:23:11]current date 1722356592 [16:23:11]FM_GetShiftState [16:23:11]SAM_PROTO_GetShiftState [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 13 01 00 [16:23:11]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 0E 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D6 [16:23:11]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:23:11]wFMCommunicate OK [16:23:11]SAM_PROTO_GetShiftState done [16:23:11]FM_GetShiftState done [16:23:11]opened in 1722298242 [16:23:11]opened+sec_in_day 1722384642 [16:23:11]quantity*price = 60045 [16:23:11]sum+1 = 60047 [16:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 195 30.07.2024 16:23 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119143 ФПД: 7503358970986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162312&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119143&fm=7503358970986&tin=02508201610067®Number=0000000000092660&sum=60000 [16:23:12]StoreToDocumentArchive [16:23:12]shift 435 fd 119143 [16:23:12]save to /storage/0435/doc_00119143 [16:23:12]save last doc name /storage/0435/doc_00119143 to /storage/kkm_last_doc_name [16:23:12]save OK [16:23:12]Clear old archive folders... [16:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:23:12]tlvbuf is 01758150 [16:23:12]SAM_PROTO_ClearQueue [16:23:12]wFMCommunicate request_size=4 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 09 00 00 [16:23:12]Write to MH i2c: E2 08 00 96 05 80 09 00 00 00 00 00 00 0D [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:12]Read from MH i2c: E2 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 03 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [16:23:12]RAPDU: 90 00 [16:23:12]wFMCommunicate OK [16:23:12]SAM_PROTO_ClearQueue done [16:23:12]KKMCreateOFDPacket [16:23:12]OFDProtocolAddRootSTLVToBuf [16:23:12]FM_MakeSignedData [16:23:12]FM_MakeSignedData [16:23:12]SAM_PROTO_SignData [16:23:12]wFMCommunicate request_size=4 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 0D 01 02 [16:23:12]Write to MH i2c: E2 08 00 97 05 80 0D 01 02 00 00 00 00 15 [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:12]Read from MH i2c: E2 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 03 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [16:23:12]RAPDU: 90 00 [16:23:12]wFMCommunicate OK [16:23:12]wFMCommunicate request_size=255 [16:23:12]MH_SAM_APDU [16:23:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 70 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D1 01 00 35 04 06 00 06 D3 03 0B [16:23:12]Write to MH i2c: E2 02 01 98 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 70 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D1 01 00 35 04 06 00 06 D3 03 0B 00 00 8F [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]OFD Sender: No OFD packet to send [16:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [16:23:13]RAPDU: 90 00 [16:23:13]wFMCommunicate OK [16:23:13]wFMCommunicate request_size=7 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 0D 02 02 02 CC 6A [16:23:13]Write to MH i2c: E2 0A 00 99 05 80 0D 02 02 02 00 CC 6A 00 00 52 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:13]Read from MH i2c: E2 03 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [16:23:13]RAPDU: 90 00 [16:23:13]wFMCommunicate OK [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 0D 03 02 [16:23:13]Write to MH i2c: E2 08 00 9A 05 80 0D 03 02 00 00 00 00 1A [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 0B 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 0B 00 9A 05 00 38 09 F1 F4 0E A0 40 16 90 00 45 [16:23:13]RAPDU: 38 09 F1 F4 0E A0 40 16 90 00 [16:23:13]wFMCommunicate OK [16:23:13]SAM_PROTO_SignData done [16:23:13]FM_MakeSignedData done [16:23:13]CreateOFDProtocolMessage [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 11 00 00 [16:23:13]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 17 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 75 [16:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:23:13]wFMCommunicate OK [16:23:13]CreateOFDProtocolMessage done [16:23:13]OFDSenderStorePacket 119143 [16:23:13]StoreOFDPacket docnum=119143 [16:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A4 A5 04 01 A2 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 70 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D1 01 00 35 04 06 00 06 D3 03 0B CC 6A 38 09 F1 F4 0E A0 40 16 [16:23:13]CheckFolder [16:23:13]dirname=/storage/ofd_packets [16:23:13]CheckFolder done [16:23:13]ProducePacketName [16:23:13]name=ofd_packets/00119143 [16:23:13]NVStorageSaveData ofd_packets/00119143 [16:23:13]File name is /storage/ofd_packets/00119143 [16:23:13]Write 298 bytes [16:23:13]NVStorageSaveData done [16:23:13]OFDSenderStorePacket done [16:23:13]KKMCreateOFDPacket done [16:23:13]NVStorageSaveData kkm_last_timestamp [16:23:13]File name is /storage/kkm_last_timestamp [16:23:13]Write 4 bytes [16:23:13]NVStorageSaveData done [16:23:13]ExternCall_PrintAddStr [16:23:13]wPrintStart [16:23:13]Write to MH i2c: 01 00 00 9C 05 A1 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [16:23:13]RasterBufferAndPrint [16:23:13]line Счет N : (1)950061 [16:23:13]line ИНН: 02508201610067 [16:23:13]line Контрольно-Кассовый Чек [16:23:13]line ПРОДАЖА [16:23:13]line ТРК (МРК, ГНК) : 34 [16:23:13]line Товар: 2710194800 [16:23:13]line ДТ-К-5 [16:23:13]line 7.880 * 76.20 [16:23:13]line = 600.46 [16:23:13]line НДС 12% НСП 1% [16:23:13]line > о реализуемом товаре [16:23:13]line ОКРУГЛЕНИЕ: -0.46 [16:23:13]line ИТОГО: 600.00 [16:23:13]line Внесено: 600.00 [16:23:13]line СДАЧА: 0.00 [16:23:13]line НСП 1% : 5.31 [16:23:13]line НДС 12% : 63.77 [16:23:13]line Наличными: 600.00 [16:23:13]line Безнал.: 0.00 [16:23:13]line Место: АЗС № 134 "Партнер Нефть" [16:23:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:23:13]line СНО: Общий режим [16:23:13]line Чек 195 30.07.2024 16:23 [16:23:13]line Смена: 435 ФФД: 1.0 [16:23:13]line ЗНМ: 0300000044 [16:23:13]line РНМ: 0000000000092660 [16:23:13]line Версия ККМ: 001 [16:23:13]line ФМ: 0000000000874939 [16:23:13]line ФД: 119143 [16:23:13]line ФПД: 7503358970986 [16:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162312&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119143&fm=7503358970986&tin=02508201610067®Number=0000000000092660&sum=60000 [16:23:13]written 0, free lines is 4095 [16:23:13]OFD Sender: Processing packet 119143 [packets to send 86, broken 85] [16:23:13]ProducePacketName [16:23:13]name=ofd_packets/00119143 [16:23:13]OFD Sender: To server: pG, [16:23:13]CommunicateWithHost lk.salyk.kg:30040 [16:23:13]ConnectInit lk.salyk.kg [16:23:13]Write to MH i2c: 01 00 00 C6 05 CB [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 C6 05 00 00 00 00 00 DD 0C BB [16:23:13]RasterBufferAndPrint [16:23:13]line [16:23:13]line [16:23:13]line [16:23:13]line [16:23:13]line [16:23:13]written 0, free lines is 3302 [16:23:13]MH_Cut [16:23:13]Write to MH i2c: D1 01 00 CD 05 01 A4 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: D1 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: D1 01 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: D1 01 00 CD 05 00 A3 [16:23:13]Write to MH i2c: 01 00 00 CE 05 D3 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]Connected sock=9 [16:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 A4 A5 04 01 A2 6A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 70 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D1 01 00 35 04 06 00 06 D3 03 0B CC 6A 38 09 F1 F4 0E A0 40 16 [16:23:14]*** Cut start [16:23:14]*** Partial cut [16:23:14]*** CUTSNS_PIN = 1 [16:23:14]*** CUTSNS_PIN = 0 [16:23:14]*** Brake cut motor [16:23:15]Read from MH i2c: 01 [16:23:15]MH_I2C_Read... [16:23:15]*** Stop cut motor [16:23:15]*** Cut end [16:23:15]Read from MH i2c: 01 07 00 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: 01 07 00 CE 05 00 00 00 00 00 FF 0F E8 [16:23:15]process_action close_receipt done [16:23:15]requested_data is exist [16:23:15]produce_requested_data [16:23:15]requested_item fm.sn is exist - process it [16:23:15]wFMCommunicate request_size=4 [16:23:15]MH_SAM_APDU [16:23:15]CAPDU: 80 11 00 00 [16:23:15]Write to MH i2c: E2 08 00 CF 05 80 11 00 00 00 00 00 00 4E [16:23:15]Write i2c OK [16:23:15]MH_I2C_Read... [16:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:15]Read from MH i2c: E2 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: E2 17 00 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: E2 17 00 CF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A9 [16:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:23:15]wFMCommunicate OK [16:23:15]requested_item fd.num is exist - process it [16:23:15]SAM_PROTO_GetFieldsCounters [16:23:15]wFMCommunicate request_size=4 [16:23:15]MH_SAM_APDU [16:23:15]CAPDU: 80 13 00 00 [16:23:15]Write to MH i2c: E2 08 00 D0 05 80 13 00 00 00 00 00 00 51 [16:23:15]Write i2c OK [16:23:15]MH_I2C_Read... [16:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:15]Read from MH i2c: E2 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: E2 62 00 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: E2 62 00 D0 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:23:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 67 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:15]wFMCommunicate OK [16:23:15]SAM_PROTO_GetFieldsCounters done [16:23:15]requested_item shift.num is exist - process it [16:23:15]requested_item shift.opened is exist - process it [16:23:15]req_shift_opened [16:23:15]FM_GetShiftState [16:23:15]SAM_PROTO_GetShiftState [16:23:15]wFMCommunicate request_size=4 [16:23:15]MH_SAM_APDU [16:23:15]CAPDU: 80 13 01 00 [16:23:15]Write to MH i2c: E2 08 00 D1 05 80 13 01 00 00 00 00 00 53 [16:23:15]Write i2c OK [16:23:15]MH_I2C_Read... [16:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:15]Read from MH i2c: E2 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: E2 0E 00 [16:23:15]MH_I2C_Read... [16:23:15]Read from MH i2c: E2 0E 00 D1 05 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 1E [16:23:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:23:15]wFMCommunicate OK [16:23:15]SAM_PROTO_GetShiftState done [16:23:15]FM_GetShiftState done [16:23:15]req_shift_opened done [16:23:15]requested_item shift.open_date is exist - process it [16:23:15]req_shift_open_date [16:23:15]req_shift_open_date done [16:23:15]produce_requested_data done [16:23:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119143,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:23:15]process_action_free close_receipt [16:23:15]json_value_free [16:23:15]json_value_free done [16:23:15]process_json_proto returns [16:23:15]Send response to host [16:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119143,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:23:15]free response buf [16:23:15]execute_script done [16:23:15]execute_script returns [16:23:15]free content buf [16:23:15]Sock 10.Close socket [16:23:15]Sock 10.Thread stoped [16:23:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 21 A8 47 00 06 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 67 D1 01 00 F4 03 04 00 FB C0 A8 66 B6 04 01 00 00 14 40 B9 1D DA 3C ED 4C [16:23:15]CommunicateWithHost err = 0 [16:23:15]CheckOFDResponse [16:23:15]1017 (14) - 77093643461234 [16:23:15]1041 (16) - 0000000000874939 [16:23:15]1040 (4) - 119143 [16:23:15]1012 (4) - 30.07.2024 10:31 [16:23:15]1206 (1) - 0 [16:23:15]OFD Sender: Remove packet 119143 [16:23:15]ProducePacketName [16:23:15]name=ofd_packets/00119143 [16:23:15]NVStorageDeleteData [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 7013454+1715343248=1722356702 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 DE 13 A9 66 90 0F 3E 66 42 [16:25:02]Current date/time: 30.07.2024 16:25 [16:25:02]FM_Init [16:25:02]wFMConnect [16:25:02]MH_SAM_On [16:25:02]Write to MH i2c: E0 00 00 08 00 E7 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_init finished! [16:25:02]*** atr: [16:25:02]*** 0F 3B D5 18 FF 81 91 FE [16:25:02]*** 1F C3 80 73 C8 21 10 0A [16:25:02]*** 00 00 00 00 00 00 00 00 [16:25:02]*** 00 00 00 00 00 00 00 00 [16:25:02]*** 00 00 00 00 00 00 00 00 [16:25:02]*** 00 00 00 00 00 00 00 00 [16:25:02]*** 00 00 00 00 00 00 00 00 [16:25:02]*** 00 00 00 00 00 00 00 00 [16:25:02]Read from MH i2c: E0 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E0 10 00 [16:25:02]MH_I2C_Read... [16:25: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 [16:25:02]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:25:02]wFMCommunicate request_size=10 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:25:02]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:25:02]RAPDU: 90 00 [16:25:02]wFMCommunicate OK [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 11 00 00 [16:25:02]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 17 00 [16:25:02]MH_I2C_Read... [16:25: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 34 39 33 39 90 00 DF [16:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:02]wFMCommunicate OK [16:25:02]Detected FM SN is 0000000000874939 [16:25:02]Stored FM SN is 0000000000874939 [16:25:02]wFMCommunicate request_size=9 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 16 00 00 04 38 32 00 00 [16:25:02]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:25:02]RAPDU: 90 00 [16:25:02]wFMCommunicate OK [16:25:02]FM PIN OK [16:25:02]wFMCommunicate request_size=8 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 14 04 00 03 02 00 01 [16:25:02]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:25:02]RAPDU: 90 00 [16:25:02]wFMCommunicate OK [16:25:02]wFMCommunicate request_size=13 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:25: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 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:25:02]RAPDU: 90 00 [16:25:02]wFMCommunicate OK [16:25:02]wFMCommunicate request_size=4 [16:25:02]MH_SAM_APDU [16:25:02]CAPDU: 80 11 00 00 [16:25:02]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:02]Read from MH i2c: E2 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: E2 17 00 [16:25:02]MH_I2C_Read... [16:25: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 34 39 33 39 90 00 E3 [16:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:02]wFMCommunicate OK [16:25:02]DocumentArchiveInit [16:25:02]Start Httpd... [16:25:02]Httpd thread 3067317604 created [16:25:02]Write to MH i2c: 01 00 00 0F 00 0F [16:25:02]Write i2c OK [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 07 00 [16:25:02]MH_I2C_Read... [16:25:02]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:25:02]MH Int Process started [16:25:02]Allocated Socket 8 [16:25:02]Bind OK [16:25:02]Listen OK [16:25:02]httpd running on port 8080 [16:25:02]Waiting for new connection... [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:07]accept exits with 9 [16:25:07]New connection [16:25:07]New thread 3067030884 created [16:25:07]Waiting for new connection... [16:25:07] Sock 9.Parse request [16:25:07]Sock 9.Check first char [16:25:07]Sock 9.First char is OK [16:25:07]request: POST /json_proto HTTP/1.0 [16:25:07]Method: POST [16:25:07]URL: /json_proto [16:25:07]Method is POST - this is cgi request [16:25:07]url: /json_proto [16:25:07]query_string will be loaded in cgi processing [16:25:07]execute_cgi json_proto POST (null) [16:25:07]execute_cgi path=json_proto method=POST [16:25:07]POST find Content-Length [16:25:07]Host: 172.17.45.7:8080 [16:25:07]Content-Length: 677 [16:25:07]Content-Type: application/json [16:25:07] [16:25:07]POST finish read [16:25:07]Found Content-Length = 677 [16:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:25:07]execute_script... [16:25: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)950063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:25:07]POST & json_proto [16:25:07]process_json_proto [16:25:07]json parsed OK: [16:25:07]protocol is kg_v1.0 [16:25:07]action value=close_receipt [16:25:07]process_action close_receipt [16:25:07]cmd_close_receipt [16:25:07]MH_GetDate [16:25:07]Write to MH i2c: F0 00 00 10 00 FF [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 09 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 09 00 10 00 00 E4 13 A9 66 90 0F 3E 66 51 [16:25:07]GetLastDocTimeStamp 1722356592 [16:25:07]current date 1722356708 [16:25:07]FM_GetShiftState [16:25:07]SAM_PROTO_GetShiftState [16:25:07]wFMCommunicate request_size=4 [16:25:07]MH_SAM_APDU [16:25:07]CAPDU: 80 13 01 00 [16:25:07]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:07]Read from MH i2c: E2 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 59 [16:25:07]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:25:07]wFMCommunicate OK [16:25:07]SAM_PROTO_GetShiftState done [16:25:07]FM_GetShiftState done [16:25:07]opened in 1722298242 [16:25:07]opened+sec_in_day 1722384642 [16:25:07]quantity*price = 30035 [16:25:07]sum+1 = 30036 [16:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 196 30.07.2024 16:25 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119144 ФПД: 191999012835014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119144&fm=191999012835014&tin=02508201610067®Number=0000000000092660&sum=30000 [16:25:09]StoreToDocumentArchive [16:25:09]shift 435 fd 119144 [16:25:09]save to /storage/0435/doc_00119144 [16:25:09]save last doc name /storage/0435/doc_00119144 to /storage/kkm_last_doc_name [16:25:09]save OK [16:25:09]Clear old archive folders... [16:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:09]tlvbuf is 00E5FF80 [16:25:09]SAM_PROTO_ClearQueue [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 09 00 00 [16:25:09]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]SAM_PROTO_ClearQueue done [16:25:09]KKMCreateOFDPacket [16:25:09]OFDProtocolAddRootSTLVToBuf [16:25:09]FM_MakeSignedData [16:25:09]FM_MakeSignedData [16:25:09]SAM_PROTO_SignData [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 01 02 [16:25:09]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=255 [16:25:09]MH_SAM_APDU [16:25: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 C4 00 00 00 F4 03 04 00 E4 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D1 01 00 35 04 06 00 AE [16:25:09]Write to MH i2c: E2 02 01 20 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 C4 00 00 00 F4 03 04 00 E4 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D1 01 00 35 04 06 00 AE 00 00 A1 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=10 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 02 02 05 9F 40 F5 0E C6 [16:25:09]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 9F 40 F5 0E C6 00 00 4D [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [16:25:09]RAPDU: 90 00 [16:25:09]wFMCommunicate OK [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 0D 03 02 [16:25:09]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 0B 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 0B 00 22 00 00 AC D5 4E 05 6F C6 8D 45 90 00 79 [16:25:09]RAPDU: AC D5 4E 05 6F C6 8D 45 90 00 [16:25:09]wFMCommunicate OK [16:25:09]SAM_PROTO_SignData done [16:25:09]FM_MakeSignedData done [16:25:09]CreateOFDProtocolMessage [16:25:09]wFMCommunicate request_size=4 [16:25:09]MH_SAM_APDU [16:25:09]CAPDU: 80 11 00 00 [16:25:09]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 17 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F8 [16:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:09]wFMCommunicate OK [16:25:09]CreateOFDProtocolMessage done [16:25:09]OFDSenderStorePacket 119144 [16:25:09]StoreOFDPacket docnum=119144 [16:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC 73 07 01 B9 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 C4 00 00 00 F4 03 04 00 E4 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D1 01 00 35 04 06 00 AE 9F 40 F5 0E C6 AC D5 4E 05 6F C6 8D 45 [16:25:09]CheckFolder [16:25:09]dirname=/storage/ofd_packets [16:25:09]CheckFolder done [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00119144 [16:25:09]NVStorageSaveData ofd_packets/00119144 [16:25:09]File name is /storage/ofd_packets/00119144 [16:25:09]Write 301 bytes [16:25:09]NVStorageSaveData done [16:25:09]OFDSenderStorePacket done [16:25:09]KKMCreateOFDPacket done [16:25:09]NVStorageSaveData kkm_last_timestamp [16:25:09]File name is /storage/kkm_last_timestamp [16:25:09]OFD Sender: Processing packet 119144 [packets to send 86, broken 85] [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00119144 [16:25:09]OFD Sender: To server: pG, [16:25:09]CommunicateWithHost lk.salyk.kg:30040 [16:25:09]ConnectInit lk.salyk.kg [16:25:09]Write 4 bytes [16:25:09]NVStorageSaveData done [16:25:09]ExternCall_PrintAddStr [16:25:09]wPrintStart [16:25:09]Write to MH i2c: 01 00 00 24 00 24 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [16:25:09]RasterBufferAndPrint [16:25:09]line Счет N : (1)950063 [16:25:09]line ИНН: 02508201610067 [16:25:09]line Контрольно-Кассовый Чек [16:25:09]line ПРОДАЖА [16:25:09]line ТРК (МРК, ГНК) : 31 [16:25:09]line Товар: 2710124130 [16:25:09]line Аи-92-К-4 [16:25:09]line 4.430 * 67.80 [16:25:09]line = 300.35 [16:25:09]line НДС 12% НСП 1% [16:25:09]line > о реализуемом товаре [16:25:09]line ОКРУГЛЕНИЕ: -0.35 [16:25:09]line ИТОГО: 300.00 [16:25:09]line Внесено: 300.00 [16:25:09]line СДАЧА: 0.00 [16:25:09]line НСП 1% : 2.66 [16:25:09]line НДС 12% : 31.90 [16:25:09]line Наличными: 300.00 [16:25:09]line Безнал.: 0.00 [16:25:09]line Место: АЗС № 134 "Партнер Нефть" [16:25:09]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:25:09]line СНО: Общий режим [16:25:09]line Чек 196 30.07.2024 16:25 [16:25:09]line Смена: 435 ФФД: 1.0 [16:25:09]line ЗНМ: 0300000044 [16:25:09]line РНМ: 0000000000092660 [16:25:09]line Версия ККМ: 001 [16:25:09]line ФМ: 0000000000874939 [16:25:09]line ФД: 119144 [16:25:09]line ФПД: 191999012835014 [16:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119144&fm=191999012835014&tin=02508201610067®Number=0000000000092660&sum=30000 [16:25:09]written 0, free lines is 4095 [16:25:10]Write to MH i2c: 01 00 00 4E 00 4E [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 DC 0C 3D [16:25:10]RasterBufferAndPrint [16:25:10]line [16:25:10]line [16:25:10]line [16:25:10]line [16:25:10]line [16:25:10]written 0, free lines is 3298 [16:25:10]MH_Cut [16:25:10]Write to MH i2c: D1 01 00 55 00 01 27 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: D1 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: D1 01 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: D1 01 00 55 00 00 26 [16:25:10]Write to MH i2c: 01 00 00 56 00 56 [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** Cut start [16:25:10]*** Partial cut [16:25:10]*** CUTSNS_PIN = 1 [16:25:10]*** CUTSNS_PIN = 0 [16:25:11]*** Brake cut motor [16:25:11]Read from MH i2c: 01 [16:25:11]MH_I2C_Read... [16:25:11]*** Stop cut motor [16:25:11]*** Cut end [16:25:11]Read from MH i2c: 01 07 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [16:25:11]process_action close_receipt done [16:25:11]requested_data is exist [16:25:11]produce_requested_data [16:25:11]requested_item fm.sn is exist - process it [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 11 00 00 [16:25:11]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 17 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2C [16:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:11]wFMCommunicate OK [16:25:11]requested_item fd.num is exist - process it [16:25:11]SAM_PROTO_GetFieldsCounters [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 13 00 00 [16:25:11]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]Connected sock=12 [16:25:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC 73 07 01 B9 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 C4 00 00 00 F4 03 04 00 E4 13 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D1 01 00 35 04 06 00 AE 9F 40 F5 0E C6 AC D5 4E 05 6F C6 8D 45 [16:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 62 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 62 00 58 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [16:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetFieldsCounters done [16:25:11]requested_item shift.num is exist - process it [16:25:11]requested_item shift.opened is exist - process it [16:25:11]req_shift_opened [16:25:11]FM_GetShiftState [16:25:11]SAM_PROTO_GetShiftState [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 13 01 00 [16:25:11]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A1 [16:25:11]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetShiftState done [16:25:11]FM_GetShiftState done [16:25:11]req_shift_opened done [16:25:11]requested_item shift.open_date is exist - process it [16:25:11]req_shift_open_date [16:25:11]req_shift_open_date done [16:25:11]produce_requested_data done [16:25:11]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119144,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:25:11]process_action_free close_receipt [16:25:11]json_value_free [16:25:11]json_value_free done [16:25:11]process_json_proto returns [16:25:11]Send response to host [16:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119144,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:25:11]free response buf [16:25:11]execute_script done [16:25:11]execute_script returns [16:25:11]free content buf [16:25:11]Sock 9.Close socket [16:25:11]Sock 9.Thread stoped [16:25:12]accept exits with 10 [16:25:12]New connection [16:25:12]New thread 3066887524 created [16:25:12]Thread 3067030884 joined [16:25:12]Waiting for new connection... [16:25:12] Sock 10.Parse request [16:25:12]Sock 10.Check first char [16:25:12]Sock 10.First char is OK [16:25:12]request: POST /json_proto HTTP/1.0 [16:25:12]Method: POST [16:25:12]URL: /json_proto [16:25:12]Method is POST - this is cgi request [16:25:12]url: /json_proto [16:25:12]query_string will be loaded in cgi processing [16:25:12]execute_cgi json_proto POST (null) [16:25:12]execute_cgi path=json_proto method=POST [16:25:12]POST find Content-Length [16:25:12]Host: 172.17.45.7:8080 [16:25:12]Content-Length: 215 [16:25:12]Content-Type: application/json [16:25:12] [16:25:12]POST finish read [16:25:12]Found Content-Length = 215 [16:25:12]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:25:12]execute_script... [16:25:12]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:25:12]POST & json_proto [16:25:12]process_json_proto [16:25:12]json parsed OK: [16:25:12]protocol is kg_v1.0 [16:25:12]action value=get_value [16:25:12]process_action get_value [16:25:12]cmd_get_value [16:25:12]process_action get_value done [16:25:12]requested_data is exist [16:25:12]produce_requested_data [16:25:12]requested_item kkm.sn is exist - process it [16:25:12]requested_item kkm.ver is exist - process it [16:25:12]requested_item fm.sn is exist - process it [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 11 00 00 [16:25:12]Write to MH i2c: E2 08 00 5A 00 80 11 00 00 00 00 00 00 D4 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 17 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 17 00 5A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2F [16:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:12]wFMCommunicate OK [16:25:12]requested_item fd.num is exist - process it [16:25:12]SAM_PROTO_GetFieldsCounters [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 13 00 00 [16:25:12]Write to MH i2c: E2 08 00 5B 00 80 13 00 00 00 00 00 00 D7 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 62 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 62 00 5B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [16:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 68 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:12]wFMCommunicate OK [16:25:12]SAM_PROTO_GetFieldsCounters done [16:25:12]requested_item shift.num is exist - process it [16:25:12]requested_item shift.opened is exist - process it [16:25:12]req_shift_opened [16:25:12]FM_GetShiftState [16:25:12]SAM_PROTO_GetShiftState [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 13 01 00 [16:25:12]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 0E 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A4 [16:25:12]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:25:12]wFMCommunicate OK [16:25:12]SAM_PROTO_GetShiftState done [16:25:12]FM_GetShiftState done [16:25:12]req_shift_opened done [16:25:12]requested_item shift.open_date is exist - process it [16:25:12]req_shift_open_date [16:25:12]req_shift_open_date done [16:25:12]produce_requested_data done [16:25:12]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119144,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:25:12]process_action_free get_value [16:25:12]json_value_free [16:25:12]json_value_free done [16:25:12]process_json_proto returns [16:25:12]Send response to host [16:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119144,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:25:12]free response buf [16:25:12]execute_script done [16:25:12]execute_script returns [16:25:12]free content buf [16:25:12]Sock 10.Close socket [16:25:12]Sock 10.Thread stoped [16:25:12]accept exits with 5 [16:25:12]New connection [16:25:12]New thread 3067030884 created [16:25:12]Thread 3066887524 joined [16:25:12]Waiting for new connection... [16:25:12] Sock 5.Parse request [16:25:12]Sock 5.Check first char [16:25:12]Sock 5.First char is OK [16:25:12]request: POST /json_proto HTTP/1.0 [16:25:12]Method: POST [16:25:12]URL: /json_proto [16:25:12]Method is POST - this is cgi request [16:25:12]url: /json_proto [16:25:12]query_string will be loaded in cgi processing [16:25:12]execute_cgi json_proto POST (null) [16:25:12]execute_cgi path=json_proto method=POST [16:25:12]POST find Content-Length [16:25:12]Host: 172.17.45.7:8080 [16:25:12]Content-Length: 331 [16:25:12]Content-Type: application/json [16:25:12] [16:25:12]POST finish read [16:25:12]Found Content-Length = 331 [16:25: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" ] } } [16:25:12]execute_script... [16:25: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" ] } } [16:25:12]POST & json_proto [16:25:12]process_json_proto [16:25:12]json parsed OK: [16:25:12]protocol is kg_v1.0 [16:25:12]action value=get_value [16:25:12]process_action get_value [16:25:12]cmd_get_value [16:25:12]process_action get_value done [16:25:12]requested_data is exist [16:25:12]produce_requested_data [16:25:12]requested_item fm.sale.total is exist - process it [16:25:12]SAM_PROTO_GetFMData [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 13 03 00 [16:25:12]Write to MH i2c: E2 08 00 5D 00 80 13 03 00 00 00 00 00 DC [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 FD 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 FD 00 5D 00 00 C5 04 85 04 C1 04 6E 04 04 00 02 CE 01 00 69 04 A3 00 6F 04 04 00 68 C0 01 00 B1 04 05 00 90 D5 BD 79 03 70 04 05 00 08 53 C1 A9 02 72 04 04 00 88 82 FC CF 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 5A A3 82 5E 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 F2 16 E0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9A 0D 00 00 B1 04 04 00 88 F4 47 3B 70 04 04 00 88 F4 47 3B 72 04 00 00 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 C4 CB 4B 06 EF 03 09 90 00 83 [16:25:12]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 02 CE 01 00 69 04 A3 00 6F 04 04 00 68 C0 01 00 B1 04 05 00 90 D5 BD 79 03 70 04 05 00 08 53 C1 A9 02 72 04 04 00 88 82 FC CF 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 5A A3 82 5E 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 F2 16 E0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9A 0D 00 00 B1 04 04 00 88 F4 47 3B 70 04 04 00 88 F4 47 3B 72 04 00 00 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 C4 CB 4B 06 EF 03 09 90 00 [16:25:12]wFMCommunicate OK [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 17 00 00 [16:25:12]Write to MH i2c: E2 08 00 5E 00 80 17 00 00 00 00 00 00 DE [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 FD 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 FD 00 5E 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 18 50 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 82 [16:25:13]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 18 50 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [16:25:13]wFMCommunicate OK [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 17 00 00 [16:25:13]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 FD 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 FD 00 5F 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 F1 [16:25:13]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [16:25:13]wFMCommunicate OK [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 17 00 00 [16:25:13]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:25:13]Read from MH i2c: E2 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 FD 00 [16:25:13]MH_I2C_Read... [16:25:13]Read from MH i2c: E2 FD 00 60 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 6C [16:25:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [16:25:13]wFMCommunicate OK [16:25:13]wFMCommunicate request_size=4 [16:25:13]MH_SAM_APDU [16:25:13]CAPDU: 80 17 00 00 [16:25:13]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [16:25:13]Write i2c OK [16:25:13]MH_I2C_Read... [16:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6E 65 47 00 BA 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 68 D1 01 00 F4 03 04 00 71 C1 A8 66 B6 04 01 00 00 BA 72 45 1B 68 69 6F B9 [16:25:14]CommunicateWithHost err = 0 [16:25:14]CheckOFDResponse [16:25:14]1017 (14) - 77093643461234 [16:25:14]1041 (16) - 0000000000874939 [16:25:14]1040 (4) - 119144 [16:25:14]1012 (4) - 30.07.2024 10:33 [16:25:14]1206 (1) - 0 [16:25:14]OFD Sender: Remove packet 119144 [16:25:14]ProducePacketName [16:25:14]name=ofd_packets/00119144 [16:25:14]NVStorageDeleteData [16:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 E2 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 E2 00 61 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BF [16:25:14]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:25:14]wFMCommunicate OK [16:25:14]SAM_PROTO_GetFMData done [16:25:14]requested_item fm.sale_refund.total is exist - process it [16:25:14]requested_item fm.buy.total is exist - process it [16:25:14]requested_item shift.sale.total is exist - process it [16:25:14]SAM_PROTO_GetShiftData [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 13 02 00 [16:25:14]Write to MH i2c: E2 08 00 62 00 80 13 02 00 00 00 00 00 E0 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]OFD Sender: No OFD packet to send [16:25:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 FD 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 FD 00 62 00 00 BB 04 AA 04 B7 04 6E 04 04 00 C4 00 00 00 69 04 9E 00 6F 04 04 00 BD 00 00 00 B1 04 04 00 80 6D B6 01 70 04 03 00 F0 4D A8 72 04 04 00 90 1F 0E 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 94 91 2E 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 73 E1 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 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 B0 06 08 70 04 03 00 B0 06 08 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 4D DA EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 0A [16:25:14]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 C4 00 00 00 69 04 9E 00 6F 04 04 00 BD 00 00 00 B1 04 04 00 80 6D B6 01 70 04 03 00 F0 4D A8 72 04 04 00 90 1F 0E 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 94 91 2E 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 73 E1 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 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 B0 06 08 70 04 03 00 B0 06 08 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 4D DA EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [16:25:14]wFMCommunicate OK [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 17 00 00 [16:25:14]Write to MH i2c: E2 08 00 63 00 80 17 00 00 00 00 00 00 E3 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 FD 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 FD 00 63 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 12 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 D0 [16:25:15]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 12 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 17 00 00 [16:25:15]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 FD 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 FD 00 64 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 10 [16:25:15]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [16:25:15]wFMCommunicate OK [16:25:15]wFMCommunicate request_size=4 [16:25:15]MH_SAM_APDU [16:25:15]CAPDU: 80 17 00 00 [16:25:15]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [16:25:15]Write i2c OK [16:25:15]MH_I2C_Read... [16:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:25:15]Read from MH i2c: E2 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 FD 00 [16:25:15]MH_I2C_Read... [16:25:15]Read from MH i2c: E2 FD 00 65 00 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 90 00 5A [16:25:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [16:25:16]wFMCommunicate OK [16:25:16]wFMCommunicate request_size=4 [16:25:16]MH_SAM_APDU [16:25:16]CAPDU: 80 17 00 00 [16:25:16]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [16:25:16]Write i2c OK [16:25:16]MH_I2C_Read... [16:25:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [16:25:16]Read from MH i2c: E2 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 D8 00 [16:25:16]MH_I2C_Read... [16:25:16]Read from MH i2c: E2 D8 00 66 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CD [16:25:16]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:25:16]wFMCommunicate OK [16:25:16]SAM_PROTO_GetShiftData done [16:25:16]requested_item shift.sale.total_cash is exist - process it [16:25:16]requested_item shift.sale_refund.total is exist - process it [16:25:16]requested_item shift.sale_refund.total_cash is exist - process it [16:25:16]requested_item shift.buy.total is exist - process it [16:25:16]requested_item shift.buy.total_cash is exist - process it [16:25:16]produce_requested_data done [16:25:16]produce_requested_data return {"fm.sale.total":149273860.00,"fm.sale_refund.total":9945714.00,"fm.buy.total":0.00,"shift.sale.total":287328.00,"shift.sale.total_cash":110300.00,"shift.sale_refund.total":5260.00,"shift.sale_refund.total_cash":5260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:25:16]process_action_free get_value [16:25:16]json_value_free [16:25:16]json_value_free done [16:25:16]process_json_proto returns [16:25:16]Send response to host [16:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149273860.00,"fm.sale_refund.total":9945714.00,"fm.buy.total":0.00,"shift.sale.total":287328.00,"shift.sale.total_cash":110300.00,"shift.sale_refund.total":5260.00,"shift.sale_refund.total_cash":5260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:25:16]free response buf [16:25:16]execute_script done [16:25:16]execute_script returns [16:25:16]free content buf [16:25:16]Sock 5.Close socket [16:25:16]Sock 5.Thread stoped [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:41]accept exits with 9 [16:25:41]New connection [16:25:41]New thread 3066887524 created [16:25:41]Thread 3067030884 joined [16:25:41]Waiting for new connection... [16:25:41] Sock 9.Parse request [16:25:41]Sock 9.Check first char [16:25:41]Sock 9.First char is OK [16:25:41]request: POST /json_proto HTTP/1.0 [16:25:41]Method: POST [16:25:41]URL: /json_proto [16:25:41]Method is POST - this is cgi request [16:25:41]url: /json_proto [16:25:41]query_string will be loaded in cgi processing [16:25:41]execute_cgi json_proto POST (null) [16:25:41]execute_cgi path=json_proto method=POST [16:25:41]POST find Content-Length [16:25:41]Host: 172.17.45.7:8080 [16:25:41]Content-Length: 677 [16:25:41]Content-Type: application/json [16:25:41] [16:25:41]POST finish read [16:25:41]Found Content-Length = 677 [16:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:41]execute_script... [16:25: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)950064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:41]POST & json_proto [16:25:41]process_json_proto [16:25:41]json parsed OK: [16:25:41]protocol is kg_v1.0 [16:25:41]action value=close_receipt [16:25:41]process_action close_receipt [16:25:41]cmd_close_receipt [16:25:41]MH_GetDate [16:25:41]Write to MH i2c: F0 00 00 67 00 56 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: F0 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: F0 09 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: F0 09 00 67 00 00 06 14 A9 66 90 0F 3E 66 CB [16:25:41]GetLastDocTimeStamp 1722356708 [16:25:41]current date 1722356742 [16:25:41]FM_GetShiftState [16:25:41]SAM_PROTO_GetShiftState [16:25:41]wFMCommunicate request_size=4 [16:25:41]MH_SAM_APDU [16:25:41]CAPDU: 80 13 01 00 [16:25:41]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:41]Read from MH i2c: E2 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 0E 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B0 [16:25:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:25:41]wFMCommunicate OK [16:25:41]SAM_PROTO_GetShiftState done [16:25:41]FM_GetShiftState done [16:25:41]opened in 1722298242 [16:25:41]opened+sec_in_day 1722384642 [16:25:41]quantity*price = 50036 [16:25:41]sum+1 = 50037 [16:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 197 30.07.2024 16:25 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119145 ФПД: 56765296728698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162542&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119145&fm=56765296728698&tin=02508201610067®Number=0000000000092660&sum=50000 [16:25:42]StoreToDocumentArchive [16:25:42]shift 435 fd 119145 [16:25:42]save to /storage/0435/doc_00119145 [16:25:42]save last doc name /storage/0435/doc_00119145 to /storage/kkm_last_doc_name [16:25:42]save OK [16:25:42]Clear old archive folders... [16:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:42]tlvbuf is 00E5E7C0 [16:25:42]SAM_PROTO_ClearQueue [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 09 00 00 [16:25:42]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [16:25:42]RAPDU: 90 00 [16:25:42]wFMCommunicate OK [16:25:42]SAM_PROTO_ClearQueue done [16:25:42]KKMCreateOFDPacket [16:25:42]OFDProtocolAddRootSTLVToBuf [16:25:42]FM_MakeSignedData [16:25:42]FM_MakeSignedData [16:25:42]SAM_PROTO_SignData [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 0D 01 02 [16:25:42]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:25:42]RAPDU: 90 00 [16:25:42]wFMCommunicate OK [16:25:42]wFMCommunicate request_size=255 [16:25:42]MH_SAM_APDU [16:25: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 06 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D1 01 00 35 04 06 00 33 [16:25:42]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 06 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D1 01 00 35 04 06 00 33 00 00 83 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:25:42]RAPDU: 90 00 [16:25:42]wFMCommunicate OK [16:25:42]wFMCommunicate request_size=10 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 0D 02 02 05 A0 B3 58 DA 7A [16:25:42]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 A0 B3 58 DA 7A 00 00 FB [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:25:42]RAPDU: 90 00 [16:25:42]wFMCommunicate OK [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 0D 03 02 [16:25:42]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 0B 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 0B 00 79 00 00 59 8F FE 5D F4 D3 4C AB 90 00 F6 [16:25:42]RAPDU: 59 8F FE 5D F4 D3 4C AB 90 00 [16:25:42]wFMCommunicate OK [16:25:42]SAM_PROTO_SignData done [16:25:42]FM_MakeSignedData done [16:25:42]CreateOFDProtocolMessage [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 11 00 00 [16:25:42]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 17 00 [16:25:42]MH_I2C_Read... [16:25:42]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 34 39 33 39 90 00 4F [16:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:42]wFMCommunicate OK [16:25:42]CreateOFDProtocolMessage done [16:25:42]OFDSenderStorePacket 119145 [16:25:42]StoreOFDPacket docnum=119145 [16:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD AC 07 01 8C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 06 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D1 01 00 35 04 06 00 33 A0 B3 58 DA 7A 59 8F FE 5D F4 D3 4C AB [16:25:42]CheckFolder [16:25:42]dirname=/storage/ofd_packets [16:25:42]CheckFolder done [16:25:42]ProducePacketName [16:25:42]name=ofd_packets/00119145 [16:25:42]NVStorageSaveData ofd_packets/00119145 [16:25:42]File name is /storage/ofd_packets/00119145 [16:25:42]Write 301 bytes [16:25:42]NVStorageSaveData done [16:25:42]OFDSenderStorePacket done [16:25:42]KKMCreateOFDPacket done [16:25:42]NVStorageSaveData kkm_last_timestamp [16:25:42]File name is /storage/kkm_last_timestamp [16:25:42]Write 4 bytes [16:25:42]NVStorageSaveData done [16:25:42]ExternCall_PrintAddStr [16:25:42]wPrintStart [16:25:42]Write to MH i2c: 01 00 00 7B 00 7B [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: 01 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: 01 07 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [16:25:42]RasterBufferAndPrint [16:25:42]line Счет N : (1)950064 [16:25:42]line ИНН: 02508201610067 [16:25:42]line Контрольно-Кассовый Чек [16:25:42]line ПРОДАЖА [16:25:42]line ТРК (МРК, ГНК) : 51 [16:25:42]line Товар: 2710124130 [16:25:42]line Аи-92-К-4 [16:25:42]line 7.380 * 67.80 [16:25:42]line = 500.36 [16:25:42]line НДС 12% НСП 1% [16:25:42]line > о реализуемом товаре [16:25:42]line ОКРУГЛЕНИЕ: -0.36 [16:25:42]line ИТОГО: 500.00 [16:25:42]line Внесено: 500.00 [16:25:42]line СДАЧА: 0.00 [16:25:42]line НСП 1% : 4.43 [16:25:42]line НДС 12% : 53.14 [16:25:42]line Наличными: 500.00 [16:25:42]line Безнал.: 0.00 [16:25:43]line Место: АЗС № 134 "Партнер Нефть" [16:25:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:25:43]line СНО: Общий режим [16:25:43]line Чек 197 30.07.2024 16:25 [16:25:43]line Смена: 435 ФФД: 1.0 [16:25:43]line ЗНМ: 0300000044 [16:25:43]line РНМ: 0000000000092660 [16:25:43]line Версия ККМ: 001 [16:25:43]line ФМ: 0000000000874939 [16:25:43]line ФД: 119145 [16:25:43]line ФПД: 56765296728698 [16:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162542&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119145&fm=56765296728698&tin=02508201610067®Number=0000000000092660&sum=50000 [16:25:43]written 0, free lines is 4095 [16:25:43]OFD Sender: Processing packet 119145 [packets to send 86, broken 85] [16:25:43]ProducePacketName [16:25:43]name=ofd_packets/00119145 [16:25:43]OFD Sender: To server: pG, [16:25:43]CommunicateWithHost lk.salyk.kg:30040 [16:25:43]ConnectInit lk.salyk.kg [16:25:43]Write to MH i2c: 01 00 00 A5 00 A5 [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: 01 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: 01 07 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 D7 0C 8F [16:25:43]RasterBufferAndPrint [16:25:43]line [16:25:43]line [16:25:43]line [16:25:43]line [16:25:43]line [16:25:43]written 0, free lines is 3309 [16:25:43]MH_Cut [16:25:43]Write to MH i2c: D1 01 00 AC 00 01 7E [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: D1 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: D1 01 00 [16:25:43]MH_I2C_Read... [16:25:43]Read from MH i2c: D1 01 00 AC 00 00 7D [16:25:43]Write to MH i2c: 01 00 00 AD 00 AD [16:25:43]Write i2c OK [16:25:43]MH_I2C_Read... [16:25:44]*** Cut start [16:25:44]*** Partial cut [16:25:44]*** CUTSNS_PIN = 1 [16:25:44]*** CUTSNS_PIN = 0 [16:25:44]*** Brake cut motor [16:25:44]Read from MH i2c: 01 [16:25:44]MH_I2C_Read... [16:25:44]*** Stop cut motor [16:25:44]*** Cut end [16:25:44]Read from MH i2c: 01 07 00 [16:25:44]MH_I2C_Read... [16:25:44]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [16:25:44]process_action close_receipt done [16:25:44]requested_data is exist [16:25:44]produce_requested_data [16:25:44]requested_item fm.sn is exist - process it [16:25:44]wFMCommunicate request_size=4 [16:25:44]MH_SAM_APDU [16:25:44]CAPDU: 80 11 00 00 [16:25:44]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [16:25:44]Write i2c OK [16:25:44]MH_I2C_Read... [16:25:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:44]Read from MH i2c: E2 [16:25:44]MH_I2C_Read... [16:25:44]Read from MH i2c: E2 17 00 [16:25:44]MH_I2C_Read... [16:25:44]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 34 39 33 39 90 00 83 [16:25:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:25:44]wFMCommunicate OK [16:25:44]requested_item fd.num is exist - process it [16:25:44]SAM_PROTO_GetFieldsCounters [16:25:44]wFMCommunicate request_size=4 [16:25:44]MH_SAM_APDU [16:25:44]CAPDU: 80 13 00 00 [16:25:44]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [16:25:44]Write i2c OK [16:25:44]MH_I2C_Read... [16:25:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:44]Read from MH i2c: E2 [16:25:44]MH_I2C_Read... [16:25:44]Read from MH i2c: E2 62 00 [16:25:44]MH_I2C_Read... [16:25:44]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [16:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 69 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:45]wFMCommunicate OK [16:25:45]SAM_PROTO_GetFieldsCounters done [16:25:45]requested_item shift.num is exist - process it [16:25:45]requested_item shift.opened is exist - process it [16:25:45]req_shift_opened [16:25:45]FM_GetShiftState [16:25:45]SAM_PROTO_GetShiftState [16:25:45]wFMCommunicate request_size=4 [16:25:45]MH_SAM_APDU [16:25:45]CAPDU: 80 13 01 00 [16:25:45]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [16:25:45]Connected sock=10 [16:25:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD AC 07 01 8C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:45]00 Write i2c OK [16:25:45]00 MH_I2C_Read... [16:25:45]00 Read from MH i2c: 07 E2 04 [16:25:45]06 MH_I2C_Read... [16:25:45]00 Read from MH i2c: 50 E2 C3 0E 00 00 00 [16:25:45]00 MH_I2C_Read... [16:25:45]00 39 Read from MH i2c: 04 E2 06 0E 00 00 00 B0 00 00 00 00 00 09 00 00 00 01 1F 82 04 2F 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 06 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 A8 30 66 11 04 00 10 00 00 00 30 00 30 90 00 30 F8 30 [16:25:45]30 RAPDU: 30 09 30 00 30 01 30 82 30 2F 38 A8 37 66 34 00 39 00 00 33 00 39 90 10 00 04 [16:25:45]04 wFMCommunicate OK [16:25:45]00 SAM_PROTO_GetShiftState done [16:25:45]69 D1 01 00 35 04 06 00 33 A0 B3 58 DA 7A 59 8F FE 5D F4 D3 4C AB [16:25:45]FM_GetShiftState done [16:25:45]req_shift_opened done [16:25:45]requested_item shift.open_date is exist - process it [16:25:45]req_shift_open_date [16:25:45]req_shift_open_date done [16:25:45]produce_requested_data done [16:25:45]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119145,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:25:45]process_action_free close_receipt [16:25:45]json_value_free [16:25:45]json_value_free done [16:25:45]process_json_proto returns [16:25:45]Send response to host [16:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119145,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:25:45]free response buf [16:25:45]execute_script done [16:25:45]execute_script returns [16:25:45]free content buf [16:25:45]Sock 9.Close socket [16:25:45]Sock 9.Thread stoped [16:25:50]recv_with_timeout no data received [16:25:50]recv_with_timeout no data received [16:25:50]CommunicateWithHost answer receiving error [16:25:50]CommunicateWithHost err = -3 [16:25:50]OFD Sender: Server communicate error [16:25:55]OFD Sender: Processing packet 119145 [packets to send 86, broken 85] [16:25:55]ProducePacketName [16:25:55]name=ofd_packets/00119145 [16:25:55]OFD Sender: To server: pG, [16:25:55]CommunicateWithHost lk.salyk.kg:30040 [16:25:55]ConnectInit lk.salyk.kg [16:25:56]Connected sock=10 [16:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CD AC 07 01 8C 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 06 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D1 01 00 35 04 06 00 33 A0 B3 58 DA 7A 59 8F FE 5D F4 D3 4C AB [16:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 9B 47 00 4B 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 69 D1 01 00 F4 03 04 00 9E C1 A8 66 B6 04 01 00 00 C7 7B 0E 3C D5 1C 2B 17 [16:25:57]CommunicateWithHost err = 0 [16:25:57]CheckOFDResponse [16:25:57]1017 (14) - 77093643461234 [16:25:57]1041 (16) - 0000000000874939 [16:25:57]1040 (4) - 119145 [16:25:57]1012 (4) - 30.07.2024 10:34 [16:25:57]1206 (1) - 0 [16:25:57]OFD Sender: Remove packet 119145 [16:25:57]ProducePacketName [16:25:57]name=ofd_packets/00119145 [16:25:57]NVStorageDeleteData [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:26:59]recv_with_timeout no data received [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:48]accept exits with 7 [16:27:48]New connection [16:27:48]New thread 3067030884 created [16:27:48]Thread 3066887524 joined [16:27:48]Waiting for new connection... [16:27:48] Sock 7.Parse request [16:27:48]Sock 7.Check first char [16:27:48]Sock 7.First char is OK [16:27:48]request: POST /json_proto HTTP/1.0 [16:27:48]Method: POST [16:27:48]URL: /json_proto [16:27:48]Method is POST - this is cgi request [16:27:48]url: /json_proto [16:27:48]query_string will be loaded in cgi processing [16:27:48]execute_cgi json_proto POST (null) [16:27:48]execute_cgi path=json_proto method=POST [16:27:48]POST find Content-Length [16:27:48]Host: 172.17.45.7:8080 [16:27:48]Content-Length: 819 [16:27:48]Content-Type: application/json [16:27:48] [16:27:48]POST finish read [16:27:48]Found Content-Length = 819 [16:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:48]execute_script... [16:27: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)950065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:48]POST & json_proto [16:27:48]process_json_proto [16:27:48]json parsed OK: [16:27:48]protocol is kg_v1.0 [16:27:48]action value=close_receipt [16:27:48]process_action close_receipt [16:27:48]cmd_close_receipt [16:27:48]MH_GetDate [16:27:48]Write to MH i2c: F0 00 00 B1 00 A0 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: F0 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: F0 09 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: F0 09 00 B1 00 00 85 14 A9 66 90 0F 3E 66 94 [16:27:48]GetLastDocTimeStamp 1722356742 [16:27:48]current date 1722356869 [16:27:48]FM_GetShiftState [16:27:48]SAM_PROTO_GetShiftState [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 13 01 00 [16:27:48]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 0E 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 FA [16:27:48]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:27:48]wFMCommunicate OK [16:27:48]SAM_PROTO_GetShiftState done [16:27:48]FM_GetShiftState done [16:27:48]opened in 1722298242 [16:27:48]opened+sec_in_day 1722384642 [16:27:48]quantity*price = 300075 [16:27:48]sum+1 = 300077 [16:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 198 30.07.2024 16:27 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119146 ФПД: 131012962255220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162749&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119146&fm=131012962255220&tin=02508201610067®Number=0000000000092660&sum=300000 [16:27:49]StoreToDocumentArchive [16:27:49]shift 435 fd 119146 [16:27:49]save to /storage/0435/doc_00119146 [16:27:49]save last doc name /storage/0435/doc_00119146 to /storage/kkm_last_doc_name [16:27:49]save OK [16:27:49]Clear old archive folders... [16:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:27:49]tlvbuf is 00E5B610 [16:27:49]SAM_PROTO_ClearQueue [16:27:49]wFMCommunicate request_size=4 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 09 00 00 [16:27:49]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [16:27:49]RAPDU: 90 00 [16:27:49]wFMCommunicate OK [16:27:49]SAM_PROTO_ClearQueue done [16:27:49]KKMCreateOFDPacket [16:27:49]OFDProtocolAddRootSTLVToBuf [16:27:49]FM_MakeSignedData [16:27:49]FM_MakeSignedData [16:27:49]SAM_PROTO_SignData [16:27:49]wFMCommunicate request_size=4 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 0D 01 02 [16:27:49]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [16:27:49]RAPDU: 90 00 [16:27:49]wFMCommunicate OK [16:27:49]wFMCommunicate request_size=255 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 85 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D1 01 00 35 04 06 00 77 27 D5 13 [16:27:49]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 85 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D1 01 00 35 04 06 00 77 27 D5 13 00 00 E4 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [16:27:49]RAPDU: 90 00 [16:27:49]wFMCommunicate OK [16:27:49]wFMCommunicate request_size=7 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 0D 02 02 02 81 74 [16:27:49]Write to MH i2c: E2 0A 00 C2 00 80 0D 02 02 02 00 81 74 00 00 35 [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:49]Read from MH i2c: E2 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 [16:27:49]MH_I2C_Read... [16:27:49]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [16:27:49]RAPDU: 90 00 [16:27:49]wFMCommunicate OK [16:27:49]wFMCommunicate request_size=4 [16:27:49]MH_SAM_APDU [16:27:49]CAPDU: 80 0D 03 02 [16:27:49]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [16:27:49]Write i2c OK [16:27:49]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0B 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0B 00 C3 00 00 FF 1E 8E 3B 2C 35 58 D0 90 00 AE [16:27:50]RAPDU: FF 1E 8E 3B 2C 35 58 D0 90 00 [16:27:50]wFMCommunicate OK [16:27:50]SAM_PROTO_SignData done [16:27:50]FM_MakeSignedData done [16:27:50]CreateOFDProtocolMessage [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 11 00 00 [16:27:50]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 17 00 [16:27:50]MH_I2C_Read... [16:27:50]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 34 39 33 39 90 00 99 [16:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:27:50]wFMCommunicate OK [16:27:50]CreateOFDProtocolMessage done [16:27:50]OFDSenderStorePacket 119146 [16:27:50]StoreOFDPacket docnum=119146 [16:27:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 8B 04 01 F0 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 85 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D1 01 00 35 04 06 00 77 27 D5 13 81 74 FF 1E 8E 3B 2C 35 58 D0 [16:27:50]CheckFolder [16:27:50]dirname=/storage/ofd_packets [16:27:50]CheckFolder done [16:27:50]ProducePacketName [16:27:50]name=ofd_packets/00119146 [16:27:50]NVStorageSaveData ofd_packets/00119146 [16:27:50]File name is /storage/ofd_packets/00119146 [16:27:50]Write 298 bytes [16:27:50]NVStorageSaveData done [16:27:50]OFDSenderStorePacket done [16:27:50]KKMCreateOFDPacket done [16:27:50]NVStorageSaveData kkm_last_timestamp [16:27:50]File name is /storage/kkm_last_timestamp [16:27:50]Write 4 bytes [16:27:50]NVStorageSaveData done [16:27:50]ExternCall_PrintAddStr [16:27:50]wPrintStart [16:27:50]Write to MH i2c: 01 00 00 C5 00 C5 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [16:27:50]RasterBufferAndPrint [16:27:50]line Счет N : (1)950065 [16:27:50]line ИНН: 02508201610067 [16:27:50]line Контрольно-Кассовый Чек [16:27:50]line ПРОДАЖА [16:27:50]line ТРК (МРК, ГНК) : 64 [16:27:50]line Товар: 2710194800 [16:27:50]line ДТ-К-5 [16:27:50]line 39.380 * 76.20 [16:27:50]line = 3000.76 [16:27:50]line НДС 12% НСП 1% [16:27:50]line > о реализуемом товаре [16:27:50]line ОКРУГЛЕНИЕ: -0.76 [16:27:50]line ИТОГО: 3000.00 [16:27:50]line НСП 1% : 26.55 [16:27:50]line НДС 12% : 318.66 [16:27:50]line Наличными: 0.00 [16:27:50]line Безнал.: 3000.00 [16:27:50]line Место: АЗС № 134 "Партнер Нефть" [16:27:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:27:50]line СНО: Общий режим [16:27:50]line Чек 198 30.07.2024 16:27 [16:27:50]line Смена: 435 ФФД: 1.0 [16:27:50]line ЗНМ: 0300000044 [16:27:50]line РНМ: 0000000000092660 [16:27:50]line Версия ККМ: 001 [16:27:50]line Платежная система: O! деньги [16:27:50]line ФМ: 0000000000874939 [16:27:50]line ФД: 119146 [16:27:50]line ФПД: 131012962255220 [16:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T162749&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119146&fm=131012962255220&tin=02508201610067®Number=0000000000092660&sum=300000 [16:27:50]OFD Sender: Processing packet 119146 [packets to send 86, broken 85] [16:27:50]ProducePacketName [16:27:50]name=ofd_packets/00119146 [16:27:50]OFD Sender: To server: pG, [16:27:50]CommunicateWithHost lk.salyk.kg:30040 [16:27:50]ConnectInit lk.salyk.kg [16:27:50]written 0, free lines is 4095 [16:27:50]Write to MH i2c: 01 00 00 EF 00 EF [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 EA 0C EC [16:27:50]RasterBufferAndPrint [16:27:50]line [16:27:50]line [16:27:50]line [16:27:50]line [16:27:50]line [16:27:50]written 0, free lines is 3313 [16:27:50]MH_Cut [16:27:50]Write to MH i2c: D1 01 00 F6 00 01 C8 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: D1 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: D1 01 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: D1 01 00 F6 00 00 C7 [16:27:50]Write to MH i2c: 01 00 00 F7 00 F7 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:51]*** Cut start [16:27:51]*** Partial cut [16:27:51]*** CUTSNS_PIN = 1 [16:27:51]*** CUTSNS_PIN = 0 [16:27:51]*** Brake cut motor [16:27:52]Read from MH i2c: 01 [16:27:52]MH_I2C_Read... [16:27:52]*** Stop cut motor [16:27:52]*** Cut end [16:27:52]Read from MH i2c: 01 07 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [16:27:52]process_action close_receipt done [16:27:52]requested_data is exist [16:27:52]produce_requested_data [16:27:52]requested_item fm.sn is exist - process it [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 11 00 00 [16:27:52]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 17 00 [16:27:52]MH_I2C_Read... [16:27:52]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 34 39 33 39 90 00 CD [16:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:27:52]wFMCommunicate OK [16:27:52]requested_item fd.num is exist - process it [16:27:52]SAM_PROTO_GetFieldsCounters [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 13 00 00 [16:27:52]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 62 00 [16:27:52]MH_I2C_Read... [16:27:52]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [16:27:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_GetFieldsCounters done [16:27:52]requested_item shift.num is exist - process it [16:27:52]requested_item shift.opened is exist - process it [16:27:52]req_shift_opened [16:27:52]FM_GetShiftState [16:27:52]SAM_PROTO_GetShiftState [16:27:52]wFMCommunicate request_size=4 [16:27:52]MH_SAM_APDU [16:27:52]CAPDU: 80 13 01 00 [16:27:52]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [16:27:52]Write i2c OK [16:27:52]MH_I2C_Read... [16:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:52]Read from MH i2c: E2 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0E 00 [16:27:52]MH_I2C_Read... [16:27:52]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 42 [16:27:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:27:52]wFMCommunicate OK [16:27:52]SAM_PROTO_GetShiftState done [16:27:52]FM_GetShiftState done [16:27:52]req_shift_opened done [16:27:52]requested_item shift.open_date is exist - process it [16:27:52]req_shift_open_date [16:27:52]req_shift_open_date done [16:27:52]produce_requested_data done [16:27:52]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119146,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:27:52]process_action_free close_receipt [16:27:52]json_value_free [16:27:52]json_value_free done [16:27:52]process_json_proto returns [16:27:52]Send response to host [16:27:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119146,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:27:52]free response buf [16:27:52]execute_script done [16:27:52]execute_script returns [16:27:52]free content buf [16:27:52]Sock 7.Close socket [16:27:52]Sock 7.Thread stoped [16:27:55]ConnectInit Can't take IP for lk.salyk.kg [16:27:55]CommunicateWithHost connect error [16:27:55]CommunicateWithHost err = -1 [16:27:55]OFD Sender: Server communicate error [16:28:00]OFD Sender: Processing packet 119146 [packets to send 86, broken 85] [16:28:00]ProducePacketName [16:28:00]name=ofd_packets/00119146 [16:28:00]OFD Sender: To server: pG, [16:28:00]CommunicateWithHost lk.salyk.kg:30040 [16:28:00]ConnectInit lk.salyk.kg [16:30:14]ConnectInit Can't connect to host [16:30:14]CommunicateWithHost connect error [16:30:14]CommunicateWithHost err = -1 [16:30:14]OFD Sender: Server communicate error [16:30:19]OFD Sender: Processing packet 119146 [packets to send 86, broken 85] [16:30:19]ProducePacketName [16:30:19]name=ofd_packets/00119146 [16:30:19]OFD Sender: To server: pG, [16:30:19]CommunicateWithHost lk.salyk.kg:30040 [16:30:19]ConnectInit lk.salyk.kg [16:30:20]Connected sock=10 [16:30:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 8B 04 01 F0 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 85 14 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D1 01 00 35 04 06 00 77 27 D5 13 81 74 FF 1E 8E 3B 2C 35 58 D0 [16:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D 25 47 00 04 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6A D1 01 00 F4 03 04 00 A5 C2 A8 66 B6 04 01 00 00 80 0D 23 F3 D5 9E 64 12 [16:30:20]CommunicateWithHost err = 0 [16:30:20]CheckOFDResponse [16:30:20]1017 (14) - 77093643461234 [16:30:20]1041 (16) - 0000000000874939 [16:30:20]1040 (4) - 119146 [16:30:20]1012 (4) - 30.07.2024 10:38 [16:30:20]1206 (1) - 0 [16:30:20]OFD Sender: Remove packet 119146 [16:30:20]ProducePacketName [16:30:20]name=ofd_packets/00119146 [16:30:20]NVStorageDeleteData [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:23]accept exits with 9 [16:31:23]New connection [16:31:23]New thread 3066887524 created [16:31:23]Thread 3067030884 joined [16:31:23]Waiting for new connection... [16:31:23] Sock 9.Parse request [16:31:23]Sock 9.Check first char [16:31:23]Sock 9.First char is OK [16:31:23]request: POST /json_proto HTTP/1.0 [16:31:23]Method: POST [16:31:23]URL: /json_proto [16:31:23]Method is POST - this is cgi request [16:31:23]url: /json_proto [16:31:23]query_string will be loaded in cgi processing [16:31:23]execute_cgi json_proto POST (null) [16:31:23]execute_cgi path=json_proto method=POST [16:31:23]POST find Content-Length [16:31:23]Host: 172.17.45.7:8080 [16:31:23]Content-Length: 819 [16:31:23]Content-Type: application/json [16:31:23] [16:31:23]POST finish read [16:31:23]Found Content-Length = 819 [16:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:23]execute_script... [16:31: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)950066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 3000.00, "payments": [ { "type": 1, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:23]POST & json_proto [16:31:23]process_json_proto [16:31:23]json parsed OK: [16:31:23]protocol is kg_v1.0 [16:31:23]action value=close_receipt [16:31:23]process_action close_receipt [16:31:23]cmd_close_receipt [16:31:23]MH_GetDate [16:31:23]Write to MH i2c: F0 00 00 FB 00 EA [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: F0 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: F0 09 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: F0 09 00 FB 00 00 5C 15 A9 66 90 0F 3E 66 B6 [16:31:23]GetLastDocTimeStamp 1722356869 [16:31:23]current date 1722357084 [16:31:23]FM_GetShiftState [16:31:23]SAM_PROTO_GetShiftState [16:31:23]wFMCommunicate request_size=4 [16:31:23]MH_SAM_APDU [16:31:23]CAPDU: 80 13 01 00 [16:31:23]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [16:31:23]Write i2c OK [16:31:23]MH_I2C_Read... [16:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:23]Read from MH i2c: E2 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 0E 00 [16:31:23]MH_I2C_Read... [16:31:23]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 44 [16:31:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:31:23]wFMCommunicate OK [16:31:23]SAM_PROTO_GetShiftState done [16:31:23]FM_GetShiftState done [16:31:23]opened in 1722298242 [16:31:23]opened+sec_in_day 1722384642 [16:31:23]quantity*price = 300075 [16:31:23]sum+1 = 300077 [16:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 199 30.07.2024 16:31 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119147 ФПД: 162607881181331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119147&fm=162607881181331&tin=02508201610067®Number=0000000000092660&sum=300000 [16:31:25]StoreToDocumentArchive [16:31:25]shift 435 fd 119147 [16:31:25]save to /storage/0435/doc_00119147 [16:31:25]save last doc name /storage/0435/doc_00119147 to /storage/kkm_last_doc_name [16:31:25]save OK [16:31:25]Clear old archive folders... [16:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:31:25]tlvbuf is B6F685E0 [16:31:25]SAM_PROTO_ClearQueue [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 09 00 00 [16:31:25]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_ClearQueue done [16:31:25]KKMCreateOFDPacket [16:31:25]OFDProtocolAddRootSTLVToBuf [16:31:25]FM_MakeSignedData [16:31:25]FM_MakeSignedData [16:31:25]SAM_PROTO_SignData [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 01 02 [16:31:25]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]wFMCommunicate request_size=255 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 5C 15 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D1 01 00 35 04 06 00 93 E4 18 FE [16:31:25]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 5C 15 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D1 01 00 35 04 06 00 93 E4 18 FE 00 00 10 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]wFMCommunicate request_size=7 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 02 02 02 D8 93 [16:31:25]Write to MH i2c: E2 0A 00 0C 01 80 0D 02 02 02 00 D8 93 00 00 F6 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 03 02 [16:31:25]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0B 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0B 00 0D 01 00 69 0C C4 67 D2 D2 2B 9D 90 00 96 [16:31:25]RAPDU: 69 0C C4 67 D2 D2 2B 9D 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_SignData done [16:31:25]FM_MakeSignedData done [16:31:25]CreateOFDProtocolMessage [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 11 00 00 [16:31:25]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 17 00 [16:31:25]MH_I2C_Read... [16:31:25]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 34 39 33 39 90 00 E4 [16:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:31:25]wFMCommunicate OK [16:31:25]CreateOFDProtocolMessage done [16:31:25]OFDSenderStorePacket 119147 [16:31:25]StoreOFDPacket docnum=119147 [16:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F4 B7 04 01 D6 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 5C 15 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D1 01 00 35 04 06 00 93 E4 18 FE D8 93 69 0C C4 67 D2 D2 2B 9D [16:31:25]CheckFolder [16:31:25]dirname=/storage/ofd_packets [16:31:25]CheckFolder done [16:31:25]ProducePacketName [16:31:25]name=ofd_packets/00119147 [16:31:25]NVStorageSaveData ofd_packets/00119147 [16:31:25]File name is /storage/ofd_packets/00119147 [16:31:25]Write 298 bytes [16:31:25]NVStorageSaveData done [16:31:25]OFDSenderStorePacket done [16:31:25]KKMCreateOFDPacket done [16:31:25]NVStorageSaveData kkm_last_timestamp [16:31:25]File name is /storage/kkm_last_timestamp [16:31:25]Write 4 bytes [16:31:25]NVStorageSaveData done [16:31:25]ExternCall_PrintAddStr [16:31:25]wPrintStart [16:31:25]Write to MH i2c: 01 00 00 0F 01 10 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 07 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [16:31:25]RasterBufferAndPrint [16:31:25]line Счет N : (1)950066 [16:31:25]line ИНН: 02508201610067 [16:31:25]line Контрольно-Кассовый Чек [16:31:25]line ПРОДАЖА [16:31:25]line ТРК (МРК, ГНК) : 21 [16:31:25]line Товар: 2710194800 [16:31:25]line ДТ-К-5 [16:31:25]line 39.380 * 76.20 [16:31:25]line = 3000.76 [16:31:25]line НДС 12% НСП 1% [16:31:25]line > о реализуемом товаре [16:31:25]line ОКРУГЛЕНИЕ: -0.76 [16:31:25]line ИТОГО: 3000.00 [16:31:25]line НСП 1% : 26.55 [16:31:25]line НДС 12% : 318.66 [16:31:25]line Наличными: 0.00 [16:31:25]line Безнал.: 3000.00 [16:31:25]line Место: АЗС № 134 "Партнер Нефть" [16:31:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:31:25]line СНО: Общий режим [16:31:25]line Чек 199 30.07.2024 16:31 [16:31:25]line Смена: 435 ФФД: 1.0 [16:31:25]line ЗНМ: 0300000044 [16:31:25]line РНМ: 0000000000092660 [16:31:25]line Версия ККМ: 001 [16:31:25]line Платежная система: O! деньги [16:31:25]line ФМ: 0000000000874939 [16:31:25]line ФД: 119147 [16:31:25]line ФПД: 162607881181331 [16:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163124&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119147&fm=162607881181331&tin=02508201610067®Number=0000000000092660&sum=300000 [16:31:25]OFD Sender: Processing packet 119147 [packets to send 86, broken 85] [16:31:25]ProducePacketName [16:31:25]name=ofd_packets/00119147 [16:31:25]OFD Sender: To server: pG, [16:31:25]CommunicateWithHost lk.salyk.kg:30040 [16:31:25]ConnectInit lk.salyk.kg [16:31:25]written 0, free lines is 4095 [16:31:26]Write to MH i2c: 01 00 00 39 01 3A [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 EB 0C 38 [16:31:26]RasterBufferAndPrint [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]written 0, free lines is 3314 [16:31:26]MH_Cut [16:31:26]Write to MH i2c: D1 01 00 40 01 01 13 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 01 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 01 00 40 01 00 12 [16:31:26]Write to MH i2c: 01 00 00 41 01 42 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:27]*** Cut start [16:31:27]*** Partial cut [16:31:27]*** CUTSNS_PIN = 1 [16:31:27]*** CUTSNS_PIN = 0 [16:31:27]*** Brake cut motor [16:31:27]Connected sock=11 [16:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F4 B7 04 01 D6 69 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 5C 15 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D1 01 00 35 04 06 00 93 E4 18 FE D8 93 69 0C C4 67 D2 D2 2B 9D [16:31:27]Read from MH i2c: 01 [16:31:27]MH_I2C_Read... [16:31:27]*** Stop cut motor [16:31:27]*** Cut end [16:31:27]Read from MH i2c: 01 07 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [16:31:27]process_action close_receipt done [16:31:27]requested_data is exist [16:31:27]produce_requested_data [16:31:27]requested_item fm.sn is exist - process it [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 11 00 00 [16:31:27]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 17 00 [16:31:27]MH_I2C_Read... [16:31:27]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 34 39 33 39 90 00 18 [16:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:31:27]wFMCommunicate OK [16:31:27]requested_item fd.num is exist - process it [16:31:27]SAM_PROTO_GetFieldsCounters [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 13 00 00 [16:31:27]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 62 00 [16:31:27]MH_I2C_Read... [16:31:27]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [16:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:27]wFMCommunicate OK [16:31:27]SAM_PROTO_GetFieldsCounters done [16:31:27]requested_item shift.num is exist - process it [16:31:27]requested_item shift.opened is exist - process it [16:31:27]req_shift_opened [16:31:27]FM_GetShiftState [16:31:27]SAM_PROTO_GetShiftState [16:31:27]wFMCommunicate request_size=4 [16:31:27]MH_SAM_APDU [16:31:27]CAPDU: 80 13 01 00 [16:31:27]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [16:31:27]Write i2c OK [16:31:27]MH_I2C_Read... [16:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:27]Read from MH i2c: E2 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 0E 00 [16:31:27]MH_I2C_Read... [16:31:27]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8D [16:31:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:31:27]wFMCommunicate OK [16:31:27]SAM_PROTO_GetShiftState done [16:31:27]FM_GetShiftState done [16:31:27]req_shift_opened done [16:31:27]requested_item shift.open_date is exist - process it [16:31:27]req_shift_open_date [16:31:27]req_shift_open_date done [16:31:27]produce_requested_data done [16:31:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119147,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:31:27]process_action_free close_receipt [16:31:27]json_value_free [16:31:27]json_value_free done [16:31:27]process_json_proto returns [16:31:27]Send response to host [16:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119147,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:31:27]free response buf [16:31:27]execute_script done [16:31:27]execute_script returns [16:31:27]free content buf [16:31:27]Sock 9.Close socket [16:31:27]Sock 9.Thread stoped [16:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E3 0F 47 00 4A A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6B D1 01 00 F4 03 04 00 E9 C2 A8 66 B6 04 01 00 00 E1 75 F5 9E 6F 1E 53 03 [16:31:29]CommunicateWithHost err = 0 [16:31:29]CheckOFDResponse [16:31:29]1017 (14) - 77093643461234 [16:31:29]1041 (16) - 0000000000874939 [16:31:29]1040 (4) - 119147 [16:31:29]1012 (4) - 30.07.2024 10:39 [16:31:29]1206 (1) - 0 [16:31:29]OFD Sender: Remove packet 119147 [16:31:29]ProducePacketName [16:31:29]name=ofd_packets/00119147 [16:31:29]NVStorageDeleteData [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]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: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:31]accept exits with 10 [16:37:31]New connection [16:37:31]New thread 3067030884 created [16:37:31]Thread 3066887524 joined [16:37:31]Waiting for new connection... [16:37:31] Sock 10.Parse request [16:37:31]Sock 10.Check first char [16:37:31]Sock 10.First char is OK [16:37:31]request: POST /json_proto HTTP/1.0 [16:37:31]Method: POST [16:37:31]URL: /json_proto [16:37:31]Method is POST - this is cgi request [16:37:31]url: /json_proto [16:37:31]query_string will be loaded in cgi processing [16:37:31]execute_cgi json_proto POST (null) [16:37:31]execute_cgi path=json_proto method=POST [16:37:31]POST find Content-Length [16:37:31]Host: 172.17.45.7:8080 [16:37:31]Content-Length: 677 [16:37:31]Content-Type: application/json [16:37:31] [16:37:31]POST finish read [16:37:31]Found Content-Length = 677 [16:37:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:31]execute_script... [16:37:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:31]POST & json_proto [16:37:31]process_json_proto [16:37:31]json parsed OK: [16:37:31]protocol is kg_v1.0 [16:37:31]action value=close_receipt [16:37:31]process_action close_receipt [16:37:31]cmd_close_receipt [16:37:31]MH_GetDate [16:37:31]Write to MH i2c: F0 00 00 45 01 35 [16:37:31]Write i2c OK [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: F0 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: F0 09 00 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: F0 09 00 45 01 00 CC 16 A9 66 90 0F 3E 66 72 [16:37:31]GetLastDocTimeStamp 1722357084 [16:37:31]current date 1722357452 [16:37:31]FM_GetShiftState [16:37:31]SAM_PROTO_GetShiftState [16:37:31]wFMCommunicate request_size=4 [16:37:31]MH_SAM_APDU [16:37:31]CAPDU: 80 13 01 00 [16:37:31]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [16:37:31]Write i2c OK [16:37:31]MH_I2C_Read... [16:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:31]Read from MH i2c: E2 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: E2 0E 00 [16:37:31]MH_I2C_Read... [16:37:31]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8F [16:37:31]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:37:31]wFMCommunicate OK [16:37:31]SAM_PROTO_GetShiftState done [16:37:31]FM_GetShiftState done [16:37:31]opened in 1722298242 [16:37:31]opened+sec_in_day 1722384642 [16:37:31]quantity*price = 50036 [16:37:31]sum+1 = 50037 [16:37:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 200 30.07.2024 16:37 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119148 ФПД: 50889303202581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119148&fm=50889303202581&tin=02508201610067®Number=0000000000092660&sum=50000 [16:37:32]StoreToDocumentArchive [16:37:32]shift 435 fd 119148 [16:37:32]save to /storage/0435/doc_00119148 [16:37:32]save last doc name /storage/0435/doc_00119148 to /storage/kkm_last_doc_name [16:37:32]save OK [16:37:32]Clear old archive folders... [16:37:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:32]tlvbuf is 00E51720 [16:37:32]SAM_PROTO_ClearQueue [16:37:32]wFMCommunicate request_size=4 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 09 00 00 [16:37:32]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [16:37:32]RAPDU: 90 00 [16:37:32]wFMCommunicate OK [16:37:32]SAM_PROTO_ClearQueue done [16:37:32]KKMCreateOFDPacket [16:37:32]OFDProtocolAddRootSTLVToBuf [16:37:32]FM_MakeSignedData [16:37:32]FM_MakeSignedData [16:37:32]SAM_PROTO_SignData [16:37:32]wFMCommunicate request_size=4 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 0D 01 02 [16:37:32]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [16:37:32]Write i2c OK [16:37:32]MH_I2C_Read... [16:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:32]Read from MH i2c: E2 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 [16:37:32]MH_I2C_Read... [16:37:32]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [16:37:32]RAPDU: 90 00 [16:37:32]wFMCommunicate OK [16:37:32]wFMCommunicate request_size=255 [16:37:32]MH_SAM_APDU [16:37:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D1 01 00 35 04 06 00 2E [16:37:32]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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D1 01 00 35 04 06 00 2E 00 00 2B [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:33]Read from MH i2c: E2 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 03 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [16:37:33]RAPDU: 90 00 [16:37:33]wFMCommunicate OK [16:37:33]wFMCommunicate request_size=10 [16:37:33]MH_SAM_APDU [16:37:33]CAPDU: 80 0D 02 02 05 48 96 D7 1B 15 [16:37:33]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 48 96 D7 1B 15 00 00 C0 [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:33]Read from MH i2c: E2 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 03 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [16:37:33]RAPDU: 90 00 [16:37:33]wFMCommunicate OK [16:37:33]wFMCommunicate request_size=4 [16:37:33]MH_SAM_APDU [16:37:33]CAPDU: 80 0D 03 02 [16:37:33]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:33]Read from MH i2c: E2 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 0B 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 0B 00 57 01 00 68 EC 00 FF C3 B9 DE F3 90 00 74 [16:37:33]RAPDU: 68 EC 00 FF C3 B9 DE F3 90 00 [16:37:33]wFMCommunicate OK [16:37:33]SAM_PROTO_SignData done [16:37:33]FM_MakeSignedData done [16:37:33]CreateOFDProtocolMessage [16:37:33]wFMCommunicate request_size=4 [16:37:33]MH_SAM_APDU [16:37:33]CAPDU: 80 11 00 00 [16:37:33]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:33]Read from MH i2c: E2 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: E2 17 00 [16:37:33]MH_I2C_Read... [16:37:33]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 34 39 33 39 90 00 2E [16:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:37:33]wFMCommunicate OK [16:37:33]CreateOFDProtocolMessage done [16:37:33]OFDSenderStorePacket 119148 [16:37:33]StoreOFDPacket docnum=119148 [16:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 16 1E 07 01 6D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D1 01 00 35 04 06 00 2E 48 96 D7 1B 15 68 EC 00 FF C3 B9 DE F3 [16:37:33]CheckFolder [16:37:33]dirname=/storage/ofd_packets [16:37:33]CheckFolder done [16:37:33]ProducePacketName [16:37:33]name=ofd_packets/00119148 [16:37:33]NVStorageSaveData ofd_packets/00119148 [16:37:33]File name is /storage/ofd_packets/00119148 [16:37:33]Write 301 bytes [16:37:33]NVStorageSaveData done [16:37:33]OFDSenderStorePacket done [16:37:33]KKMCreateOFDPacket done [16:37:33]NVStorageSaveData kkm_last_timestamp [16:37:33]File name is /storage/kkm_last_timestamp [16:37:33]Write 4 bytes [16:37:33]NVStorageSaveData done [16:37:33]ExternCall_PrintAddStr [16:37:33]wPrintStart [16:37:33]Write to MH i2c: 01 00 00 59 01 5A [16:37:33]Write i2c OK [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 07 00 [16:37:33]MH_I2C_Read... [16:37:33]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [16:37:33]RasterBufferAndPrint [16:37:33]line Счет N : (1)950069 [16:37:33]line ИНН: 02508201610067 [16:37:33]line Контрольно-Кассовый Чек [16:37:33]line ПРОДАЖА [16:37:33]line ТРК (МРК, ГНК) : 41 [16:37:33]line Товар: 2710124130 [16:37:33]line Аи-92-К-4 [16:37:33]line 7.380 * 67.80 [16:37:33]line = 500.36 [16:37:33]line НДС 12% НСП 1% [16:37:33]line > о реализуемом товаре [16:37:33]line ОКРУГЛЕНИЕ: -0.36 [16:37:33]line ИТОГО: 500.00 [16:37:33]line Внесено: 500.00 [16:37:33]line СДАЧА: 0.00 [16:37:33]line НСП 1% : 4.43 [16:37:33]line НДС 12% : 53.14 [16:37:33]line Наличными: 500.00 [16:37:33]line Безнал.: 0.00 [16:37:33]line Место: АЗС № 134 "Партнер Нефть" [16:37:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:37:33]line СНО: Общий режим [16:37:33]line Чек 200 30.07.2024 16:37 [16:37:33]line Смена: 435 ФФД: 1.0 [16:37:33]line ЗНМ: 0300000044 [16:37:33]line РНМ: 0000000000092660 [16:37:33]line Версия ККМ: 001 [16:37:33]line ФМ: 0000000000874939 [16:37:33]line ФД: 119148 [16:37:33]line ФПД: 50889303202581 [16:37:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119148&fm=50889303202581&tin=02508201610067®Number=0000000000092660&sum=50000 [16:37:33]OFD Sender: Processing packet 119148 [packets to send 86, broken 85] [16:37:33]ProducePacketName [16:37:33]name=ofd_packets/00119148 [16:37:33]OFD Sender: To server: pG, [16:37:33]CommunicateWithHost lk.salyk.kg:30040 [16:37:33]ConnectInit lk.salyk.kg [16:37:33]written 0, free lines is 4095 [16:37:34]Write to MH i2c: 01 00 00 83 01 84 [16:37:34]Write i2c OK [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: 01 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: 01 07 00 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 D8 0C 6F [16:37:34]RasterBufferAndPrint [16:37:34]line [16:37:34]line [16:37:34]line [16:37:34]line [16:37:34]line [16:37:34]written 0, free lines is 3296 [16:37:34]MH_Cut [16:37:34]Write to MH i2c: D1 01 00 8A 01 01 5D [16:37:34]Write i2c OK [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: D1 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: D1 01 00 [16:37:34]MH_I2C_Read... [16:37:34]Read from MH i2c: D1 01 00 8A 01 00 5C [16:37:34]Write to MH i2c: 01 00 00 8B 01 8C [16:37:34]Write i2c OK [16:37:34]MH_I2C_Read... [16:37:34]*** Cut start [16:37:34]*** Partial cut [16:37:34]*** CUTSNS_PIN = 1 [16:37:34]*** CUTSNS_PIN = 0 [16:37:35]*** Brake cut motor [16:37:35]Read from MH i2c: 01 [16:37:35]MH_I2C_Read... [16:37:35]*** Stop cut motor [16:37:35]*** Cut end [16:37:35]Read from MH i2c: 01 07 00 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [16:37:35]process_action close_receipt done [16:37:35]requested_data is exist [16:37:35]produce_requested_data [16:37:35]requested_item fm.sn is exist - process it [16:37:35]wFMCommunicate request_size=4 [16:37:35]MH_SAM_APDU [16:37:35]CAPDU: 80 11 00 00 [16:37:35]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [16:37:35]Write i2c OK [16:37:35]MH_I2C_Read... [16:37:35]Connected sock=7 [16:37:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 16 1E 07 01 6D 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 CC 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D1 01 00 35 04 06 00 2E 48 96 D7 1B 15 68 EC 00 FF C3 B9 DE F3 [16:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:35]Read from MH i2c: E2 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: E2 17 00 [16:37:35]MH_I2C_Read... [16:37:35]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 34 39 33 39 90 00 62 [16:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:37:35]wFMCommunicate OK [16:37:35]requested_item fd.num is exist - process it [16:37:35]SAM_PROTO_GetFieldsCounters [16:37:35]wFMCommunicate request_size=4 [16:37:35]MH_SAM_APDU [16:37:35]CAPDU: 80 13 00 00 [16:37:35]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [16:37:35]Write i2c OK [16:37:35]MH_I2C_Read... [16:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:35]Read from MH i2c: E2 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: E2 62 00 [16:37:35]MH_I2C_Read... [16:37:35]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:37:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:35]wFMCommunicate OK [16:37:35]SAM_PROTO_GetFieldsCounters done [16:37:35]requested_item shift.num is exist - process it [16:37:35]requested_item shift.opened is exist - process it [16:37:35]req_shift_opened [16:37:35]FM_GetShiftState [16:37:35]SAM_PROTO_GetShiftState [16:37:35]wFMCommunicate request_size=4 [16:37:35]MH_SAM_APDU [16:37:35]CAPDU: 80 13 01 00 [16:37:35]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [16:37:35]Write i2c OK [16:37:35]MH_I2C_Read... [16:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:35]Read from MH i2c: E2 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: E2 0E 00 [16:37:35]MH_I2C_Read... [16:37:35]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D7 [16:37:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:37:35]wFMCommunicate OK [16:37:35]SAM_PROTO_GetShiftState done [16:37:35]FM_GetShiftState done [16:37:35]req_shift_opened done [16:37:35]requested_item shift.open_date is exist - process it [16:37:35]req_shift_open_date [16:37:35]req_shift_open_date done [16:37:35]produce_requested_data done [16:37:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119148,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:37:35]process_action_free close_receipt [16:37:35]json_value_free [16:37:35]json_value_free done [16:37:35]process_json_proto returns [16:37:35]Send response to host [16:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119148,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:37:35]free response buf [16:37:35]execute_script done [16:37:35]execute_script returns [16:37:35]free content buf [16:37:35]Sock 10.Close socket [16:37:35]Sock 10.Thread stoped [16:37:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 59 0B 47 00 AB 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6C D1 01 00 F4 03 04 00 59 C4 A8 66 B6 04 01 00 00 47 D6 5F A4 1A 82 C3 7E [16:37:36]CommunicateWithHost err = 0 [16:37:36]CheckOFDResponse [16:37:36]1017 (14) - 77093643461234 [16:37:36]1041 (16) - 0000000000874939 [16:37:36]1040 (4) - 119148 [16:37:36]1012 (4) - 30.07.2024 10:45 [16:37:36]1206 (1) - 0 [16:37:36]OFD Sender: Remove packet 119148 [16:37:36]ProducePacketName [16:37:36]name=ofd_packets/00119148 [16:37:36]NVStorageDeleteData [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]accept exits with 9 [16:37:51]New connection [16:37:51]New thread 3066887524 created [16:37:51]Thread 3067030884 joined [16:37:51]Waiting for new connection... [16:37:51] Sock 9.Parse request [16:37:51]Sock 9.Check first char [16:37:51]Sock 9.First char is OK [16:37:51]request: POST /json_proto HTTP/1.0 [16:37:51]Method: POST [16:37:51]URL: /json_proto [16:37:51]Method is POST - this is cgi request [16:37:51]url: /json_proto [16:37:51]query_string will be loaded in cgi processing [16:37:51]execute_cgi json_proto POST (null) [16:37:51]execute_cgi path=json_proto method=POST [16:37:51]POST find Content-Length [16:37:51]Host: 172.17.45.7:8080 [16:37:51]Content-Length: 682 [16:37:51]Content-Type: application/json [16:37:51] [16:37:51]POST finish read [16:37:51]Found Content-Length = 682 [16:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37:51]execute_script... [16:37: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)950070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:37:51]POST & json_proto [16:37:51]process_json_proto [16:37:51]json parsed OK: [16:37:51]protocol is kg_v1.0 [16:37:51]action value=close_receipt [16:37:51]process_action close_receipt [16:37:51]cmd_close_receipt [16:37:51]MH_GetDate [16:37:51]Write to MH i2c: F0 00 00 8F 01 7F [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: F0 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: F0 09 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: F0 09 00 8F 01 00 DF 16 A9 66 90 0F 3E 66 CF [16:37:51]GetLastDocTimeStamp 1722357452 [16:37:51]current date 1722357471 [16:37:51]FM_GetShiftState [16:37:51]SAM_PROTO_GetShiftState [16:37:51]wFMCommunicate request_size=4 [16:37:51]MH_SAM_APDU [16:37:51]CAPDU: 80 13 01 00 [16:37:51]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [16:37:51]Write i2c OK [16:37:51]MH_I2C_Read... [16:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:51]Read from MH i2c: E2 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 [16:37:51]MH_I2C_Read... [16:37:51]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D9 [16:37:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:37:51]wFMCommunicate OK [16:37:51]SAM_PROTO_GetShiftState done [16:37:51]FM_GetShiftState done [16:37:51]opened in 1722298242 [16:37:51]opened+sec_in_day 1722384642 [16:37:51]quantity*price = 100005 [16:37:51]sum+1 = 100006 [16:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 201 30.07.2024 16:37 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119149 ФПД: 275412330971335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163751&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119149&fm=275412330971335&tin=02508201610067®Number=0000000000092660&sum=100000 [16:37:52]StoreToDocumentArchive [16:37:52]shift 435 fd 119149 [16:37:52]save to /storage/0435/doc_00119149 [16:37:52]save last doc name /storage/0435/doc_00119149 to /storage/kkm_last_doc_name [16:37:52]save OK [16:37:52]Clear old archive folders... [16:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:37:52]tlvbuf is 00E4D780 [16:37:52]SAM_PROTO_ClearQueue [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 09 00 00 [16:37:52]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_ClearQueue done [16:37:52]KKMCreateOFDPacket [16:37:52]OFDProtocolAddRootSTLVToBuf [16:37:52]FM_MakeSignedData [16:37:52]FM_MakeSignedData [16:37:52]SAM_PROTO_SignData [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 01 02 [16:37:52]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]wFMCommunicate request_size=255 [16:37:52]MH_SAM_APDU [16:37: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DF 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D1 01 00 35 04 06 00 FA [16:37:52]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 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DF 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D1 01 00 35 04 06 00 FA 00 00 E5 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]wFMCommunicate request_size=10 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 02 02 05 7C 6E 27 80 C7 [16:37:52]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 7C 6E 27 80 C7 00 00 7D [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [16:37:52]RAPDU: 90 00 [16:37:52]wFMCommunicate OK [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 0D 03 02 [16:37:52]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0B 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 0B 00 A1 01 00 7B 4F D7 8D 46 84 C6 70 90 00 4C [16:37:52]RAPDU: 7B 4F D7 8D 46 84 C6 70 90 00 [16:37:52]wFMCommunicate OK [16:37:52]SAM_PROTO_SignData done [16:37:52]FM_MakeSignedData done [16:37:52]CreateOFDProtocolMessage [16:37:52]wFMCommunicate request_size=4 [16:37:52]MH_SAM_APDU [16:37:52]CAPDU: 80 11 00 00 [16:37:52]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:52]Read from MH i2c: E2 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: E2 17 00 [16:37:52]MH_I2C_Read... [16:37: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 34 39 33 39 90 00 78 [16:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:37:52]wFMCommunicate OK [16:37:52]CreateOFDProtocolMessage done [16:37:52]OFDSenderStorePacket 119149 [16:37:52]StoreOFDPacket docnum=119149 [16:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A CA 07 01 1B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DF 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D1 01 00 35 04 06 00 FA 7C 6E 27 80 C7 7B 4F D7 8D 46 84 C6 70 [16:37:52]CheckFolder [16:37:52]dirname=/storage/ofd_packets [16:37:52]CheckFolder done [16:37:52]ProducePacketName [16:37:52]name=ofd_packets/00119149 [16:37:52]NVStorageSaveData ofd_packets/00119149 [16:37:52]File name is /storage/ofd_packets/00119149 [16:37:52]Write 301 bytes [16:37:52]NVStorageSaveData done [16:37:52]OFDSenderStorePacket done [16:37:52]KKMCreateOFDPacket done [16:37:52]NVStorageSaveData kkm_last_timestamp [16:37:52]File name is /storage/kkm_last_timestamp [16:37:52]Write 4 bytes [16:37:52]NVStorageSaveData done [16:37:52]ExternCall_PrintAddStr [16:37:52]wPrintStart [16:37:52]Write to MH i2c: 01 00 00 A3 01 A4 [16:37:52]Write i2c OK [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: 01 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: 01 07 00 [16:37:52]MH_I2C_Read... [16:37:52]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [16:37:52]RasterBufferAndPrint [16:37:52]line Счет N : (1)950070 [16:37:52]line ИНН: 02508201610067 [16:37:52]line Контрольно-Кассовый Чек [16:37:52]line ПРОДАЖА [16:37:52]line ТРК (МРК, ГНК) : 51 [16:37:52]line Товар: 2710124130 [16:37:52]line Аи-92-К-4 [16:37:52]line 14.750 * 67.80 [16:37:52]line = 1000.05 [16:37:52]line НДС 12% НСП 1% [16:37:52]line > о реализуемом товаре [16:37:52]line ОКРУГЛЕНИЕ: -0.05 [16:37:52]line ИТОГО: 1000.00 [16:37:52]line Внесено: 1000.00 [16:37:52]line СДАЧА: 0.00 [16:37:52]line НСП 1% : 8.85 [16:37:52]line НДС 12% : 106.20 [16:37:52]line Наличными: 1000.00 [16:37:52]line Безнал.: 0.00 [16:37:52]line Место: АЗС № 134 "Партнер Нефть" [16:37:52]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:37:52]line СНО: Общий режим [16:37:52]line Чек 201 30.07.2024 16:37 [16:37:52]line Смена: 435 ФФД: 1.0 [16:37:52]line ЗНМ: 0300000044 [16:37:52]line РНМ: 0000000000092660 [16:37:52]line Версия ККМ: 001 [16:37:52]line ФМ: 0000000000874939 [16:37:52]line ФД: 119149 [16:37:52]line ФПД: 275412330971335 [16:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163751&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119149&fm=275412330971335&tin=02508201610067®Number=0000000000092660&sum=100000 [16:37:52]written 0, free lines is 4095 [16:37:52]OFD Sender: Processing packet 119149 [packets to send 86, broken 85] [16:37:52]ProducePacketName [16:37:52]name=ofd_packets/00119149 [16:37:52]OFD Sender: To server: pG, [16:37:52]CommunicateWithHost lk.salyk.kg:30040 [16:37:52]ConnectInit lk.salyk.kg [16:37:53]Write to MH i2c: 01 00 00 CD 01 CE [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 DE 0C BF [16:37:53]RasterBufferAndPrint [16:37:53]line [16:37:53]line [16:37:53]line [16:37:53]line [16:37:53]line [16:37:53]written 0, free lines is 3300 [16:37:53]MH_Cut [16:37:53]Write to MH i2c: D1 01 00 D4 01 01 A7 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: D1 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: D1 01 00 [16:37:53]MH_I2C_Read... [16:37:53]Read from MH i2c: D1 01 00 D4 01 00 A6 [16:37:53]Write to MH i2c: 01 00 00 D5 01 D6 [16:37:53]Write i2c OK [16:37:53]MH_I2C_Read... [16:37:53]*** Cut start [16:37:53]*** Partial cut [16:37:53]*** CUTSNS_PIN = 1 [16:37:54]*** CUTSNS_PIN = 0 [16:37:54]*** Brake cut motor [16:37:54]Connected sock=10 [16:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2A CA 07 01 1B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 DF 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6D D1 01 00 35 04 06 00 FA 7C 6E 27 80 C7 7B 4F D7 8D 46 84 C6 70 [16:37:54]Read from MH i2c: 01 [16:37:54]MH_I2C_Read... [16:37:54]*** Stop cut motor [16:37:54]Read from MH i2c: *** Cut end [16:37:54]01 07 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [16:37:54]process_action close_receipt done [16:37:54]requested_data is exist [16:37:54]produce_requested_data [16:37:54]requested_item fm.sn is exist - process it [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 11 00 00 [16:37:54]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 17 00 [16:37:54]MH_I2C_Read... [16:37: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 34 39 33 39 90 00 AC [16:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:37:54]wFMCommunicate OK [16:37:54]requested_item fd.num is exist - process it [16:37:54]SAM_PROTO_GetFieldsCounters [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 13 00 00 [16:37:54]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]Received data: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A7 C3 47 00 59 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 34 39 33 39 10 04 04 00 6D D1 01 00 F4 03 04 00 6B C4 A8 66 B6 04 01 00 00 A8 8A 81 70 A8 E8 4B C2 [16:37:54]CommunicateWithHost err = 0 [16:37:54]CheckOFDResponse [16:37:54]1017 (14) - 77093643461234 [16:37:54]1041 (16) - 0000000000874939 [16:37:54]1040 (4) - 119149 [16:37:54]1012 (4) - 30.07.2024 10:46 [16:37:54]1206 (1) - 0 [16:37:54]OFD Sender: Remove packet 119149 [16:37:54]ProducePacketName [16:37:54]name=ofd_packets/00119149 [16:37:54]NVStorageDeleteData [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 62 00 [16:37:54]MH_I2C_Read... [16:37: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_GetFieldsCounters done [16:37:54]requested_item shift.num is exist - process it [16:37:54]requested_item shift.opened is exist - process it [16:37:54]req_shift_opened [16:37:54]FM_GetShiftState [16:37:54]SAM_PROTO_GetShiftState [16:37:54]wFMCommunicate request_size=4 [16:37:54]MH_SAM_APDU [16:37:54]CAPDU: 80 13 01 00 [16:37:54]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [16:37:54]Write i2c OK [16:37:54]MH_I2C_Read... [16:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:54]Read from MH i2c: E2 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0E 00 [16:37:54]MH_I2C_Read... [16:37:54]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 21 [16:37:54]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:37:54]wFMCommunicate OK [16:37:54]SAM_PROTO_GetShiftState done [16:37:54]FM_GetShiftState done [16:37:54]req_shift_opened done [16:37:54]requested_item shift.open_date is exist - process it [16:37:54]req_shift_open_date [16:37:54]req_shift_open_date done [16:37:54]produce_requested_data done [16:37:54]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119149,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:37:54]process_action_free close_receipt [16:37:54]json_value_free [16:37:54]json_value_free done [16:37:54]process_json_proto returns [16:37:54]Send response to host [16:37:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119149,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:37:54]free response buf [16:37:54]execute_script done [16:37:54]execute_script returns [16:37:54]free content buf [16:37:54]Sock 9.Close socket [16:37:54]Sock 9.Thread stoped [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:05]accept exits with 7 [16:38:05]New connection [16:38:05]New thread 3067030884 created [16:38:05]Thread 3066887524 joined [16:38:05]Waiting for new connection... [16:38:05] Sock 7.Parse request [16:38:05]Sock 7.Check first char [16:38:05]Sock 7.First char is OK [16:38:05]request: POST /json_proto HTTP/1.0 [16:38:05]Method: POST [16:38:05]URL: /json_proto [16:38:05]Method is POST - this is cgi request [16:38:05]url: /json_proto [16:38:05]query_string will be loaded in cgi processing [16:38:05]execute_cgi json_proto POST (null) [16:38:05]execute_cgi path=json_proto method=POST [16:38:05]POST find Content-Length [16:38:05]Host: 172.17.45.7:8080 [16:38:05]Content-Length: 739 [16:38:05]Content-Type: application/json [16:38:05] [16:38:05]POST finish read [16:38:05]Found Content-Length = 739 [16:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119149, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:38:05]execute_script... [16:38:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119149, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:38:05]POST & json_proto [16:38:05]process_json_proto [16:38:05]json parsed OK: [16:38:05]protocol is kg_v1.0 [16:38:05]action value=close_receipt [16:38:05]process_action close_receipt [16:38:05]cmd_close_receipt [16:38:05]MH_GetDate [16:38:05]Write to MH i2c: F0 00 00 D9 01 C9 [16:38:05]Write i2c OK [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: F0 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: F0 09 00 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: F0 09 00 D9 01 00 EE 16 A9 66 90 0F 3E 66 28 [16:38:05]GetLastDocTimeStamp 1722357471 [16:38:05]current date 1722357486 [16:38:05]FM_GetShiftState [16:38:05]SAM_PROTO_GetShiftState [16:38:05]wFMCommunicate request_size=4 [16:38:05]MH_SAM_APDU [16:38:05]CAPDU: 80 13 01 00 [16:38:05]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [16:38:05]Write i2c OK [16:38:05]MH_I2C_Read... [16:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:05]Read from MH i2c: E2 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: E2 0E 00 [16:38:05]MH_I2C_Read... [16:38:05]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 23 [16:38:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:38:05]wFMCommunicate OK [16:38:05]SAM_PROTO_GetShiftState done [16:38:05]FM_GetShiftState done [16:38:05]opened in 1722298242 [16:38:05]opened+sec_in_day 1722384642 [16:38:05]quantity*price = 100005 [16:38:05]sum+1 = 100006 [16:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 202 30.07.2024 16:38 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119149 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119150 ФПД: 12407509319544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163806&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119150&fm=12407509319544&tin=02508201610067®Number=0000000000092660&sum=100000 [16:38:07]StoreToDocumentArchive [16:38:07]shift 435 fd 119150 [16:38:07]save to /storage/0435/doc_00119150 [16:38:07]save last doc name /storage/0435/doc_00119150 to /storage/kkm_last_doc_name [16:38:07]save OK [16:38:07]Clear old archive folders... [16:38:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [16:38:07]tlvbuf is 00E4F380 [16:38:07]SAM_PROTO_ClearQueue [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 09 00 00 [16:38:07]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [16:38:07]RAPDU: 90 00 [16:38:07]wFMCommunicate OK [16:38:07]SAM_PROTO_ClearQueue done [16:38:07]KKMCreateOFDPacket [16:38:07]OFDProtocolAddRootSTLVToBuf [16:38:07]FM_MakeSignedData [16:38:07]FM_MakeSignedData [16:38:07]SAM_PROTO_SignData [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 0D 01 02 [16:38:07]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [16:38:07]RAPDU: 90 00 [16:38:07]wFMCommunicate OK [16:38:07]wFMCommunicate request_size=255 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 0D 02 02 FA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 EE 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6D D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [16:38:07]Write to MH i2c: E2 02 01 EB 01 80 0D 02 02 FA 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 EE 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6D D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 A9 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [16:38:07]RAPDU: 90 00 [16:38:07]wFMCommunicate OK [16:38:07]wFMCommunicate request_size=38 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D1 01 00 35 04 06 00 0B 48 D9 2F 7F 78 [16:38:07]Write to MH i2c: E2 29 00 EC 01 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D1 01 00 35 04 06 00 0B 48 D9 2F 7F 78 00 00 8A [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [16:38:07]RAPDU: 90 00 [16:38:07]wFMCommunicate OK [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 0D 03 02 [16:38:07]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 0B 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 0B 00 ED 01 00 48 C6 F5 E3 E7 05 C6 92 90 00 94 [16:38:07]RAPDU: 48 C6 F5 E3 E7 05 C6 92 90 00 [16:38:07]wFMCommunicate OK [16:38:07]SAM_PROTO_SignData done [16:38:07]FM_MakeSignedData done [16:38:07]CreateOFDProtocolMessage [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 11 00 00 [16:38:07]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 17 00 [16:38:07]MH_I2C_Read... [16:38:07]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 34 39 33 39 90 00 C4 [16:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:07]wFMCommunicate OK [16:38:07]CreateOFDProtocolMessage done [16:38:07]OFDSenderStorePacket 119150 [16:38:07]StoreOFDPacket docnum=119150 [16:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 36 79 23 01 CD 35 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 EE 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6D D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D1 01 00 35 04 06 00 0B 48 D9 2F 7F 78 48 C6 F5 E3 E7 05 C6 92 [16:38:07]CheckFolder [16:38:07]dirname=/storage/ofd_packets [16:38:07]CheckFolder done [16:38:07]ProducePacketName [16:38:07]name=ofd_packets/00119150 [16:38:07]NVStorageSaveData ofd_packets/00119150 [16:38:07]File name is /storage/ofd_packets/00119150 [16:38:07]Write 329 bytes [16:38:07]NVStorageSaveData done [16:38:07]OFDSenderStorePacket done [16:38:07]KKMCreateOFDPacket done [16:38:07]NVStorageSaveData kkm_last_timestamp [16:38:07]File name is /storage/kkm_last_timestamp [16:38:07]Write 4 bytes [16:38:07]NVStorageSaveData done [16:38:07]ExternCall_PrintAddStr [16:38:07]wPrintStart [16:38:07]Write to MH i2c: 01 00 00 EF 01 F0 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 07 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [16:38:07]RasterBufferAndPrint [16:38:07]line Счет N : (1)950070 [16:38:07]line ИНН: 02508201610067 [16:38:07]line Контрольно-Кассовый Чек [16:38:07]line ВОЗВРАТ ПРОДАЖИ [16:38:07]line ТРК (МРК, ГНК) : 51 [16:38:07]line Товар: 2710124130 [16:38:07]line Аи-92-К-4 [16:38:07]line 14.750 * 67.80 [16:38:07]line = 1000.05 [16:38:07]line НДС 12% НСП 1% [16:38:07]line > о реализуемом товаре [16:38:07]line ОКРУГЛЕНИЕ: -0.05 [16:38:07]line ИТОГО: 1000.00 [16:38:07]line НСП 1% : 8.85 [16:38:07]line НДС 12% : 106.20 [16:38:07]line Наличными: 1000.00 [16:38:07]line Безнал.: 0.00 [16:38:07]line Место: АЗС № 134 "Партнер Нефть" [16:38:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:38:07]line СНО: Общий режим [16:38:07]line Чек 202 30.07.2024 16:38 [16:38:07]line Смена: 435 ФФД: 1.0 [16:38:07]line ЗНМ: 0300000044 [16:38:07]line РНМ: 0000000000092660 [16:38:07]line Версия ККМ: 001 [16:38:07]line ФД осн.: 119149 [16:38:07]line ФМ осн.: 0000000000874939 [16:38:07]line ФМ: 0000000000874939 [16:38:07]line ФД: 119150 [16:38:07]line ФПД: 12407509319544 [16:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163806&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119150&fm=12407509319544&tin=02508201610067®Number=0000000000092660&sum=100000 [16:38:07]written 0, free lines is 4095 [16:38:07]OFD Sender: Processing packet 119150 [packets to send 86, broken 85] [16:38:07]ProducePacketName [16:38:07]name=ofd_packets/00119150 [16:38:07]OFD Sender: To server: pG, [16:38:07]CommunicateWithHost lk.salyk.kg:30040 [16:38:07]ConnectInit lk.salyk.kg [16:38:08]Write to MH i2c: 01 00 00 19 02 1B [16:38:08]Write i2c OK [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: 01 [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: 01 07 00 [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 E6 0C 14 [16:38:08]RasterBufferAndPrint [16:38:08]line [16:38:08]line [16:38:08]line [16:38:08]line [16:38:08]line [16:38:08]written 0, free lines is 3315 [16:38:08]MH_Cut [16:38:08]Write to MH i2c: D1 01 00 20 02 01 F4 [16:38:08]Write i2c OK [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: D1 [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: D1 01 00 [16:38:08]MH_I2C_Read... [16:38:08]Read from MH i2c: D1 01 00 20 02 00 F3 [16:38:08]Write to MH i2c: 01 00 00 21 02 23 [16:38:08]Write i2c OK [16:38:08]MH_I2C_Read... [16:38:08]*** Cut start [16:38:08]*** Partial cut [16:38:08]*** CUTSNS_PIN = 1 [16:38:09]*** CUTSNS_PIN = 0 [16:38:09]*** Brake cut motor [16:38:09]Read from MH i2c: 01 [16:38:09]MH_I2C_Read... [16:38:09]*** Stop cut motor [16:38:09]*** Cut end [16:38:09]Read from MH i2c: 01 07 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [16:38:09]process_action close_receipt done [16:38:09]requested_data is exist [16:38:09]produce_requested_data [16:38:09]requested_item fm.sn is exist - process it [16:38:09]wFMCommunicate request_size=4 [16:38:09]MH_SAM_APDU [16:38:09]CAPDU: 80 11 00 00 [16:38:09]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:09]Read from MH i2c: E2 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 17 00 [16:38:09]MH_I2C_Read... [16:38:09]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 34 39 33 39 90 00 F9 [16:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:09]wFMCommunicate OK [16:38:09]requested_item fd.num is exist - process it [16:38:09]SAM_PROTO_GetFieldsCounters [16:38:09]wFMCommunicate request_size=4 [16:38:09]MH_SAM_APDU [16:38:09]CAPDU: 80 13 00 00 [16:38:09]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:09]Read from MH i2c: E2 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 62 00 [16:38:09]MH_I2C_Read... [16:38:09]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [16:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:09]wFMCommunicate OK [16:38:09]SAM_PROTO_GetFieldsCounters done [16:38:09]requested_item shift.num is exist - process it [16:38:09]requested_item shift.opened is exist - process it [16:38:09]req_shift_opened [16:38:09]FM_GetShiftState [16:38:09]SAM_PROTO_GetShiftState [16:38:09]wFMCommunicate request_size=4 [16:38:09]MH_SAM_APDU [16:38:09]CAPDU: 80 13 01 00 [16:38:09]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [16:38:09]Write i2c OK [16:38:09]MH_I2C_Read... [16:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:09]Read from MH i2c: E2 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 0E 00 [16:38:09]MH_I2C_Read... [16:38:09]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6E [16:38:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:38:09]wFMCommunicate OK [16:38:09]SAM_PROTO_GetShiftState done [16:38:09]FM_GetShiftState done [16:38:09]req_shift_opened done [16:38:09]requested_item shift.open_date is exist - process it [16:38:09]req_shift_open_date [16:38:09]req_shift_open_date done [16:38:09]produce_requested_data done [16:38:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119150,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:38:09]process_action_free close_receipt [16:38:09]json_value_free [16:38:09]json_value_free done [16:38:09]process_json_proto returns [16:38:09]Send response to host [16:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119150,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:38:09]free response buf [16:38:09]execute_script done [16:38:09]execute_script returns [16:38:09]free content buf [16:38:09]Sock 7.Close socket [16:38:09]Sock 7.Thread stoped [16:38:12]ConnectInit Can't take IP for lk.salyk.kg [16:38:12]CommunicateWithHost connect error [16:38:12]CommunicateWithHost err = -1 [16:38:12]OFD Sender: Server communicate error [16:38:17]OFD Sender: Processing packet 119150 [packets to send 86, broken 85] [16:38:17]ProducePacketName [16:38:17]name=ofd_packets/00119150 [16:38:17]OFD Sender: To server: pG, [16:38:17]CommunicateWithHost lk.salyk.kg:30040 [16:38:17]ConnectInit lk.salyk.kg [16:38:22]ConnectInit Can't take IP for lk.salyk.kg [16:38:22]CommunicateWithHost connect error [16:38:22]CommunicateWithHost err = -1 [16:38:22]OFD Sender: Server communicate error [16:38:23]accept exits with 10 [16:38:23]New connection [16:38:23]New thread 3066887524 created [16:38:23]Thread 3067030884 joined [16:38:23]Waiting for new connection... [16:38:23] Sock 10.Parse request [16:38:23]Sock 10.Check first char [16:38:23]Sock 10.First char is OK [16:38:23]request: POST /json_proto HTTP/1.0 [16:38:23]Method: POST [16:38:23]URL: /json_proto [16:38:23]Method is POST - this is cgi request [16:38:23]url: /json_proto [16:38:23]query_string will be loaded in cgi processing [16:38:23]execute_cgi json_proto POST (null) [16:38:23]execute_cgi path=json_proto method=POST [16:38:23]POST find Content-Length [16:38:23]Host: 172.17.45.7:8080 [16:38:23]Content-Length: 682 [16:38:23]Content-Type: application/json [16:38:23] [16:38:23]POST finish read [16:38:23]Found Content-Length = 682 [16:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:23]execute_script... [16:38: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)950071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:23]POST & json_proto [16:38:23]process_json_proto [16:38:23]json parsed OK: [16:38:23]protocol is kg_v1.0 [16:38:23]action value=close_receipt [16:38:23]process_action close_receipt [16:38:23]cmd_close_receipt [16:38:23]MH_GetDate [16:38:23]Write to MH i2c: F0 00 00 25 02 16 [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: F0 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: F0 09 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: F0 09 00 25 02 00 00 17 A9 66 90 0F 3E 66 88 [16:38:23]GetLastDocTimeStamp 1722357486 [16:38:23]current date 1722357504 [16:38:23]FM_GetShiftState [16:38:23]SAM_PROTO_GetShiftState [16:38:23]wFMCommunicate request_size=4 [16:38:23]MH_SAM_APDU [16:38:23]CAPDU: 80 13 01 00 [16:38:23]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [16:38:23]Write i2c OK [16:38:23]MH_I2C_Read... [16:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:23]Read from MH i2c: E2 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 0E 00 [16:38:23]MH_I2C_Read... [16:38:23]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 70 [16:38:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:38:23]wFMCommunicate OK [16:38:23]SAM_PROTO_GetShiftState done [16:38:23]FM_GetShiftState done [16:38:23]opened in 1722298242 [16:38:23]opened+sec_in_day 1722384642 [16:38:23]quantity*price = 100021 [16:38:23]sum+1 = 100023 [16:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 203 30.07.2024 16:38 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119151 ФПД: 196008011546944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163824&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119151&fm=196008011546944&tin=02508201610067®Number=0000000000092660&sum=100000 [16:38:24]StoreToDocumentArchive [16:38:24]shift 435 fd 119151 [16:38:24]save to /storage/0435/doc_00119151 [16:38:24]save last doc name /storage/0435/doc_00119151 to /storage/kkm_last_doc_name [16:38:24]save OK [16:38:24]Clear old archive folders... [16:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:38:24]tlvbuf is 00EA2070 [16:38:24]SAM_PROTO_ClearQueue [16:38:24]wFMCommunicate request_size=4 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 09 00 00 [16:38:24]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [16:38:24]RAPDU: 90 00 [16:38:24]wFMCommunicate OK [16:38:24]SAM_PROTO_ClearQueue done [16:38:24]KKMCreateOFDPacket [16:38:24]OFDProtocolAddRootSTLVToBuf [16:38:24]FM_MakeSignedData [16:38:24]FM_MakeSignedData [16:38:24]SAM_PROTO_SignData [16:38:24]wFMCommunicate request_size=4 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 0D 01 02 [16:38:24]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [16:38:24]RAPDU: 90 00 [16:38:24]wFMCommunicate OK [16:38:24]wFMCommunicate request_size=255 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 00 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D1 01 00 35 04 06 00 B2 [16:38:24]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 00 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D1 01 00 35 04 06 00 B2 00 00 F7 [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [16:38:24]RAPDU: 90 00 [16:38:24]wFMCommunicate OK [16:38:24]wFMCommunicate request_size=10 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 0D 02 02 05 44 AB E6 C1 40 [16:38:24]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 44 AB E6 C1 40 00 00 92 [16:38:24]Write i2c OK [16:38:24]MH_I2C_Read... [16:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:24]Read from MH i2c: E2 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 [16:38:24]MH_I2C_Read... [16:38:24]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [16:38:24]RAPDU: 90 00 [16:38:24]wFMCommunicate OK [16:38:24]wFMCommunicate request_size=4 [16:38:24]MH_SAM_APDU [16:38:24]CAPDU: 80 0D 03 02 [16:38:24]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:25]Read from MH i2c: E2 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 0B 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 0B 00 37 02 00 25 B1 E3 19 43 3E B2 2B 90 00 E5 [16:38:25]RAPDU: 25 B1 E3 19 43 3E B2 2B 90 00 [16:38:25]wFMCommunicate OK [16:38:25]SAM_PROTO_SignData done [16:38:25]FM_MakeSignedData done [16:38:25]CreateOFDProtocolMessage [16:38:25]wFMCommunicate request_size=4 [16:38:25]MH_SAM_APDU [16:38:25]CAPDU: 80 11 00 00 [16:38:25]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:25]Read from MH i2c: E2 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: E2 17 00 [16:38:25]MH_I2C_Read... [16:38:25]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 34 39 33 39 90 00 0F [16:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:25]wFMCommunicate OK [16:38:25]CreateOFDProtocolMessage done [16:38:25]OFDSenderStorePacket 119151 [16:38:25]StoreOFDPacket docnum=119151 [16:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 87 5E 07 01 8E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 00 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D1 01 00 35 04 06 00 B2 44 AB E6 C1 40 25 B1 E3 19 43 3E B2 2B [16:38:25]CheckFolder [16:38:25]dirname=/storage/ofd_packets [16:38:25]CheckFolder done [16:38:25]ProducePacketName [16:38:25]name=ofd_packets/00119151 [16:38:25]NVStorageSaveData ofd_packets/00119151 [16:38:25]File name is /storage/ofd_packets/00119151 [16:38:25]Write 301 bytes [16:38:25]NVStorageSaveData done [16:38:25]OFDSenderStorePacket done [16:38:25]KKMCreateOFDPacket done [16:38:25]NVStorageSaveData kkm_last_timestamp [16:38:25]File name is /storage/kkm_last_timestamp [16:38:25]Write 4 bytes [16:38:25]NVStorageSaveData done [16:38:25]ExternCall_PrintAddStr [16:38:25]wPrintStart [16:38:25]Write to MH i2c: 01 00 00 39 02 3B [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [16:38:25]RasterBufferAndPrint [16:38:25]line Счет N : (1)950071 [16:38:25]line ИНН: 02508201610067 [16:38:25]line Контрольно-Кассовый Чек [16:38:25]line ПРОДАЖА [16:38:25]line ТРК (МРК, ГНК) : 53 [16:38:25]line Товар: 2710124500 [16:38:25]line Аи-95-К-3 [16:38:25]line 13.480 * 74.20 [16:38:25]line = 1000.22 [16:38:25]line НДС 12% НСП 1% [16:38:25]line > о реализуемом товаре [16:38:25]line ОКРУГЛЕНИЕ: -0.22 [16:38:25]line ИТОГО: 1000.00 [16:38:25]line Внесено: 1000.00 [16:38:25]line СДАЧА: 0.00 [16:38:25]line НСП 1% : 8.85 [16:38:25]line НДС 12% : 106.22 [16:38:25]line Наличными: 1000.00 [16:38:25]line Безнал.: 0.00 [16:38:25]line Место: АЗС № 134 "Партнер Нефть" [16:38:25]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:38:25]line СНО: Общий режим [16:38:25]line Чек 203 30.07.2024 16:38 [16:38:25]line Смена: 435 ФФД: 1.0 [16:38:25]line ЗНМ: 0300000044 [16:38:25]line РНМ: 0000000000092660 [16:38:25]line Версия ККМ: 001 [16:38:25]line ФМ: 0000000000874939 [16:38:25]line ФД: 119151 [16:38:25]line ФПД: 196008011546944 [16:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163824&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119151&fm=196008011546944&tin=02508201610067®Number=0000000000092660&sum=100000 [16:38:25]written 0, free lines is 4095 [16:38:25]OFD Sender: Processing packet 119150 [packets to send 87, broken 85] [16:38:25]ProducePacketName [16:38:25]name=ofd_packets/00119150 [16:38:25]OFD Sender: To server: pG, [16:38:25]CommunicateWithHost lk.salyk.kg:30040 [16:38:25]ConnectInit lk.salyk.kg [16:38:25]Write to MH i2c: 01 00 00 63 02 65 [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 DE 0C 56 [16:38:25]RasterBufferAndPrint [16:38:25]line [16:38:25]line [16:38:25]line [16:38:25]line [16:38:25]line [16:38:25]written 0, free lines is 3316 [16:38:25]MH_Cut [16:38:25]Write to MH i2c: D1 01 00 6A 02 01 3E [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: D1 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: D1 01 00 [16:38:25]MH_I2C_Read... [16:38:25]Read from MH i2c: D1 01 00 6A 02 00 3D [16:38:25]Write to MH i2c: 01 00 00 6B 02 6D [16:38:25]Write i2c OK [16:38:25]MH_I2C_Read... [16:38:26]*** Cut start [16:38:26]*** Partial cut [16:38:26]*** CUTSNS_PIN = 1 [16:38:26]*** CUTSNS_PIN = 0 [16:38:26]*** Brake cut motor [16:38:26]Read from MH i2c: 01 [16:38:26]MH_I2C_Read... [16:38:26]*** Stop cut motor [16:38:26]*** Cut end [16:38:26]Read from MH i2c: 01 07 00 [16:38:26]MH_I2C_Read... [16:38:26]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [16:38:26]process_action close_receipt done [16:38:26]requested_data is exist [16:38:26]produce_requested_data [16:38:26]requested_item fm.sn is exist - process it [16:38:26]wFMCommunicate request_size=4 [16:38:26]MH_SAM_APDU [16:38:26]CAPDU: 80 11 00 00 [16:38:26]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [16:38:26]Write i2c OK [16:38:26]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 17 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 43 [16:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:38:27]wFMCommunicate OK [16:38:27]requested_item fd.num is exist - process it [16:38:27]SAM_PROTO_GetFieldsCounters [16:38:27]wFMCommunicate request_size=4 [16:38:27]MH_SAM_APDU [16:38:27]CAPDU: 80 13 00 00 [16:38:27]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 62 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 62 00 6D 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [16:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 6F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:38:27]wFMCommunicate OK [16:38:27]SAM_PROTO_GetFieldsCounters done [16:38:27]requested_item shift.num is exist - process it [16:38:27]requested_item shift.opened is exist - process it [16:38:27]req_shift_opened [16:38:27]FM_GetShiftState [16:38:27]SAM_PROTO_GetShiftState [16:38:27]wFMCommunicate request_size=4 [16:38:27]MH_SAM_APDU [16:38:27]CAPDU: 80 13 01 00 [16:38:27]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [16:38:27]Write i2c OK [16:38:27]MH_I2C_Read... [16:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:27]Read from MH i2c: E2 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 0E 00 [16:38:27]MH_I2C_Read... [16:38:27]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B8 [16:38:27]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:38:27]wFMCommunicate OK [16:38:27]SAM_PROTO_GetShiftState done [16:38:27]FM_GetShiftState done [16:38:27]req_shift_opened done [16:38:27]requested_item shift.open_date is exist - process it [16:38:27]req_shift_open_date [16:38:27]req_shift_open_date done [16:38:27]produce_requested_data done [16:38:27]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119151,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:38:27]process_action_free close_receipt [16:38:27]json_value_free [16:38:27]json_value_free done [16:38:27]process_json_proto returns [16:38:27]Send response to host [16:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119151,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:38:27]free response buf [16:38:27]execute_script done [16:38:27]execute_script returns [16:38:27]free content buf [16:38:27]Sock 10.Close socket [16:38:27]Sock 10.Thread stoped [16:38:30]ConnectInit Can't take IP for lk.salyk.kg [16:38:30]CommunicateWithHost connect error [16:38:30]CommunicateWithHost err = -1 [16:38:30]OFD Sender: Server communicate error [16:38:35]OFD Sender: Processing packet 119150 [packets to send 87, broken 85] [16:38:35]ProducePacketName [16:38:35]name=ofd_packets/00119150 [16:38:35]OFD Sender: To server: pG, [16:38:35]CommunicateWithHost lk.salyk.kg:30040 [16:38:35]ConnectInit lk.salyk.kg [16:38:40]ConnectInit Can't take IP for lk.salyk.kg [16:38:40]CommunicateWithHost connect error [16:38:40]CommunicateWithHost err = -1 [16:38:40]OFD Sender: Server communicate error [16:38:45]OFD Sender: Processing packet 119150 [packets to send 87, broken 85] [16:38:45]ProducePacketName [16:38:45]name=ofd_packets/00119150 [16:38:45]OFD Sender: To server: pG, [16:38:45]CommunicateWithHost lk.salyk.kg:30040 [16:38:45]ConnectInit lk.salyk.kg [16:38:50]ConnectInit Can't take IP for lk.salyk.kg [16:38:50]CommunicateWithHost connect error [16:38:50]CommunicateWithHost err = -1 [16:38:50]OFD Sender: Server communicate error [16:38:55]OFD Sender: Processing packet 119150 [packets to send 87, broken 85] [16:38:55]ProducePacketName [16:38:55]name=ofd_packets/00119150 [16:38:55]OFD Sender: To server: pG, [16:38:55]CommunicateWithHost lk.salyk.kg:30040 [16:38:55]ConnectInit lk.salyk.kg [16:38:56]Connected sock=10 [16:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 36 79 23 01 CD 35 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 EE 16 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 6D D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D1 01 00 35 04 06 00 0B 48 D9 2F 7F 78 48 C6 F5 E3 E7 05 C6 92 [16:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 71 02 47 00 7E 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6E D1 01 00 F4 03 04 00 AA C4 A8 66 B6 04 01 00 00 8E D8 0A D1 B3 BE B3 63 [16:38:58]CommunicateWithHost err = 0 [16:38:58]CheckOFDResponse [16:38:58]1017 (14) - 77093643461234 [16:38:58]1041 (16) - 0000000000874939 [16:38:58]1040 (4) - 119150 [16:38:58]1012 (4) - 30.07.2024 10:47 [16:38:58]1206 (1) - 0 [16:38:58]OFD Sender: Remove packet 119150 [16:38:58]ProducePacketName [16:38:58]name=ofd_packets/00119150 [16:38:58]NVStorageDeleteData [16:38:58]OFD Sender: Processing packet 119151 [packets to send 86, broken 85] [16:38:58]ProducePacketName [16:38:58]name=ofd_packets/00119151 [16:38:58]OFD Sender: To server: pG, [16:38:58]CommunicateWithHost lk.salyk.kg:30040 [16:38:58]ConnectInit lk.salyk.kg [16:38:59]Connected sock=10 [16:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 87 5E 07 01 8E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 00 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D1 01 00 35 04 06 00 B2 44 AB E6 C1 40 25 B1 E3 19 43 3E B2 2B [16:38:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A3 80 47 00 D7 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 6F D1 01 00 F4 03 04 00 AD C4 A8 66 B6 04 01 00 00 4E 39 48 FD 37 24 28 0A [16:38:59]CommunicateWithHost err = 0 [16:38:59]CheckOFDResponse [16:38:59]1017 (14) - 77093643461234 [16:38:59]1041 (16) - 0000000000874939 [16:38:59]1040 (4) - 119151 [16:38:59]1012 (4) - 30.07.2024 10:47 [16:38:59]1206 (1) - 0 [16:38:59]OFD Sender: Remove packet 119151 [16:38:59]ProducePacketName [16:38:59]name=ofd_packets/00119151 [16:38:59]NVStorageDeleteData [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:34]accept exits with 7 [16:39:34]New connection [16:39:34]New thread 3067030884 created [16:39:34]Thread 3066887524 joined [16:39:34]Waiting for new connection... [16:39:34] Sock 7.Parse request [16:39:34]Sock 7.Check first char [16:39:34]Sock 7.First char is OK [16:39:34]request: POST /json_proto HTTP/1.0 [16:39:34]Method: POST [16:39:34]URL: /json_proto [16:39:34]Method is POST - this is cgi request [16:39:34]url: /json_proto [16:39:34]query_string will be loaded in cgi processing [16:39:34]execute_cgi json_proto POST (null) [16:39:34]execute_cgi path=json_proto method=POST [16:39:34]POST find Content-Length [16:39:34]Host: 172.17.45.7:8080 [16:39:34]Content-Length: 677 [16:39:34]Content-Type: application/json [16:39:34] [16:39:34]POST finish read [16:39:34]Found Content-Length = 677 [16:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:34]execute_script... [16:39: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)950072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:34]POST & json_proto [16:39:34]process_json_proto [16:39:34]json parsed OK: [16:39:34]protocol is kg_v1.0 [16:39:34]action value=close_receipt [16:39:34]process_action close_receipt [16:39:34]cmd_close_receipt [16:39:34]MH_GetDate [16:39:34]Write to MH i2c: F0 00 00 6F 02 60 [16:39:34]Write i2c OK [16:39:34]MH_I2C_Read... [16:39:34]Read from MH i2c: F0 [16:39:34]MH_I2C_Read... [16:39:34]Read from MH i2c: F0 09 00 [16:39:34]MH_I2C_Read... [16:39:34]Read from MH i2c: F0 09 00 6F 02 00 47 17 A9 66 90 0F 3E 66 19 [16:39:34]GetLastDocTimeStamp 1722357504 [16:39:34]current date 1722357575 [16:39:34]FM_GetShiftState [16:39:34]SAM_PROTO_GetShiftState [16:39:34]wFMCommunicate request_size=4 [16:39:34]MH_SAM_APDU [16:39:34]CAPDU: 80 13 01 00 [16:39:34]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [16:39:34]Write i2c OK [16:39:34]MH_I2C_Read... [16:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:34]Read from MH i2c: E2 [16:39:34]MH_I2C_Read... [16:39:34]Read from MH i2c: E2 0E 00 [16:39:34]MH_I2C_Read... [16:39:34]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BA [16:39:34]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:39:34]wFMCommunicate OK [16:39:34]SAM_PROTO_GetShiftState done [16:39:34]FM_GetShiftState done [16:39:34]opened in 1722298242 [16:39:34]opened+sec_in_day 1722384642 [16:39:34]quantity*price = 60003 [16:39:34]sum+1 = 60004 [16:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 204 30.07.2024 16:39 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119152 ФПД: 135824746586547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163935&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119152&fm=135824746586547&tin=02508201610067®Number=0000000000092660&sum=60000 [16:39:35]StoreToDocumentArchive [16:39:35]shift 435 fd 119152 [16:39:35]save to /storage/0435/doc_00119152 [16:39:35]save last doc name /storage/0435/doc_00119152 to /storage/kkm_last_doc_name [16:39:35]save OK [16:39:35]Clear old archive folders... [16:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:35]tlvbuf is 00E48AC0 [16:39:35]SAM_PROTO_ClearQueue [16:39:35]wFMCommunicate request_size=4 [16:39:35]MH_SAM_APDU [16:39:35]CAPDU: 80 09 00 00 [16:39:35]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:35]Read from MH i2c: E2 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 03 00 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [16:39:35]RAPDU: 90 00 [16:39:35]wFMCommunicate OK [16:39:35]SAM_PROTO_ClearQueue done [16:39:35]KKMCreateOFDPacket [16:39:35]OFDProtocolAddRootSTLVToBuf [16:39:35]FM_MakeSignedData [16:39:35]FM_MakeSignedData [16:39:35]SAM_PROTO_SignData [16:39:35]wFMCommunicate request_size=4 [16:39:35]MH_SAM_APDU [16:39:35]CAPDU: 80 0D 01 02 [16:39:35]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:35]Read from MH i2c: E2 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 03 00 [16:39:35]MH_I2C_Read... [16:39:35]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [16:39:35]RAPDU: 90 00 [16:39:35]wFMCommunicate OK [16:39:35]wFMCommunicate request_size=255 [16:39:35]MH_SAM_APDU [16:39: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 47 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D1 01 00 35 04 06 00 7B [16:39:35]Write to MH i2c: E2 02 01 7F 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 47 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D1 01 00 35 04 06 00 7B 00 00 EE [16:39:35]Write i2c OK [16:39:35]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]wFMCommunicate request_size=10 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 02 02 05 88 29 C5 A1 B3 [16:39:36]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 88 29 C5 A1 B3 00 00 D0 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [16:39:36]RAPDU: 90 00 [16:39:36]wFMCommunicate OK [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 0D 03 02 [16:39:36]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 0B 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 0B 00 81 02 00 AD 56 65 D1 5C 38 C9 46 90 00 DB [16:39:36]RAPDU: AD 56 65 D1 5C 38 C9 46 90 00 [16:39:36]wFMCommunicate OK [16:39:36]SAM_PROTO_SignData done [16:39:36]FM_MakeSignedData done [16:39:36]CreateOFDProtocolMessage [16:39:36]wFMCommunicate request_size=4 [16:39:36]MH_SAM_APDU [16:39:36]CAPDU: 80 11 00 00 [16:39:36]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:36]Read from MH i2c: E2 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 17 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [16:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:39:36]wFMCommunicate OK [16:39:36]CreateOFDProtocolMessage done [16:39:36]OFDSenderStorePacket 119152 [16:39:36]StoreOFDPacket docnum=119152 [16:39:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2D 79 07 01 63 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 47 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D1 01 00 35 04 06 00 7B 88 29 C5 A1 B3 AD 56 65 D1 5C 38 C9 46 [16:39:36]CheckFolder [16:39:36]dirname=/storage/ofd_packets [16:39:36]CheckFolder done [16:39:36]ProducePacketName [16:39:36]name=ofd_packets/00119152 [16:39:36]NVStorageSaveData ofd_packets/00119152 [16:39:36]File name is /storage/ofd_packets/00119152 [16:39:36]Write 301 bytes [16:39:36]NVStorageSaveData done [16:39:36]OFDSenderStorePacket done [16:39:36]KKMCreateOFDPacket done [16:39:36]NVStorageSaveData kkm_last_timestamp [16:39:36]File name is /storage/kkm_last_timestamp [16:39:36]Write 4 bytes [16:39:36]NVStorageSaveData done [16:39:36]ExternCall_PrintAddStr [16:39:36]wPrintStart [16:39:36]Write to MH i2c: 01 00 00 83 02 85 [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [16:39:36]RasterBufferAndPrint [16:39:36]line Счет N : (1)950072 [16:39:36]line ИНН: 02508201610067 [16:39:36]line Контрольно-Кассовый Чек [16:39:36]line ПРОДАЖА [16:39:36]line ТРК (МРК, ГНК) : 51 [16:39:36]line Товар: 2710124130 [16:39:36]line Аи-92-К-4 [16:39:36]line 8.850 * 67.80 [16:39:36]line = 600.03 [16:39:36]line НДС 12% НСП 1% [16:39:36]line > о реализуемом товаре [16:39:36]line ОКРУГЛЕНИЕ: -0.03 [16:39:36]line ИТОГО: 600.00 [16:39:36]line Внесено: 600.00 [16:39:36]line СДАЧА: 0.00 [16:39:36]line НСП 1% : 5.31 [16:39:36]line НДС 12% : 63.72 [16:39:36]line Наличными: 600.00 [16:39:36]line Безнал.: 0.00 [16:39:36]line Место: АЗС № 134 "Партнер Нефть" [16:39:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:39:36]line СНО: Общий режим [16:39:36]line Чек 204 30.07.2024 16:39 [16:39:36]line Смена: 435 ФФД: 1.0 [16:39:36]line ЗНМ: 0300000044 [16:39:36]line РНМ: 0000000000092660 [16:39:36]line Версия ККМ: 001 [16:39:36]line ФМ: 0000000000874939 [16:39:36]line ФД: 119152 [16:39:36]line ФПД: 135824746586547 [16:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T163935&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119152&fm=135824746586547&tin=02508201610067®Number=0000000000092660&sum=60000 [16:39:36]written 0, free lines is 4095 [16:39:36]OFD Sender: Processing packet 119152 [packets to send 86, broken 85] [16:39:36]ProducePacketName [16:39:36]name=ofd_packets/00119152 [16:39:36]OFD Sender: To server: pG, [16:39:36]CommunicateWithHost lk.salyk.kg:30040 [16:39:36]ConnectInit lk.salyk.kg [16:39:36]Write to MH i2c: 01 00 00 AD 02 AF [16:39:36]Write i2c OK [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 [16:39:36]MH_I2C_Read... [16:39:36]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 E1 0C A3 [16:39:36]RasterBufferAndPrint [16:39:36]line [16:39:36]line [16:39:36]line [16:39:36]line [16:39:36]line [16:39:36]written 0, free lines is 3318 [16:39:36]Connected sock=11 [16:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 2D 79 07 01 63 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 47 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D1 01 00 35 04 06 00 7B 88 29 C5 A1 B3 AD 56 65 D1 5C 38 C9 46 [16:39:37]MH_Cut [16:39:37]Write to MH i2c: D1 01 00 B4 02 01 88 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: D1 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: D1 01 00 [16:39:37]MH_I2C_Read... [16:39:37]Read from MH i2c: D1 01 00 B4 02 00 87 [16:39:37]Write to MH i2c: 01 00 00 B5 02 B7 [16:39:37]Write i2c OK [16:39:37]MH_I2C_Read... [16:39:37]*** Cut start [16:39:37]*** Partial cut [16:39:37]*** CUTSNS_PIN = 1 [16:39:37]*** CUTSNS_PIN = 0 [16:39:37]*** Brake cut motor [16:39:38]Read from MH i2c: 01 [16:39:38]MH_I2C_Read... [16:39:38]*** Stop cut motor [16:39:38]*** Cut end [16:39:38]Read from MH i2c: 01 07 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [16:39:38]process_action close_receipt done [16:39:38]requested_data is exist [16:39:38]produce_requested_data [16:39:38]requested_item fm.sn is exist - process it [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 11 00 00 [16:39:38]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 17 00 [16:39:38]MH_I2C_Read... [16:39:38]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 34 39 33 39 90 00 8D [16:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:39:38]wFMCommunicate OK [16:39:38]requested_item fd.num is exist - process it [16:39:38]SAM_PROTO_GetFieldsCounters [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 13 00 00 [16:39:38]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 99 2C 47 00 23 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 70 D1 01 00 F4 03 04 00 D2 C4 A8 66 B6 04 01 00 00 88 07 8E 32 ED F2 B4 3A [16:39:38]CommunicateWithHost err = 0 [16:39:38]CheckOFDResponse [16:39:38]1017 (14) - 77093643461234 [16:39:38]1041 (16) - 0000000000874939 [16:39:38]1040 (4) - 119152 [16:39:38]1012 (4) - 30.07.2024 10:47 [16:39:38]1206 (1) - 0 [16:39:38]OFD Sender: Remove packet 119152 [16:39:38]ProducePacketName [16:39:38]name=ofd_packets/00119152 [16:39:38]NVStorageDeleteData [16:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 62 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 62 00 B7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [16:39:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 70 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:38]wFMCommunicate OK [16:39:38]SAM_PROTO_GetFieldsCounters done [16:39:38]requested_item shift.num is exist - process it [16:39:38]requested_item shift.opened is exist - process it [16:39:38]req_shift_opened [16:39:38]FM_GetShiftState [16:39:38]SAM_PROTO_GetShiftState [16:39:38]wFMCommunicate request_size=4 [16:39:38]MH_SAM_APDU [16:39:38]CAPDU: 80 13 01 00 [16:39:38]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [16:39:38]Write i2c OK [16:39:38]MH_I2C_Read... [16:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:38]Read from MH i2c: E2 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 0E 00 [16:39:38]MH_I2C_Read... [16:39:38]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 02 [16:39:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:39:38]wFMCommunicate OK [16:39:38]SAM_PROTO_GetShiftState done [16:39:38]FM_GetShiftState done [16:39:38]req_shift_opened done [16:39:38]requested_item shift.open_date is exist - process it [16:39:38]req_shift_open_date [16:39:38]req_shift_open_date done [16:39:38]produce_requested_data done [16:39:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119152,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:39:38]process_action_free close_receipt [16:39:38]json_value_free [16:39:38]json_value_free done [16:39:38]process_json_proto returns [16:39:38]Send response to host [16:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119152,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:39:38]free response buf [16:39:38]execute_script done [16:39:38]execute_script returns [16:39:38]free content buf [16:39:38]Sock 7.Close socket [16:39:38]Sock 7.Thread stoped [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:15]recv_with_timeout no data received [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:27]recv_with_timeout no data received [16:40:28]OFD Sender: No OFD packet to send [16:40:30]accept exits with 9 [16:40:30]New connection [16:40:30]New thread 3066887524 created [16:40:30]Thread 3067030884 joined [16:40:30]Waiting for new connection... [16:40:30] Sock 9.Parse request [16:40:30]Sock 9.Check first char [16:40:30]Sock 9.First char is OK [16:40:30]request: POST /json_proto HTTP/1.0 [16:40:30]Method: POST [16:40:30]URL: /json_proto [16:40:30]Method is POST - this is cgi request [16:40:30]url: /json_proto [16:40:30]query_string will be loaded in cgi processing [16:40:30]execute_cgi json_proto POST (null) [16:40:30]execute_cgi path=json_proto method=POST [16:40:30]POST find Content-Length [16:40:30]Host: 172.17.45.7:8080 [16:40:30]Content-Length: 820 [16:40:30]Content-Type: application/json [16:40:30] [16:40:30]POST finish read [16:40:30]Found Content-Length = 820 [16:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:30]execute_script... [16:40: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)950068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:30]POST & json_proto [16:40:30]process_json_proto [16:40:30]json parsed OK: [16:40:30]protocol is kg_v1.0 [16:40:30]action value=close_receipt [16:40:30]process_action close_receipt [16:40:30]cmd_close_receipt [16:40:30]MH_GetDate [16:40:30]Write to MH i2c: F0 00 00 B9 02 AA [16:40:30]Write i2c OK [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: F0 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: F0 09 00 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: F0 09 00 B9 02 00 7E 17 A9 66 90 0F 3E 66 9A [16:40:30]GetLastDocTimeStamp 1722357575 [16:40:30]current date 1722357630 [16:40:30]FM_GetShiftState [16:40:30]SAM_PROTO_GetShiftState [16:40:30]wFMCommunicate request_size=4 [16:40:30]MH_SAM_APDU [16:40:30]CAPDU: 80 13 01 00 [16:40:30]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [16:40:30]Write i2c OK [16:40:30]MH_I2C_Read... [16:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:30]Read from MH i2c: E2 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: E2 0E 00 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 04 [16:40:30]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:40:30]wFMCommunicate OK [16:40:30]SAM_PROTO_GetShiftState done [16:40:30]FM_GetShiftState done [16:40:30]opened in 1722298242 [16:40:30]opened+sec_in_day 1722384642 [16:40:30]quantity*price = 998982 [16:40:30]sum+1 = 998983 [16:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 205 30.07.2024 16:40 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119153 ФПД: 81492575927625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164031&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119153&fm=81492575927625&tin=02508201610067®Number=0000000000092660&sum=998900 [16:40:31]StoreToDocumentArchive [16:40:31]shift 435 fd 119153 [16:40:31]save to /storage/0435/doc_00119153 [16:40:31]save last doc name /storage/0435/doc_00119153 to /storage/kkm_last_doc_name [16:40:31]save OK [16:40:31]Clear old archive folders... [16:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:40:31]tlvbuf is 00E44700 [16:40:31]SAM_PROTO_ClearQueue [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 09 00 00 [16:40:31]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [16:40:31]RAPDU: 90 00 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_ClearQueue done [16:40:31]KKMCreateOFDPacket [16:40:31]OFDProtocolAddRootSTLVToBuf [16:40:31]FM_MakeSignedData [16:40:31]FM_MakeSignedData [16:40:31]SAM_PROTO_SignData [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 0D 01 02 [16:40:31]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [16:40:31]RAPDU: 90 00 [16:40:31]wFMCommunicate OK [16:40:31]wFMCommunicate request_size=255 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 35 04 06 00 4A 1D F8 0A [16:40:31]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 35 04 06 00 4A 1D F8 0A 00 00 3F [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [16:40:31]RAPDU: 90 00 [16:40:31]wFMCommunicate OK [16:40:31]wFMCommunicate request_size=7 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 0D 02 02 02 3D 49 [16:40:31]Write to MH i2c: E2 0A 00 CA 02 80 0D 02 02 02 00 3D 49 00 00 D0 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [16:40:31]RAPDU: 90 00 [16:40:31]wFMCommunicate OK [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 0D 03 02 [16:40:31]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0B 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0B 00 CB 02 00 46 4D C3 B7 3C 87 5C F2 90 00 67 [16:40:31]RAPDU: 46 4D C3 B7 3C 87 5C F2 90 00 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_SignData done [16:40:31]FM_MakeSignedData done [16:40:31]CreateOFDProtocolMessage [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 11 00 00 [16:40:31]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:31]Read from MH i2c: E2 17 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A3 [16:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:40:31]wFMCommunicate OK [16:40:31]CreateOFDProtocolMessage done [16:40:31]OFDSenderStorePacket 119153 [16:40:31]StoreOFDPacket docnum=119153 [16:40:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 B2 04 01 C1 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 35 04 06 00 4A 1D F8 0A 3D 49 46 4D C3 B7 3C 87 5C F2 [16:40:31]CheckFolder [16:40:31]dirname=/storage/ofd_packets [16:40:31]CheckFolder done [16:40:31]ProducePacketName [16:40:31]name=ofd_packets/00119153 [16:40:31]NVStorageSaveData ofd_packets/00119153 [16:40:31]File name is /storage/ofd_packets/00119153 [16:40:31]Write 298 bytes [16:40:31]NVStorageSaveData done [16:40:31]OFDSenderStorePacket done [16:40:31]KKMCreateOFDPacket done [16:40:31]NVStorageSaveData kkm_last_timestamp [16:40:31]File name is /storage/kkm_last_timestamp [16:40:31]Write 4 bytes [16:40:31]NVStorageSaveData done [16:40:31]ExternCall_PrintAddStr [16:40:31]wPrintStart [16:40:31]Write to MH i2c: 01 00 00 CD 02 CF [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: 01 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: 01 07 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [16:40:31]RasterBufferAndPrint [16:40:31]line Счет N : (1)950068 [16:40:31]line ИНН: 02508201610067 [16:40:31]line Контрольно-Кассовый Чек [16:40:31]line ПРОДАЖА [16:40:31]line ТРК (МРК, ГНК) : 21 [16:40:31]line Товар: 2710194800 [16:40:31]line ДТ-К-5 [16:40:31]line 131.100 * 76.20 [16:40:31]line = 9989.82 [16:40:31]line НДС 12% НСП 1% [16:40:31]line > о реализуемом товаре [16:40:31]line ОКРУГЛЕНИЕ: -0.82 [16:40:31]line ИТОГО: 9989.00 [16:40:31]line НСП 1% : 88.40 [16:40:31]line НДС 12% : 1060.87 [16:40:31]line Наличными: 0.00 [16:40:31]line Безнал.: 9989.00 [16:40:31]line Место: АЗС № 134 "Партнер Нефть" [16:40:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:40:31]line СНО: Общий режим [16:40:31]line Чек 205 30.07.2024 16:40 [16:40:31]line Смена: 435 ФФД: 1.0 [16:40:31]line ЗНМ: 0300000044 [16:40:31]line РНМ: 0000000000092660 [16:40:31]line Версия ККМ: 001 [16:40:31]line Платежная система: O! деньги [16:40:31]line ФМ: 0000000000874939 [16:40:31]line ФД: 119153 [16:40:31]line ФПД: 81492575927625 [16:40:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164031&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119153&fm=81492575927625&tin=02508201610067®Number=0000000000092660&sum=998900 [16:40:31]written 0, free lines is 4095 [16:40:31]OFD Sender: Processing packet 119153 [packets to send 86, broken 85] [16:40:31]ProducePacketName [16:40:31]name=ofd_packets/00119153 [16:40:31]OFD Sender: To server: pG, [16:40:31]CommunicateWithHost lk.salyk.kg:30040 [16:40:31]ConnectInit lk.salyk.kg [16:40:32]Connected sock=10 [16:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 B2 04 01 C1 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 35 04 06 00 4A 1D F8 0A 3D 49 46 4D C3 B7 3C 87 5C F2 [16:40:32]Write to MH i2c: 01 00 00 F7 02 F9 [16:40:32]Write i2c OK [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: 01 [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: 01 07 00 [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 F6 0C 02 [16:40:32]RasterBufferAndPrint [16:40:32]line [16:40:32]line [16:40:32]line [16:40:32]line [16:40:32]line [16:40:32]written 0, free lines is 3331 [16:40:32]MH_Cut [16:40:32]Write to MH i2c: D1 01 00 FE 02 01 D2 [16:40:32]Write i2c OK [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: D1 [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: D1 01 00 [16:40:32]MH_I2C_Read... [16:40:32]Read from MH i2c: D1 01 00 FE 02 00 D1 [16:40:32]Write to MH i2c: 01 00 00 FF 02 01 [16:40:32]Write i2c OK [16:40:32]MH_I2C_Read... [16:40:33]*** Cut start [16:40:33]*** Partial cut [16:40:33]*** CUTSNS_PIN = 1 [16:40:33]*** CUTSNS_PIN = 0 [16:40:33]*** Brake cut motor [16:40:33]Read from MH i2c: 01 [16:40:33]MH_I2C_Read... [16:40:33]*** Stop cut motor [16:40:33]*** Cut end [16:40:33]Read from MH i2c: 01 07 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [16:40:33]process_action close_receipt done [16:40:33]requested_data is exist [16:40:33]produce_requested_data [16:40:33]requested_item fm.sn is exist - process it [16:40:33]wFMCommunicate request_size=4 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 11 00 00 [16:40:33]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 17 00 [16:40:33]MH_I2C_Read... [16:40:33]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 34 39 33 39 90 00 D8 [16:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:40:33]wFMCommunicate OK [16:40:33]requested_item fd.num is exist - process it [16:40:33]SAM_PROTO_GetFieldsCounters [16:40:33]wFMCommunicate request_size=4 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 13 00 00 [16:40:33]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 62 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 62 00 01 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [16:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 71 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:33]wFMCommunicate OK [16:40:33]SAM_PROTO_GetFieldsCounters done [16:40:33]requested_item shift.num is exist - process it [16:40:33]requested_item shift.opened is exist - process it [16:40:33]req_shift_opened [16:40:33]FM_GetShiftState [16:40:33]SAM_PROTO_GetShiftState [16:40:33]wFMCommunicate request_size=4 [16:40:33]MH_SAM_APDU [16:40:33]CAPDU: 80 13 01 00 [16:40:33]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [16:40:33]Write i2c OK [16:40:33]MH_I2C_Read... [16:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:33]Read from MH i2c: E2 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 0E 00 [16:40:33]MH_I2C_Read... [16:40:33]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4D [16:40:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:40:33]wFMCommunicate OK [16:40:33]SAM_PROTO_GetShiftState done [16:40:33]FM_GetShiftState done [16:40:33]req_shift_opened done [16:40:33]requested_item shift.open_date is exist - process it [16:40:33]req_shift_open_date [16:40:33]req_shift_open_date done [16:40:33]produce_requested_data done [16:40:33]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119153,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:40:33]process_action_free close_receipt [16:40:33]json_value_free [16:40:33]json_value_free done [16:40:33]process_json_proto returns [16:40:33]Send response to host [16:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119153,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:40:33]free response buf [16:40:33]execute_script done [16:40:33]execute_script returns [16:40:33]free content buf [16:40:33]Sock 9.Close socket [16:40:33]Sock 9.Thread stoped [16:40:37]recv_with_timeout no data received [16:40:37]CommunicateWithHost answer receiving error [16:40:37]CommunicateWithHost err = -3 [16:40:37]OFD Sender: Server communicate error [16:40:42]OFD Sender: Processing packet 119153 [packets to send 86, broken 85] [16:40:42]ProducePacketName [16:40:42]name=ofd_packets/00119153 [16:40:42]OFD Sender: To server: pG, [16:40:42]CommunicateWithHost lk.salyk.kg:30040 [16:40:42]ConnectInit lk.salyk.kg [16:40:47]ConnectInit Can't take IP for lk.salyk.kg [16:40:47]CommunicateWithHost connect error [16:40:47]CommunicateWithHost err = -1 [16:40:47]OFD Sender: Server communicate error [16:40:52]OFD Sender: Processing packet 119153 [packets to send 86, broken 85] [16:40:52]ProducePacketName [16:40:52]name=ofd_packets/00119153 [16:40:52]OFD Sender: To server: pG, [16:40:52]CommunicateWithHost lk.salyk.kg:30040 [16:40:52]ConnectInit lk.salyk.kg [16:40:57]ConnectInit Can't take IP for lk.salyk.kg [16:40:57]CommunicateWithHost connect error [16:40:57]CommunicateWithHost err = -1 [16:40:57]OFD Sender: Server communicate error [16:41:02]OFD Sender: Processing packet 119153 [packets to send 86, broken 85] [16:41:02]ProducePacketName [16:41:02]name=ofd_packets/00119153 [16:41:02]OFD Sender: To server: pG, [16:41:02]CommunicateWithHost lk.salyk.kg:30040 [16:41:02]ConnectInit lk.salyk.kg [16:41:03]Connected sock=9 [16:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 B2 04 01 C1 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 35 04 06 00 4A 1D F8 0A 3D 49 46 4D C3 B7 3C 87 5C F2 [16:41:08]recv_with_timeout no data received [16:41:08]CommunicateWithHost answer receiving error [16:41:08]CommunicateWithHost err = -3 [16:41:08]OFD Sender: Server communicate error [16:41:13]OFD Sender: Processing packet 119153 [packets to send 86, broken 85] [16:41:13]ProducePacketName [16:41:13]name=ofd_packets/00119153 [16:41:13]OFD Sender: To server: pG, [16:41:13]CommunicateWithHost lk.salyk.kg:30040 [16:41:13]ConnectInit lk.salyk.kg [16:41:15]Connected sock=9 [16:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 B2 04 01 C1 6D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 7F 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 35 04 06 00 4A 1D F8 0A 3D 49 46 4D C3 B7 3C 87 5C F2 [16:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D2 64 47 00 0F 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 71 D1 01 00 F4 03 04 00 34 C5 A8 66 B6 04 01 00 00 80 24 00 61 30 C6 5D EE [16:41:16]CommunicateWithHost err = 0 [16:41:16]CheckOFDResponse [16:41:16]1017 (14) - 77093643461234 [16:41:16]1041 (16) - 0000000000874939 [16:41:16]1040 (4) - 119153 [16:41:16]1012 (4) - 30.07.2024 10:49 [16:41:16]1206 (1) - 0 [16:41:16]OFD Sender: Remove packet 119153 [16:41:16]ProducePacketName [16:41:16]name=ofd_packets/00119153 [16:41:16]NVStorageDeleteData [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:37]accept exits with 7 [16:41:37]New connection [16:41:37]New thread 3067030884 created [16:41:37]Thread 3066887524 joined [16:41:37]Waiting for new connection... [16:41:37] Sock 7.Parse request [16:41:37]Sock 7.Check first char [16:41:37]Sock 7.First char is OK [16:41:37]request: POST /json_proto HTTP/1.0 [16:41:37]Method: POST [16:41:37]URL: /json_proto [16:41:37]Method is POST - this is cgi request [16:41:37]url: /json_proto [16:41:37]query_string will be loaded in cgi processing [16:41:37]execute_cgi json_proto POST (null) [16:41:37]execute_cgi path=json_proto method=POST [16:41:37]POST find Content-Length [16:41:37]Host: 172.17.45.7:8080 [16:41:37]Content-Length: 682 [16:41:37]Content-Type: application/json [16:41:37] [16:41:37]POST finish read [16:41:37]Found Content-Length = 682 [16:41:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:37]execute_script... [16:41: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)950073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:37]POST & json_proto [16:41:37]process_json_proto [16:41:37]json parsed OK: [16:41:37]protocol is kg_v1.0 [16:41:37]action value=close_receipt [16:41:37]process_action close_receipt [16:41:37]cmd_close_receipt [16:41:37]MH_GetDate [16:41:37]Write to MH i2c: F0 00 00 03 03 F5 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: F0 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: F0 09 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: F0 09 00 03 03 00 C2 17 A9 66 90 0F 3E 66 29 [16:41:37]GetLastDocTimeStamp 1722357631 [16:41:37]current date 1722357698 [16:41:37]FM_GetShiftState [16:41:37]SAM_PROTO_GetShiftState [16:41:37]wFMCommunicate request_size=4 [16:41:37]MH_SAM_APDU [16:41:37]CAPDU: 80 13 01 00 [16:41:37]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [16:41:37]Write i2c OK [16:41:37]MH_I2C_Read... [16:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:37]Read from MH i2c: E2 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 0E 00 [16:41:37]MH_I2C_Read... [16:41:37]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4F [16:41:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:41:37]wFMCommunicate OK [16:41:37]SAM_PROTO_GetShiftState done [16:41:37]FM_GetShiftState done [16:41:37]opened in 1722298242 [16:41:37]opened+sec_in_day 1722384642 [16:41:37]quantity*price = 200043 [16:41:37]sum+1 = 200044 [16:41:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 206 30.07.2024 16:41 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119154 ФПД: 254488494274874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164138&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119154&fm=254488494274874&tin=02508201610067®Number=0000000000092660&sum=200000 [16:41:38]StoreToDocumentArchive [16:41:38]shift 435 fd 119154 [16:41:38]save to /storage/0435/doc_00119154 [16:41:38]save last doc name /storage/0435/doc_00119154 to /storage/kkm_last_doc_name [16:41:38]save OK [16:41:38]Clear old archive folders... [16:41:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:38]tlvbuf is 00E93640 [16:41:38]SAM_PROTO_ClearQueue [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 09 00 00 [16:41:38]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [16:41:38]RAPDU: 90 00 [16:41:38]wFMCommunicate OK [16:41:38]SAM_PROTO_ClearQueue done [16:41:38]KKMCreateOFDPacket [16:41:38]OFDProtocolAddRootSTLVToBuf [16:41:38]FM_MakeSignedData [16:41:38]FM_MakeSignedData [16:41:38]SAM_PROTO_SignData [16:41:38]wFMCommunicate request_size=4 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 0D 01 02 [16:41:38]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:38]Read from MH i2c: E2 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 [16:41:38]MH_I2C_Read... [16:41:38]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [16:41:38]RAPDU: 90 00 [16:41:38]wFMCommunicate OK [16:41:38]wFMCommunicate request_size=255 [16:41:38]MH_SAM_APDU [16:41:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 C2 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D1 01 00 35 04 06 00 E7 [16:41:38]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 CE 00 00 00 F4 03 04 00 C2 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D1 01 00 35 04 06 00 E7 00 00 5E [16:41:38]Write i2c OK [16:41:38]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=10 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 0D 02 02 05 74 B8 4C F9 3A [16:41:39]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 74 B8 4C F9 3A 00 00 46 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [16:41:39]RAPDU: 90 00 [16:41:39]wFMCommunicate OK [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 0D 03 02 [16:41:39]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0B 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 0B 00 15 03 00 85 E6 BA F3 89 E2 17 CB 90 00 F9 [16:41:39]RAPDU: 85 E6 BA F3 89 E2 17 CB 90 00 [16:41:39]wFMCommunicate OK [16:41:39]SAM_PROTO_SignData done [16:41:39]FM_MakeSignedData done [16:41:39]CreateOFDProtocolMessage [16:41:39]wFMCommunicate request_size=4 [16:41:39]MH_SAM_APDU [16:41:39]CAPDU: 80 11 00 00 [16:41:39]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:39]Read from MH i2c: E2 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 17 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EE [16:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:41:39]wFMCommunicate OK [16:41:39]CreateOFDProtocolMessage done [16:41:39]OFDSenderStorePacket 119154 [16:41:39]StoreOFDPacket docnum=119154 [16:41:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 8E 07 01 7D D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 CE 00 00 00 F4 03 04 00 C2 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D1 01 00 35 04 06 00 E7 74 B8 4C F9 3A 85 E6 BA F3 89 E2 17 CB [16:41:39]CheckFolder [16:41:39]dirname=/storage/ofd_packets [16:41:39]CheckFolder done [16:41:39]ProducePacketName [16:41:39]name=ofd_packets/00119154 [16:41:39]NVStorageSaveData ofd_packets/00119154 [16:41:39]File name is /storage/ofd_packets/00119154 [16:41:39]Write 301 bytes [16:41:39]NVStorageSaveData done [16:41:39]OFDSenderStorePacket done [16:41:39]KKMCreateOFDPacket done [16:41:39]NVStorageSaveData kkm_last_timestamp [16:41:39]File name is /storage/kkm_last_timestamp [16:41:39]Write 4 bytes [16:41:39]NVStorageSaveData done [16:41:39]ExternCall_PrintAddStr [16:41:39]wPrintStart [16:41:39]Write to MH i2c: 01 00 00 17 03 1A [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 07 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [16:41:39]RasterBufferAndPrint [16:41:39]line Счет N : (1)950073 [16:41:39]line ИНН: 02508201610067 [16:41:39]line Контрольно-Кассовый Чек [16:41:39]line ПРОДАЖА [16:41:39]line ТРК (МРК, ГНК) : 43 [16:41:39]line Товар: 2710124500 [16:41:39]line Аи-95-К-3 [16:41:39]line 26.960 * 74.20 [16:41:39]line = 2000.43 [16:41:39]line НДС 12% НСП 1% [16:41:39]line > о реализуемом товаре [16:41:39]line ОКРУГЛЕНИЕ: -0.43 [16:41:39]line ИТОГО: 2000.00 [16:41:39]line Внесено: 2000.00 [16:41:39]line СДАЧА: 0.00 [16:41:39]line НСП 1% : 17.70 [16:41:39]line НДС 12% : 212.43 [16:41:39]line Наличными: 2000.00 [16:41:39]line Безнал.: 0.00 [16:41:39]line Место: АЗС № 134 "Партнер Нефть" [16:41:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:41:39]line СНО: Общий режим [16:41:39]line Чек 206 30.07.2024 16:41 [16:41:39]line Смена: 435 ФФД: 1.0 [16:41:39]line ЗНМ: 0300000044 [16:41:39]line РНМ: 0000000000092660 [16:41:39]line Версия ККМ: 001 [16:41:39]line ФМ: 0000000000874939 [16:41:39]line ФД: 119154 [16:41:39]line ФПД: 254488494274874 [16:41:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164138&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119154&fm=254488494274874&tin=02508201610067®Number=0000000000092660&sum=200000 [16:41:39]OFD Sender: Processing packet 119154 [packets to send 86, broken 85] [16:41:39]ProducePacketName [16:41:39]name=ofd_packets/00119154 [16:41:39]OFD Sender: To server: pG, [16:41:39]CommunicateWithHost lk.salyk.kg:30040 [16:41:39]ConnectInit lk.salyk.kg [16:41:39]written 0, free lines is 4095 [16:41:39]Write to MH i2c: 01 00 00 41 03 44 [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 07 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 E3 0C 3A [16:41:39]RasterBufferAndPrint [16:41:39]line [16:41:39]line [16:41:39]line [16:41:39]line [16:41:39]line [16:41:39]written 0, free lines is 3318 [16:41:39]MH_Cut [16:41:39]Write to MH i2c: D1 01 00 48 03 01 1D [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: D1 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: D1 01 00 [16:41:39]MH_I2C_Read... [16:41:39]Read from MH i2c: D1 01 00 48 03 00 1C [16:41:39]Write to MH i2c: 01 00 00 49 03 4C [16:41:39]Write i2c OK [16:41:39]MH_I2C_Read... [16:41:40]*** Cut start [16:41:40]*** Partial cut [16:41:40]*** CUTSNS_PIN = 1 [16:41:40]*** CUTSNS_PIN = 0 [16:41:40]*** Brake cut motor [16:41:41]Read from MH i2c: 01 [16:41:41]MH_I2C_Read... [16:41:41]*** Stop cut motor [16:41:41]*** Cut end [16:41:41]Read from MH i2c: 01 07 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [16:41:41]process_action close_receipt done [16:41:41]requested_data is exist [16:41:41]produce_requested_data [16:41:41]requested_item fm.sn is exist - process it [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 11 00 00 [16:41:41]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 17 00 [16:41:41]MH_I2C_Read... [16:41:41]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 34 39 33 39 90 00 22 [16:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:41:41]wFMCommunicate OK [16:41:41]requested_item fd.num is exist - process it [16:41:41]SAM_PROTO_GetFieldsCounters [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 13 00 00 [16:41:41]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 62 00 [16:41:41]MH_I2C_Read... [16:41:41]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [16:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 72 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_GetFieldsCounters done [16:41:41]requested_item shift.num is exist - process it [16:41:41]requested_item shift.opened is exist - process it [16:41:41]req_shift_opened [16:41:41]FM_GetShiftState [16:41:41]SAM_PROTO_GetShiftState [16:41:41]wFMCommunicate request_size=4 [16:41:41]MH_SAM_APDU [16:41:41]CAPDU: 80 13 01 00 [16:41:41]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [16:41:41]Write i2c OK [16:41:41]MH_I2C_Read... [16:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:41]Read from MH i2c: E2 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 0E 00 [16:41:41]MH_I2C_Read... [16:41:41]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 97 [16:41:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:41:41]wFMCommunicate OK [16:41:41]SAM_PROTO_GetShiftState done [16:41:41]FM_GetShiftState done [16:41:41]req_shift_opened done [16:41:41]requested_item shift.open_date is exist - process it [16:41:41]req_shift_open_date [16:41:41]req_shift_open_date done [16:41:41]produce_requested_data done [16:41:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119154,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:41:41]process_action_free close_receipt [16:41:41]json_value_free [16:41:41]json_value_free done [16:41:41]process_json_proto returns [16:41:41]Send response to host [16:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119154,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:41:41]free response buf [16:41:41]execute_script done [16:41:41]execute_script returns [16:41:41]free content buf [16:41:41]Sock 7.Close socket [16:41:41]Sock 7.Thread stoped [16:41:43]Connected sock=10 [16:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 51 8E 07 01 7D D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 CE 00 00 00 F4 03 04 00 C2 17 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D1 01 00 35 04 06 00 E7 74 B8 4C F9 3A 85 E6 BA F3 89 E2 17 CB [16:41:44]recv_with_timeout no data received [16:41:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 58 4D 47 00 93 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 72 D1 01 00 F4 03 04 00 52 C5 A8 66 B6 04 01 00 00 F4 2B CD 9F 03 C2 A0 61 [16:41:46]CommunicateWithHost err = 0 [16:41:46]CheckOFDResponse [16:41:46]1017 (14) - 77093643461234 [16:41:46]1041 (16) - 0000000000874939 [16:41:46]1040 (4) - 119154 [16:41:46]1012 (4) - 30.07.2024 10:49 [16:41:46]1206 (1) - 0 [16:41:46]OFD Sender: Remove packet 119154 [16:41:46]ProducePacketName [16:41:46]name=ofd_packets/00119154 [16:41:46]NVStorageDeleteData [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]accept exits with 9 [16:43:21]New connection [16:43:21]New thread 3066887524 created [16:43:21]Thread 3067030884 joined [16:43:21]Waiting for new connection... [16:43:21] Sock 9.Parse request [16:43:21]Sock 9.Check first char [16:43:21]Sock 9.First char is OK [16:43:21]request: POST /json_proto HTTP/1.0 [16:43:21]Method: POST [16:43:21]URL: /json_proto [16:43:21]Method is POST - this is cgi request [16:43:21]url: /json_proto [16:43:21]query_string will be loaded in cgi processing [16:43:21]execute_cgi json_proto POST (null) [16:43:21]execute_cgi path=json_proto method=POST [16:43:21]POST find Content-Length [16:43:21]Host: 172.17.45.7:8080 [16:43:21]Content-Length: 674 [16:43:21]Content-Type: application/json [16:43:21] [16:43:21]POST finish read [16:43:21]Found Content-Length = 674 [16:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:21]execute_script... [16:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:21]POST & json_proto [16:43:21]process_json_proto [16:43:21]json parsed OK: [16:43:21]protocol is kg_v1.0 [16:43:21]action value=close_receipt [16:43:21]process_action close_receipt [16:43:21]cmd_close_receipt [16:43:21]MH_GetDate [16:43:21]Write to MH i2c: F0 00 00 4D 03 3F [16:43:21]Write i2c OK [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: F0 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: F0 09 00 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: F0 09 00 4D 03 00 29 18 A9 66 90 0F 3E 66 DB [16:43:21]GetLastDocTimeStamp 1722357698 [16:43:21]current date 1722357801 [16:43:21]FM_GetShiftState [16:43:21]SAM_PROTO_GetShiftState [16:43:21]wFMCommunicate request_size=4 [16:43:21]MH_SAM_APDU [16:43:21]CAPDU: 80 13 01 00 [16:43:21]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [16:43:21]Write i2c OK [16:43:21]MH_I2C_Read... [16:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:21]Read from MH i2c: E2 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 0E 00 [16:43:21]MH_I2C_Read... [16:43:21]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [16:43:21]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:43:21]wFMCommunicate OK [16:43:21]SAM_PROTO_GetShiftState done [16:43:21]FM_GetShiftState done [16:43:21]opened in 1722298242 [16:43:21]opened+sec_in_day 1722384642 [16:43:21]quantity*price = 70027 [16:43:21]sum+1 = 70029 [16:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 207 30.07.2024 16:43 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119155 ФПД: 40891561111489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164321&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119155&fm=40891561111489&tin=02508201610067®Number=0000000000092660&sum=70000 [16:43:22]StoreToDocumentArchive [16:43:22]shift 435 fd 119155 [16:43:22]save to /storage/0435/doc_00119155 [16:43:22]save last doc name /storage/0435/doc_00119155 to /storage/kkm_last_doc_name [16:43:22]save OK [16:43:22]Clear old archive folders... [16:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:22]tlvbuf is 00E95200 [16:43:22]SAM_PROTO_ClearQueue [16:43:22]wFMCommunicate request_size=4 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 09 00 00 [16:43:22]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [16:43:22]RAPDU: 90 00 [16:43:22]wFMCommunicate OK [16:43:22]SAM_PROTO_ClearQueue done [16:43:22]KKMCreateOFDPacket [16:43:22]OFDProtocolAddRootSTLVToBuf [16:43:22]FM_MakeSignedData [16:43:22]FM_MakeSignedData [16:43:22]SAM_PROTO_SignData [16:43:22]wFMCommunicate request_size=4 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 0D 01 02 [16:43:22]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [16:43:22]RAPDU: 90 00 [16:43:22]wFMCommunicate OK [16:43:22]wFMCommunicate request_size=255 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 29 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D1 01 00 35 04 06 00 25 30 CE F9 [16:43:22]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 29 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D1 01 00 35 04 06 00 25 30 CE F9 00 00 98 [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [16:43:22]RAPDU: 90 00 [16:43:22]wFMCommunicate OK [16:43:22]wFMCommunicate request_size=7 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 0D 02 02 02 6F C1 [16:43:22]Write to MH i2c: E2 0A 00 5E 03 80 0D 02 02 02 00 6F C1 00 00 0F [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [16:43:22]RAPDU: 90 00 [16:43:22]wFMCommunicate OK [16:43:22]wFMCommunicate request_size=4 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 0D 03 02 [16:43:22]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 0B 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 0B 00 5F 03 00 38 D1 2B DE 63 13 B7 73 90 00 90 [16:43:22]RAPDU: 38 D1 2B DE 63 13 B7 73 90 00 [16:43:22]wFMCommunicate OK [16:43:22]SAM_PROTO_SignData done [16:43:22]FM_MakeSignedData done [16:43:22]CreateOFDProtocolMessage [16:43:22]wFMCommunicate request_size=4 [16:43:22]MH_SAM_APDU [16:43:22]CAPDU: 80 11 00 00 [16:43:22]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:22]Read from MH i2c: E2 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: E2 17 00 [16:43:22]MH_I2C_Read... [16:43:22]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 34 39 33 39 90 00 38 [16:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:43:22]wFMCommunicate OK [16:43:22]CreateOFDProtocolMessage done [16:43:22]OFDSenderStorePacket 119155 [16:43:22]StoreOFDPacket docnum=119155 [16:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 9C 04 01 38 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 29 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D1 01 00 35 04 06 00 25 30 CE F9 6F C1 38 D1 2B DE 63 13 B7 73 [16:43:22]CheckFolder [16:43:22]dirname=/storage/ofd_packets [16:43:22]CheckFolder done [16:43:22]ProducePacketName [16:43:22]name=ofd_packets/00119155 [16:43:22]NVStorageSaveData ofd_packets/00119155 [16:43:22]File name is /storage/ofd_packets/00119155 [16:43:22]Write 298 bytes [16:43:22]NVStorageSaveData done [16:43:22]OFDSenderStorePacket done [16:43:22]KKMCreateOFDPacket done [16:43:22]NVStorageSaveData kkm_last_timestamp [16:43:22]File name is /storage/kkm_last_timestamp [16:43:22]Write 4 bytes [16:43:22]NVStorageSaveData done [16:43:22]ExternCall_PrintAddStr [16:43:22]wPrintStart [16:43:22]Write to MH i2c: 01 00 00 61 03 64 [16:43:22]Write i2c OK [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: 01 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: 01 07 00 [16:43:22]MH_I2C_Read... [16:43:22]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [16:43:22]RasterBufferAndPrint [16:43:22]line Счет N : (1)950074 [16:43:22]line ИНН: 02508201610067 [16:43:22]line Контрольно-Кассовый Чек [16:43:22]line ПРОДАЖА [16:43:22]line ТРК (МРК, ГНК) : 34 [16:43:22]line Товар: 2710194800 [16:43:22]line ДТ-К-5 [16:43:22]line 9.190 * 76.20 [16:43:22]line = 700.28 [16:43:22]line НДС 12% НСП 1% [16:43:22]line > о реализуемом товаре [16:43:22]line ОКРУГЛЕНИЕ: -0.28 [16:43:22]line ИТОГО: 700.00 [16:43:22]line Внесено: 700.00 [16:43:22]line СДАЧА: 0.00 [16:43:22]line НСП 1% : 6.20 [16:43:22]line НДС 12% : 74.37 [16:43:22]line Наличными: 700.00 [16:43:22]line Безнал.: 0.00 [16:43:22]line Место: АЗС № 134 "Партнер Нефть" [16:43:22]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:43:22]line СНО: Общий режим [16:43:22]line Чек 207 30.07.2024 16:43 [16:43:22]line Смена: 435 ФФД: 1.0 [16:43:22]line ЗНМ: 0300000044 [16:43:22]line РНМ: 0000000000092660 [16:43:22]line Версия ККМ: 001 [16:43:22]line ФМ: 0000000000874939 [16:43:22]line ФД: 119155 [16:43:22]line ФПД: 40891561111489 [16:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164321&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119155&fm=40891561111489&tin=02508201610067®Number=0000000000092660&sum=70000 [16:43:23]OFD Sender: Processing packet 119155 [packets to send 86, broken 85] [16:43:23]ProducePacketName [16:43:23]name=ofd_packets/00119155 [16:43:23]OFD Sender: To server: pG, [16:43:23]CommunicateWithHost lk.salyk.kg:30040 [16:43:23]ConnectInit lk.salyk.kg [16:43:23]written 0, free lines is 4095 [16:43:23]Write to MH i2c: 01 00 00 8B 03 8E [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: 01 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: 01 07 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 D0 0C 71 [16:43:23]RasterBufferAndPrint [16:43:23]line [16:43:23]line [16:43:23]line [16:43:23]line [16:43:23]line [16:43:23]written 0, free lines is 3284 [16:43:23]MH_Cut [16:43:23]Write to MH i2c: D1 01 00 92 03 01 67 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: D1 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: D1 01 00 [16:43:23]MH_I2C_Read... [16:43:23]Read from MH i2c: D1 01 00 92 03 00 66 [16:43:23]Write to MH i2c: 01 00 00 93 03 96 [16:43:23]Write i2c OK [16:43:23]MH_I2C_Read... [16:43:24]*** Cut start [16:43:24]*** Partial cut [16:43:24]*** CUTSNS_PIN = 1 [16:43:24]*** CUTSNS_PIN = 0 [16:43:24]*** Brake cut motor [16:43:24]Read from MH i2c: 01 [16:43:24]MH_I2C_Read... [16:43:24]*** Stop cut motor [16:43:24]*** Cut end [16:43:24]Read from MH i2c: 01 07 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [16:43:24]process_action close_receipt done [16:43:24]requested_data is exist [16:43:24]produce_requested_data [16:43:24]requested_item fm.sn is exist - process it [16:43:24]wFMCommunicate request_size=4 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 11 00 00 [16:43:24]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:24]Read from MH i2c: E2 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 17 00 [16:43:24]MH_I2C_Read... [16:43:24]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [16:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:43:24]wFMCommunicate OK [16:43:24]requested_item fd.num is exist - process it [16:43:24]SAM_PROTO_GetFieldsCounters [16:43:24]wFMCommunicate request_size=4 [16:43:24]MH_SAM_APDU [16:43:24]CAPDU: 80 13 00 00 [16:43:24]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [16:43:24]Write i2c OK [16:43:24]MH_I2C_Read... [16:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:25]Read from MH i2c: E2 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 62 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 62 00 95 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [16:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 73 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:25]wFMCommunicate OK [16:43:25]SAM_PROTO_GetFieldsCounters done [16:43:25]requested_item shift.num is exist - process it [16:43:25]requested_item shift.opened is exist - process it [16:43:25]req_shift_opened [16:43:25]FM_GetShiftState [16:43:25]SAM_PROTO_GetShiftState [16:43:25]wFMCommunicate request_size=4 [16:43:25]MH_SAM_APDU [16:43:25]CAPDU: 80 13 01 00 [16:43:25]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [16:43:25]Write i2c OK [16:43:25]MH_I2C_Read... [16:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:25]Read from MH i2c: E2 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 0E 00 [16:43:25]MH_I2C_Read... [16:43:25]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E1 [16:43:25]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:43:25]wFMCommunicate OK [16:43:25]SAM_PROTO_GetShiftState done [16:43:25]FM_GetShiftState done [16:43:25]req_shift_opened done [16:43:25]requested_item shift.open_date is exist - process it [16:43:25]req_shift_open_date [16:43:25]req_shift_open_date done [16:43:25]produce_requested_data done [16:43:25]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119155,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:43:25]process_action_free close_receipt [16:43:25]json_value_free [16:43:25]json_value_free done [16:43:25]process_json_proto returns [16:43:25]Send response to host [16:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119155,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:43:25]free response buf [16:43:25]execute_script done [16:43:25]execute_script returns [16:43:25]free content buf [16:43:25]Sock 9.Close socket [16:43:25]Sock 9.Thread stoped [16:44:51]accept exits with 7 [16:44:51]New connection [16:44:51]New thread 3067030884 created [16:44:51]Thread 3066887524 joined [16:44:51]Waiting for new connection... [16:44:51] Sock 7.Parse request [16:44:51]Sock 7.Check first char [16:44:51]Sock 7.First char is OK [16:44:51]request: POST /json_proto HTTP/1.0 [16:44:51]Method: POST [16:44:51]URL: /json_proto [16:44:51]Method is POST - this is cgi request [16:44:51]url: /json_proto [16:44:51]query_string will be loaded in cgi processing [16:44:51]execute_cgi json_proto POST (null) [16:44:51]execute_cgi path=json_proto method=POST [16:44:51]POST find Content-Length [16:44:51]Host: 172.17.45.7:8080 [16:44:51]Content-Length: 820 [16:44:51]Content-Type: application/json [16:44:51] [16:44:51]POST finish read [16:44:51]Found Content-Length = 820 [16:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 120.950, "sum" : 9216.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9216.00, "payments": [ { "type": 1, "sum" : 9216.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:51]execute_script... [16:44: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)950067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 120.950, "sum" : 9216.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 9216.00, "payments": [ { "type": 1, "sum" : 9216.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:51]POST & json_proto [16:44:51]process_json_proto [16:44:51]json parsed OK: [16:44:51]protocol is kg_v1.0 [16:44:51]action value=close_receipt [16:44:51]process_action close_receipt [16:44:51]cmd_close_receipt [16:44:51]MH_GetDate [16:44:51]Write to MH i2c: F0 00 00 97 03 89 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: F0 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: F0 09 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: F0 09 00 97 03 00 84 18 A9 66 90 0F 3E 66 80 [16:44:51]GetLastDocTimeStamp 1722357801 [16:44:51]current date 1722357892 [16:44:51]FM_GetShiftState [16:44:51]SAM_PROTO_GetShiftState [16:44:51]wFMCommunicate request_size=4 [16:44:51]MH_SAM_APDU [16:44:51]CAPDU: 80 13 01 00 [16:44:51]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [16:44:51]Write i2c OK [16:44:51]MH_I2C_Read... [16:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:51]Read from MH i2c: E2 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0E 00 [16:44:51]MH_I2C_Read... [16:44:51]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [16:44:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:44:51]wFMCommunicate OK [16:44:51]SAM_PROTO_GetShiftState done [16:44:51]FM_GetShiftState done [16:44:51]opened in 1722298242 [16:44:51]opened+sec_in_day 1722384642 [16:44:51]quantity*price = 921639 [16:44:51]sum+1 = 921640 [16:44:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 9216.00 НСП 1% : 81.56 НДС 12% : 978.73 Наличными: 0.00 Безнал.: 9216.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 208 30.07.2024 16:44 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119156 ФПД: 86380433306363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164452&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119156&fm=86380433306363&tin=02508201610067®Number=0000000000092660&sum=921600 [16:44:52]StoreToDocumentArchive [16:44:52]shift 435 fd 119156 [16:44:52]save to /storage/0435/doc_00119156 [16:44:52]save last doc name /storage/0435/doc_00119156 to /storage/kkm_last_doc_name [16:44:52]save OK [16:44:52]Clear old archive folders... [16:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:52]tlvbuf is 00E6A120 [16:44:52]SAM_PROTO_ClearQueue [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 09 00 00 [16:44:52]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:52]Read from MH i2c: E2 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 03 00 [16:44:52]MH_I2C_Read... [16:44:52]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [16:44:52]RAPDU: 90 00 [16:44:52]wFMCommunicate OK [16:44:52]SAM_PROTO_ClearQueue done [16:44:52]KKMCreateOFDPacket [16:44:52]OFDProtocolAddRootSTLVToBuf [16:44:52]FM_MakeSignedData [16:44:52]FM_MakeSignedData [16:44:52]SAM_PROTO_SignData [16:44:52]wFMCommunicate request_size=4 [16:44:52]MH_SAM_APDU [16:44:52]CAPDU: 80 0D 01 02 [16:44:52]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [16:44:52]Write i2c OK [16:44:52]MH_I2C_Read... [16:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=255 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 76 D8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 27 10 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 10 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 7E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 10 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 84 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D1 01 00 35 04 06 00 4E 90 03 0A [16:44:53]Write to MH i2c: E2 02 01 A7 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 76 D8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 27 10 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 10 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 7E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 10 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 84 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D1 01 00 35 04 06 00 4E 90 03 0A 00 00 66 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=7 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 02 02 02 F2 FB [16:44:53]Write to MH i2c: E2 0A 00 A8 03 80 0D 02 02 02 00 F2 FB 00 00 16 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [16:44:53]RAPDU: 90 00 [16:44:53]wFMCommunicate OK [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 0D 03 02 [16:44:53]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0B 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 0B 00 A9 03 00 B4 60 8B 5C 20 3D 3F 0D 90 00 CC [16:44:53]RAPDU: B4 60 8B 5C 20 3D 3F 0D 90 00 [16:44:53]wFMCommunicate OK [16:44:53]SAM_PROTO_SignData done [16:44:53]FM_MakeSignedData done [16:44:53]CreateOFDProtocolMessage [16:44:53]wFMCommunicate request_size=4 [16:44:53]MH_SAM_APDU [16:44:53]CAPDU: 80 11 00 00 [16:44:53]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:53]Read from MH i2c: E2 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [16:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:44:53]wFMCommunicate OK [16:44:53]CreateOFDProtocolMessage done [16:44:53]OFDSenderStorePacket 119156 [16:44:53]StoreOFDPacket docnum=119156 [16:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 24 25 04 01 FA F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 76 D8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 27 10 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 10 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 7E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 10 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 84 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D1 01 00 35 04 06 00 4E 90 03 0A F2 FB B4 60 8B 5C 20 3D 3F 0D [16:44:53]CheckFolder [16:44:53]dirname=/storage/ofd_packets [16:44:53]CheckFolder done [16:44:53]ProducePacketName [16:44:53]name=ofd_packets/00119156 [16:44:53]NVStorageSaveData ofd_packets/00119156 [16:44:53]File name is /storage/ofd_packets/00119156 [16:44:53]Write 298 bytes [16:44:53]NVStorageSaveData done [16:44:53]OFDSenderStorePacket done [16:44:53]KKMCreateOFDPacket done [16:44:53]NVStorageSaveData kkm_last_timestamp [16:44:53]File name is /storage/kkm_last_timestamp [16:44:53]Write 4 bytes [16:44:53]NVStorageSaveData done [16:44:53]ExternCall_PrintAddStr [16:44:53]wPrintStart [16:44:53]Write to MH i2c: 01 00 00 AB 03 AE [16:44:53]Write i2c OK [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 07 00 [16:44:53]MH_I2C_Read... [16:44:53]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [16:44:53]RasterBufferAndPrint [16:44:53]line Счет N : (1)950067 [16:44:53]line ИНН: 02508201610067 [16:44:53]line Контрольно-Кассовый Чек [16:44:53]line ПРОДАЖА [16:44:53]line ТРК (МРК, ГНК) : 11 [16:44:53]line Товар: 2710194800 [16:44:53]line ДТ-К-5 [16:44:53]line 120.950 * 76.20 [16:44:53]line = 9216.39 [16:44:53]line НДС 12% НСП 1% [16:44:53]line > о реализуемом товаре [16:44:53]line ОКРУГЛЕНИЕ: -0.39 [16:44:53]line ИТОГО: 9216.00 [16:44:53]line НСП 1% : 81.56 [16:44:53]line НДС 12% : 978.73 [16:44:53]line Наличными: 0.00 [16:44:53]line Безнал.: 9216.00 [16:44:53]line Место: АЗС № 134 "Партнер Нефть" [16:44:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:44:53]line СНО: Общий режим [16:44:53]line Чек 208 30.07.2024 16:44 [16:44:53]line Смена: 435 ФФД: 1.0 [16:44:53]line ЗНМ: 0300000044 [16:44:53]line РНМ: 0000000000092660 [16:44:53]line Версия ККМ: 001 [16:44:53]line Платежная система: O! деньги [16:44:53]line ФМ: 0000000000874939 [16:44:53]line ФД: 119156 [16:44:53]line ФПД: 86380433306363 [16:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164452&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119156&fm=86380433306363&tin=02508201610067®Number=0000000000092660&sum=921600 [16:44:53]written 0, free lines is 4095 [16:44:54]Write to MH i2c: 01 00 00 D5 03 D8 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 07 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 DC 0C C7 [16:44:54]RasterBufferAndPrint [16:44:54]line [16:44:54]line [16:44:54]line [16:44:54]line [16:44:54]line [16:44:54]written 0, free lines is 3299 [16:44:54]MH_Cut [16:44:54]Write to MH i2c: D1 01 00 DC 03 01 B1 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: D1 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: D1 01 00 [16:44:54]MH_I2C_Read... [16:44:54]Read from MH i2c: D1 01 00 DC 03 00 B0 [16:44:54]Write to MH i2c: 01 00 00 DD 03 E0 [16:44:54]Write i2c OK [16:44:54]MH_I2C_Read... [16:44:54]*** Cut start [16:44:54]*** Partial cut [16:44:54]*** CUTSNS_PIN = 1 [16:44:54]*** CUTSNS_PIN = 0 [16:44:55]*** Brake cut motor [16:44:55]Read from MH i2c: 01 [16:44:55]MH_I2C_Read... [16:44:55]*** Stop cut motor [16:44:55]*** Cut end [16:44:55]Read from MH i2c: 01 07 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [16:44:55]process_action close_receipt done [16:44:55]requested_data is exist [16:44:55]produce_requested_data [16:44:55]requested_item fm.sn is exist - process it [16:44:55]wFMCommunicate request_size=4 [16:44:55]MH_SAM_APDU [16:44:55]CAPDU: 80 11 00 00 [16:44:55]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 17 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [16:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:44:55]wFMCommunicate OK [16:44:55]requested_item fd.num is exist - process it [16:44:55]SAM_PROTO_GetFieldsCounters [16:44:55]wFMCommunicate request_size=4 [16:44:55]MH_SAM_APDU [16:44:55]CAPDU: 80 13 00 00 [16:44:55]Write to MH i2c: E2 08 00 DF 03 80 13 00 00 00 00 00 00 5E [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 62 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 62 00 DF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 74 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:55]wFMCommunicate OK [16:44:55]SAM_PROTO_GetFieldsCounters done [16:44:55]requested_item shift.num is exist - process it [16:44:55]requested_item shift.opened is exist - process it [16:44:55]req_shift_opened [16:44:55]FM_GetShiftState [16:44:55]SAM_PROTO_GetShiftState [16:44:55]wFMCommunicate request_size=4 [16:44:55]MH_SAM_APDU [16:44:55]CAPDU: 80 13 01 00 [16:44:55]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [16:44:55]Write i2c OK [16:44:55]MH_I2C_Read... [16:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:55]Read from MH i2c: E2 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 0E 00 [16:44:55]MH_I2C_Read... [16:44:55]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2B [16:44:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:44:55]wFMCommunicate OK [16:44:55]SAM_PROTO_GetShiftState done [16:44:55]FM_GetShiftState done [16:44:55]req_shift_opened done [16:44:55]requested_item shift.open_date is exist - process it [16:44:55]req_shift_open_date [16:44:55]req_shift_open_date done [16:44:55]produce_requested_data done [16:44:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119156,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:44:55]process_action_free close_receipt [16:44:55]json_value_free [16:44:55]json_value_free done [16:44:55]process_json_proto returns [16:44:55]Send response to host [16:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119156,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:44:55]free response buf [16:44:55]execute_script done [16:44:55]execute_script returns [16:44:55]free content buf [16:44:55]Sock 7.Close socket [16:44:55]Sock 7.Thread stoped [16:45:35]ConnectInit Can't connect to host [16:45:35]CommunicateWithHost connect error [16:45:35]CommunicateWithHost err = -1 [16:45:35]OFD Sender: Server communicate error [16:45:35]OFD Sender: Processing packet 119155 [packets to send 87, broken 85] [16:45:35]ProducePacketName [16:45:35]name=ofd_packets/00119155 [16:45:35]OFD Sender: To server: pG, [16:45:35]CommunicateWithHost lk.salyk.kg:30040 [16:45:35]ConnectInit lk.salyk.kg [16:45:37]Connected sock=7 [16:45:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 9C 04 01 38 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 29 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D1 01 00 35 04 06 00 25 30 CE F9 6F C1 38 D1 2B DE 63 13 B7 73 [16:45:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E1 9B 47 00 A3 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 73 D1 01 00 F4 03 04 00 3A C6 A8 66 B6 04 01 00 00 9A 7C EF CC 94 53 73 EB [16:45:38]CommunicateWithHost err = 0 [16:45:38]CheckOFDResponse [16:45:38]1017 (14) - 77093643461234 [16:45:38]1041 (16) - 0000000000874939 [16:45:38]1040 (4) - 119155 [16:45:38]1012 (4) - 30.07.2024 10:53 [16:45:38]1206 (1) - 0 [16:45:38]OFD Sender: Remove packet 119155 [16:45:38]ProducePacketName [16:45:38]name=ofd_packets/00119155 [16:45:38]NVStorageDeleteData [16:45:39]OFD Sender: Processing packet 119156 [packets to send 86, broken 85] [16:45:39]ProducePacketName [16:45:39]name=ofd_packets/00119156 [16:45:39]OFD Sender: To server: pG, [16:45:39]CommunicateWithHost lk.salyk.kg:30040 [16:45:39]ConnectInit lk.salyk.kg [16:45:41]Connected sock=7 [16:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 24 25 04 01 FA F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 76 D8 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 27 10 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 10 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 7E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 10 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 84 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 74 D1 01 00 35 04 06 00 4E 90 03 0A F2 FB B4 60 8B 5C 20 3D 3F 0D [16:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 53 10 47 00 93 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 34 39 33 39 10 04 04 00 74 D1 01 00 F4 03 04 00 3E C6 A8 66 B6 04 01 00 00 8C AB 82 98 48 CA A6 89 [16:45:41]CommunicateWithHost err = 0 [16:45:41]CheckOFDResponse [16:45:41]1017 (14) - 77093643461234 [16:45:41]1041 (16) - 0000000000874939 [16:45:41]1040 (4) - 119156 [16:45:41]1012 (4) - 30.07.2024 10:53 [16:45:41]1206 (1) - 0 [16:45:41]OFD Sender: Remove packet 119156 [16:45:41]ProducePacketName [16:45:41]name=ofd_packets/00119156 [16:45:41]NVStorageDeleteData [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:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:18]accept exits with 9 [16:46:18]New connection [16:46:18]New thread 3066887524 created [16:46:18]Thread 3067030884 joined [16:46:18]Waiting for new connection... [16:46:18] Sock 9.Parse request [16:46:18]Sock 9.Check first char [16:46:18]Sock 9.First char is OK [16:46:18]request: POST /json_proto HTTP/1.0 [16:46:18]Method: POST [16:46:18]URL: /json_proto [16:46:18]Method is POST - this is cgi request [16:46:18]url: /json_proto [16:46:18]query_string will be loaded in cgi processing [16:46:18]execute_cgi json_proto POST (null) [16:46:18]execute_cgi path=json_proto method=POST [16:46:18]POST find Content-Length [16:46:18]Host: 172.17.45.7:8080 [16:46:18]Content-Length: 679 [16:46:18]Content-Type: application/json [16:46:18] [16:46:18]POST finish read [16:46:18]Found Content-Length = 679 [16:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:18]execute_script... [16:46: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)950075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:18]POST & json_proto [16:46:18]process_json_proto [16:46:18]json parsed OK: [16:46:18]protocol is kg_v1.0 [16:46:18]action value=close_receipt [16:46:18]process_action close_receipt [16:46:18]cmd_close_receipt [16:46:18]MH_GetDate [16:46:18]Write to MH i2c: F0 00 00 E1 03 D3 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 09 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 09 00 E1 03 00 DA 18 A9 66 90 0F 3E 66 20 [16:46:18]GetLastDocTimeStamp 1722357892 [16:46:18]current date 1722357978 [16:46:18]FM_GetShiftState [16:46:18]SAM_PROTO_GetShiftState [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 01 00 [16:46:18]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2D [16:46:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetShiftState done [16:46:18]FM_GetShiftState done [16:46:18]opened in 1722298242 [16:46:18]opened+sec_in_day 1722384642 [16:46:18]quantity*price = 100050 [16:46:18]sum+1 = 100052 [16:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 209 30.07.2024 16:46 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119157 ФПД: 51017366685190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119157&fm=51017366685190&tin=02508201610067®Number=0000000000092660&sum=100000 [16:46:19]StoreToDocumentArchive [16:46:19]shift 435 fd 119157 [16:46:19]save to /storage/0435/doc_00119157 [16:46:19]save last doc name /storage/0435/doc_00119157 to /storage/kkm_last_doc_name [16:46:19]save OK [16:46:19]Clear old archive folders... [16:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:46:19]tlvbuf is 00E3D580 [16:46:19]SAM_PROTO_ClearQueue [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 09 00 00 [16:46:19]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]SAM_PROTO_ClearQueue done [16:46:19]KKMCreateOFDPacket [16:46:19]OFDProtocolAddRootSTLVToBuf [16:46:19]FM_MakeSignedData [16:46:19]FM_MakeSignedData [16:46:19]SAM_PROTO_SignData [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 01 02 [16:46:19]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]wFMCommunicate request_size=255 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D1 01 00 35 04 06 00 2E 66 68 04 [16:46:19]Write to MH i2c: E2 02 01 F1 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D1 01 00 35 04 06 00 2E 66 68 04 00 00 C9 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]wFMCommunicate request_size=7 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 02 02 02 C6 06 [16:46:19]Write to MH i2c: E2 0A 00 F2 03 80 0D 02 02 02 00 C6 06 00 00 3F [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 03 02 [16:46:19]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 0B 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 0B 00 F3 03 00 3A 02 98 56 35 CC 4F E4 90 00 D0 [16:46:19]RAPDU: 3A 02 98 56 35 CC 4F E4 90 00 [16:46:19]wFMCommunicate OK [16:46:19]SAM_PROTO_SignData done [16:46:19]FM_MakeSignedData done [16:46:19]CreateOFDProtocolMessage [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 11 00 00 [16:46:19]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 17 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [16:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:46:19]wFMCommunicate OK [16:46:19]CreateOFDProtocolMessage done [16:46:19]OFDSenderStorePacket 119157 [16:46:19]StoreOFDPacket docnum=119157 [16:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 53 04 01 B9 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D1 01 00 35 04 06 00 2E 66 68 04 C6 06 3A 02 98 56 35 CC 4F E4 [16:46:19]CheckFolder [16:46:19]dirname=/storage/ofd_packets [16:46:19]CheckFolder done [16:46:19]ProducePacketName [16:46:19]name=ofd_packets/00119157 [16:46:19]NVStorageSaveData ofd_packets/00119157 [16:46:19]File name is /storage/ofd_packets/00119157 [16:46:19]Write 298 bytes [16:46:19]NVStorageSaveData done [16:46:19]OFDSenderStorePacket done [16:46:19]KKMCreateOFDPacket done [16:46:19]NVStorageSaveData kkm_last_timestamp [16:46:19]File name is /storage/kkm_last_timestamp [16:46:19]Write 4 bytes [16:46:19]NVStorageSaveData done [16:46:19]ExternCall_PrintAddStr [16:46:19]wPrintStart [16:46:19]Write to MH i2c: 01 00 00 F5 03 F8 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [16:46:19]RasterBufferAndPrint [16:46:19]line Счет N : (1)950075 [16:46:19]line ИНН: 02508201610067 [16:46:19]line Контрольно-Кассовый Чек [16:46:19]line ПРОДАЖА [16:46:19]line ТРК (МРК, ГНК) : 21 [16:46:19]line Товар: 2710194800 [16:46:19]line ДТ-К-5 [16:46:19]line 13.130 * 76.20 [16:46:19]line = 1000.51 [16:46:19]line НДС 12% НСП 1% [16:46:19]line > о реализуемом товаре [16:46:19]line ОКРУГЛЕНИЕ: -0.51 [16:46:19]line ИТОГО: 1000.00 [16:46:19]line Внесено: 1000.00 [16:46:19]line СДАЧА: 0.00 [16:46:19]line НСП 1% : 8.85 [16:46:19]line НДС 12% : 106.25 [16:46:19]line Наличными: 1000.00 [16:46:19]line Безнал.: 0.00 [16:46:19]line Место: АЗС № 134 "Партнер Нефть" [16:46:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:46:19]line СНО: Общий режим [16:46:19]line Чек 209 30.07.2024 16:46 [16:46:19]line Смена: 435 ФФД: 1.0 [16:46:19]line ЗНМ: 0300000044 [16:46:19]line РНМ: 0000000000092660 [16:46:19]line Версия ККМ: 001 [16:46:19]line ФМ: 0000000000874939 [16:46:19]line ФД: 119157 [16:46:19]line ФПД: 51017366685190 [16:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T164618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119157&fm=51017366685190&tin=02508201610067®Number=0000000000092660&sum=100000 [16:46:20]OFD Sender: Processing packet 119157 [packets to send 86, broken 85] [16:46:20]ProducePacketName [16:46:20]name=ofd_packets/00119157 [16:46:20]OFD Sender: To server: pG, [16:46:20]CommunicateWithHost lk.salyk.kg:30040 [16:46:20]ConnectInit lk.salyk.kg [16:46:20]written 0, free lines is 4095 [16:46:20]Write to MH i2c: 01 00 00 1F 04 23 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 D4 0C 0A [16:46:20]RasterBufferAndPrint [16:46:20]line [16:46:20]line [16:46:20]line [16:46:20]line [16:46:20]line [16:46:20]written 0, free lines is 3288 [16:46:20]MH_Cut [16:46:20]Write to MH i2c: D1 01 00 26 04 01 FC [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: D1 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: D1 01 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: D1 01 00 26 04 00 FB [16:46:20]Write to MH i2c: 01 00 00 27 04 2B [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:21]*** Cut start [16:46:21]*** Partial cut [16:46:21]*** CUTSNS_PIN = 1 [16:46:21]*** CUTSNS_PIN = 0 [16:46:21]*** Brake cut motor [16:46:21]Read from MH i2c: 01 [16:46:21]MH_I2C_Read... [16:46:21]*** Stop cut motor [16:46:21]*** Cut end [16:46:21]Read from MH i2c: 01 07 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [16:46:21]process_action close_receipt done [16:46:21]requested_data is exist [16:46:21]produce_requested_data [16:46:21]requested_item fm.sn is exist - process it [16:46:21]wFMCommunicate request_size=4 [16:46:21]MH_SAM_APDU [16:46:21]CAPDU: 80 11 00 00 [16:46:21]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:21]Read from MH i2c: E2 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 17 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 01 [16:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:46:21]wFMCommunicate OK [16:46:21]requested_item fd.num is exist - process it [16:46:21]SAM_PROTO_GetFieldsCounters [16:46:21]wFMCommunicate request_size=4 [16:46:21]MH_SAM_APDU [16:46:21]CAPDU: 80 13 00 00 [16:46:21]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 62 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 62 00 29 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [16:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 75 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_GetFieldsCounters done [16:46:22]requested_item shift.num is exist - process it [16:46:22]requested_item shift.opened is exist - process it [16:46:22]req_shift_opened [16:46:22]FM_GetShiftState [16:46:22]SAM_PROTO_GetShiftState [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 13 01 00 [16:46:22]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0E 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 76 [16:46:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_GetShiftState done [16:46:22]FM_GetShiftState done [16:46:22]req_shift_opened done [16:46:22]requested_item shift.open_date is exist - process it [16:46:22]req_shift_open_date [16:46:22]req_shift_open_date done [16:46:22]produce_requested_data done [16:46:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119157,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:46:22]process_action_free close_receipt [16:46:22]json_value_free [16:46:22]json_value_free done [16:46:22]process_json_proto returns [16:46:22]Send response to host [16:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119157,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:46:22]free response buf [16:46:22]execute_script done [16:46:22]execute_script returns [16:46:22]free content buf [16:46:22]Sock 9.Close socket [16:46:22]Sock 9.Thread stoped [16:46:25]ConnectInit Can't take IP for lk.salyk.kg [16:46:25]CommunicateWithHost connect error [16:46:25]CommunicateWithHost err = -1 [16:46:25]OFD Sender: Server communicate error [16:46:30]OFD Sender: Processing packet 119157 [packets to send 86, broken 85] [16:46:30]ProducePacketName [16:46:30]name=ofd_packets/00119157 [16:46:30]OFD Sender: To server: pG, [16:46:30]CommunicateWithHost lk.salyk.kg:30040 [16:46:30]ConnectInit lk.salyk.kg [16:46:32]Connected sock=9 [16:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B6 53 04 01 B9 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 DA 18 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D1 01 00 35 04 06 00 2E 66 68 04 C6 06 3A 02 98 56 35 CC 4F E4 [16:46:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 43 36 47 00 C4 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 75 D1 01 00 F4 03 04 00 72 C6 A8 66 B6 04 01 00 00 78 F5 C6 BF 8E 87 D0 0E [16:46:33]CommunicateWithHost err = 0 [16:46:33]CheckOFDResponse [16:46:33]1017 (14) - 77093643461234 [16:46:33]1041 (16) - 0000000000874939 [16:46:33]1040 (4) - 119157 [16:46:33]1012 (4) - 30.07.2024 10:54 [16:46:33]1206 (1) - 0 [16:46:33]OFD Sender: Remove packet 119157 [16:46:33]ProducePacketName [16:46:33]name=ofd_packets/00119157 [16:46:33]NVStorageDeleteData [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:17]recv_with_timeout no data received [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:14]recv_with_timeout no data received [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:57]accept exits with 7 [16:50:57]New connection [16:50:57]New thread 3067030884 created [16:50:57]Thread 3066887524 joined [16:50:57]Waiting for new connection... [16:50:57] Sock 7.Parse request [16:50:57]Sock 7.Check first char [16:50:57]Sock 7.First char is OK [16:50:57]request: POST /json_proto HTTP/1.0 [16:50:57]Method: POST [16:50:57]URL: /json_proto [16:50:57]Method is POST - this is cgi request [16:50:57]url: /json_proto [16:50:57]query_string will be loaded in cgi processing [16:50:57]execute_cgi json_proto POST (null) [16:50:57]execute_cgi path=json_proto method=POST [16:50:57]POST find Content-Length [16:50:57]Host: 172.17.45.7:8080 [16:50:57]Content-Length: 682 [16:50:57]Content-Type: application/json [16:50:57] [16:50:57]POST finish read [16:50:57]Found Content-Length = 682 [16:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:50:57]execute_script... [16:50: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)950076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:50:57]POST & json_proto [16:50:57]process_json_proto [16:50:57]json parsed OK: [16:50:57]protocol is kg_v1.0 [16:50:57]action value=close_receipt [16:50:57]process_action close_receipt [16:50:57]cmd_close_receipt [16:50:57]MH_GetDate [16:50:57]Write to MH i2c: F0 00 00 2B 04 1E [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: F0 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: F0 09 00 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: F0 09 00 2B 04 00 F2 19 A9 66 90 0F 3E 66 84 [16:50:57]GetLastDocTimeStamp 1722357978 [16:50:57]current date 1722358258 [16:50:57]FM_GetShiftState [16:50:57]SAM_PROTO_GetShiftState [16:50:57]wFMCommunicate request_size=4 [16:50:57]MH_SAM_APDU [16:50:57]CAPDU: 80 13 01 00 [16:50:57]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:57]Read from MH i2c: E2 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: E2 0E 00 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 78 [16:50:57]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:50:57]wFMCommunicate OK [16:50:57]SAM_PROTO_GetShiftState done [16:50:57]FM_GetShiftState done [16:50:57]opened in 1722298242 [16:50:57]opened+sec_in_day 1722384642 [16:50:57]quantity*price = 100005 [16:50:57]sum+1 = 100006 [16:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 210 30.07.2024 16:50 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119158 ФПД: 265322767466768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T165058&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119158&fm=265322767466768&tin=02508201610067®Number=0000000000092660&sum=100000 [16:50:58]StoreToDocumentArchive [16:50:58]shift 435 fd 119158 [16:50:58]save to /storage/0435/doc_00119158 [16:50:58]save last doc name /storage/0435/doc_00119158 to /storage/kkm_last_doc_name [16:50:58]save OK [16:50:58]Clear old archive folders... [16:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:58]tlvbuf is 00E68220 [16:50:58]SAM_PROTO_ClearQueue [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 09 00 00 [16:50:58]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [16:50:58]RAPDU: 90 00 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_ClearQueue done [16:50:58]KKMCreateOFDPacket [16:50:58]OFDProtocolAddRootSTLVToBuf [16:50:58]FM_MakeSignedData [16:50:58]FM_MakeSignedData [16:50:58]SAM_PROTO_SignData [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 0D 01 02 [16:50:58]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [16:50:58]RAPDU: 90 00 [16:50:58]wFMCommunicate OK [16:50:58]wFMCommunicate request_size=255 [16:50:58]MH_SAM_APDU [16:50: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F2 19 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D1 01 00 35 04 06 00 F1 [16:50:58]Write to MH i2c: E2 02 01 3B 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F2 19 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D1 01 00 35 04 06 00 F1 00 00 A3 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [16:50:58]RAPDU: 90 00 [16:50:58]wFMCommunicate OK [16:50:58]wFMCommunicate request_size=10 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 0D 02 02 05 4F 45 4E 41 10 [16:50:58]Write to MH i2c: E2 0D 00 3C 04 80 0D 02 02 05 00 4F 45 4E 41 10 00 00 F7 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [16:50:58]RAPDU: 90 00 [16:50:58]wFMCommunicate OK [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 0D 03 02 [16:50:58]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0B 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0B 00 3D 04 00 71 60 98 69 E9 CC BB 26 90 00 25 [16:50:58]RAPDU: 71 60 98 69 E9 CC BB 26 90 00 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_SignData done [16:50:58]FM_MakeSignedData done [16:50:58]CreateOFDProtocolMessage [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 11 00 00 [16:50:58]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 17 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [16:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:50:58]wFMCommunicate OK [16:50:58]CreateOFDProtocolMessage done [16:50:58]OFDSenderStorePacket 119158 [16:50:58]StoreOFDPacket docnum=119158 [16:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 3A 07 01 91 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F2 19 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D1 01 00 35 04 06 00 F1 4F 45 4E 41 10 71 60 98 69 E9 CC BB 26 [16:50:58]CheckFolder [16:50:58]dirname=/storage/ofd_packets [16:50:58]CheckFolder done [16:50:58]ProducePacketName [16:50:58]name=ofd_packets/00119158 [16:50:58]NVStorageSaveData ofd_packets/00119158 [16:50:58]File name is /storage/ofd_packets/00119158 [16:50:58]Write 301 bytes [16:50:58]NVStorageSaveData done [16:50:58]OFDSenderStorePacket done [16:50:58]KKMCreateOFDPacket done [16:50:58]NVStorageSaveData kkm_last_timestamp [16:50:58]File name is /storage/kkm_last_timestamp [16:50:58]Write 4 bytes [16:50:58]NVStorageSaveData done [16:50:58]ExternCall_PrintAddStr [16:50:58]wPrintStart [16:50:58]Write to MH i2c: 01 00 00 3F 04 43 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [16:50:58]RasterBufferAndPrint [16:50:58]line Счет N : (1)950076 [16:50:58]line ИНН: 02508201610067 [16:50:58]line Контрольно-Кассовый Чек [16:50:58]line ПРОДАЖА [16:50:58]line ТРК (МРК, ГНК) : 51 [16:50:58]line Товар: 2710124130 [16:50:58]line Аи-92-К-4 [16:50:58]line 14.750 * 67.80 [16:50:58]line = 1000.05 [16:50:58]line НДС 12% НСП 1% [16:50:58]line > о реализуемом товаре [16:50:58]line ОКРУГЛЕНИЕ: -0.05 [16:50:58]line ИТОГО: 1000.00 [16:50:58]line Внесено: 1000.00 [16:50:58]line СДАЧА: 0.00 [16:50:58]line НСП 1% : 8.85 [16:50:58]line НДС 12% : 106.20 [16:50:58]line Наличными: 1000.00 [16:50:58]line Безнал.: 0.00 [16:50:58]line Место: АЗС № 134 "Партнер Нефть" [16:50:58]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:50:58]line СНО: Общий режим [16:50:58]line Чек 210 30.07.2024 16:50 [16:50:58]line Смена: 435 ФФД: 1.0 [16:50:58]line ЗНМ: 0300000044 [16:50:58]line РНМ: 0000000000092660 [16:50:58]line Версия ККМ: 001 [16:50:59]line ФМ: 0000000000874939 [16:50:59]line ФД: 119158 [16:50:59]line ФПД: 265322767466768 [16:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T165058&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119158&fm=265322767466768&tin=02508201610067®Number=0000000000092660&sum=100000 [16:50:59]OFD Sender: Processing packet 119158 [packets to send 86, broken 85] [16:50:59]ProducePacketName [16:50:59]name=ofd_packets/00119158 [16:50:59]OFD Sender: To server: pG, [16:50:59]CommunicateWithHost lk.salyk.kg:30040 [16:50:59]ConnectInit lk.salyk.kg [16:50:59]written 0, free lines is 4095 [16:50:59]recv_with_timeout no data received [16:50:59]Write to MH i2c: 01 00 00 69 04 6D [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: 01 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: 01 07 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 D8 0C 58 [16:50:59]RasterBufferAndPrint [16:50:59]line [16:50:59]line [16:50:59]line [16:50:59]line [16:50:59]line [16:50:59]written 0, free lines is 3293 [16:50:59]MH_Cut [16:50:59]Write to MH i2c: D1 01 00 70 04 01 46 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: D1 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: D1 01 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: D1 01 00 70 04 00 45 [16:50:59]Write to MH i2c: 01 00 00 71 04 75 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:51:00]*** Cut start [16:51:00]*** Partial cut [16:51:00]*** CUTSNS_PIN = 1 [16:51:00]*** CUTSNS_PIN = 0 [16:51:00]*** Brake cut motor [16:51:01]Read from MH i2c: 01 [16:51:01]MH_I2C_Read... [16:51:01]*** Stop cut motor [16:51:01]*** Cut end [16:51:01]Read from MH i2c: 01 07 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [16:51:01]process_action close_receipt done [16:51:01]requested_data is exist [16:51:01]produce_requested_data [16:51:01]requested_item fm.sn is exist - process it [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 11 00 00 [16:51:01]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4B [16:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [16:51:01]wFMCommunicate OK [16:51:01]requested_item fd.num is exist - process it [16:51:01]SAM_PROTO_GetFieldsCounters [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 13 00 00 [16:51:01]Write to MH i2c: E2 08 00 73 04 80 13 00 00 00 00 00 00 F3 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 62 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 62 00 73 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [16:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 76 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_GetFieldsCounters done [16:51:01]requested_item shift.num is exist - process it [16:51:01]requested_item shift.opened is exist - process it [16:51:01]req_shift_opened [16:51:01]FM_GetShiftState [16:51:01]SAM_PROTO_GetShiftState [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 13 01 00 [16:51:01]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0E 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C0 [16:51:01]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_GetShiftState done [16:51:01]FM_GetShiftState done [16:51:01]req_shift_opened done [16:51:01]requested_item shift.open_date is exist - process it [16:51:01]req_shift_open_date [16:51:01]req_shift_open_date done [16:51:01]produce_requested_data done [16:51:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119158,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [16:51:01]process_action_free close_receipt [16:51:01]json_value_free [16:51:01]json_value_free done [16:51:01]process_json_proto returns [16:51:01]Send response to host [16:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119158,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [16:51:01]free response buf [16:51:01]execute_script done [16:51:01]execute_script returns [16:51:01]free content buf [16:51:01]Sock 7.Close socket [16:51:01]Sock 7.Thread stoped [16:51:04]ConnectInit Can't take IP for lk.salyk.kg [16:51:04]CommunicateWithHost connect error [16:51:04]CommunicateWithHost err = -1 [16:51:04]OFD Sender: Server communicate error [16:51:09]OFD Sender: Processing packet 119158 [packets to send 86, broken 85] [16:51:09]ProducePacketName [16:51:09]name=ofd_packets/00119158 [16:51:09]OFD Sender: To server: pG, [16:51:09]CommunicateWithHost lk.salyk.kg:30040 [16:51:09]ConnectInit lk.salyk.kg [16:51:10]Connected sock=9 [16:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AD 3A 07 01 91 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 F2 19 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 76 D1 01 00 35 04 06 00 F1 4F 45 4E 41 10 71 60 98 69 E9 CC BB 26 [16:51:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D7 BC 47 00 46 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 34 39 33 39 10 04 04 00 76 D1 01 00 F4 03 04 00 88 C7 A8 66 B6 04 01 00 00 A3 22 BC 23 05 CC BC 84 [16:51:11]CommunicateWithHost err = 0 [16:51:11]CheckOFDResponse [16:51:11]1017 (14) - 77093643461234 [16:51:11]1041 (16) - 0000000000874939 [16:51:11]1040 (4) - 119158 [16:51:11]1012 (4) - 30.07.2024 10:59 [16:51:11]1206 (1) - 0 [16:51:11]OFD Sender: Remove packet 119158 [16:51:11]ProducePacketName [16:51:11]name=ofd_packets/00119158 [16:51:11]NVStorageDeleteData [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:20]recv_with_timeout no data received [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:08]recv_with_timeout no data received [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:29]recv_with_timeout no data received [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:57:58]recv_with_timeout no data received [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]ConnectInit Can't connect to host [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:10]accept exits with 10 [17:01:10]New connection [17:01:10]New thread 3066887524 created [17:01:10]Thread 3067030884 joined [17:01:10]Waiting for new connection... [17:01:10] Sock 10.Parse request [17:01:10]Sock 10.Check first char [17:01:10]Sock 10.First char is OK [17:01:10]request: POST /json_proto HTTP/1.0 [17:01:10]Method: POST [17:01:10]URL: /json_proto [17:01:10]Method is POST - this is cgi request [17:01:10]url: /json_proto [17:01:10]query_string will be loaded in cgi processing [17:01:10]execute_cgi json_proto POST (null) [17:01:10]execute_cgi path=json_proto method=POST [17:01:10]POST find Content-Length [17:01:10]Host: 172.17.45.7:8080 [17:01:10]Content-Length: 819 [17:01:10]Content-Type: application/json [17:01:10] [17:01:10]POST finish read [17:01:10]Found Content-Length = 819 [17:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:10]execute_script... [17:01: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)950077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:10]POST & json_proto [17:01:10]process_json_proto [17:01:10]json parsed OK: [17:01:10]protocol is kg_v1.0 [17:01:10]action value=close_receipt [17:01:10]process_action close_receipt [17:01:10]cmd_close_receipt [17:01:10]MH_GetDate [17:01:10]Write to MH i2c: F0 00 00 75 04 68 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: F0 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: F0 09 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: F0 09 00 75 04 00 57 1C A9 66 90 0F 3E 66 36 [17:01:10]GetLastDocTimeStamp 1722358258 [17:01:10]current date 1722358871 [17:01:10]FM_GetShiftState [17:01:10]SAM_PROTO_GetShiftState [17:01:10]wFMCommunicate request_size=4 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 13 01 00 [17:01:10]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0E 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C2 [17:01:10]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:01:10]wFMCommunicate OK [17:01:10]SAM_PROTO_GetShiftState done [17:01:10]FM_GetShiftState done [17:01:10]opened in 1722298242 [17:01:10]opened+sec_in_day 1722384642 [17:01:10]quantity*price = 150037 [17:01:10]sum+1 = 150039 [17:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 211 30.07.2024 17:01 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119159 ФПД: 151039694161996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T170111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119159&fm=151039694161996&tin=02508201610067®Number=0000000000092660&sum=150000 [17:01:12]StoreToDocumentArchive [17:01:12]shift 435 fd 119159 [17:01:12]save to /storage/0435/doc_00119159 [17:01:12]save last doc name /storage/0435/doc_00119159 to /storage/kkm_last_doc_name [17:01:12]save OK [17:01:12]Clear old archive folders... [17:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:01:12]tlvbuf is 00EBE450 [17:01:12]SAM_PROTO_ClearQueue [17:01:12]wFMCommunicate request_size=4 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 09 00 00 [17:01:12]Write to MH i2c: E2 08 00 83 04 80 09 00 00 00 00 00 00 F9 [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [17:01:12]RAPDU: 90 00 [17:01:12]wFMCommunicate OK [17:01:12]SAM_PROTO_ClearQueue done [17:01:12]KKMCreateOFDPacket [17:01:12]OFDProtocolAddRootSTLVToBuf [17:01:12]FM_MakeSignedData [17:01:12]FM_MakeSignedData [17:01:12]SAM_PROTO_SignData [17:01:12]wFMCommunicate request_size=4 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 0D 01 02 [17:01:12]Write to MH i2c: E2 08 00 84 04 80 0D 01 02 00 00 00 00 01 [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [17:01:12]RAPDU: 90 00 [17:01:12]wFMCommunicate OK [17:01:12]wFMCommunicate request_size=255 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 57 1C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D1 01 00 35 04 06 00 89 5E AB 51 [17:01:12]Write to MH i2c: E2 02 01 85 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 57 1C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D1 01 00 35 04 06 00 89 5E AB 51 00 00 3D [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [17:01:12]RAPDU: 90 00 [17:01:12]wFMCommunicate OK [17:01:12]wFMCommunicate request_size=7 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 0D 02 02 02 48 4C [17:01:12]Write to MH i2c: E2 0A 00 86 04 80 0D 02 02 02 00 48 4C 00 00 9C [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [17:01:12]RAPDU: 90 00 [17:01:12]wFMCommunicate OK [17:01:12]wFMCommunicate request_size=4 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 0D 03 02 [17:01:12]Write to MH i2c: E2 08 00 87 04 80 0D 03 02 00 00 00 00 06 [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 0B 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 0B 00 87 04 00 E4 2D 0D CE 38 6F 39 DC 90 00 AF [17:01:12]RAPDU: E4 2D 0D CE 38 6F 39 DC 90 00 [17:01:12]wFMCommunicate OK [17:01:12]SAM_PROTO_SignData done [17:01:12]FM_MakeSignedData done [17:01:12]CreateOFDProtocolMessage [17:01:12]wFMCommunicate request_size=4 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 11 00 00 [17:01:12]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]OFD Sender: No OFD packet to send [17:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 17 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [17:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:01:12]wFMCommunicate OK [17:01:12]CreateOFDProtocolMessage done [17:01:12]OFDSenderStorePacket 119159 [17:01:12]StoreOFDPacket docnum=119159 [17:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E7 01 04 01 51 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 57 1C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D1 01 00 35 04 06 00 89 5E AB 51 48 4C E4 2D 0D CE 38 6F 39 DC [17:01:12]CheckFolder [17:01:12]dirname=/storage/ofd_packets [17:01:12]CheckFolder done [17:01:12]ProducePacketName [17:01:12]name=ofd_packets/00119159 [17:01:12]NVStorageSaveData ofd_packets/00119159 [17:01:12]File name is /storage/ofd_packets/00119159 [17:01:12]Write 298 bytes [17:01:12]NVStorageSaveData done [17:01:12]OFDSenderStorePacket done [17:01:12]KKMCreateOFDPacket done [17:01:12]NVStorageSaveData kkm_last_timestamp [17:01:12]File name is /storage/kkm_last_timestamp [17:01:12]Write 4 bytes [17:01:12]NVStorageSaveData done [17:01:12]ExternCall_PrintAddStr [17:01:12]wPrintStart [17:01:12]Write to MH i2c: 01 00 00 89 04 8D [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: 01 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: 01 07 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 FF 0F A2 [17:01:12]RasterBufferAndPrint [17:01:12]line Счет N : (1)950077 [17:01:12]line ИНН: 02508201610067 [17:01:12]line Контрольно-Кассовый Чек [17:01:12]line ПРОДАЖА [17:01:12]line ТРК (МРК, ГНК) : 11 [17:01:12]line Товар: 2710194800 [17:01:12]line ДТ-К-5 [17:01:12]line 19.690 * 76.20 [17:01:12]line = 1500.38 [17:01:12]line НДС 12% НСП 1% [17:01:12]line > о реализуемом товаре [17:01:12]line ОКРУГЛЕНИЕ: -0.38 [17:01:12]line ИТОГО: 1500.00 [17:01:12]line НСП 1% : 13.28 [17:01:12]line НДС 12% : 159.33 [17:01:12]line Наличными: 0.00 [17:01:12]line Безнал.: 1500.00 [17:01:12]line Место: АЗС № 134 "Партнер Нефть" [17:01:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:01:12]line СНО: Общий режим [17:01:12]line Чек 211 30.07.2024 17:01 [17:01:12]line Смена: 435 ФФД: 1.0 [17:01:12]line ЗНМ: 0300000044 [17:01:12]line РНМ: 0000000000092660 [17:01:12]line Версия ККМ: 001 [17:01:12]line Платежная система: O! деньги [17:01:12]line ФМ: 0000000000874939 [17:01:12]line ФД: 119159 [17:01:12]line ФПД: 151039694161996 [17:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T170111&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119159&fm=151039694161996&tin=02508201610067®Number=0000000000092660&sum=150000 [17:01:12]OFD Sender: Processing packet 119159 [packets to send 86, broken 85] [17:01:12]ProducePacketName [17:01:12]name=ofd_packets/00119159 [17:01:12]OFD Sender: To server: pG, [17:01:12]CommunicateWithHost lk.salyk.kg:30040 [17:01:12]ConnectInit lk.salyk.kg [17:01:12]written 0, free lines is 4095 [17:01:13]Write to MH i2c: 01 00 00 B3 04 B7 [17:01:13]Write i2c OK [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: 01 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: 01 07 00 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 D4 0C 9E [17:01:13]RasterBufferAndPrint [17:01:13]line [17:01:13]line [17:01:13]line [17:01:13]line [17:01:13]line [17:01:13]written 0, free lines is 3290 [17:01:13]MH_Cut [17:01:13]Write to MH i2c: D1 01 00 BA 04 01 90 [17:01:13]Write i2c OK [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: D1 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: D1 01 00 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: D1 01 00 BA 04 00 8F [17:01:13]Write to MH i2c: 01 00 00 BB 04 BF [17:01:13]Write i2c OK [17:01:13]MH_I2C_Read... [17:01:14]*** Cut start [17:01:14]*** Partial cut [17:01:14]*** CUTSNS_PIN = 1 [17:01:14]*** CUTSNS_PIN = 0 [17:01:14]*** Brake cut motor [17:01:14]Read from MH i2c: 01 [17:01:14]MH_I2C_Read... [17:01:14]*** Stop cut motor [17:01:14]*** Cut end [17:01:14]Read from MH i2c: 01 07 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [17:01:14]process_action close_receipt done [17:01:14]requested_data is exist [17:01:14]produce_requested_data [17:01:14]requested_item fm.sn is exist - process it [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 11 00 00 [17:01:14]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 17 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 95 [17:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:01:14]wFMCommunicate OK [17:01:14]requested_item fd.num is exist - process it [17:01:14]SAM_PROTO_GetFieldsCounters [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 13 00 00 [17:01:14]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 62 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 62 00 BD 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 77 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:14]wFMCommunicate OK [17:01:14]SAM_PROTO_GetFieldsCounters done [17:01:14]requested_item shift.num is exist - process it [17:01:14]requested_item shift.opened is exist - process it [17:01:14]req_shift_opened [17:01:14]FM_GetShiftState [17:01:14]SAM_PROTO_GetShiftState [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 13 01 00 [17:01:14]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 0E 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0A [17:01:14]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:01:14]wFMCommunicate OK [17:01:14]SAM_PROTO_GetShiftState done [17:01:14]FM_GetShiftState done [17:01:14]req_shift_opened done [17:01:14]requested_item shift.open_date is exist - process it [17:01:14]req_shift_open_date [17:01:14]req_shift_open_date done [17:01:14]produce_requested_data done [17:01:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119159,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:01:14]process_action_free close_receipt [17:01:14]json_value_free [17:01:14]json_value_free done [17:01:14]process_json_proto returns [17:01:14]Send response to host [17:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119159,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:01:14]free response buf [17:01:14]execute_script done [17:01:14]execute_script returns [17:01:14]free content buf [17:01:14]Sock 10.Close socket [17:01:14]Sock 10.Thread stoped [17:01:15]Connected sock=7 [17:01:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E7 01 04 01 51 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 57 1C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D1 01 00 35 04 06 00 89 5E AB 51 48 4C E4 2D 0D CE 38 6F 39 DC [17:01:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3A BC 47 00 20 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 77 D1 01 00 F4 03 04 00 E5 C9 A8 66 B6 04 01 00 00 5A E8 57 2E 3D D2 43 9D [17:01:15]CommunicateWithHost err = 0 [17:01:15]CheckOFDResponse [17:01:15]1017 (14) - 77093643461234 [17:01:15]1041 (16) - 0000000000874939 [17:01:15]1040 (4) - 119159 [17:01:15]1012 (4) - 30.07.2024 11:09 [17:01:15]1206 (1) - 0 [17:01:15]OFD Sender: Remove packet 119159 [17:01:15]ProducePacketName [17:01:15]name=ofd_packets/00119159 [17:01:15]NVStorageDeleteData [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 [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:46]OFD Sender: No OFD packet to send [17:02:49]accept exits with 9 [17:02:49]New connection [17:02:49]New thread 3067030884 created [17:02:49]Thread 3066887524 joined [17:02:49]Waiting for new connection... [17:02:49] Sock 9.Parse request [17:02:49]Sock 9.Check first char [17:02:49]Sock 9.First char is OK [17:02:49]request: POST /json_proto HTTP/1.0 [17:02:49]Method: POST [17:02:49]URL: /json_proto [17:02:49]Method is POST - this is cgi request [17:02:49]url: /json_proto [17:02:49]query_string will be loaded in cgi processing [17:02:49]execute_cgi json_proto POST (null) [17:02:49]execute_cgi path=json_proto method=POST [17:02:49]POST find Content-Length [17:02:49]Host: 172.17.45.7:8080 [17:02:49]Content-Length: 682 [17:02:49]Content-Type: application/json [17:02:49] [17:02:49]POST finish read [17:02:49]Found Content-Length = 682 [17:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:02:49]execute_script... [17:02: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)950078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:02:49]POST & json_proto [17:02:49]process_json_proto [17:02:49]json parsed OK: [17:02:49]protocol is kg_v1.0 [17:02:49]action value=close_receipt [17:02:49]process_action close_receipt [17:02:49]cmd_close_receipt [17:02:49]MH_GetDate [17:02:49]Write to MH i2c: F0 00 00 BF 04 B2 [17:02:49]Write i2c OK [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: F0 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: F0 09 00 [17:02:49]MH_I2C_Read... [17:02:49]Read from MH i2c: F0 09 00 BF 04 00 BA 1C A9 66 90 0F 3E 66 E3 [17:02:49]GetLastDocTimeStamp 1722358871 [17:02:49]current date 1722358970 [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 C0 04 80 13 01 00 00 00 00 00 41 [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 C0 04 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0C [17:02:49]RAPDU: 09 00 01 82 2F A8 66 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]opened in 1722298242 [17:02:49]opened+sec_in_day 1722384642 [17:02:49]quantity*price = 100005 [17:02:49]sum+1 = 100006 [17:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре [17:04:44]line ОКРУГЛЕНИЕ: -0.05 [17:04:44]line ИТОГО: 1000.00 [17:04:44]line Внесено: 1000.00 [17:04:44]line СДАЧА: 0.00 [17:04:44]line НСП 1% : 8.85 [17:04:44]line НДС 12% : 106.20 [17:04:44]line Наличными: 1000.00 [17:04:44]line Безнал.: 0.00 [17:04:44]line Место: АЗС № 134 "Партнер Нефть" [17:04:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:04:44]line СНО: Общий режим [17:04:44]line Чек 212 30.07.2024 17:02 [17:04:44]line Смена: 435 ФФД: 1.0 [17:04:44]line ЗНМ: 0300000044 [17:04:44]line РНМ: 0000000000092660 [17:04:44]line Версия ККМ: 001 [17:04:44]line ФМ: 0000000000874939 [17:04:44]line ФД: 119160 [17:04:44]line ФПД: 196261843109578 [17:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T170250&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119160&fm=196261843109578&tin=02508201610067®Number=0000000000092660&sum=100000 [17:04:44]written 0, free lines is 4095 [17:04:45]Write to MH i2c: 01 00 00 47 00 47 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 DF 0C 39 [17:04:45]RasterBufferAndPrint [17:04:45]line [17:04:45]line [17:04:45]line [17:04:45]line [17:04:45]line [17:04:45]written 0, free lines is 3309 [17:04:45]MH_Cut [17:04:45]Write to MH i2c: D1 01 00 4E 00 01 20 [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: D1 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: D1 01 00 [17:04:45]MH_I2C_Read... [17:04:45]Read from MH i2c: D1 01 00 4E 00 00 1F [17:04:45]Write to MH i2c: 01 00 00 4F 00 4F [17:04:45]Write i2c OK [17:04:45]MH_I2C_Read... [17:04:45]*** Cut start [17:04:45]*** Partial cut [17:04:45]*** CUTSNS_PIN = 1 [17:04:45]*** CUTSNS_PIN = 0 [17:04:46]*** Brake cut motor [17:04:46]Read from MH i2c: 01 [17:04:46]MH_I2C_Read... [17:04:46]*** Stop cut motor [17:04:46]*** Cut end [17:04:46]Read from MH i2c: 01 07 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [17:04:46]process_action print_doc done [17:04:46]requested_data is exist [17:04:46]produce_requested_data [17:04:46]produce_requested_data return (null) [17:04:46]process_action_free print_doc [17:04:46]json_value_free [17:04:46]json_value_free done [17:04:46]process_json_proto returns [17:04:46]Send response to host [17:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:04:46]free response buf [17:04:46]execute_script done [17:04:46]execute_script returns [17:04:46]free content buf [17:04:46]Sock 5.Close socket [17:04:46]Sock 5.Thread stoped [17:04:49]recv_with_timeout no data received [17:04:49]ConnectInit Can't take IP for lk.salyk.kg [17:04:49]CommunicateWithHost connect error [17:04:49]CommunicateWithHost err = -1 [17:04:49]OFD Sender: Server communicate error [17:04:54]ConnectInit Can't connect to host [17:04:54]OFD Sender: Processing packet 119160 [packets to send 86, broken 85] [17:04:54]ProducePacketName [17:04:54]name=ofd_packets/00119160 [17:04:54]OFD Sender: To server: pG, [17:04:54]CommunicateWithHost lk.salyk.kg:30040 [17:04:54]ConnectInit lk.salyk.kg [17:04:59]ConnectInit Can't take IP for lk.salyk.kg [17:04:59]CommunicateWithHost connect error [17:04:59]CommunicateWithHost err = -1 [17:04:59]OFD Sender: Server communicate error [17:05:04]OFD Sender: Processing packet 119160 [packets to send 86, broken 85] [17:05:04]ProducePacketName [17:05:04]name=ofd_packets/00119160 [17:05:04]OFD Sender: To server: pG, [17:05:04]CommunicateWithHost lk.salyk.kg:30040 [17:05:04]ConnectInit lk.salyk.kg [17:05:05]Connected sock=7 [17:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 56 38 07 01 27 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 BA 1C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 78 D1 01 00 35 04 06 00 B2 7F C5 71 06 CA 10 05 0E A9 12 CF D6 48 [17:05:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 96 47 00 56 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 34 39 33 39 10 04 04 00 78 D1 01 00 F4 03 04 00 CA CA A8 66 B6 04 01 00 00 4E FB F0 9F 46 9B 85 1F [17:05:06]CommunicateWithHost err = 0 [17:05:06]CheckOFDResponse [17:05:06]1017 (14) - 77093643461234 [17:05:06]1041 (16) - 0000000000874939 [17:05:06]1040 (4) - 119160 [17:05:06]1012 (4) - 30.07.2024 11:13 [17:05:06]1206 (1) - 0 [17:05:06]OFD Sender: Remove packet 119160 [17:05:06]ProducePacketName [17:05:06]name=ofd_packets/00119160 [17:05:06]NVStorageDeleteData [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:29]recv_with_timeout no data received [17:05:32]OFD Sender: No OFD packet to send [00:00:09]/dev/ttyS4 opened [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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]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]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 5400000000572538 (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: 7015825+1715343248=1722359073 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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: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 1D A9 66 90 0F 3E 66 90 [17:04:34]Current date/time: 30.07.2024 17:04 [17:04:34]FM_Init [17:04:34]wFMConnect [17:04:34]MH_SAM_On [17:04:34]Write to MH i2c: E0 00 00 08 00 E7 [17:04:34]Write i2c OK [17:04:34]MH_I2C_Read... [17:04:34]*** iso7816_init finished! [17:04:34]*** atr: [17:04:34]*** 0F 3B D5 18 FF 81 91 FE [17:04:34]*** 1F C3 80 73 C8 21 10 0A [17:04:34]*** 00 00 00 00 00 00 00 00 [17:04:34]*** 00 00 00 00 00 00 00 00 [17:04:34]*** 00 00 00 00 00 00 00 00 [17:04:34]*** 00 00 00 00 00 00 00 00 [17:04:34]*** 00 00 00 00 00 00 00 00 [17:04:34]*** 00 00 00 00 00 00 00 00 [17:04:34]Read from MH i2c: E0 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E0 10 00 [17:04:34]MH_I2C_Read... [17:04:34]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [17:04:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:04:34]wFMCommunicate request_size=10 [17:04:34]MH_SAM_APDU [17:04:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:04:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:46]recv_with_timeout no data received [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:18]recv_with_timeout no data received [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]accept exits with 12 [17:08:42]New connection [17:08:42]New thread 3066764644 created [17:08:42]Thread 3066908004 joined [17:08:42]Waiting for new connection... [17:08:42] Sock 12.Parse request [17:08:42]Sock 12.Check first char [17:08:42]Sock 12.First char is OK [17:08:42]request: POST /json_proto HTTP/1.0 [17:08:42]Method: POST [17:08:42]URL: /json_proto [17:08:42]Method is POST - this is cgi request [17:08:42]url: /json_proto [17:08:42]query_string will be loaded in cgi processing [17:08:42]execute_cgi json_proto POST (null) [17:08:42]execute_cgi path=json_proto method=POST [17:08:42]POST find Content-Length [17:08:42]Host: 172.17.45.7:8080 [17:08:42]Content-Length: 819 [17:08:42]Content-Type: application/json [17:08:42] [17:08:42]POST finish read [17:08:42]Found Content-Length = 819 [17:08:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.770, "sum" : 1201.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1201.00, "payments": [ { "type": 1, "sum" : 1201.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:42]execute_script... [17:08: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)950079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.770, "sum" : 1201.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 1201.00, "payments": [ { "type": 1, "sum" : 1201.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:42]POST & json_proto [17:08:42]process_json_proto [17:08:42]json parsed OK: [17:08:42]protocol is kg_v1.0 [17:08:42]action value=close_receipt [17:08:42]process_action close_receipt [17:08:42]cmd_close_receipt [17:08:42]MH_GetDate [17:08:42]Write to MH i2c: F0 00 00 50 00 3F [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: F0 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: F0 09 00 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: F0 09 00 50 00 00 1A 1E A9 66 90 0F 3E 66 D2 [17:08:42]GetLastDocTimeStamp 1722358970 [17:08:42]current date 1722359322 [17:08:42]FM_GetShiftState [17:08:42]SAM_PROTO_GetShiftState [17:08:42]wFMCommunicate request_size=4 [17:08:42]MH_SAM_APDU [17:08:42]CAPDU: 80 13 01 00 [17:08:42]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [17:08:42]Write i2c OK [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 [17:08:42]MH_I2C_Read... [17:08:42]Read from MH i2c: E2 0E 00 [17:08:42]MH_I2C_Read... [17:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:42]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 99 [17:08:42]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:08:42]wFMCommunicate OK [17:08:42]SAM_PROTO_GetShiftState done [17:08:42]FM_GetShiftState done [17:08:42]opened in 1722298242 [17:08:42]opened+sec_in_day 1722384642 [17:08:42]quantity*price = 120167 [17:08:42]sum+1 = 120168 [17:08:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 1201.00 НСП 1% : 10.63 НДС 12% : 127.61 Наличными: 0.00 Безнал.: 1201.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 213 30.07.2024 17:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119161 ФПД: 240440222050195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T170842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119161&fm=240440222050195&tin=02508201610067®Number=0000000000092660&sum=120100 [17:08:43]StoreToDocumentArchive [17:08:43]shift 435 fd 119161 [17:08:43]save to /storage/0435/doc_00119161 [17:08:43]save last doc name /storage/0435/doc_00119161 to /storage/kkm_last_doc_name [17:08:43]save OK [17:08:43]Clear old archive folders... [17:08:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:43]tlvbuf is 002FF7A0 [17:08:43]SAM_PROTO_ClearQueue [17:08:43]wFMCommunicate request_size=4 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 09 00 00 [17:08:43]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [17:08:43]RAPDU: 90 00 [17:08:43]wFMCommunicate OK [17:08:43]SAM_PROTO_ClearQueue done [17:08:43]KKMCreateOFDPacket [17:08:43]OFDProtocolAddRootSTLVToBuf [17:08:43]FM_MakeSignedData [17:08:43]FM_MakeSignedData [17:08:43]SAM_PROTO_SignData [17:08:43]wFMCommunicate request_size=4 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 0D 01 02 [17:08:43]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [17:08:43]RAPDU: 90 00 [17:08:43]wFMCommunicate OK [17:08:43]wFMCommunicate request_size=255 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1A 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D1 01 00 35 04 06 00 DA AD DA 06 [17:08:43]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1A 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D1 01 00 35 04 06 00 DA AD DA 06 00 00 E0 [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [17:08:43]RAPDU: 90 00 [17:08:43]wFMCommunicate OK [17:08:43]wFMCommunicate request_size=7 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 0D 02 02 02 67 93 [17:08:43]Write to MH i2c: E2 0A 00 61 00 80 0D 02 02 02 00 67 93 00 00 D9 [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [17:08:43]RAPDU: 90 00 [17:08:43]wFMCommunicate OK [17:08:43]wFMCommunicate request_size=4 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 0D 03 02 [17:08:43]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 0B 00 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 0B 00 62 00 00 C1 9A 4C C6 35 22 99 24 90 00 5F [17:08:43]RAPDU: C1 9A 4C C6 35 22 99 24 90 00 [17:08:43]wFMCommunicate OK [17:08:43]SAM_PROTO_SignData done [17:08:43]FM_MakeSignedData done [17:08:43]CreateOFDProtocolMessage [17:08:43]wFMCommunicate request_size=4 [17:08:43]MH_SAM_APDU [17:08:43]CAPDU: 80 11 00 00 [17:08:43]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [17:08:43]Write i2c OK [17:08:43]MH_I2C_Read... [17:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:43]Read from MH i2c: E2 [17:08:43]MH_I2C_Read... [17:08:43]Read from MH i2c: E2 17 00 [17:08:43]MH_I2C_Read... [17:08:43]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 34 39 33 39 90 00 38 [17:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:08:43]wFMCommunicate OK [17:08:43]CreateOFDProtocolMessage done [17:08:43]OFDSenderStorePacket 119161 [17:08:43]StoreOFDPacket docnum=119161 [17:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 95 04 01 80 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1A 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D1 01 00 35 04 06 00 DA AD DA 06 67 93 C1 9A 4C C6 35 22 99 24 [17:08:43]CheckFolder [17:08:43]dirname=/storage/ofd_packets [17:08:43]CheckFolder done [17:08:43]ProducePacketName [17:08:43]name=ofd_packets/00119161 [17:08:43]NVStorageSaveData ofd_packets/00119161 [17:08:43]File name is /storage/ofd_packets/00119161 [17:08:43]Write 298 bytes [17:08:43]NVStorageSaveData done [17:08:43]OFDSenderStorePacket done [17:08:43]KKMCreateOFDPacket done [17:08:43]NVStorageSaveData kkm_last_timestamp [17:08:43]File name is /storage/kkm_last_timestamp [17:08:43]Write 4 bytes [17:08:43]NVStorageSaveData done [17:08:43]ExternCall_PrintAddStr [17:08:43]wPrintStart [17:08:43]Write to MH i2c: 01 00 00 64 00 64 [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: 01 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: 01 07 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [17:08:44]RasterBufferAndPrint [17:08:44]line Счет N : (1)950079 [17:08:44]line ИНН: 02508201610067 [17:08:44]line Контрольно-Кассовый Чек [17:08:44]line ПРОДАЖА [17:08:44]line ТРК (МРК, ГНК) : 64 [17:08:44]line Товар: 2710194800 [17:08:44]line ДТ-К-5 [17:08:44]line 15.770 * 76.20 [17:08:44]line = 1201.67 [17:08:44]line НДС 12% НСП 1% [17:08:44]line > о реализуемом товаре [17:08:44]line ОКРУГЛЕНИЕ: -0.67 [17:08:44]line ИТОГО: 1201.00 [17:08:44]line НСП 1% : 10.63 [17:08:44]line НДС 12% : 127.61 [17:08:44]line Наличными: 0.00 [17:08:44]line Безнал.: 1201.00 [17:08:44]line Место: АЗС № 134 "Партнер Нефть" [17:08:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:08:44]line СНО: Общий режим [17:08:44]line Чек 213 30.07.2024 17:08 [17:08:44]line Смена: 435 ФФД: 1.0 [17:08:44]line ЗНМ: 0300000044 [17:08:44]line РНМ: 0000000000092660 [17:08:44]line Версия ККМ: 001 [17:08:44]line Платежная система: O! деньги [17:08:44]line ФМ: 0000000000874939 [17:08:44]line ФД: 119161 [17:08:44]line ФПД: 240440222050195 [17:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T170842&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119161&fm=240440222050195&tin=02508201610067®Number=0000000000092660&sum=120100 [17:08:44]OFD Sender: Processing packet 119161 [packets to send 86, broken 85] [17:08:44]ProducePacketName [17:08:44]name=ofd_packets/00119161 [17:08:44]OFD Sender: To server: pG, [17:08:44]CommunicateWithHost lk.salyk.kg:30040 [17:08:44]ConnectInit lk.salyk.kg [17:08:44]written 0, free lines is 4095 [17:08:44]Write to MH i2c: 01 00 00 8E 00 8E [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: 01 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: 01 07 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 DC 0C 7D [17:08:44]RasterBufferAndPrint [17:08:44]line [17:08:44]line [17:08:44]line [17:08:44]line [17:08:44]line [17:08:44]written 0, free lines is 3299 [17:08:44]MH_Cut [17:08:44]Write to MH i2c: D1 01 00 95 00 01 67 [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: D1 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: D1 01 00 [17:08:44]MH_I2C_Read... [17:08:44]Read from MH i2c: D1 01 00 95 00 00 66 [17:08:44]Write to MH i2c: 01 00 00 96 00 96 [17:08:44]Write i2c OK [17:08:44]MH_I2C_Read... [17:08:45]*** Cut start [17:08:45]*** Partial cut [17:08:45]*** CUTSNS_PIN = 1 [17:08:45]*** CUTSNS_PIN = 0 [17:08:45]*** Brake cut motor [17:08:46]Read from MH i2c: 01 [17:08:46]MH_I2C_Read... [17:08:46]*** Stop cut motor [17:08:46]*** Cut end [17:08:46]Read from MH i2c: 01 07 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [17:08:46]process_action close_receipt done [17:08:46]requested_data is exist [17:08:46]produce_requested_data [17:08:46]requested_item fm.sn is exist - process it [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 11 00 00 [17:08:46]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 17 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6C [17:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:08:46]wFMCommunicate OK [17:08:46]requested_item fd.num is exist - process it [17:08:46]SAM_PROTO_GetFieldsCounters [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 13 00 00 [17:08:46]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 62 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 62 00 98 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [17:08:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 79 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:46]wFMCommunicate OK [17:08:46]SAM_PROTO_GetFieldsCounters done [17:08:46]requested_item shift.num is exist - process it [17:08:46]requested_item shift.opened is exist - process it [17:08:46]req_shift_opened [17:08:46]FM_GetShiftState [17:08:46]SAM_PROTO_GetShiftState [17:08:46]wFMCommunicate request_size=4 [17:08:46]MH_SAM_APDU [17:08:46]CAPDU: 80 13 01 00 [17:08:46]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [17:08:46]Write i2c OK [17:08:46]MH_I2C_Read... [17:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:46]Read from MH i2c: E2 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0E 00 [17:08:46]MH_I2C_Read... [17:08:46]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E1 [17:08:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:08:46]wFMCommunicate OK [17:08:46]SAM_PROTO_GetShiftState done [17:08:46]FM_GetShiftState done [17:08:46]req_shift_opened done [17:08:46]requested_item shift.open_date is exist - process it [17:08:46]req_shift_open_date [17:08:46]req_shift_open_date done [17:08:46]produce_requested_data done [17:08:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119161,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:08:46]process_action_free close_receipt [17:08:46]json_value_free [17:08:46]json_value_free done [17:08:46]process_json_proto returns [17:08:46]Send response to host [17:08:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119161,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:08:46]free response buf [17:08:46]execute_script done [17:08:46]execute_script returns [17:08:46]free content buf [17:08:46]Sock 12.Close socket [17:08:46]Sock 12.Thread stoped [17:08:46]Connected sock=7 [17:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 5E 95 04 01 80 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 D5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 D5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 D5 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 1A 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D1 01 00 35 04 06 00 DA AD DA 06 67 93 C1 9A 4C C6 35 22 99 24 [17:08:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 12 7F 47 00 F0 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 79 D1 01 00 F4 03 04 00 A7 CB A8 66 B6 04 01 00 00 B7 6A A3 2E C8 EB 72 51 [17:08:47]CommunicateWithHost err = 0 [17:08:47]CheckOFDResponse [17:08:47]1017 (14) - 77093643461234 [17:08:47]1041 (16) - 0000000000874939 [17:08:47]1040 (4) - 119161 [17:08:47]1012 (4) - 30.07.2024 11:16 [17:08:47]1206 (1) - 0 [17:08:47]OFD Sender: Remove packet 119161 [17:08:47]ProducePacketName [17:08:47]name=ofd_packets/00119161 [17:08:47]NVStorageDeleteData [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:54]recv_with_timeout no data received [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:15]accept exits with 9 [17:10:15]New connection [17:10:15]New thread 3066908004 created [17:10:15]Thread 3066764644 joined [17:10:15]Waiting for new connection... [17:10:15] Sock 9.Parse request [17:10:15]Sock 9.Check first char [17:10:15]Sock 9.First char is OK [17:10:15]request: POST /json_proto HTTP/1.0 [17:10:15]Method: POST [17:10:15]URL: /json_proto [17:10:15]Method is POST - this is cgi request [17:10:15]url: /json_proto [17:10:15]query_string will be loaded in cgi processing [17:10:15]execute_cgi json_proto POST (null) [17:10:15]execute_cgi path=json_proto method=POST [17:10:15]POST find Content-Length [17:10:15]Host: 172.17.45.7:8080 [17:10:15]Content-Length: 683 [17:10:15]Content-Type: application/json [17:10:15] [17:10:15]POST finish read [17:10:15]Found Content-Length = 683 [17:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 103.250, "sum" : 7000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:15]execute_script... [17:10: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)950080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 103.250, "sum" : 7000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:15]POST & json_proto [17:10:15]process_json_proto [17:10:15]json parsed OK: [17:10:15]protocol is kg_v1.0 [17:10:15]action value=close_receipt [17:10:15]process_action close_receipt [17:10:15]cmd_close_receipt [17:10:15]MH_GetDate [17:10:15]Write to MH i2c: F0 00 00 9A 00 89 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 09 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 09 00 9A 00 00 77 1E A9 66 90 0F 3E 66 79 [17:10:15]GetLastDocTimeStamp 1722359322 [17:10:15]current date 1722359415 [17:10:15]FM_GetShiftState [17:10:15]SAM_PROTO_GetShiftState [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 13 01 00 [17:10:15]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E3 [17:10:15]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetShiftState done [17:10:15]FM_GetShiftState done [17:10:15]opened in 1722298242 [17:10:15]opened+sec_in_day 1722384642 [17:10:15]quantity*price = 700035 [17:10:15]sum+1 = 700036 [17:10:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 214 30.07.2024 17:10 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119162 ФПД: 162861267653005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119162&fm=162861267653005&tin=02508201610067®Number=0000000000092660&sum=700000 [17:10:17]StoreToDocumentArchive [17:10:17]shift 435 fd 119162 [17:10:17]save to /storage/0435/doc_00119162 [17:10:17]save last doc name /storage/0435/doc_00119162 to /storage/kkm_last_doc_name [17:10:17]save OK [17:10:17]Clear old archive folders... [17:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:17]tlvbuf is B6F4A860 [17:10:17]SAM_PROTO_ClearQueue [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 09 00 00 [17:10:17]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_ClearQueue done [17:10:17]KKMCreateOFDPacket [17:10:17]OFDProtocolAddRootSTLVToBuf [17:10:17]FM_MakeSignedData [17:10:17]FM_MakeSignedData [17:10:17]SAM_PROTO_SignData [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 01 02 [17:10:17]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=255 [17:10:17]MH_SAM_APDU [17:10: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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 78 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D1 01 00 35 04 06 00 94 [17:10:17]Write to MH i2c: E2 02 01 AA 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 78 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D1 01 00 35 04 06 00 94 00 00 F9 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=10 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 02 02 05 1F 18 01 91 8D [17:10:17]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 1F 18 01 91 8D 00 00 85 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 03 02 [17:10:17]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0B 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0B 00 AC 00 00 07 D8 7F 95 45 6E 2C 9A 90 00 94 [17:10:17]RAPDU: 07 D8 7F 95 45 6E 2C 9A 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_SignData done [17:10:17]FM_MakeSignedData done [17:10:17]CreateOFDProtocolMessage [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 11 00 00 [17:10:17]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 [17:10:17]MH_I2C_Read... [17:10:17]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 34 39 33 39 90 00 82 [17:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:10:17]wFMCommunicate OK [17:10:17]CreateOFDProtocolMessage done [17:10:17]OFDSenderStorePacket 119162 [17:10:17]StoreOFDPacket docnum=119162 [17:10:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BC 4D 07 01 B4 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 78 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D1 01 00 35 04 06 00 94 1F 18 01 91 8D 07 D8 7F 95 45 6E 2C 9A [17:10:17]CheckFolder [17:10:17]dirname=/storage/ofd_packets [17:10:17]CheckFolder done [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00119162 [17:10:17]NVStorageSaveData ofd_packets/00119162 [17:10:17]File name is /storage/ofd_packets/00119162 [17:10:17]Write 301 bytes [17:10:17]NVStorageSaveData done [17:10:17]OFDSenderStorePacket done [17:10:17]KKMCreateOFDPacket done [17:10:17]NVStorageSaveData kkm_last_timestamp [17:10:17]File name is /storage/kkm_last_timestamp [17:10:17]Write 4 bytes [17:10:17]NVStorageSaveData done [17:10:17]ExternCall_PrintAddStr [17:10:17]wPrintStart [17:10:17]Write to MH i2c: 01 00 00 AE 00 AE [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [17:10:17]RasterBufferAndPrint [17:10:17]line Счет N : (1)950080 [17:10:17]line ИНН: 02508201610067 [17:10:17]line Контрольно-Кассовый Чек [17:10:17]line ПРОДАЖА [17:10:17]line ТРК (МРК, ГНК) : 61 [17:10:17]line Товар: 2710124130 [17:10:17]line Аи-92-К-4 [17:10:17]line 103.250 * 67.80 [17:10:17]line = 7000.35 [17:10:17]line НДС 12% НСП 1% [17:10:17]line > о реализуемом товаре [17:10:17]line ОКРУГЛЕНИЕ: -0.35 [17:10:17]line ИТОГО: 7000.00 [17:10:17]line Внесено: 7000.00 [17:10:17]line СДАЧА: 0.00 [17:10:17]line НСП 1% : 61.95 [17:10:17]line НДС 12% : 743.40 [17:10:17]line Наличными: 7000.00 [17:10:17]line Безнал.: 0.00 [17:10:17]line Место: АЗС № 134 "Партнер Нефть" [17:10:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:10:17]line СНО: Общий режим [17:10:17]line Чек 214 30.07.2024 17:10 [17:10:17]line Смена: 435 ФФД: 1.0 [17:10:17]line ЗНМ: 0300000044 [17:10:17]line РНМ: 0000000000092660 [17:10:17]line Версия ККМ: 001 [17:10:17]line ФМ: 0000000000874939 [17:10:17]line ФД: 119162 [17:10:17]line ФПД: 162861267653005 [17:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171016&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119162&fm=162861267653005&tin=02508201610067®Number=0000000000092660&sum=700000 [17:10:17]OFD Sender: Processing packet 119162 [packets to send 86, broken 85] [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00119162 [17:10:17]OFD Sender: To server: pG, [17:10:17]CommunicateWithHost lk.salyk.kg:30040 [17:10:17]ConnectInit lk.salyk.kg [17:10:17]written 0, free lines is 4095 [17:10:18]Write to MH i2c: 01 00 00 D8 00 D8 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 E1 0C CC [17:10:18]RasterBufferAndPrint [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]written 0, free lines is 3303 [17:10:18]MH_Cut [17:10:18]Write to MH i2c: D1 01 00 DF 00 01 B1 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 01 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 01 00 DF 00 00 B0 [17:10:18]Write to MH i2c: 01 00 00 E0 00 E0 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Connected sock=11 [17:10:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 BC 4D 07 01 B4 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 78 1E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D1 01 00 35 04 06 00 94 1F 18 01 91 8D 07 D8 7F 95 45 6E 2C 9A [17:10:19]*** Cut start [17:10:19]*** Partial cut [17:10:19]*** CUTSNS_PIN = 1 [17:10:19]*** CUTSNS_PIN = 0 [17:10:19]*** Brake cut motor [17:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 99 8A 47 00 E5 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7A D1 01 00 F4 03 04 00 03 CC A8 66 B6 04 01 00 00 A4 7C 8F 7E 58 92 54 00 [17:10:19]CommunicateWithHost err = 0 [17:10:19]CheckOFDResponse [17:10:19]1017 (14) - 77093643461234 [17:10:19]1041 (16) - 0000000000874939 [17:10:19]1040 (4) - 119162 [17:10:19]1012 (4) - 30.07.2024 11:18 [17:10:19]1206 (1) - 0 [17:10:19]OFD Sender: Remove packet 119162 [17:10:19]ProducePacketName [17:10:19]name=ofd_packets/00119162 [17:10:19]NVStorageDeleteData [17:10:19]Read from MH i2c: 01 [17:10:19]MH_I2C_Read... [17:10:19]*** Stop cut motor [17:10:19]*** Cut end [17:10:19]Read from MH i2c: 01 07 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [17:10:19]process_action close_receipt done [17:10:19]requested_data is exist [17:10:19]produce_requested_data [17:10:19]requested_item fm.sn is exist - process it [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 11 00 00 [17:10:19]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B6 [17:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:10:19]wFMCommunicate OK [17:10:19]requested_item fd.num is exist - process it [17:10:19]SAM_PROTO_GetFieldsCounters [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 13 00 00 [17:10:19]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:19]OFD Sender: No OFD packet to send [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 62 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 62 00 E2 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [17:10:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_GetFieldsCounters done [17:10:19]requested_item shift.num is exist - process it [17:10:19]requested_item shift.opened is exist - process it [17:10:19]req_shift_opened [17:10:19]FM_GetShiftState [17:10:19]SAM_PROTO_GetShiftState [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 13 01 00 [17:10:19]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0E 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2B [17:10:19]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_GetShiftState done [17:10:19]FM_GetShiftState done [17:10:19]req_shift_opened done [17:10:19]requested_item shift.open_date is exist - process it [17:10:19]req_shift_open_date [17:10:19]req_shift_open_date done [17:10:19]produce_requested_data done [17:10:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119162,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:10:19]process_action_free close_receipt [17:10:19]json_value_free [17:10:19]json_value_free done [17:10:19]process_json_proto returns [17:10:19]Send response to host [17:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119162,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:10:19]free response buf [17:10:19]execute_script done [17:10:19]execute_script returns [17:10:19]free content buf [17:10:19]Sock 9.Close socket [17:10:19]Sock 9.Thread stoped [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:37]recv_with_timeout no data received [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:25]recv_with_timeout no data received [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:26]accept exits with 7 [17:12:26]New connection [17:12:26]New thread 3066764644 created [17:12:26]Thread 3066908004 joined [17:12:26]Waiting for new connection... [17:12:26] Sock 7.Parse request [17:12:26]Sock 7.Check first char [17:12:26]Sock 7.First char is OK [17:12:26]request: POST /json_proto HTTP/1.0 [17:12:26]Method: POST [17:12:26]URL: /json_proto [17:12:26]Method is POST - this is cgi request [17:12:26]url: /json_proto [17:12:26]query_string will be loaded in cgi processing [17:12:26]execute_cgi json_proto POST (null) [17:12:26]execute_cgi path=json_proto method=POST [17:12:26]POST find Content-Length [17:12:26]Host: 172.17.45.7:8080 [17:12:26]Content-Length: 1207 [17:12:26]Content-Type: application/json [17:12:26] [17:12:26]POST finish read [17:12:26]Found Content-Length = 1207 [17:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)950081\u000A30.07.2024 17:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:26]execute_script... [17:12:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. \u000A\u0421\u0447\u0435\u0442 N : (1)950081\u000A30.07.2024 17:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 3810.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3982770\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:26]POST & json_proto [17:12:26]process_json_proto [17:12:26]json parsed OK: [17:12:26]protocol is kg_v1.0 [17:12:26]action value=print_text [17:12:26]process_action print_text [17:12:26]cmd_print_text [17:12:26]ExternCall_PrintAddStr [17:12:26]wPrintStart [17:12:26]Write to MH i2c: 01 00 00 E4 00 E4 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 E4 00 00 00 00 00 00 FF 0F F9 [17:12:26]RasterBufferAndPrint [17:12:26]line *****ТОВАРНЫЙ ЧЕК***** [17:12:26]line АЗС-134 [17:12:26]line Партнер нефть [17:12:26]line 02508201610067 [17:12:26]line Кассир : Айдарали у Б. [17:12:26]line Счет N : (1)950081 [17:12:26]line 30.07.2024 17:10 [17:12:26]line ПРОДАЖА [17:12:26]line ТРК (МРК, ГНК): 11 [17:12:26]line Вид ГСМ : 2710194800 [17:12:26]line ДТ-К-5 [17:12:26]line 50.000 x 76.20 [17:12:26]line ИТОГ: 3810.00 [17:12:26]line Тип оплаты: Талоны: Топливные Талоны [17:12:26]line 3982770 [17:12:26]line ______________________ [17:12:26]line (подпись) [17:12:26]written 0, free lines is 4095 [17:12:26]Write to MH i2c: 01 00 00 F8 00 F8 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 0E 0E 1B [17:12:26]RasterBufferAndPrint [17:12:26]line [17:12:26]line [17:12:26]line [17:12:26]line [17:12:26]line [17:12:26]written 0, free lines is 3600 [17:12:26]MH_Cut [17:12:26]Write to MH i2c: D1 01 00 FF 00 01 D1 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: D1 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: D1 01 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: D1 01 00 FF 00 00 D0 [17:12:26]Write to MH i2c: 01 00 00 00 01 01 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:27]*** Cut start [17:12:27]*** Partial cut [17:12:27]*** CUTSNS_PIN = 1 [17:12:27]*** CUTSNS_PIN = 0 [17:12:27]*** Brake cut motor [17:12:28]Read from MH i2c: 01 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 [17:12:28]MH_I2C_Read... [17:12:28]*** Stop cut motor [17:12:28]*** Cut end [17:12:28]Read from MH i2c: 01 07 00 00 01 00 00 00 00 00 FF 0F 16 [17:12:28]process_action print_text done [17:12:28]requested_data is exist [17:12:28]produce_requested_data [17:12:28]requested_item fm.sn is exist - process it [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 11 00 00 [17:12:28]Write to MH i2c: E2 08 00 01 01 80 11 00 00 00 00 00 00 7C [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 17 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 17 00 01 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D7 [17:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:12:28]wFMCommunicate OK [17:12:28]requested_item fd.num is exist - process it [17:12:28]SAM_PROTO_GetFieldsCounters [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 13 00 00 [17:12:28]Write to MH i2c: E2 08 00 02 01 80 13 00 00 00 00 00 00 7F [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 62 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 62 00 02 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [17:12:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7A D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:28]wFMCommunicate OK [17:12:28]SAM_PROTO_GetFieldsCounters done [17:12:28]requested_item shift.num is exist - process it [17:12:28]requested_item shift.opened is exist - process it [17:12:28]req_shift_opened [17:12:28]FM_GetShiftState [17:12:28]SAM_PROTO_GetShiftState [17:12:28]wFMCommunicate request_size=4 [17:12:28]MH_SAM_APDU [17:12:28]CAPDU: 80 13 01 00 [17:12:28]Write to MH i2c: E2 08 00 03 01 80 13 01 00 00 00 00 00 81 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:28]Read from MH i2c: E2 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 0E 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: E2 0E 00 03 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4C [17:12:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:12:28]wFMCommunicate OK [17:12:28]SAM_PROTO_GetShiftState done [17:12:28]FM_GetShiftState done [17:12:28]req_shift_opened done [17:12:28]requested_item shift.open_date is exist - process it [17:12:28]req_shift_open_date [17:12:28]req_shift_open_date done [17:12:28]produce_requested_data done [17:12:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119162,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:12:28]process_action_free print_text [17:12:28]json_value_free [17:12:28]json_value_free done [17:12:28]process_json_proto returns [17:12:28]Send response to host [17:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119162,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:12:28]free response buf [17:12:28]execute_script done [17:12:28]execute_script returns [17:12:28]free content buf [17:12:28]Sock 7.Close socket [17:12:28]Sock 7.Thread stoped [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:40]accept exits with 9 [17:13:40]New connection [17:13:40]New thread 3066908004 created [17:13:40]Thread 3066764644 joined [17:13:40]Waiting for new connection... [17:13:40] Sock 9.Parse request [17:13:40]Sock 9.Check first char [17:13:40]Sock 9.First char is OK [17:13:40]request: POST /json_proto HTTP/1.0 [17:13:40]Method: POST [17:13:40]URL: /json_proto [17:13:40]Method is POST - this is cgi request [17:13:40]url: /json_proto [17:13:40]query_string will be loaded in cgi processing [17:13:40]execute_cgi json_proto POST (null) [17:13:40]execute_cgi path=json_proto method=POST [17:13:40]POST find Content-Length [17:13:40]Host: 172.17.45.7:8080 [17:13:40]Content-Length: 740 [17:13:40]Content-Type: application/json [17:13:40] [17:13:40]POST finish read [17:13:40]Found Content-Length = 740 [17:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119162, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 103.250, "sum" : 7000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:40]execute_script... [17:13:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119162, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 103.250, "sum" : 7000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:40]POST & json_proto [17:13:40]process_json_proto [17:13:40]json parsed OK: [17:13:40]protocol is kg_v1.0 [17:13:40]action value=close_receipt [17:13:40]process_action close_receipt [17:13:40]cmd_close_receipt [17:13:40]MH_GetDate [17:13:40]Write to MH i2c: F0 00 00 04 01 F4 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: F0 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: F0 09 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: F0 09 00 04 01 00 44 1F A9 66 90 0F 3E 66 B2 [17:13:40]GetLastDocTimeStamp 1722359416 [17:13:40]current date 1722359620 [17:13:40]FM_GetShiftState [17:13:40]SAM_PROTO_GetShiftState [17:13:40]wFMCommunicate request_size=4 [17:13:40]MH_SAM_APDU [17:13:40]CAPDU: 80 13 01 00 [17:13:40]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [17:13:40]Write i2c OK [17:13:40]MH_I2C_Read... [17:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:40]Read from MH i2c: E2 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0E 00 [17:13:40]MH_I2C_Read... [17:13:40]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4E [17:13:40]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:13:40]wFMCommunicate OK [17:13:40]SAM_PROTO_GetShiftState done [17:13:40]FM_GetShiftState done [17:13:40]opened in 1722298242 [17:13:40]opened+sec_in_day 1722384642 [17:13:40]quantity*price = 700035 [17:13:40]sum+1 = 700036 [17:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 7000.00 НСП 1% : 61.95 НДС 12% : 743.40 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 215 30.07.2024 17:13 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119162 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119163 ФПД: 38666465898251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171340&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119163&fm=38666465898251&tin=02508201610067®Number=0000000000092660&sum=700000 [17:13:41]StoreToDocumentArchive [17:13:41]shift 435 fd 119163 [17:13:41]save to /storage/0435/doc_00119163 [17:13:41]save last doc name /storage/0435/doc_00119163 to /storage/kkm_last_doc_name [17:13:41]save OK [17:13:41]Clear old archive folders... [17:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:13:41]tlvbuf is B6F4A730 [17:13:41]SAM_PROTO_ClearQueue [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 09 00 00 [17:13:41]Write to MH i2c: E2 08 00 14 01 80 09 00 00 00 00 00 00 87 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]SAM_PROTO_ClearQueue done [17:13:41]KKMCreateOFDPacket [17:13:41]OFDProtocolAddRootSTLVToBuf [17:13:41]FM_MakeSignedData [17:13:41]FM_MakeSignedData [17:13:41]SAM_PROTO_SignData [17:13:41]wFMCommunicate request_size=4 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 01 02 [17:13:41]Write to MH i2c: E2 08 00 15 01 80 0D 01 02 00 00 00 00 8F [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]wFMCommunicate request_size=255 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 02 02 FA 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 44 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [17:13:41]Write to MH i2c: E2 02 01 16 01 80 0D 02 02 FA 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 44 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 02 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:41]Read from MH i2c: E2 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 [17:13:41]MH_I2C_Read... [17:13:41]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [17:13:41]RAPDU: 90 00 [17:13:41]wFMCommunicate OK [17:13:41]wFMCommunicate request_size=38 [17:13:41]MH_SAM_APDU [17:13:41]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D1 01 00 35 04 06 00 23 2A BC F6 EF 0B [17:13:41]Write to MH i2c: E2 29 00 17 01 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D1 01 00 35 04 06 00 23 2A BC F6 EF 0B 00 00 69 [17:13:41]Write i2c OK [17:13:41]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 03 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [17:13:42]RAPDU: 90 00 [17:13:42]wFMCommunicate OK [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 0D 03 02 [17:13:42]Write to MH i2c: E2 08 00 18 01 80 0D 03 02 00 00 00 00 94 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0B 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 0B 00 18 01 00 8C E2 01 18 84 F6 99 B6 90 00 E5 [17:13:42]RAPDU: 8C E2 01 18 84 F6 99 B6 90 00 [17:13:42]wFMCommunicate OK [17:13:42]SAM_PROTO_SignData done [17:13:42]FM_MakeSignedData done [17:13:42]CreateOFDProtocolMessage [17:13:42]wFMCommunicate request_size=4 [17:13:42]MH_SAM_APDU [17:13:42]CAPDU: 80 11 00 00 [17:13:42]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:42]Read from MH i2c: E2 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: E2 17 00 [17:13:42]MH_I2C_Read... [17:13:42]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 34 39 33 39 90 00 EF [17:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:13:42]wFMCommunicate OK [17:13:42]CreateOFDProtocolMessage done [17:13:42]OFDSenderStorePacket 119163 [17:13:42]StoreOFDPacket docnum=119163 [17:13:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 7D 8C 23 01 7C 6B 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 44 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D1 01 00 35 04 06 00 23 2A BC F6 EF 0B 8C E2 01 18 84 F6 99 B6 [17:13:42]CheckFolder [17:13:42]dirname=/storage/ofd_packets [17:13:42]CheckFolder done [17:13:42]ProducePacketName [17:13:42]name=ofd_packets/00119163 [17:13:42]NVStorageSaveData ofd_packets/00119163 [17:13:42]File name is /storage/ofd_packets/00119163 [17:13:42]Write 329 bytes [17:13:42]NVStorageSaveData done [17:13:42]OFDSenderStorePacket done [17:13:42]KKMCreateOFDPacket done [17:13:42]NVStorageSaveData kkm_last_timestamp [17:13:42]File name is /storage/kkm_last_timestamp [17:13:42]Write 4 bytes [17:13:42]NVStorageSaveData done [17:13:42]ExternCall_PrintAddStr [17:13:42]wPrintStart [17:13:42]Write to MH i2c: 01 00 00 1A 01 1B [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [17:13:42]RasterBufferAndPrint [17:13:42]line Счет N : (1)950080 [17:13:42]line ИНН: 02508201610067 [17:13:42]line Контрольно-Кассовый Чек [17:13:42]line ВОЗВРАТ ПРОДАЖИ [17:13:42]line ТРК (МРК, ГНК) : 61 [17:13:42]line Товар: 2710124130 [17:13:42]line Аи-92-К-4 [17:13:42]line 103.250 * 67.80 [17:13:42]line = 7000.35 [17:13:42]line НДС 12% НСП 1% [17:13:42]line > о реализуемом товаре [17:13:42]line ОКРУГЛЕНИЕ: -0.35 [17:13:42]line ИТОГО: 7000.00 [17:13:42]line НСП 1% : 61.95 [17:13:42]line НДС 12% : 743.40 [17:13:42]line Наличными: 7000.00 [17:13:42]line Безнал.: 0.00 [17:13:42]line Место: АЗС № 134 "Партнер Нефть" [17:13:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:13:42]line СНО: Общий режим [17:13:42]line Чек 215 30.07.2024 17:13 [17:13:42]line Смена: 435 ФФД: 1.0 [17:13:42]line ЗНМ: 0300000044 [17:13:42]line РНМ: 0000000000092660 [17:13:42]line Версия ККМ: 001 [17:13:42]line ФД осн.: 119162 [17:13:42]line ФМ осн.: 0000000000874939 [17:13:42]line ФМ: 0000000000874939 [17:13:42]line ФД: 119163 [17:13:42]line ФПД: 38666465898251 [17:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171340&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119163&fm=38666465898251&tin=02508201610067®Number=0000000000092660&sum=700000 [17:13:42]OFD Sender: Processing packet 119163 [packets to send 86, broken 85] [17:13:42]ProducePacketName [17:13:42]name=ofd_packets/00119163 [17:13:42]OFD Sender: To server: pG, [17:13:42]CommunicateWithHost lk.salyk.kg:30040 [17:13:42]ConnectInit lk.salyk.kg [17:13:42]written 0, free lines is 4095 [17:13:42]Write to MH i2c: 01 00 00 44 01 45 [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 E5 0C 3D [17:13:42]RasterBufferAndPrint [17:13:42]line [17:13:42]line [17:13:42]line [17:13:42]line [17:13:42]line [17:13:42]written 0, free lines is 3307 [17:13:42]MH_Cut [17:13:42]Write to MH i2c: D1 01 00 4B 01 01 1E [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: D1 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: D1 01 00 [17:13:42]MH_I2C_Read... [17:13:42]Read from MH i2c: D1 01 00 4B 01 00 1D [17:13:42]Write to MH i2c: 01 00 00 4C 01 4D [17:13:42]Write i2c OK [17:13:42]MH_I2C_Read... [17:13:43]*** Cut start [17:13:43]*** Partial cut [17:13:43]*** CUTSNS_PIN = 1 [17:13:43]*** CUTSNS_PIN = 0 [17:13:43]*** Brake cut motor [17:13:44]Read from MH i2c: 01 [17:13:44]MH_I2C_Read... [17:13:44]*** Stop cut motor [17:13:44]*** Cut end [17:13:44]Read from MH i2c: 01 07 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [17:13:44]process_action close_receipt done [17:13:44]requested_data is exist [17:13:44]produce_requested_data [17:13:44]requested_item fm.sn is exist - process it [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 11 00 00 [17:13:44]Write to MH i2c: E2 08 00 4D 01 80 11 00 00 00 00 00 00 C8 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 17 00 4D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 23 [17:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:13:44]wFMCommunicate OK [17:13:44]requested_item fd.num is exist - process it [17:13:44]SAM_PROTO_GetFieldsCounters [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 00 00 [17:13:44]Write to MH i2c: E2 08 00 4E 01 80 13 00 00 00 00 00 00 CB [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 62 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 62 00 4E 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7B D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetFieldsCounters done [17:13:44]requested_item shift.num is exist - process it [17:13:44]requested_item shift.opened is exist - process it [17:13:44]req_shift_opened [17:13:44]FM_GetShiftState [17:13:44]SAM_PROTO_GetShiftState [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 01 00 [17:13:44]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 98 [17:13:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetShiftState done [17:13:44]FM_GetShiftState done [17:13:44]req_shift_opened done [17:13:44]requested_item shift.open_date is exist - process it [17:13:44]req_shift_open_date [17:13:44]req_shift_open_date done [17:13:44]produce_requested_data done [17:13:44]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119163,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:13:44]process_action_free close_receipt [17:13:44]json_value_free [17:13:44]json_value_free done [17:13:44]process_json_proto returns [17:13:44]Send response to host [17:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119163,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:13:44]free response buf [17:13:44]execute_script done [17:13:44]execute_script returns [17:13:44]free content buf [17:13:44]Sock 9.Close socket [17:13:44]Sock 9.Thread stoped [17:13:44]accept exits with 10 [17:13:44]New connection [17:13:44]New thread 3066764644 created [17:13:44]Thread 3066908004 joined [17:13:44]Waiting for new connection... [17:13:44] Sock 10.Parse request [17:13:44]Sock 10.Check first char [17:13:44]Sock 10.First char is OK [17:13:44]request: POST /json_proto HTTP/1.0 [17:13:44]Method: POST [17:13:44]URL: /json_proto [17:13:44]Method is POST - this is cgi request [17:13:44]url: /json_proto [17:13:44]query_string will be loaded in cgi processing [17:13:44]execute_cgi json_proto POST (null) [17:13:44]execute_cgi path=json_proto method=POST [17:13:44]POST find Content-Length [17:13:44]Host: 172.17.45.7:8080 [17:13:44]Content-Length: 682 [17:13:44]Content-Type: application/json [17:13:44] [17:13:44]POST finish read [17:13:44]Found Content-Length = 682 [17:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 99.540, "sum" : 6748.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 6748.00, "payments": [ { "type": 0, "sum" : 6748.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:44]execute_script... [17: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)950080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 99.540, "sum" : 6748.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 6748.00, "payments": [ { "type": 0, "sum" : 6748.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:44]POST & json_proto [17:13:44]process_json_proto [17:13:44]json parsed OK: [17:13:44]protocol is kg_v1.0 [17:13:44]action value=close_receipt [17:13:44]process_action close_receipt [17:13:44]cmd_close_receipt [17:13:44]MH_GetDate [17:13:44]Write to MH i2c: F0 00 00 50 01 40 [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: F0 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: F0 09 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: F0 09 00 50 01 00 48 1F A9 66 90 0F 3E 66 02 [17:13:44]GetLastDocTimeStamp 1722359620 [17:13:44]current date 1722359624 [17:13:44]FM_GetShiftState [17:13:44]SAM_PROTO_GetShiftState [17:13:44]wFMCommunicate request_size=4 [17:13:44]MH_SAM_APDU [17:13:44]CAPDU: 80 13 01 00 [17:13:44]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [17:13:44]Write i2c OK [17:13:44]MH_I2C_Read... [17:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:44]Read from MH i2c: E2 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 [17:13:44]MH_I2C_Read... [17:13:44]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9A [17:13:44]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:13:44]wFMCommunicate OK [17:13:44]SAM_PROTO_GetShiftState done [17:13:44]FM_GetShiftState done [17:13:44]opened in 1722298242 [17:13:44]opened+sec_in_day 1722384642 [17:13:44]quantity*price = 674881 [17:13:44]sum+1 = 674882 [17:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 6748.00 Внесено: 7000.00 СДАЧА: 252.00 НСП 1% : 59.72 НДС 12% : 716.69 Наличными: 6748.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 216 30.07.2024 17:13 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119164 ФПД: 21099041209698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171345&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119164&fm=21099041209698&tin=02508201610067®Number=0000000000092660&sum=674800 [17:13:46]StoreToDocumentArchive [17:13:46]shift 435 fd 119164 [17:13:46]save to /storage/0435/doc_00119164 [17:13:46]save last doc name /storage/0435/doc_00119164 to /storage/kkm_last_doc_name [17:13:46]save OK [17:13:46]Clear old archive folders... [17:13:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:13:46]tlvbuf is 00303A20 [17:13:46]SAM_PROTO_ClearQueue [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 09 00 00 [17:13:46]Write to MH i2c: E2 08 00 5E 01 80 09 00 00 00 00 00 00 D1 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [17:13:46]RAPDU: 90 00 [17:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_ClearQueue done [17:13:46]KKMCreateOFDPacket [17:13:46]OFDProtocolAddRootSTLVToBuf [17:13:46]FM_MakeSignedData [17:13:46]FM_MakeSignedData [17:13:46]SAM_PROTO_SignData [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 0D 01 02 [17:13:46]Write to MH i2c: E2 08 00 5F 01 80 0D 01 02 00 00 00 00 D9 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [17:13:46]RAPDU: 90 00 [17:13:46]wFMCommunicate OK [17:13:46]wFMCommunicate request_size=255 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 84 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 4C 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4B 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 17 01 00 00 00 07 04 06 00 F0 4B 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 49 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D1 01 00 35 04 06 00 13 [17:13:46]Write to MH i2c: E2 02 01 60 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 D4 84 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 4C 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4B 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 17 01 00 00 00 07 04 06 00 F0 4B 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 49 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D1 01 00 35 04 06 00 13 00 00 D4 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [17:13:46]RAPDU: 90 00 [17:13:46]wFMCommunicate OK [17:13:46]wFMCommunicate request_size=10 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 0D 02 02 05 30 80 DB 3D 62 [17:13:46]Write to MH i2c: E2 0D 00 61 01 80 0D 02 02 05 00 30 80 DB 3D 62 00 00 10 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [17:13:46]RAPDU: 90 00 [17:13:46]wFMCommunicate OK [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 0D 03 02 [17:13:46]Write to MH i2c: E2 08 00 62 01 80 0D 03 02 00 00 00 00 DE [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0B 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 0B 00 62 01 00 61 92 8F 58 79 6C AB 0B 90 00 54 [17:13:46]RAPDU: 61 92 8F 58 79 6C AB 0B 90 00 [17:13:46]wFMCommunicate OK [17:13:46]SAM_PROTO_SignData done [17:13:46]FM_MakeSignedData done [17:13:46]CreateOFDProtocolMessage [17:13:46]wFMCommunicate request_size=4 [17:13:46]MH_SAM_APDU [17:13:46]CAPDU: 80 11 00 00 [17:13:46]Write to MH i2c: E2 08 00 63 01 80 11 00 00 00 00 00 00 DE [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:46]Read from MH i2c: E2 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 17 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: E2 17 00 63 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 39 [17:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:13:46]wFMCommunicate OK [17:13:46]CreateOFDProtocolMessage done [17:13:46]OFDSenderStorePacket 119164 [17:13:46]StoreOFDPacket docnum=119164 [17:13:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF C1 07 01 56 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 84 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 4C 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4B 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 17 01 00 00 00 07 04 06 00 F0 4B 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 49 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D1 01 00 35 04 06 00 13 30 80 DB 3D 62 61 92 8F 58 79 6C AB 0B [17:13:46]CheckFolder [17:13:46]dirname=/storage/ofd_packets [17:13:46]CheckFolder done [17:13:46]ProducePacketName [17:13:46]name=ofd_packets/00119164 [17:13:46]NVStorageSaveData ofd_packets/00119164 [17:13:46]File name is /storage/ofd_packets/00119164 [17:13:46]Write 301 bytes [17:13:46]NVStorageSaveData done [17:13:46]OFDSenderStorePacket done [17:13:46]KKMCreateOFDPacket done [17:13:46]NVStorageSaveData kkm_last_timestamp [17:13:46]File name is /storage/kkm_last_timestamp [17:13:46]Write 4 bytes [17:13:46]NVStorageSaveData done [17:13:46]ExternCall_PrintAddStr [17:13:46]wPrintStart [17:13:46]Write to MH i2c: 01 00 00 64 01 65 [17:13:46]Write i2c OK [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 07 00 [17:13:46]MH_I2C_Read... [17:13:46]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [17:13:46]RasterBufferAndPrint [17:13:47]line Счет N : (1)950080 [17:13:47]line ИНН: 02508201610067 [17:13:47]line Контрольно-Кассовый Чек [17:13:47]line ПРОДАЖА [17:13:47]line ТРК (МРК, ГНК) : 61 [17:13:47]line Товар: 2710124130 [17:13:47]line Аи-92-К-4 [17:13:47]line 99.540 * 67.80 [17:13:47]line = 6748.81 [17:13:47]line НДС 12% НСП 1% [17:13:47]line > о реализуемом товаре [17:13:47]line ОКРУГЛЕНИЕ: -0.81 [17:13:47]line ИТОГО: 6748.00 [17:13:47]line Внесено: 7000.00 [17:13:47]line СДАЧА: 252.00 [17:13:47]line НСП 1% : 59.72 [17:13:47]line НДС 12% : 716.69 [17:13:47]line Наличными: 6748.00 [17:13:47]line Безнал.: 0.00 [17:13:47]line Место: АЗС № 134 "Партнер Нефть" [17:13:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:13:47]line СНО: Общий режим [17:13:47]line Чек 216 30.07.2024 17:13 [17:13:47]line Смена: 435 ФФД: 1.0 [17:13:47]line ЗНМ: 0300000044 [17:13:47]line РНМ: 0000000000092660 [17:13:47]line Версия ККМ: 001 [17:13:47]line ФМ: 0000000000874939 [17:13:47]line ФД: 119164 [17:13:47]line ФПД: 21099041209698 [17:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171345&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119164&fm=21099041209698&tin=02508201610067®Number=0000000000092660&sum=674800 [17:13:47]written 0, free lines is 4095 [17:13:47]ConnectInit Can't take IP for lk.salyk.kg [17:13:47]CommunicateWithHost connect error [17:13:47]CommunicateWithHost err = -1 [17:13:47]OFD Sender: Server communicate error [17:13:47]OFD Sender: Processing packet 119163 [packets to send 87, broken 85] [17:13:47]ProducePacketName [17:13:47]name=ofd_packets/00119163 [17:13:47]OFD Sender: To server: pG, [17:13:47]CommunicateWithHost lk.salyk.kg:30040 [17:13:47]ConnectInit lk.salyk.kg [17:13:47]Write to MH i2c: 01 00 00 8E 01 8F [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: 01 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: 01 07 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 E7 0C 89 [17:13:47]RasterBufferAndPrint [17:13:47]line [17:13:47]line [17:13:47]line [17:13:47]line [17:13:47]line [17:13:47]written 0, free lines is 3316 [17:13:47]MH_Cut [17:13:47]Write to MH i2c: D1 01 00 95 01 01 68 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: D1 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: D1 01 00 [17:13:47]MH_I2C_Read... [17:13:47]Read from MH i2c: D1 01 00 95 01 00 67 [17:13:47]Write to MH i2c: 01 00 00 96 01 97 [17:13:47]Write i2c OK [17:13:47]MH_I2C_Read... [17:13:48]*** Cut start [17:13:48]*** Partial cut [17:13:48]*** CUTSNS_PIN = 1 [17:13:48]*** CUTSNS_PIN = 0 [17:13:48]*** Brake cut motor [17:13:49]Read from MH i2c: 01 [17:13:49]MH_I2C_Read... [17:13:49]*** Stop cut motor [17:13:49]*** Cut end [17:13:49]Read from MH i2c: 01 07 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [17:13:49]process_action close_receipt done [17:13:49]requested_data is exist [17:13:49]produce_requested_data [17:13:49]requested_item fm.sn is exist - process it [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 11 00 00 [17:13:49]Write to MH i2c: E2 08 00 97 01 80 11 00 00 00 00 00 00 12 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 17 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 17 00 97 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 6D [17:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:13:49]wFMCommunicate OK [17:13:49]requested_item fd.num is exist - process it [17:13:49]SAM_PROTO_GetFieldsCounters [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 00 00 [17:13:49]Write to MH i2c: E2 08 00 98 01 80 13 00 00 00 00 00 00 15 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 62 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 62 00 98 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [17:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7C D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetFieldsCounters done [17:13:49]requested_item shift.num is exist - process it [17:13:49]requested_item shift.opened is exist - process it [17:13:49]req_shift_opened [17:13:49]FM_GetShiftState [17:13:49]SAM_PROTO_GetShiftState [17:13:49]wFMCommunicate request_size=4 [17:13:49]MH_SAM_APDU [17:13:49]CAPDU: 80 13 01 00 [17:13:49]Write to MH i2c: E2 08 00 99 01 80 13 01 00 00 00 00 00 17 [17:13:49]Write i2c OK [17:13:49]MH_I2C_Read... [17:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:49]Read from MH i2c: E2 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 [17:13:49]MH_I2C_Read... [17:13:49]Read from MH i2c: E2 0E 00 99 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E2 [17:13:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:13:49]wFMCommunicate OK [17:13:49]SAM_PROTO_GetShiftState done [17:13:49]FM_GetShiftState done [17:13:49]req_shift_opened done [17:13:49]requested_item shift.open_date is exist - process it [17:13:49]req_shift_open_date [17:13:49]req_shift_open_date done [17:13:49]produce_requested_data done [17:13:49]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119164,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:13:49]process_action_free close_receipt [17:13:49]json_value_free [17:13:49]json_value_free done [17:13:49]process_json_proto returns [17:13:49]Send response to host [17:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119164,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:13:49]free response buf [17:13:49]execute_script done [17:13:49]execute_script returns [17:13:49]free content buf [17:13:49]Sock 10.Close socket [17:13:49]Sock 10.Thread stoped [17:13:51]Connected sock=11 [17:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 7D 8C 23 01 7C 6B 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 52 93 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 83 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 44 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 7A D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7B D1 01 00 35 04 06 00 23 2A BC F6 EF 0B 8C E2 01 18 84 F6 99 B6 [17:13:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A3 32 47 00 59 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 34 39 33 39 10 04 04 00 7B D1 01 00 F4 03 04 00 D8 CC A8 66 B6 04 01 00 00 92 4D 57 18 CA BA E9 60 [17:13:52]CommunicateWithHost err = 0 [17:13:52]CheckOFDResponse [17:13:52]1017 (14) - 77093643461234 [17:13:52]1041 (16) - 0000000000874939 [17:13:52]1040 (4) - 119163 [17:13:52]1012 (4) - 30.07.2024 11:22 [17:13:52]1206 (1) - 0 [17:13:52]OFD Sender: Remove packet 119163 [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00119163 [17:13:52]NVStorageDeleteData [17:13:52]OFD Sender: Processing packet 119164 [packets to send 86, broken 85] [17:13:52]ProducePacketName [17:13:52]name=ofd_packets/00119164 [17:13:52]OFD Sender: To server: pG, [17:13:52]CommunicateWithHost lk.salyk.kg:30040 [17:13:52]ConnectInit lk.salyk.kg [17:13:54]Connected sock=7 [17:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 CF C1 07 01 56 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 84 01 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 41 4C 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4B 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 17 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 17 01 00 00 00 07 04 06 00 F0 4B 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 49 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D1 01 00 35 04 06 00 13 30 80 DB 3D 62 61 92 8F 58 79 6C AB 0B [17:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 74 47 00 5D FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7C D1 01 00 F4 03 04 00 DA CC A8 66 B6 04 01 00 00 B5 72 4D 7D B5 A1 51 1E [17:13:54]CommunicateWithHost err = 0 [17:13:54]CheckOFDResponse [17:13:54]1017 (14) - 77093643461234 [17:13:54]1041 (16) - 0000000000874939 [17:13:54]1040 (4) - 119164 [17:13:54]1012 (4) - 30.07.2024 11:22 [17:13:54]1206 (1) - 0 [17:13:54]OFD Sender: Remove packet 119164 [17:13:54]ProducePacketName [17:13:54]name=ofd_packets/00119164 [17:13:54]NVStorageDeleteData [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:13]recv_with_timeout no data received [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:49]accept exits with 9 [17:14:49]New connection [17:14:49]New thread 3066908004 created [17:14:49]Thread 3066764644 joined [17:14:49]Waiting for new connection... [17:14:49] Sock 9.Parse request [17:14:49]Sock 9.Check first char [17:14:49]Sock 9.First char is OK [17:14:49]request: POST /json_proto HTTP/1.0 [17:14:49]Method: POST [17:14:49]URL: /json_proto [17:14:49]Method is POST - this is cgi request [17:14:49]url: /json_proto [17:14:49]query_string will be loaded in cgi processing [17:14:49]execute_cgi json_proto POST (null) [17:14:49]execute_cgi path=json_proto method=POST [17:14:49]POST find Content-Length [17:14:49]Host: 172.17.45.7:8080 [17:14:49]Content-Length: 677 [17:14:49]Content-Type: application/json [17:14:49] [17:14:49]POST finish read [17:14:49]Found Content-Length = 677 [17:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:49]execute_script... [17:14: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)950082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:49]POST & json_proto [17:14:49]process_json_proto [17:14:49]json parsed OK: [17:14:49]protocol is kg_v1.0 [17:14:49]action value=close_receipt [17:14:49]process_action close_receipt [17:14:49]cmd_close_receipt [17:14:49]MH_GetDate [17:14:49]Write to MH i2c: F0 00 00 9A 01 8A [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 09 00 [17:14:49]MH_I2C_Read... [17:14:49]Read from MH i2c: F0 09 00 9A 01 00 8A 1F A9 66 90 0F 3E 66 8E [17:14:49]GetLastDocTimeStamp 1722359625 [17:14:49]current date 1722359690 [17:14:49]FM_GetShiftState [17:14:49]SAM_PROTO_GetShiftState [17:14:49]wFMCommunicate request_size=4 [17:14:49]MH_SAM_APDU [17:14:49]CAPDU: 80 13 01 00 [17:14:49]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [17:14:49]Write i2c OK [17:14:49]MH_I2C_Read... [17:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:50]Read from MH i2c: E2 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 0E 00 [17:14:50]MH_I2C_Read... [17:14:50]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E4 [17:14:50]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:14:50]wFMCommunicate OK [17:14:50]SAM_PROTO_GetShiftState done [17:14:50]FM_GetShiftState done [17:14:50]opened in 1722298242 [17:14:50]opened+sec_in_day 1722384642 [17:14:50]quantity*price = 50036 [17:14:50]sum+1 = 50037 [17:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 217 30.07.2024 17:14 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119165 ФПД: 245829911847427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119165&fm=245829911847427&tin=02508201610067®Number=0000000000092660&sum=50000 [17:14:51]StoreToDocumentArchive [17:14:51]shift 435 fd 119165 [17:14:51]save to /storage/0435/doc_00119165 [17:14:51]save last doc name /storage/0435/doc_00119165 to /storage/kkm_last_doc_name [17:14:51]save OK [17:14:51]Clear old archive folders... [17:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:51]tlvbuf is 00311690 [17:14:51]SAM_PROTO_ClearQueue [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 09 00 00 [17:14:51]Write to MH i2c: E2 08 00 A8 01 80 09 00 00 00 00 00 00 1B [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 A8 01 00 90 00 1D [17:14:51]RAPDU: 90 00 [17:14:51]wFMCommunicate OK [17:14:51]SAM_PROTO_ClearQueue done [17:14:51]KKMCreateOFDPacket [17:14:51]OFDProtocolAddRootSTLVToBuf [17:14:51]FM_MakeSignedData [17:14:51]FM_MakeSignedData [17:14:51]SAM_PROTO_SignData [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 0D 01 02 [17:14:51]Write to MH i2c: E2 08 00 A9 01 80 0D 01 02 00 00 00 00 23 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [17:14:51]RAPDU: 90 00 [17:14:51]wFMCommunicate OK [17:14:51]wFMCommunicate request_size=255 [17:14:51]MH_SAM_APDU [17:14: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 8A 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D1 01 00 35 04 06 00 DF [17:14:51]Write to MH i2c: E2 02 01 AA 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 8A 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D1 01 00 35 04 06 00 DF 00 00 1A [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [17:14:51]RAPDU: 90 00 [17:14:51]wFMCommunicate OK [17:14:51]wFMCommunicate request_size=10 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 0D 02 02 05 94 BC 92 22 03 [17:14:51]Write to MH i2c: E2 0D 00 AB 01 80 0D 02 02 05 00 94 BC 92 22 03 00 00 37 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [17:14:51]RAPDU: 90 00 [17:14:51]wFMCommunicate OK [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 0D 03 02 [17:14:51]Write to MH i2c: E2 08 00 AC 01 80 0D 03 02 00 00 00 00 28 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 0B 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 0B 00 AC 01 00 9F 94 8D 50 E4 8D 0E DD 90 00 95 [17:14:51]RAPDU: 9F 94 8D 50 E4 8D 0E DD 90 00 [17:14:51]wFMCommunicate OK [17:14:51]SAM_PROTO_SignData done [17:14:51]FM_MakeSignedData done [17:14:51]CreateOFDProtocolMessage [17:14:51]wFMCommunicate request_size=4 [17:14:51]MH_SAM_APDU [17:14:51]CAPDU: 80 11 00 00 [17:14:51]Write to MH i2c: E2 08 00 AD 01 80 11 00 00 00 00 00 00 28 [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:51]Read from MH i2c: E2 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 17 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: E2 17 00 AD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 83 [17:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:14:51]wFMCommunicate OK [17:14:51]CreateOFDProtocolMessage done [17:14:51]OFDSenderStorePacket 119165 [17:14:51]StoreOFDPacket docnum=119165 [17:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6E 8B 07 01 1B C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 8A 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D1 01 00 35 04 06 00 DF 94 BC 92 22 03 9F 94 8D 50 E4 8D 0E DD [17:14:51]CheckFolder [17:14:51]dirname=/storage/ofd_packets [17:14:51]CheckFolder done [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00119165 [17:14:51]NVStorageSaveData ofd_packets/00119165 [17:14:51]File name is /storage/ofd_packets/00119165 [17:14:51]Write 301 bytes [17:14:51]NVStorageSaveData done [17:14:51]OFDSenderStorePacket done [17:14:51]KKMCreateOFDPacket done [17:14:51]NVStorageSaveData kkm_last_timestamp [17:14:51]File name is /storage/kkm_last_timestamp [17:14:51]Write 4 bytes [17:14:51]NVStorageSaveData done [17:14:51]ExternCall_PrintAddStr [17:14:51]wPrintStart [17:14:51]Write to MH i2c: 01 00 00 AE 01 AF [17:14:51]Write i2c OK [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 [17:14:51]MH_I2C_Read... [17:14:51]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 FF 0F C4 [17:14:51]RasterBufferAndPrint [17:14:51]line Счет N : (1)950082 [17:14:51]line ИНН: 02508201610067 [17:14:51]line Контрольно-Кассовый Чек [17:14:51]line ПРОДАЖА [17:14:51]line ТРК (МРК, ГНК) : 51 [17:14:51]line Товар: 2710124130 [17:14:51]line Аи-92-К-4 [17:14:51]line 7.380 * 67.80 [17:14:51]line = 500.36 [17:14:51]line НДС 12% НСП 1% [17:14:51]line > о реализуемом товаре [17:14:51]line ОКРУГЛЕНИЕ: -0.36 [17:14:51]line ИТОГО: 500.00 [17:14:51]line Внесено: 500.00 [17:14:51]line СДАЧА: 0.00 [17:14:51]line НСП 1% : 4.43 [17:14:51]line НДС 12% : 53.14 [17:14:51]line Наличными: 500.00 [17:14:51]line Безнал.: 0.00 [17:14:51]line Место: АЗС № 134 "Партнер Нефть" [17:14:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:14:51]line СНО: Общий режим [17:14:51]line Чек 217 30.07.2024 17:14 [17:14:51]line Смена: 435 ФФД: 1.0 [17:14:51]line ЗНМ: 0300000044 [17:14:51]line РНМ: 0000000000092660 [17:14:51]line Версия ККМ: 001 [17:14:51]line ФМ: 0000000000874939 [17:14:51]line ФД: 119165 [17:14:51]line ФПД: 245829911847427 [17:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171450&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119165&fm=245829911847427&tin=02508201610067®Number=0000000000092660&sum=50000 [17:14:51]written 0, free lines is 4095 [17:14:51]OFD Sender: Processing packet 119165 [packets to send 86, broken 85] [17:14:51]ProducePacketName [17:14:51]name=ofd_packets/00119165 [17:14:51]OFD Sender: To server: pG, [17:14:51]CommunicateWithHost lk.salyk.kg:30040 [17:14:51]ConnectInit lk.salyk.kg [17:14:52]Write to MH i2c: 01 00 00 D8 01 D9 [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: 01 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: 01 07 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 DC 0C C8 [17:14:52]RasterBufferAndPrint [17:14:52]line [17:14:52]line [17:14:52]line [17:14:52]line [17:14:52]line [17:14:52]written 0, free lines is 3301 [17:14:52]MH_Cut [17:14:52]Write to MH i2c: D1 01 00 DF 01 01 B2 [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: D1 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: D1 01 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: D1 01 00 DF 01 00 B1 [17:14:52]Write to MH i2c: 01 00 00 E0 01 E1 [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]*** Cut start [17:14:52]*** Partial cut [17:14:52]*** CUTSNS_PIN = 1 [17:14:52]*** CUTSNS_PIN = 0 [17:14:53]*** Brake cut motor [17:14:53]Read from MH i2c: 01 [17:14:53]MH_I2C_Read... [17:14:53]*** Stop cut motor [17:14:53]*** Cut end [17:14:53]Read from MH i2c: 01 07 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [17:14:53]process_action close_receipt done [17:14:53]requested_data is exist [17:14:53]produce_requested_data [17:14:53]requested_item fm.sn is exist - process it [17:14:53]wFMCommunicate request_size=4 [17:14:53]MH_SAM_APDU [17:14:53]CAPDU: 80 11 00 00 [17:14:53]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:53]Read from MH i2c: E2 17 00 [17:14:53]MH_I2C_Read... [17:14:53]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 34 39 33 39 90 00 B7 [17:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:14:53]wFMCommunicate OK [17:14:53]requested_item fd.num is exist - process it [17:14:53]SAM_PROTO_GetFieldsCounters [17:14:53]wFMCommunicate request_size=4 [17:14:53]MH_SAM_APDU [17:14:53]CAPDU: 80 13 00 00 [17:14:53]Write to MH i2c: E2 08 00 E2 01 80 13 00 00 00 00 00 00 5F [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 62 00 [17:14:53]MH_I2C_Read... [17:14:53]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [17:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7D D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:53]wFMCommunicate OK [17:14:53]SAM_PROTO_GetFieldsCounters done [17:14:53]requested_item shift.num is exist - process it [17:14:53]requested_item shift.opened is exist - process it [17:14:53]req_shift_opened [17:14:53]FM_GetShiftState [17:14:53]SAM_PROTO_GetShiftState [17:14:53]wFMCommunicate request_size=4 [17:14:53]MH_SAM_APDU [17:14:53]CAPDU: 80 13 01 00 [17:14:53]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [17:14:53]Write i2c OK [17:14:53]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2C [17:14:53]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:14:53]wFMCommunicate OK [17:14:53]SAM_PROTO_GetShiftState done [17:14:53]FM_GetShiftState done [17:14:53]req_shift_opened done [17:14:53]requested_item shift.open_date is exist - process it [17:14:53]req_shift_open_date [17:14:53]req_shift_open_date done [17:14:53]produce_requested_data done [17:14:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119165,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:14:53]process_action_free close_receipt [17:14:53]json_value_free [17:14:53]json_value_free done [17:14:53]process_json_proto returns [17:14:53]Send response to host [17:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119165,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:14:53]free response buf [17:14:53]execute_script done [17:14:53]execute_script returns [17:14:53]free content buf [17:14:53]Sock 9.Close socket [17:14:53]Sock 9.Thread stoped [17:14:56]ConnectInit Can't take IP for lk.salyk.kg [17:14:56]CommunicateWithHost connect error [17:14:56]CommunicateWithHost err = -1 [17:14:56]OFD Sender: Server communicate error [17:15:01]OFD Sender: Processing packet 119165 [packets to send 86, broken 85] [17:15:01]ProducePacketName [17:15:01]name=ofd_packets/00119165 [17:15:01]OFD Sender: To server: pG, [17:15:01]CommunicateWithHost lk.salyk.kg:30040 [17:15:01]ConnectInit lk.salyk.kg [17:15:06]Connected sock=9 [17:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6E 8B 07 01 1B C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 8A 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D1 01 00 35 04 06 00 DF 94 BC 92 22 03 9F 94 8D 50 E4 8D 0E DD [17:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F7 6A 47 00 F6 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7D D1 01 00 F4 03 04 00 24 CD A8 66 B6 04 01 00 00 D5 D7 96 90 43 EC 41 3F [17:15:08]CommunicateWithHost err = 0 [17:15:08]CheckOFDResponse [17:15:08]1017 (14) - 77093643461234 [17:15:08]1041 (16) - 0000000000874939 [17:15:08]1040 (4) - 119165 [17:15:08]1012 (4) - 30.07.2024 11:23 [17:15:08]1206 (1) - 0 [17:15:08]OFD Sender: Remove packet 119165 [17:15:08]ProducePacketName [17:15:08]name=ofd_packets/00119165 [17:15:08]NVStorageDeleteData [17:15:09]OFD Sender: No OFD packet to send [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:18]accept exits with 7 [17:16:18]New connection [17:16:18]New thread 3066764644 created [17:16:18]Thread 3066908004 joined [17:16:18]Waiting for new connection... [17:16:18] Sock 7.Parse request [17:16:18]Sock 7.Check first char [17:16:18]Sock 7.First char is OK [17:16:18]request: POST /json_proto HTTP/1.0 [17:16:18]Method: POST [17:16:18]URL: /json_proto [17:16:18]Method is POST - this is cgi request [17:16:18]url: /json_proto [17:16:18]query_string will be loaded in cgi processing [17:16:18]execute_cgi json_proto POST (null) [17:16:18]execute_cgi path=json_proto method=POST [17:16:18]POST find Content-Length [17:16:18]Host: 172.17.45.7:8080 [17:16:18]Content-Length: 682 [17:16:18]Content-Type: application/json [17:16:18] [17:16:18]POST finish read [17:16:18]Found Content-Length = 682 [17:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.470, "sum" : 1370.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1370.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:18]execute_script... [17:16: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)950083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 18.470, "sum" : 1370.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1370.00, "total" : 1370.00, "payments": [ { "type": 0, "sum" : 1370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:18]POST & json_proto [17:16:18]process_json_proto [17:16:18]json parsed OK: [17:16:18]protocol is kg_v1.0 [17:16:18]action value=close_receipt [17:16:18]process_action close_receipt [17:16:18]cmd_close_receipt [17:16:18]MH_GetDate [17:16:18]Write to MH i2c: F0 00 00 E4 01 D4 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: F0 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: F0 09 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: F0 09 00 E4 01 00 E2 1F A9 66 90 0F 3E 66 30 [17:16:18]GetLastDocTimeStamp 1722359690 [17:16:18]current date 1722359778 [17:16:18]FM_GetShiftState [17:16:18]SAM_PROTO_GetShiftState [17:16:18]wFMCommunicate request_size=4 [17:16:18]MH_SAM_APDU [17:16:18]CAPDU: 80 13 01 00 [17:16:18]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [17:16:18]Write i2c OK [17:16:18]MH_I2C_Read... [17:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:18]Read from MH i2c: E2 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 0E 00 [17:16:18]MH_I2C_Read... [17:16:18]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2E [17:16:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:16:18]wFMCommunicate OK [17:16:18]SAM_PROTO_GetShiftState done [17:16:18]FM_GetShiftState done [17:16:18]opened in 1722298242 [17:16:18]opened+sec_in_day 1722384642 [17:16:18]quantity*price = 137047 [17:16:18]sum+1 = 137048 [17:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1370.00 Внесено: 1370.00 СДАЧА: 0.00 НСП 1% : 12.13 НДС 12% : 145.54 Наличными: 1370.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 218 30.07.2024 17:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119166 ФПД: 143395312887362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119166&fm=143395312887362&tin=02508201610067®Number=0000000000092660&sum=137000 [17:16:19]StoreToDocumentArchive [17:16:19]shift 435 fd 119166 [17:16:19]save to /storage/0435/doc_00119166 [17:16:19]save last doc name /storage/0435/doc_00119166 to /storage/kkm_last_doc_name [17:16:19]save OK [17:16:19]Clear old archive folders... [17:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:19]tlvbuf is 0036E2D0 [17:16:19]SAM_PROTO_ClearQueue [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 09 00 00 [17:16:19]Write to MH i2c: E2 08 00 F2 01 80 09 00 00 00 00 00 00 65 [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 03 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [17:16:19]RAPDU: 90 00 [17:16:19]wFMCommunicate OK [17:16:19]SAM_PROTO_ClearQueue done [17:16:19]KKMCreateOFDPacket [17:16:19]OFDProtocolAddRootSTLVToBuf [17:16:19]FM_MakeSignedData [17:16:19]FM_MakeSignedData [17:16:19]SAM_PROTO_SignData [17:16:19]wFMCommunicate request_size=4 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 0D 01 02 [17:16:19]Write to MH i2c: E2 08 00 F3 01 80 0D 01 02 00 00 00 00 6D [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:19]Read from MH i2c: E2 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 03 00 [17:16:19]MH_I2C_Read... [17:16:19]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [17:16:19]RAPDU: 90 00 [17:16:19]wFMCommunicate OK [17:16:19]wFMCommunicate request_size=255 [17:16:19]MH_SAM_APDU [17:16:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D1 01 00 35 04 06 00 82 [17:16:19]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D1 01 00 35 04 06 00 82 00 00 3A [17:16:19]Write i2c OK [17:16:19]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [17:16:20]RAPDU: 90 00 [17:16:20]wFMCommunicate OK [17:16:20]wFMCommunicate request_size=10 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 0D 02 02 05 6A D2 AF E6 42 [17:16:20]Write to MH i2c: E2 0D 00 F5 01 80 0D 02 02 05 00 6A D2 AF E6 42 00 00 8D [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [17:16:20]RAPDU: 90 00 [17:16:20]wFMCommunicate OK [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 0D 03 02 [17:16:20]Write to MH i2c: E2 08 00 F6 01 80 0D 03 02 00 00 00 00 72 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 0B 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 0B 00 F6 01 00 52 70 D0 F8 91 5A C7 A4 90 00 53 [17:16:20]RAPDU: 52 70 D0 F8 91 5A C7 A4 90 00 [17:16:20]wFMCommunicate OK [17:16:20]SAM_PROTO_SignData done [17:16:20]FM_MakeSignedData done [17:16:20]CreateOFDProtocolMessage [17:16:20]wFMCommunicate request_size=4 [17:16:20]MH_SAM_APDU [17:16:20]CAPDU: 80 11 00 00 [17:16:20]Write to MH i2c: E2 08 00 F7 01 80 11 00 00 00 00 00 00 72 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:20]Read from MH i2c: E2 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: E2 17 00 [17:16:20]MH_I2C_Read... [17:16:20]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 34 39 33 39 90 00 CD [17:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:16:20]wFMCommunicate OK [17:16:20]CreateOFDProtocolMessage done [17:16:20]OFDSenderStorePacket 119166 [17:16:20]StoreOFDPacket docnum=119166 [17:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 F0 07 01 36 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D1 01 00 35 04 06 00 82 6A D2 AF E6 42 52 70 D0 F8 91 5A C7 A4 [17:16:20]CheckFolder [17:16:20]dirname=/storage/ofd_packets [17:16:20]CheckFolder done [17:16:20]ProducePacketName [17:16:20]name=ofd_packets/00119166 [17:16:20]NVStorageSaveData ofd_packets/00119166 [17:16:20]File name is /storage/ofd_packets/00119166 [17:16:20]Write 301 bytes [17:16:20]NVStorageSaveData done [17:16:20]OFDSenderStorePacket done [17:16:20]KKMCreateOFDPacket done [17:16:20]NVStorageSaveData kkm_last_timestamp [17:16:20]File name is /storage/kkm_last_timestamp [17:16:20]Write 4 bytes [17:16:20]NVStorageSaveData done [17:16:20]OFD Sender: Processing packet 119166 [packets to send 86, broken 85] [17:16:20]ProducePacketName [17:16:20]name=ofd_packets/00119166 [17:16:20]OFD Sender: To server: pG, [17:16:20]CommunicateWithHost lk.salyk.kg:30040 [17:16:20]ConnectInit lk.salyk.kg [17:16:20]ExternCall_PrintAddStr [17:16:20]wPrintStart [17:16:20]Write to MH i2c: 01 00 00 F8 01 F9 [17:16:20]Write i2c OK [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 [17:16:20]MH_I2C_Read... [17:16:20]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [17:16:20]RasterBufferAndPrint [17:16:20]line Счет N : (1)950083 [17:16:20]line ИНН: 02508201610067 [17:16:20]line Контрольно-Кассовый Чек [17:16:20]line ПРОДАЖА [17:16:20]line ТРК (МРК, ГНК) : 43 [17:16:20]line Товар: 2710124500 [17:16:20]line Аи-95-К-3 [17:16:20]line 18.470 * 74.20 [17:16:20]line = 1370.47 [17:16:20]line НДС 12% НСП 1% [17:16:20]line > о реализуемом товаре [17:16:20]line ОКРУГЛЕНИЕ: -0.47 [17:16:20]line ИТОГО: 1370.00 [17:16:20]line Внесено: 1370.00 [17:16:20]line СДАЧА: 0.00 [17:16:20]line НСП 1% : 12.13 [17:16:20]line НДС 12% : 145.54 [17:16:20]line Наличными: 1370.00 [17:16:20]line Безнал.: 0.00 [17:16:20]line Место: АЗС № 134 "Партнер Нефть" [17:16:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:16:20]line СНО: Общий режим [17:16:20]line Чек 218 30.07.2024 17:16 [17:16:20]line Смена: 435 ФФД: 1.0 [17:16:20]line ЗНМ: 0300000044 [17:16:20]line РНМ: 0000000000092660 [17:16:20]line Версия ККМ: 001 [17:16:20]line ФМ: 0000000000874939 [17:16:20]line ФД: 119166 [17:16:20]line ФПД: 143395312887362 [17:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171618&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119166&fm=143395312887362&tin=02508201610067®Number=0000000000092660&sum=137000 [17:16:20]written 0, free lines is 4095 [17:16:20]Connected sock=11 [17:16:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 07 F0 07 01 36 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 48 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 57 17 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 17 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 38 00 00 00 00 07 04 06 00 28 17 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 E2 1F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D1 01 00 35 04 06 00 82 6A D2 AF E6 42 52 70 D0 F8 91 5A C7 A4 [17:16:21]Write to MH i2c: 01 00 00 22 02 24 [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 07 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 DE 0C 15 [17:16:21]RasterBufferAndPrint [17:16:21]line [17:16:21]line [17:16:21]line [17:16:21]line [17:16:21]line [17:16:21]written 0, free lines is 3300 [17:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 09 E9 47 00 72 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7E D1 01 00 F4 03 04 00 6D CD A8 66 B6 04 01 00 00 FB 9E EF 83 C2 3A 35 91 [17:16:21]CommunicateWithHost err = 0 [17:16:21]CheckOFDResponse [17:16:21]1017 (14) - 77093643461234 [17:16:21]1041 (16) - 0000000000874939 [17:16:21]1040 (4) - 119166 [17:16:21]1012 (4) - 30.07.2024 11:24 [17:16:21]1206 (1) - 0 [17:16:21]OFD Sender: Remove packet 119166 [17:16:21]ProducePacketName [17:16:21]name=ofd_packets/00119166 [17:16:21]NVStorageDeleteData [17:16:21]MH_Cut [17:16:21]Write to MH i2c: D1 01 00 29 02 01 FD [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: D1 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: D1 01 00 [17:16:21]MH_I2C_Read... [17:16:21]Read from MH i2c: D1 01 00 29 02 00 FC [17:16:21]Write to MH i2c: 01 00 00 2A 02 2C [17:16:21]Write i2c OK [17:16:21]MH_I2C_Read... [17:16:21]OFD Sender: No OFD packet to send [17:16:21]*** Cut start [17:16:21]*** Partial cut [17:16:21]*** CUTSNS_PIN = 1 [17:16:21]*** CUTSNS_PIN = 0 [17:16:22]*** Brake cut motor [17:16:22]Read from MH i2c: 01 [17:16:22]MH_I2C_Read... [17:16:22]*** Stop cut motor [17:16:22]*** Cut end [17:16:22]Read from MH i2c: 01 07 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [17:16:22]process_action close_receipt done [17:16:22]requested_data is exist [17:16:22]produce_requested_data [17:16:22]requested_item fm.sn is exist - process it [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 11 00 00 [17:16:22]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 17 00 [17:16:22]MH_I2C_Read... [17:16:22]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 34 39 33 39 90 00 02 [17:16:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:16:22]wFMCommunicate OK [17:16:22]requested_item fd.num is exist - process it [17:16:22]SAM_PROTO_GetFieldsCounters [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 13 00 00 [17:16:22]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 62 00 [17:16:22]MH_I2C_Read... [17:16:22]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [17:16:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7E D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:22]wFMCommunicate OK [17:16:22]SAM_PROTO_GetFieldsCounters done [17:16:22]requested_item shift.num is exist - process it [17:16:22]requested_item shift.opened is exist - process it [17:16:22]req_shift_opened [17:16:22]FM_GetShiftState [17:16:22]SAM_PROTO_GetShiftState [17:16:22]wFMCommunicate request_size=4 [17:16:22]MH_SAM_APDU [17:16:22]CAPDU: 80 13 01 00 [17:16:22]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [17:16:22]Write i2c OK [17:16:22]MH_I2C_Read... [17:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:22]Read from MH i2c: E2 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 0E 00 [17:16:22]MH_I2C_Read... [17:16:22]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 77 [17:16:22]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:16:22]wFMCommunicate OK [17:16:22]SAM_PROTO_GetShiftState done [17:16:22]FM_GetShiftState done [17:16:22]req_shift_opened done [17:16:22]requested_item shift.open_date is exist - process it [17:16:22]req_shift_open_date [17:16:22]req_shift_open_date done [17:16:22]produce_requested_data done [17:16:22]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119166,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:16:22]process_action_free close_receipt [17:16:22]json_value_free [17:16:22]json_value_free done [17:16:22]process_json_proto returns [17:16:22]Send response to host [17:16:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119166,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:16:22]free response buf [17:16:22]execute_script done [17:16:22]execute_script returns [17:16:22]free content buf [17:16:22]Sock 7.Close socket [17:16:22]Sock 7.Thread stoped [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:40]recv_with_timeout no data received [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:16:59]accept exits with 9 [17:16:59]New connection [17:16:59]New thread 3066908004 created [17:16:59]Thread 3066764644 joined [17:16:59]Waiting for new connection... [17:16:59] Sock 9.Parse request [17:16:59]Sock 9.Check first char [17:16:59]Sock 9.First char is OK [17:16:59]request: POST /json_proto HTTP/1.0 [17:16:59]Method: POST [17:16:59]URL: /json_proto [17:16:59]Method is POST - this is cgi request [17:16:59]url: /json_proto [17:16:59]query_string will be loaded in cgi processing [17:16:59]execute_cgi json_proto POST (null) [17:16:59]execute_cgi path=json_proto method=POST [17:16:59]POST find Content-Length [17:16:59]Host: 172.17.45.7:8080 [17:16:59]Content-Length: 677 [17:16:59]Content-Type: application/json [17:16:59] [17:16:59]POST finish read [17:16:59]Found Content-Length = 677 [17:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [17:16:59]execute_script... [17:16: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)950084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [17:16:59]POST & json_proto [17:16:59]process_json_proto [17:16:59]json parsed OK: [17:16:59]protocol is kg_v1.0 [17:16:59]action value=close_receipt [17:16:59]process_action close_receipt [17:16:59]cmd_close_receipt [17:16:59]MH_GetDate [17:16:59]Write to MH i2c: F0 00 00 2E 02 1F [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: F0 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: F0 09 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: F0 09 00 2E 02 00 0B 20 A9 66 90 0F 3E 66 A5 [17:16:59]GetLastDocTimeStamp 1722359778 [17:16:59]current date 1722359819 [17:16:59]FM_GetShiftState [17:16:59]SAM_PROTO_GetShiftState [17:16:59]wFMCommunicate request_size=4 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 13 01 00 [17:16:59]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 0E 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 79 [17:16:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:16:59]wFMCommunicate OK [17:16:59]SAM_PROTO_GetShiftState done [17:16:59]FM_GetShiftState done [17:16:59]opened in 1722298242 [17:16:59]opened+sec_in_day 1722384642 [17:16:59]quantity*price = 40002 [17:16:59]sum+1 = 40003 [17:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 219 30.07.2024 17:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119167 ФПД: 148422731077715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171659&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119167&fm=148422731077715&tin=02508201610067®Number=0000000000092660&sum=40000 [17:17:00]StoreToDocumentArchive [17:17:00]shift 435 fd 119167 [17:17:00]save to /storage/0435/doc_00119167 [17:17:00]save last doc name /storage/0435/doc_00119167 to /storage/kkm_last_doc_name [17:17:00]save OK [17:17:00]Clear old archive folders... [17:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:00]tlvbuf is 00360560 [17:17:00]SAM_PROTO_ClearQueue [17:17:00]wFMCommunicate request_size=4 [17:17:00]MH_SAM_APDU [17:17:00]CAPDU: 80 09 00 00 [17:17:00]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:00]Read from MH i2c: E2 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [17:17:00]RAPDU: 90 00 [17:17:00]wFMCommunicate OK [17:17:00]SAM_PROTO_ClearQueue done [17:17:00]KKMCreateOFDPacket [17:17:00]OFDProtocolAddRootSTLVToBuf [17:17:00]FM_MakeSignedData [17:17:00]FM_MakeSignedData [17:17:00]SAM_PROTO_SignData [17:17:00]wFMCommunicate request_size=4 [17:17:00]MH_SAM_APDU [17:17:00]CAPDU: 80 0D 01 02 [17:17:00]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:00]Read from MH i2c: E2 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [17:17:00]RAPDU: 90 00 [17:17:00]wFMCommunicate OK [17:17:00]wFMCommunicate request_size=255 [17:17:00]MH_SAM_APDU [17:17: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DB 00 00 00 F4 03 04 00 0B 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D1 01 00 35 04 06 00 86 [17:17:00]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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DB 00 00 00 F4 03 04 00 0B 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D1 01 00 35 04 06 00 86 00 00 C1 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [17:17:01]RAPDU: 90 00 [17:17:01]wFMCommunicate OK [17:17:01]wFMCommunicate request_size=10 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 0D 02 02 05 FD 5C 29 98 53 [17:17:01]Write to MH i2c: E2 0D 00 3F 02 80 0D 02 02 05 00 FD 5C 29 98 53 00 00 32 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [17:17:01]RAPDU: 90 00 [17:17:01]wFMCommunicate OK [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 0D 03 02 [17:17:01]Write to MH i2c: E2 08 00 40 02 80 0D 03 02 00 00 00 00 BD [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0B 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0B 00 40 02 00 C3 01 03 E0 CD BF A8 47 90 00 E0 [17:17:01]RAPDU: C3 01 03 E0 CD BF A8 47 90 00 [17:17:01]wFMCommunicate OK [17:17:01]SAM_PROTO_SignData done [17:17:01]FM_MakeSignedData done [17:17:01]CreateOFDProtocolMessage [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 11 00 00 [17:17:01]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 17 00 [17:17:01]MH_I2C_Read... [17:17:01]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 34 39 33 39 90 00 18 [17:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:17:01]wFMCommunicate OK [17:17:01]CreateOFDProtocolMessage done [17:17:01]OFDSenderStorePacket 119167 [17:17:01]StoreOFDPacket docnum=119167 [17:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 03 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DB 00 00 00 F4 03 04 00 0B 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D1 01 00 35 04 06 00 86 FD 5C 29 98 53 C3 01 03 E0 CD BF A8 47 [17:17:01]CheckFolder [17:17:01]dirname=/storage/ofd_packets [17:17:01]CheckFolder done [17:17:01]ProducePacketName [17:17:01]name=ofd_packets/00119167 [17:17:01]NVStorageSaveData ofd_packets/00119167 [17:17:01]File name is /storage/ofd_packets/00119167 [17:17:01]Write 301 bytes [17:17:01]NVStorageSaveData done [17:17:01]OFDSenderStorePacket done [17:17:01]KKMCreateOFDPacket done [17:17:01]NVStorageSaveData kkm_last_timestamp [17:17:01]File name is /storage/kkm_last_timestamp [17:17:01]Write 4 bytes [17:17:01]NVStorageSaveData done [17:17:01]ExternCall_PrintAddStr [17:17:01]wPrintStart [17:17:01]Write to MH i2c: 01 00 00 42 02 44 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [17:17:01]RasterBufferAndPrint [17:17:01]line Счет N : (1)950084 [17:17:01]line ИНН: 02508201610067 [17:17:01]line Контрольно-Кассовый Чек [17:17:01]line ПРОДАЖА [17:17:01]line ТРК (МРК, ГНК) : 61 [17:17:01]line Товар: 2710124130 [17:17:01]line Аи-92-К-4 [17:17:01]line 5.900 * 67.80 [17:17:01]line = 400.02 [17:17:01]line НДС 12% НСП 1% [17:17:01]line > о реализуемом товаре [17:17:01]line ОКРУГЛЕНИЕ: -0.02 [17:17:01]line ИТОГО: 400.00 [17:17:01]line Внесено: 400.00 [17:17:01]line СДАЧА: 0.00 [17:17:01]line НСП 1% : 3.54 [17:17:01]line НДС 12% : 42.48 [17:17:01]line Наличными: 400.00 [17:17:01]line Безнал.: 0.00 [17:17:01]line Место: АЗС № 134 "Партнер Нефть" [17:17:01]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:17:01]line СНО: Общий режим [17:17:01]line Чек 219 30.07.2024 17:16 [17:17:01]line Смена: 435 ФФД: 1.0 [17:17:01]line ЗНМ: 0300000044 [17:17:01]line РНМ: 0000000000092660 [17:17:01]line Версия ККМ: 001 [17:17:01]line ФМ: 0000000000874939 [17:17:01]line ФД: 119167 [17:17:01]line ФПД: 148422731077715 [17:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171659&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119167&fm=148422731077715&tin=02508201610067®Number=0000000000092660&sum=40000 [17:17:01]OFD Sender: Processing packet 119167 [packets to send 86, broken 85] [17:17:01]ProducePacketName [17:17:01]name=ofd_packets/00119167 [17:17:01]OFD Sender: To server: pG, [17:17:01]CommunicateWithHost lk.salyk.kg:30040 [17:17:01]ConnectInit lk.salyk.kg [17:17:01]written 0, free lines is 4095 [17:17:01]Write to MH i2c: 01 00 00 6C 02 6E [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 D0 0C 51 [17:17:01]RasterBufferAndPrint [17:17:01]line [17:17:01]line [17:17:01]line [17:17:01]line [17:17:01]line [17:17:01]written 0, free lines is 3284 [17:17:01]MH_Cut [17:17:01]Write to MH i2c: D1 01 00 73 02 01 47 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: D1 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: D1 01 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: D1 01 00 73 02 00 46 [17:17:01]Write to MH i2c: 01 00 00 74 02 76 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:02]*** Cut start [17:17:02]*** Partial cut [17:17:02]*** CUTSNS_PIN = 1 [17:17:02]*** CUTSNS_PIN = 0 [17:17:02]Connected sock=10 [17:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E3 03 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 DB 00 00 00 F4 03 04 00 0B 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 7F D1 01 00 35 04 06 00 86 FD 5C 29 98 53 C3 01 03 E0 CD BF A8 47 [17:17:02]*** Brake cut motor [17:17:03]Read from MH i2c: 01 [17:17:03]MH_I2C_Read... [17:17:03]*** Stop cut motor [17:17:03]*** Cut end [17:17:03]Read from MH i2c: 01 07 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [17:17:03]process_action close_receipt done [17:17:03]requested_data is exist [17:17:03]produce_requested_data [17:17:03]requested_item fm.sn is exist - process it [17:17:03]wFMCommunicate request_size=4 [17:17:03]MH_SAM_APDU [17:17:03]CAPDU: 80 11 00 00 [17:17:03]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:03]Read from MH i2c: E2 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 17 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [17:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:17:03]wFMCommunicate OK [17:17:03]requested_item fd.num is exist - process it [17:17:03]SAM_PROTO_GetFieldsCounters [17:17:03]wFMCommunicate request_size=4 [17:17:03]MH_SAM_APDU [17:17:03]CAPDU: 80 13 00 00 [17:17:03]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:03]Read from MH i2c: E2 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 62 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 62 00 76 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [17:17:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 7F D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:03]wFMCommunicate OK [17:17:03]SAM_PROTO_GetFieldsCounters done [17:17:03]requested_item shift.num is exist - process it [17:17:03]requested_item shift.opened is exist - process it [17:17:03]req_shift_opened [17:17:03]FM_GetShiftState [17:17:03]SAM_PROTO_GetShiftState [17:17:03]wFMCommunicate request_size=4 [17:17:03]MH_SAM_APDU [17:17:03]CAPDU: 80 13 01 00 [17:17:03]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [17:17:03]Write i2c OK [17:17:03]MH_I2C_Read... [17:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:03]Read from MH i2c: E2 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 0E 00 [17:17:03]MH_I2C_Read... [17:17:03]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C1 [17:17:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:17:03]wFMCommunicate OK [17:17:03]SAM_PROTO_GetShiftState done [17:17:03]FM_GetShiftState done [17:17:03]req_shift_opened done [17:17:03]requested_item shift.open_date is exist - process it [17:17:03]req_shift_open_date [17:17:03]req_shift_open_date done [17:17:03]produce_requested_data done [17:17:03]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119167,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:17:03]process_action_free close_receipt [17:17:03]json_value_free [17:17:03]json_value_free done [17:17:03]process_json_proto returns [17:17:03]Send response to host [17:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119167,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:17:03]free response buf [17:17:03]execute_script done [17:17:03]execute_script returns [17:17:03]free content buf [17:17:03]Sock 9.Close socket [17:17:03]Sock 9.Thread stoped [17:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 44 CB 47 00 58 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 34 39 33 39 10 04 04 00 7F D1 01 00 F4 03 04 00 97 CD A8 66 B6 04 01 00 00 46 28 9B A7 5B 8E 6C 82 [17:17:03]CommunicateWithHost err = 0 [17:17:03]CheckOFDResponse [17:17:03]1017 (14) - 77093643461234 [17:17:03]1041 (16) - 0000000000874939 [17:17:03]1040 (4) - 119167 [17:17:03]1012 (4) - 30.07.2024 11:25 [17:17:03]1206 (1) - 0 [17:17:03]OFD Sender: Remove packet 119167 [17:17:03]ProducePacketName [17:17:03]name=ofd_packets/00119167 [17:17:03]NVStorageDeleteData [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:37]recv_with_timeout no data received [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [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:13]accept exits with 7 [17:18:13]New connection [17:18:13]New thread 3066764644 created [17:18:13]Thread 3066908004 joined [17:18:13]Waiting for new connection... [17:18:13] Sock 7.Parse request [17:18:13]Sock 7.Check first char [17:18:13]Sock 7.First char is OK [17:18:13]request: POST /json_proto HTTP/1.0 [17:18:13]Method: POST [17:18:13]URL: /json_proto [17:18:13]Method is POST - this is cgi request [17:18:13]url: /json_proto [17:18:13]query_string will be loaded in cgi processing [17:18:13]execute_cgi json_proto POST (null) [17:18:13]execute_cgi path=json_proto method=POST [17:18:13]POST find Content-Length [17:18:13]Host: 172.17.45.7:8080 [17:18:13]Content-Length: 682 [17:18:13]Content-Type: application/json [17:18:13] [17:18:13]POST finish read [17:18:13]Found Content-Length = 682 [17:18:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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:13]execute_script... [17:18: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)950085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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:13]POST & json_proto [17:18:13]process_json_proto [17:18:13]json parsed OK: [17:18:13]protocol is kg_v1.0 [17:18:13]action value=close_receipt [17:18:13]process_action close_receipt [17:18:13]cmd_close_receipt [17:18:13]MH_GetDate [17:18:13]Write to MH i2c: F0 00 00 78 02 69 [17:18:13]Write i2c OK [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: F0 [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: F0 09 00 [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: F0 09 00 78 02 00 55 20 A9 66 90 0F 3E 66 39 [17:18:13]GetLastDocTimeStamp 1722359819 [17:18:13]current date 1722359893 [17:18:13]FM_GetShiftState [17:18:13]SAM_PROTO_GetShiftState [17:18:13]wFMCommunicate request_size=4 [17:18:13]MH_SAM_APDU [17:18:13]CAPDU: 80 13 01 00 [17:18:13]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [17:18:13]Write i2c OK [17:18:13]MH_I2C_Read... [17:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:13]Read from MH i2c: E2 [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: E2 0E 00 [17:18:13]MH_I2C_Read... [17:18:13]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 C3 [17:18:13]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:18:13]wFMCommunicate OK [17:18:13]SAM_PROTO_GetShiftState done [17:18:13]FM_GetShiftState done [17:18:13]opened in 1722298242 [17:18:13]opened+sec_in_day 1722384642 [17:18:13]quantity*price = 100021 [17:18:13]sum+1 = 100023 [17:18: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 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 220 30.07.2024 17:18 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119168 ФПД: 161886636701082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171813&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119168&fm=161886636701082&tin=02508201610067®Number=0000000000092660&sum=100000 [17:18:14]StoreToDocumentArchive [17:18:14]shift 435 fd 119168 [17:18:14]save to /storage/0435/doc_00119168 [17:18:14]save last doc name /storage/0435/doc_00119168 to /storage/kkm_last_doc_name [17:18:14]save OK [17:18:14]Clear old archive folders... [17:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:15]tlvbuf is 002D71A0 [17:18:15]SAM_PROTO_ClearQueue [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 09 00 00 [17:18:15]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]SAM_PROTO_ClearQueue done [17:18:15]KKMCreateOFDPacket [17:18:15]OFDProtocolAddRootSTLVToBuf [17:18:15]FM_MakeSignedData [17:18:15]FM_MakeSignedData [17:18:15]SAM_PROTO_SignData [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 01 02 [17:18:15]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]wFMCommunicate request_size=255 [17:18:15]MH_SAM_APDU [17:18: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 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 55 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D1 01 00 35 04 06 00 93 [17:18:15]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 55 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D1 01 00 35 04 06 00 93 00 00 AB [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]wFMCommunicate request_size=10 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 02 02 05 3C 2B 79 75 9A [17:18:15]Write to MH i2c: E2 0D 00 89 02 80 0D 02 02 05 00 3C 2B 79 75 9A 00 00 FE [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [17:18:15]RAPDU: 90 00 [17:18:15]wFMCommunicate OK [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 0D 03 02 [17:18:15]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 0B 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 0B 00 8A 02 00 54 67 A6 E2 29 66 C1 3C 90 00 D7 [17:18:15]RAPDU: 54 67 A6 E2 29 66 C1 3C 90 00 [17:18:15]wFMCommunicate OK [17:18:15]SAM_PROTO_SignData done [17:18:15]FM_MakeSignedData done [17:18:15]CreateOFDProtocolMessage [17:18:15]wFMCommunicate request_size=4 [17:18:15]MH_SAM_APDU [17:18:15]CAPDU: 80 11 00 00 [17:18:15]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:15]Read from MH i2c: E2 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 17 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 62 [17:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:18:15]wFMCommunicate OK [17:18:15]CreateOFDProtocolMessage done [17:18:15]OFDSenderStorePacket 119168 [17:18:15]StoreOFDPacket docnum=119168 [17:18:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 52 21 07 01 B6 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 55 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D1 01 00 35 04 06 00 93 3C 2B 79 75 9A 54 67 A6 E2 29 66 C1 3C [17:18:15]CheckFolder [17:18:15]dirname=/storage/ofd_packets [17:18:15]CheckFolder done [17:18:15]ProducePacketName [17:18:15]name=ofd_packets/00119168 [17:18:15]NVStorageSaveData ofd_packets/00119168 [17:18:15]File name is /storage/ofd_packets/00119168 [17:18:15]Write 301 bytes [17:18:15]NVStorageSaveData done [17:18:15]OFDSenderStorePacket done [17:18:15]KKMCreateOFDPacket done [17:18:15]NVStorageSaveData kkm_last_timestamp [17:18:15]File name is /storage/kkm_last_timestamp [17:18:15]Write 4 bytes [17:18:15]NVStorageSaveData done [17:18:15]ExternCall_PrintAddStr [17:18:15]wPrintStart [17:18:15]Write to MH i2c: 01 00 00 8C 02 8E [17:18:15]Write i2c OK [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: 01 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: 01 07 00 [17:18:15]MH_I2C_Read... [17:18:15]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [17:18:15]RasterBufferAndPrint [17:18:15]line Счет N : (1)950085 [17:18:15]line ИНН: 02508201610067 [17:18:15]line Контрольно-Кассовый Чек [17:18:15]line ПРОДАЖА [17:18:15]line ТРК (МРК, ГНК) : 53 [17:18:15]line Товар: 2710124500 [17:18:15]line Аи-95-К-3 [17:18:15]line 13.480 * 74.20 [17:18:15]line = 1000.22 [17:18:15]line НДС 12% НСП 1% [17:18:15]line > о реализуемом товаре [17:18:15]line ОКРУГЛЕНИЕ: -0.22 [17:18:15]line ИТОГО: 1000.00 [17:18:15]line Внесено: 1000.00 [17:18:15]line СДАЧА: 0.00 [17:18:15]line НСП 1% : 8.85 [17:18:15]line НДС 12% : 106.22 [17:18:15]line Наличными: 1000.00 [17:18:15]line Безнал.: 0.00 [17:18:15]line Место: АЗС № 134 "Партнер Нефть" [17:18:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:18:15]line СНО: Общий режим [17:18:15]line Чек 220 30.07.2024 17:18 [17:18:15]line Смена: 435 ФФД: 1.0 [17:18:15]line ЗНМ: 0300000044 [17:18:15]line РНМ: 0000000000092660 [17:18:15]line Версия ККМ: 001 [17:18:15]line ФМ: 0000000000874939 [17:18:15]line ФД: 119168 [17:18:15]line ФПД: 161886636701082 [17:18:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171813&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119168&fm=161886636701082&tin=02508201610067®Number=0000000000092660&sum=100000 [17:18:15]OFD Sender: Processing packet 119168 [packets to send 86, broken 85] [17:18:15]ProducePacketName [17:18:15]name=ofd_packets/00119168 [17:18:15]OFD Sender: To server: pG, [17:18:15]CommunicateWithHost lk.salyk.kg:30040 [17:18:15]ConnectInit lk.salyk.kg [17:18:15]written 0, free lines is 4095 [17:18:16]Write to MH i2c: 01 00 00 B6 02 B8 [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: 01 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: 01 07 00 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 D4 0C 9F [17:18:16]RasterBufferAndPrint [17:18:16]line [17:18:16]line [17:18:16]line [17:18:16]line [17:18:16]line [17:18:16]written 0, free lines is 3290 [17:18:16]MH_Cut [17:18:16]Write to MH i2c: D1 01 00 BD 02 01 91 [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: D1 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: D1 01 00 [17:18:16]MH_I2C_Read... [17:18:16]Read from MH i2c: D1 01 00 BD 02 00 90 [17:18:16]Write to MH i2c: 01 00 00 BE 02 C0 [17:18:16]Write i2c OK [17:18:16]MH_I2C_Read... [17:18:17]*** Cut start [17:18:17]*** Partial cut [17:18:17]*** CUTSNS_PIN = 1 [17:18:17]*** CUTSNS_PIN = 0 [17:18:17]*** Brake cut motor [17:18:17]Read from MH i2c: 01 [17:18:17]MH_I2C_Read... [17:18:17]*** Stop cut motor [17:18:17]*** Cut end [17:18:17]Read from MH i2c: 01 07 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: 01 07 00 BE 02 00 00 00 00 00 FF 0F D5 [17:18:17]process_action close_receipt done [17:18:17]requested_data is exist [17:18:17]produce_requested_data [17:18:17]requested_item fm.sn is exist - process it [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 11 00 00 [17:18:17]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 17 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 96 [17:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:18:17]wFMCommunicate OK [17:18:17]requested_item fd.num is exist - process it [17:18:17]SAM_PROTO_GetFieldsCounters [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 13 00 00 [17:18:17]Write to MH i2c: E2 08 00 C0 02 80 13 00 00 00 00 00 00 3E [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 62 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 62 00 C0 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [17:18:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 80 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:17]wFMCommunicate OK [17:18:17]SAM_PROTO_GetFieldsCounters done [17:18:17]requested_item shift.num is exist - process it [17:18:17]requested_item shift.opened is exist - process it [17:18:17]req_shift_opened [17:18:17]FM_GetShiftState [17:18:17]SAM_PROTO_GetShiftState [17:18:17]wFMCommunicate request_size=4 [17:18:17]MH_SAM_APDU [17:18:17]CAPDU: 80 13 01 00 [17:18:17]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [17:18:17]Write i2c OK [17:18:17]MH_I2C_Read... [17:18:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:17]Read from MH i2c: E2 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 0E 00 [17:18:17]MH_I2C_Read... [17:18:17]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 0B [17:18:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:18:17]wFMCommunicate OK [17:18:17]SAM_PROTO_GetShiftState done [17:18:17]FM_GetShiftState done [17:18:17]req_shift_opened done [17:18:17]requested_item shift.open_date is exist - process it [17:18:17]req_shift_open_date [17:18:17]req_shift_open_date done [17:18:17]produce_requested_data done [17:18:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119168,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:18:17]process_action_free close_receipt [17:18:17]json_value_free [17:18:17]json_value_free done [17:18:17]process_json_proto returns [17:18:17]Send response to host [17:18:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119168,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:18:17]free response buf [17:18:17]execute_script done [17:18:17]execute_script returns [17:18:17]free content buf [17:18:17]Sock 7.Close socket [17:18:17]Sock 7.Thread stoped [17:18:23]Connected sock=11 [17: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 34 39 33 39 0F 01 00 00 52 21 07 01 B6 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 55 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D1 01 00 35 04 06 00 93 3C 2B 79 75 9A 54 67 A6 E2 29 66 C1 3C [17:18:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 76 7E 47 00 F4 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 80 D1 01 00 F4 03 04 00 E8 CD A8 66 B6 04 01 00 00 68 82 16 A8 EE 59 D0 F1 [17:18:26]CommunicateWithHost err = 0 [17:18:26]CheckOFDResponse [17:18:26]1017 (14) - 77093643461234 [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 7016747+1715343248=1722359995 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 BC 20 A9 66 90 0F 3E 66 2D [17:19:56]Current date/time: 30.07.2024 17:19 [17:19:56]FM_Init [17:19:56]wFMConnect [17:19:56]MH_SAM_On [17:19:56]Write to MH i2c: E0 00 00 08 00 E7 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_init finished! [17:19:56]*** atr: [17:19:56]*** 0F 3B D5 18 FF 81 91 FE [17:19:56]*** 1F C3 80 73 C8 21 10 0A [17:19:56]*** 00 00 00 00 00 00 00 00 [17:19:56]*** 00 00 00 00 00 00 00 00 [17:19:56]*** 00 00 00 00 00 00 00 00 [17:19:56]*** 00 00 00 00 00 00 00 00 [17:19:56]*** 00 00 00 00 00 00 00 00 [17:19:56]*** 00 00 00 00 00 00 00 00 [17:19:56]Read from MH i2c: E0 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E0 10 00 [17:19:56]MH_I2C_Read... [17:19:56]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:19:56]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [17:19:56]wFMCommunicate request_size=10 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [17:19:56]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [17:19:56]RAPDU: 90 00 [17:19:56]wFMCommunicate OK [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 11 00 00 [17:19:56]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 17 00 [17:19:56]MH_I2C_Read... [17:19:56]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 34 39 33 39 90 00 DF [17:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:56]wFMCommunicate OK [17:19:56]Detected FM SN is 0000000000874939 [17:19:56]Stored FM SN is 0000000000874939 [17:19:56]wFMCommunicate request_size=9 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 16 00 00 04 38 32 00 00 [17:19:56]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [17:19:56]RAPDU: 90 00 [17:19:56]wFMCommunicate OK [17:19:56]FM PIN OK [17:19:56]wFMCommunicate request_size=8 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 14 04 00 03 02 00 01 [17:19:56]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [17:19:56]RAPDU: 90 00 [17:19:56]wFMCommunicate OK [17:19:56]wFMCommunicate request_size=13 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [17:19:56]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:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [17:19:56]RAPDU: 90 00 [17:19:56]wFMCommunicate OK [17:19:56]wFMCommunicate request_size=4 [17:19:56]MH_SAM_APDU [17:19:56]CAPDU: 80 11 00 00 [17:19:56]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:56]Read from MH i2c: E2 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: E2 17 00 [17:19:56]MH_I2C_Read... [17:19:56]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 34 39 33 39 90 00 E3 [17:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:56]wFMCommunicate OK [17:19:56]DocumentArchiveInit [17:19:56]Start Httpd... [17:19:56]Httpd thread 3067125092 created [17:19:56]Write to MH i2c: 01 00 00 0F 00 0F [17:19:56]Write i2c OK [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: 01 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: 01 07 00 [17:19:56]MH_I2C_Read... [17:19:56]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [17:19:56]MH Int Process started [17:19:56]Allocated Socket 8 [17:19:56]Bind OK [17:19:56]Listen OK [17:19:56]httpd running on port 8080 [17:19:56]Waiting for new connection... [17:19:56]OFD Sender: Processing packet 119169 [packets to send 86, broken 85] [17:19:56]ProducePacketName [17:19:56]name=ofd_packets/00119169 [17:19:56]OFD Sender: To server: pG, [17:19:56]CommunicateWithHost lk.salyk.kg:30040 [17:19:56]ConnectInit lk.salyk.kg [17:19:58]Connected sock=6 [17:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 72 5B 07 01 BC 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DD 00 00 00 F4 03 04 00 65 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 D1 01 00 35 04 06 00 1F 57 D1 A0 27 89 CC 82 A2 7B D1 A1 31 1A [17:19:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4C EE 47 00 12 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 81 D1 01 00 F4 03 04 00 47 CE A8 66 B6 04 01 00 00 ED 11 6E BE 17 4F 42 B0 [17:19:58]CommunicateWithHost err = 0 [17:19:58]CheckOFDResponse [17:19:58]1017 (14) - 77093643461234 [17:19:58]1041 (16) - 0000000000874939 [17:19:58]1040 (4) - 119169 [17:19:58]1012 (4) - 30.07.2024 11:28 [17:19:58]1206 (1) - 0 [17:19:58]OFD Sender: Remove packet 119169 [17:19:58]ProducePacketName [17:19:58]name=ofd_packets/00119169 [17:19:58]NVStorageDeleteData [17:19:59]OFD Sender: No OFD packet to send [17:19:59]accept exits with 9 [17:19:59]New connection [17:19:59]New thread 3066838372 created [17:19:59]Waiting for new connection... [17:19:59] Sock 9.Parse request [17:19:59]Sock 9.Check first char [17:19:59]Sock 9.First char is OK [17:19:59]request: POST /json_proto HTTP/1.0 [17:19:59]Method: POST [17:19:59]URL: /json_proto [17:19:59]Method is POST - this is cgi request [17:19:59]url: /json_proto [17:19:59]query_string will be loaded in cgi processing [17:19:59]execute_cgi json_proto POST (null) [17:19:59]execute_cgi path=json_proto method=POST [17:19:59]POST find Content-Length [17:19:59]Host: 172.17.45.7:8080 [17:19:59]Content-Length: 215 [17:19:59]Content-Type: application/json [17:19:59] [17:19:59]POST finish read [17:19:59]Found Content-Length = 215 [17:19:59]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:19:59]execute_script... [17:19:59]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:19:59]POST & json_proto [17:19:59]process_json_proto [17:19:59]json parsed OK: [17:19:59]protocol is kg_v1.0 [17:19:59]action value=get_value [17:19:59]process_action get_value [17:19:59]cmd_get_value [17:19:59]process_action get_value done [17:19:59]requested_data is exist [17:19:59]produce_requested_data [17:19:59]requested_item kkm.sn is exist - process it [17:19:59]requested_item kkm.ver is exist - process it [17:19:59]requested_item fm.sn is exist - process it [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 11 00 00 [17:19:59]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 17 00 [17:19:59]MH_I2C_Read... [17:19:59]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 34 39 33 39 90 00 E5 [17:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:19:59]wFMCommunicate OK [17:19:59]requested_item fd.num is exist - process it [17:19:59]SAM_PROTO_GetFieldsCounters [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 00 00 [17:19:59]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 62 00 [17:19:59]MH_I2C_Read... [17:19:59]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:19:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetFieldsCounters done [17:19:59]requested_item shift.num is exist - process it [17:19:59]requested_item shift.opened is exist - process it [17:19:59]req_shift_opened [17:19:59]FM_GetShiftState [17:19:59]SAM_PROTO_GetShiftState [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 01 00 [17:19:59]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 5A [17:19:59]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetShiftState done [17:19:59]FM_GetShiftState done [17:19:59]req_shift_opened done [17:19:59]requested_item shift.open_date is exist - process it [17:19:59]req_shift_open_date [17:19:59]req_shift_open_date done [17:19:59]produce_requested_data done [17:19:59]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119169,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:19:59]process_action_free get_value [17:19:59]json_value_free [17:19:59]json_value_free done [17:19:59]process_json_proto returns [17:19:59]Send response to host [17:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119169,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:19:59]free response buf [17:19:59]execute_script done [17:19:59]execute_script returns [17:19:59]free content buf [17:19:59]Sock 9.Close socket [17:19:59]Sock 9.Thread stoped [17:19:59]accept exits with 6 [17:19:59]New connection [17:19:59]New thread 3066695012 created [17:19:59]Thread 3066838372 joined [17:19:59]Waiting for new connection... [17:19:59] Sock 6.Parse request [17:19:59]Sock 6.Check first char [17:19:59]Sock 6.First char is OK [17:19:59]request: POST /json_proto HTTP/1.0 [17:19:59]Method: POST [17:19:59]URL: /json_proto [17:19:59]Method is POST - this is cgi request [17:19:59]url: /json_proto [17:19:59]query_string will be loaded in cgi processing [17:19:59]execute_cgi json_proto POST (null) [17:19:59]execute_cgi path=json_proto method=POST [17:19:59]POST find Content-Length [17:19:59]Host: 172.17.45.7:8080 [17:19:59]Content-Length: 331 [17:19:59]Content-Type: application/json [17:19:59] [17:19:59]POST finish read [17:19:59]Found Content-Length = 331 [17:19: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" ] } } [17:19:59]execute_script... [17:19: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" ] } } [17:19:59]POST & json_proto [17:19:59]process_json_proto [17:19:59]json parsed OK: [17:19:59]protocol is kg_v1.0 [17:19:59]action value=get_value [17:19:59]process_action get_value [17:19:59]cmd_get_value [17:19:59]process_action get_value done [17:19:59]requested_data is exist [17:19:59]produce_requested_data [17:19:59]requested_item fm.sale.total is exist - process it [17:19:59]SAM_PROTO_GetFMData [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 03 00 [17:19:59]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 1B CE 01 00 69 04 A3 00 6F 04 04 00 7F C0 01 00 B1 04 05 00 40 A4 11 7A 03 70 04 05 00 F0 8C EA A9 02 72 04 04 00 50 17 27 D0 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 18 8A 8B 5E 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 D5 D4 E0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9C 0D 00 00 B1 04 04 00 88 29 54 3B 70 04 04 00 88 29 54 3B 72 04 00 00 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 A4 17 4D 06 EF 03 09 90 00 13 [17:20:00]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1B CE 01 00 69 04 A3 00 6F 04 04 00 7F C0 01 00 B1 04 05 00 40 A4 11 7A 03 70 04 05 00 F0 8C EA A9 02 72 04 04 00 50 17 27 D0 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 18 8A 8B 5E 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 D5 D4 E0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9C 0D 00 00 B1 04 04 00 88 29 54 3B 70 04 04 00 88 29 54 3B 72 04 00 00 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 A4 17 4D 06 EF 03 09 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 17 00 00 [17:20:00]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C0 6B 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FB [17:20:00]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C0 6B 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 17 00 00 [17:20:00]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [17:20:00]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 17 00 00 [17:20:00]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 FD 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [17:20:01]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:20:01]wFMCommunicate OK [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 17 00 00 [17:20:01]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 E2 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [17:20:01]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:20:01]wFMCommunicate OK [17:20:01]SAM_PROTO_GetFMData done [17:20:01]requested_item fm.sale_refund.total is exist - process it [17:20:01]requested_item fm.buy.total is exist - process it [17:20:01]requested_item shift.sale.total is exist - process it [17:20:01]SAM_PROTO_GetShiftData [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 13 02 00 [17:20:01]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:20:01]Read from MH i2c: E2 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 FD 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: E2 FD 00 18 00 00 BC 04 AA 04 B8 04 6E 04 04 00 DD 00 00 00 69 04 9E 00 6F 04 04 00 D4 00 00 00 B1 04 04 00 30 3C 0A 02 70 04 03 00 D8 87 D1 72 04 04 00 58 B4 38 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 52 78 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 56 9F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 B0 3B 14 70 04 03 00 B0 3B 14 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 2D 26 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 9E [17:20:01]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DD 00 00 00 69 04 9E 00 6F 04 04 00 D4 00 00 00 B1 04 04 00 30 3C 0A 02 70 04 03 00 D8 87 D1 72 04 04 00 58 B4 38 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 52 78 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 56 9F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 B0 3B 14 70 04 03 00 B0 3B 14 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 2D 26 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [17:20:01]wFMCommunicate OK [17:20:01]wFMCommunicate request_size=4 [17:20:01]MH_SAM_APDU [17:20:01]CAPDU: 80 17 00 00 [17:20:01]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 FD 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D9 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 49 [17:20:02]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D9 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 17 00 00 [17:20:02]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 FD 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 FD 00 1A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 C3 [17:20:02]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 17 00 00 [17:20:02]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 FD 00 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 1C [17:20:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [17:20:02]wFMCommunicate OK [17:20:02]wFMCommunicate request_size=4 [17:20:02]MH_SAM_APDU [17:20:02]CAPDU: 80 17 00 00 [17:20:02]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [17:20:02]Write i2c OK [17:20:02]MH_I2C_Read... [17:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [17:20:02]Read from MH i2c: E2 [17:20:02]MH_I2C_Read... [17:20:02]Read from MH i2c: E2 D9 00 [17:20:02]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 D9 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:20:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_GetShiftData done [17:20:03]requested_item shift.sale.total_cash is exist - process it [17:20:03]requested_item shift.sale_refund.total is exist - process it [17:20:03]requested_item shift.sale_refund.total_cash is exist - process it [17:20:03]requested_item shift.buy.total is exist - process it [17:20:03]requested_item shift.buy.total_cash is exist - process it [17:20:03]produce_requested_data done [17:20:03]produce_requested_data return {"fm.sale.total":149328784.00,"fm.sale_refund.total":9953714.00,"fm.buy.total":0.00,"shift.sale.total":342252.00,"shift.sale.total_cash":137318.00,"shift.sale_refund.total":13260.00,"shift.sale_refund.total_cash":13260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:20:03]process_action_free get_value [17:20:03]json_value_free [17:20:03]json_value_free done [17:20:03]process_json_proto returns [17:20:03]Send response to host [17:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149328784.00,"fm.sale_refund.total":9953714.00,"fm.buy.total":0.00,"shift.sale.total":342252.00,"shift.sale.total_cash":137318.00,"shift.sale_refund.total":13260.00,"shift.sale_refund.total_cash":13260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:20:03]free response buf [17:20:03]execute_script done [17:20:03]execute_script returns [17:20:03]free content buf [17:20:03]Sock 6.Close socket [17:20:03]Sock 6.Thread stoped [17:20:03]accept exits with 9 [17:20:03]New connection [17:20:03]New thread 3066838372 created [17:20:03]Thread 3066695012 joined [17:20:03]Waiting for new connection... [17:20:03] Sock 9.Parse request [17:20:03]Sock 9.Check first char [17:20:03]Sock 9.First char is OK [17:20:03]request: POST /json_proto HTTP/1.0 [17:20:03]Method: POST [17:20:03]URL: /json_proto [17:20:03]Method is POST - this is cgi request [17:20:03]url: /json_proto [17:20:03]query_string will be loaded in cgi processing [17:20:03]execute_cgi json_proto POST (null) [17:20:03]execute_cgi path=json_proto method=POST [17:20:03]POST find Content-Length [17:20:03]Host: 172.17.45.7:8080 [17:20:03]Content-Length: 144 [17:20:03]Content-Type: application/json [17:20:03] [17:20:03]POST finish read [17:20:03]Found Content-Length = 144 [17:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:20:03]execute_script... [17:20:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [17:20:03]POST & json_proto [17:20:03]process_json_proto [17:20:03]json parsed OK: [17:20:03]protocol is kg_v1.0 [17:20:03]action value=print_doc [17:20:03]process_action print_doc [17:20:03]ExternCall_PrintAddStr [17:20:03]wPrintStart [17:20:03]Write to MH i2c: 01 00 00 1D 00 1D [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [17:20:03]RasterBufferAndPrint [17:20:03]line Счет N : (1)950086 [17:20:03]line ИНН: 02508201610067 [17:20:03]line Контрольно-Кассовый Чек [17:20:03]line ПРОДАЖА [17:20:03]line ТРК (МРК, ГНК) : 31 [17:20:03]line Товар: 2710124130 [17:20:03]line Аи-92-К-4 [17:20:03]line 10.330 * 67.80 [17:20:03]line = 700.37 [17:20:03]line НДС 12% НСП 1% [17:20:03]line > о реализуемом товаре [17:20:03]line ОКРУГЛЕНИЕ: -0.37 [17:20:03]line ИТОГО: 700.00 [17:20:03]line Внесено: 700.00 [17:20:03]line СДАЧА: 0.00 [17:20:03]line НСП 1% : 6.20 [17:20:03]line НДС 12% : 74.38 [17:20:03]line Наличными: 700.00 [17:20:03]line Безнал.: 0.00 [17:20:03]line Место: АЗС № 134 "Партнер Нефть" [17:20:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:20:03]line СНО: Общий режим [17:20:03]line Чек 221 30.07.2024 17:18 [17:20:03]line Смена: 435 ФФД: 1.0 [17:20:03]line ЗНМ: 0300000044 [17:20:03]line РНМ: 0000000000092660 [17:20:03]line Версия ККМ: 001 [17:20:03]line ФМ: 0000000000874939 [17:20:03]line ФД: 119169 [17:20:03]line ФПД: 34462039549833 [17:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T171829&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119169&fm=34462039549833&tin=02508201610067®Number=0000000000092660&sum=70000 [17:20:03]written 0, free lines is 4095 [17:20:03]Write to MH i2c: 01 00 00 47 00 47 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 47 00 00 00 00 00 00 DF 0C 39 [17:20:03]RasterBufferAndPrint [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]line [17:20:03]written 0, free lines is 3313 [17:20:03]MH_Cut [17:20:03]Write to MH i2c: D1 01 00 4E 00 01 20 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 01 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: D1 01 00 4E 00 00 1F [17:20:03]Write to MH i2c: 01 00 00 4F 00 4F [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:04]*** Cut start [17:20:04]*** Partial cut [17:20:04]*** CUTSNS_PIN = 1 [17:20:04]*** CUTSNS_PIN = 0 [17:20:04]OFD Sender: No OFD packet to send [17:20:04]*** Brake cut motor [17:20:05]Read from MH i2c: 01 [17:20:05]MH_I2C_Read... [17:20:05]*** Stop cut motor [17:20:05]*** Cut end [17:20:05]Read from MH i2c: 01 07 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 FF 0F 64 [17:20:05]process_action print_doc done [17:20:05]requested_data is exist [17:20:05]produce_requested_data [17:20:05]produce_requested_data return (null) [17:20:05]process_action_free print_doc [17:20:05]json_value_free [17:20:05]json_value_free done [17:20:05]process_json_proto returns [17:20:05]Send response to host [17:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [17:20:05]free response buf [17:20:05]execute_script done [17:20:05]execute_script returns [17:20:05]free content buf [17:20:05]Sock 9.Close socket [17:20:05]Sock 9.Thread stoped [17:20:05]accept exits with 6 [17:20:05]New connection [17:20:05]New thread 3066695012 created [17:20:05]Thread 3066838372 joined [17:20:05]Waiting for new connection... [17:20:05] Sock 6.Parse request [17:20:05]Sock 6.Check first char [17:20:05]Sock 6.First char is OK [17:20:05]request: POST /json_proto HTTP/1.0 [17:20:05]Method: POST [17:20:05]URL: /json_proto [17:20:05]Method is POST - this is cgi request [17:20:05]url: /json_proto [17:20:05]query_string will be loaded in cgi processing [17:20:05]execute_cgi json_proto POST (null) [17:20:05]execute_cgi path=json_proto method=POST [17:20:05]POST find Content-Length [17:20:05]Host: 172.17.45.7:8080 [17:20:05]Content-Length: 215 [17:20:05]Content-Type: application/json [17:20:05] [17:20:05]POST finish read [17:20:05]Found Content-Length = 215 [17:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:05]execute_script... [17:20:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:05]POST & json_proto [17:20:05]process_json_proto [17:20:05]json parsed OK: [17:20:05]protocol is kg_v1.0 [17:20:05]action value=get_value [17:20:05]process_action get_value [17:20:05]cmd_get_value [17:20:05]process_action get_value done [17:20:05]requested_data is exist [17:20:05]produce_requested_data [17:20:05]requested_item kkm.sn is exist - process it [17:20:05]requested_item kkm.ver is exist - process it [17:20:05]requested_item fm.sn is exist - process it [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 11 00 00 [17:20:05]Write to MH i2c: E2 08 00 50 00 80 11 00 00 00 00 00 00 CA [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 17 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 17 00 50 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [17:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:20:05]wFMCommunicate OK [17:20:05]requested_item fd.num is exist - process it [17:20:05]SAM_PROTO_GetFieldsCounters [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 13 00 00 [17:20:05]Write to MH i2c: E2 08 00 51 00 80 13 00 00 00 00 00 00 CD [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 62 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 62 00 51 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [17:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 81 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:05]wFMCommunicate OK [17:20:05]SAM_PROTO_GetFieldsCounters done [17:20:05]requested_item shift.num is exist - process it [17:20:05]requested_item shift.opened is exist - process it [17:20:05]req_shift_opened [17:20:05]FM_GetShiftState [17:20:05]SAM_PROTO_GetShiftState [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 13 01 00 [17:20:05]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 0E 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 9A [17:20:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:20:05]wFMCommunicate OK [17:20:05]SAM_PROTO_GetShiftState done [17:20:05]FM_GetShiftState done [17:20:05]req_shift_opened done [17:20:05]requested_item shift.open_date is exist - process it [17:20:05]req_shift_open_date [17:20:05]req_shift_open_date done [17:20:05]produce_requested_data done [17:20:05]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119169,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:20:05]process_action_free get_value [17:20:05]json_value_free [17:20:05]json_value_free done [17:20:05]process_json_proto returns [17:20:05]Send response to host [17:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119169,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:20:05]free response buf [17:20:05]execute_script done [17:20:05]execute_script returns [17:20:05]free content buf [17:20:05]Sock 6.Close socket [17:20:05]Sock 6.Thread stoped [17:20:05]accept exits with 9 [17:20:05]New connection [17:20:05]New thread 3066838372 created [17:20:05]Thread 3066695012 joined [17:20:05]Waiting for new connection... [17:20:05] Sock 9.Parse request [17:20:05]Sock 9.Check first char [17:20:05]Sock 9.First char is OK [17:20:05]request: POST /json_proto HTTP/1.0 [17:20:05]Method: POST [17:20:05]URL: /json_proto [17:20:05]Method is POST - this is cgi request [17:20:05]url: /json_proto [17:20:05]query_string will be loaded in cgi processing [17:20:05]execute_cgi json_proto POST (null) [17:20:05]execute_cgi path=json_proto method=POST [17:20:05]POST find Content-Length [17:20:05]Host: 172.17.45.7:8080 [17:20:05]Content-Length: 331 [17:20:05]Content-Type: application/json [17:20:05] [17:20:05]POST finish read [17:20:05]Found Content-Length = 331 [17:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:20:05]execute_script... [17:20:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:20:05]POST & json_proto [17:20:05]process_json_proto [17:20:05]json parsed OK: [17:20:05]protocol is kg_v1.0 [17:20:05]action value=get_value [17:20:05]process_action get_value [17:20:05]cmd_get_value [17:20:05]process_action get_value done [17:20:05]requested_data is exist [17:20:05]produce_requested_data [17:20:05]requested_item fm.sale.total is exist - process it [17:20:05]SAM_PROTO_GetFMData [17:20:05]wFMCommunicate request_size=4 [17:20:05]MH_SAM_APDU [17:20:05]CAPDU: 80 13 03 00 [17:20:05]Write to MH i2c: E2 08 00 53 00 80 13 03 00 00 00 00 00 D2 [17:20:05]Write i2c OK [17:20:05]MH_I2C_Read... [17:20:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:20:05]Read from MH i2c: E2 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 FD 00 [17:20:05]MH_I2C_Read... [17:20:05]Read from MH i2c: E2 FD 00 53 00 00 C5 04 85 04 C1 04 6E 04 04 00 1B CE 01 00 69 04 A3 00 6F 04 04 00 7F C0 01 00 B1 04 05 00 40 A4 11 7A 03 70 04 05 00 F0 8C EA A9 02 72 04 04 00 50 17 27 D0 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 18 8A 8B 5E 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 D5 D4 E0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9C 0D 00 00 B1 04 04 00 88 29 54 3B 70 04 04 00 88 29 54 3B 72 04 00 00 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 A4 17 4D 06 EF 03 09 90 00 53 [17:20:05]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 1B CE 01 00 69 04 A3 00 6F 04 04 00 7F C0 01 00 B1 04 05 00 40 A4 11 7A 03 70 04 05 00 F0 8C EA A9 02 72 04 04 00 50 17 27 D0 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 18 8A 8B 5E 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 D5 D4 E0 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9C 0D 00 00 B1 04 04 00 88 29 54 3B 70 04 04 00 88 29 54 3B 72 04 00 00 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 A4 17 4D 06 EF 03 09 90 00 [17:20:06]wFMCommunicate OK [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 17 00 00 [17:20:06]Write to MH i2c: E2 08 00 54 00 80 17 00 00 00 00 00 00 D4 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 FD 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 FD 00 54 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C0 6B 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 3B [17:20:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C0 6B 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [17:20:06]wFMCommunicate OK [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 17 00 00 [17:20:06]Write to MH i2c: E2 08 00 55 00 80 17 00 00 00 00 00 00 D5 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:06]Read from MH i2c: E2 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 FD 00 [17:20:06]MH_I2C_Read... [17:20:06]Read from MH i2c: E2 FD 00 55 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 E7 [17:20:06]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [17:20:06]wFMCommunicate OK [17:20:06]wFMCommunicate request_size=4 [17:20:06]MH_SAM_APDU [17:20:06]CAPDU: 80 17 00 00 [17:20:06]Write to MH i2c: E2 08 00 56 00 80 17 00 00 00 00 00 00 D6 [17:20:06]Write i2c OK [17:20:06]MH_I2C_Read... [17:20:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:07]Read from MH i2c: E2 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: E2 FD 00 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: E2 FD 00 56 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 62 [17:20:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [17:20:07]wFMCommunicate OK [17:20:07]wFMCommunicate request_size=4 [17:20:07]MH_SAM_APDU [17:20:07]CAPDU: 80 17 00 00 [17:20:07]Write to MH i2c: E2 08 00 57 00 80 17 00 00 00 00 00 00 D7 [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [17:20:07]Read from MH i2c: E2 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: E2 E2 00 [17:20:07]MH_I2C_Read... [17:20:07]Read from MH i2c: E2 E2 00 57 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B5 [17:20:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:20:07]wFMCommunicate OK [17:20:07]SAM_PROTO_GetFMData done [17:20:07]requested_item fm.sale_refund.total is exist - process it [17:20:07]requested_item fm.buy.total is exist - process it [17:20:07]requested_item shift.sale.total is exist - process it [17:20:07]SAM_PROTO_GetShiftData [17:20:07]wFMCommunicate request_size=4 [17:20:07]MH_SAM_APDU [17:20:07]CAPDU: 80 13 02 00 [17:20:07]Write to MH i2c: E2 08 00 58 00 80 13 02 00 00 00 00 00 D6 [17:20:07]Write i2c OK [17:20:07]MH_I2C_Read... [17:20:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:20:08]Read from MH i2c: E2 [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: E2 FD 00 [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: E2 FD 00 58 00 00 BC 04 AA 04 B8 04 6E 04 04 00 DD 00 00 00 69 04 9E 00 6F 04 04 00 D4 00 00 00 B1 04 04 00 30 3C 0A 02 70 04 03 00 D8 87 D1 72 04 04 00 58 B4 38 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 52 78 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 56 9F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 B0 3B 14 70 04 03 00 B0 3B 14 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 2D 26 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 DE [17:20:08]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 DD 00 00 00 69 04 9E 00 6F 04 04 00 D4 00 00 00 B1 04 04 00 30 3C 0A 02 70 04 03 00 D8 87 D1 72 04 04 00 58 B4 38 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 52 78 37 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 56 9F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 09 00 00 00 B1 04 03 00 B0 3B 14 70 04 03 00 B0 3B 14 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 2D 26 02 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [17:20:08]wFMCommunicate OK [17:20:08]wFMCommunicate request_size=4 [17:20:08]MH_SAM_APDU [17:20:08]CAPDU: 80 17 00 00 [17:20:08]Write to MH i2c: E2 08 00 59 00 80 17 00 00 00 00 00 00 D9 [17:20:08]Write i2c OK [17:20:08]MH_I2C_Read... [17:20:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:08]Read from MH i2c: E2 [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: E2 FD 00 [17:20:08]MH_I2C_Read... [17:20:08]Read from MH i2c: E2 FD 00 59 00 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D9 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 89 [17:20:08]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 D9 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [17:20:08]wFMCommunicate OK [17:20:08]wFMCommunicate request_size=4 [17:20:08]MH_SAM_APDU [17:20:08]CAPDU: 80 17 00 00 [17:20:08]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [17:20:08]Write i2c OK [17:20:08]MH_I2C_Read... [17:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 FD 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 FD 00 5A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 03 [17:20:09]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [17:20:09]wFMCommunicate OK [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 17 00 00 [17:20:09]Write to MH i2c: E2 08 00 5B 00 80 17 00 00 00 00 00 00 DB [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:09]OFD Sender: No OFD packet to send [17:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:20:09]Read from MH i2c: E2 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 FD 00 [17:20:09]MH_I2C_Read... [17:20:09]Read from MH i2c: E2 FD 00 5B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 5C [17:20:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [17:20:09]wFMCommunicate OK [17:20:09]wFMCommunicate request_size=4 [17:20:09]MH_SAM_APDU [17:20:09]CAPDU: 80 17 00 00 [17:20:09]Write to MH i2c: E2 08 00 5C 00 80 17 00 00 00 00 00 00 DC [17:20:09]Write i2c OK [17:20:09]MH_I2C_Read... [17:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [17:20:10]Read from MH i2c: E2 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: E2 D9 00 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: E2 D9 00 5C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BB [17:20:10]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:20:10]wFMCommunicate OK [17:20:10]SAM_PROTO_GetShiftData done [17:20:10]requested_item shift.sale.total_cash is exist - process it [17:20:10]requested_item shift.sale_refund.total is exist - process it [17:20:10]requested_item shift.sale_refund.total_cash is exist - process it [17:20:10]requested_item shift.buy.total is exist - process it [17:20:10]requested_item shift.buy.total_cash is exist - process it [17:20:10]produce_requested_data done [17:20:10]produce_requested_data return {"fm.sale.total":149328784.00,"fm.sale_refund.total":9953714.00,"fm.buy.total":0.00,"shift.sale.total":342252.00,"shift.sale.total_cash":137318.00,"shift.sale_refund.total":13260.00,"shift.sale_refund.total_cash":13260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [17:20:10]process_action_free get_value [17:20:10]json_value_free [17:20:10]json_value_free done [17:20:10]process_json_proto returns [17:20:10]Send response to host [17:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149328784.00,"fm.sale_refund.total":9953714.00,"fm.buy.total":0.00,"shift.sale.total":342252.00,"shift.sale.total_cash":137318.00,"shift.sale_refund.total":13260.00,"shift.sale_refund.total_cash":13260.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [17:20:10]free response buf [17:20:10]execute_script done [17:20:10]execute_script returns [17:20:10]free content buf [17:20:10]Sock 9.Close socket [17:20:10]Sock 9.Thread stoped [17:20:10]accept exits with 6 [17:20:10]New connection [17:20:10]New thread 3066695012 created [17:20:10]Thread 3066838372 joined [17:20:10]Waiting for new connection... [17:20:10] Sock 6.Parse request [17:20:10]Sock 6.Check first char [17:20:10]Sock 6.First char is OK [17:20:10]request: POST /json_proto HTTP/1.0 [17:20:10]Method: POST [17:20:10]URL: /json_proto [17:20:10]Method is POST - this is cgi request [17:20:10]url: /json_proto [17:20:10]query_string will be loaded in cgi processing [17:20:10]execute_cgi json_proto POST (null) [17:20:10]execute_cgi path=json_proto method=POST [17:20:10]POST find Content-Length [17:20:10]Host: 172.17.45.7:8080 [17:20:10]Content-Length: 735 [17:20:10]Content-Type: application/json [17:20:10] [17:20:10]POST finish read [17:20:10]Found Content-Length = 735 [17:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119169, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:10]execute_script... [17:20:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 119169, "base_FM": "0000000000874939", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:10]POST & json_proto [17:20:10]process_json_proto [17:20:10]json parsed OK: [17:20:10]protocol is kg_v1.0 [17:20:10]action value=close_receipt [17:20:10]process_action close_receipt [17:20:10]cmd_close_receipt [17:20:10]MH_GetDate [17:20:10]Write to MH i2c: F0 00 00 5D 00 4C [17:20:10]Write i2c OK [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: F0 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: F0 09 00 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: F0 09 00 5D 00 00 CB 20 A9 66 90 0F 3E 66 92 [17:20:10]GetLastDocTimeStamp 1722359909 [17:20:10]current date 1722360011 [17:20:10]FM_GetShiftState [17:20:10]SAM_PROTO_GetShiftState [17:20:10]wFMCommunicate request_size=4 [17:20:10]MH_SAM_APDU [17:20:10]CAPDU: 80 13 01 00 [17:20:10]Write to MH i2c: E2 08 00 5E 00 80 13 01 00 00 00 00 00 DB [17:20:10]Write i2c OK [17:20:10]MH_I2C_Read... [17:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:10]Read from MH i2c: E2 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: E2 0E 00 [17:20:10]MH_I2C_Read... [17:20:10]Read from MH i2c: E2 0E 00 5E 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 A6 [17:20:10]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:20:10]wFMCommunicate OK [17:20:10]SAM_PROTO_GetShiftState done [17:20:10]FM_GetShiftState done [17:20:10]opened in 1722298242 [17:20:10]opened+sec_in_day 1722384642 [17:20:10]quantity*price = 70037 [17:20:10]sum+1 = 70038 [17:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 222 30.07.2024 17:20 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФД осн.: 119169 ФМ осн.: 0000000000874939 ФМ: 0000000000874939 ФД: 119170 ФПД: 74247353284624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172011&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119170&fm=74247353284624&tin=02508201610067®Number=0000000000092660&sum=70000 [17:20:12]StoreToDocumentArchive [17:20:12]shift 435 fd 119170 [17:20:12]save to /storage/0435/doc_00119170 [17:20:12]save last doc name /storage/0435/doc_00119170 to /storage/kkm_last_doc_name [17:20:12]save OK [17:20:12]Clear old archive folders... [17:20:12]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:20:12]tlvbuf is 016179A0 [17:20:12]SAM_PROTO_ClearQueue [17:20:12]wFMCommunicate request_size=4 [17:20:12]MH_SAM_APDU [17:20:12]CAPDU: 80 09 00 00 [17:20:12]Write to MH i2c: E2 08 00 6D 00 80 09 00 00 00 00 00 00 DF [17:20:12]Write i2c OK [17:20:12]MH_I2C_Read... [17:20:12]Read from MH i2c: E2 [17:20:12]MH_I2C_Read... [17:20:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:12]Read from MH i2c: E2 03 00 [17:20:12]MH_I2C_Read... [17:20:12]Read from MH i2c: E2 03 00 6D 00 00 90 00 E1 [17:20:12]RAPDU: 90 00 [17:20:12]wFMCommunicate OK [17:20:12]SAM_PROTO_ClearQueue done [17:20:12]KKMCreateOFDPacket [17:20:12]OFDProtocolAddRootSTLVToBuf [17:20:12]FM_MakeSignedData [17:20:12]FM_MakeSignedData [17:20:12]SAM_PROTO_SignData [17:20:12]wFMCommunicate request_size=4 [17:20:12]MH_SAM_APDU [17:20:12]CAPDU: 80 0D 01 02 [17:20:12]Write to MH i2c: E2 08 00 6E 00 80 0D 01 02 00 00 00 00 E7 [17:20:12]Write i2c OK [17:20:12]MH_I2C_Read... [17:20:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:12]Read from MH i2c: E2 [17:20:12]MH_I2C_Read... [17:20:12]Read from MH i2c: E2 03 00 [17:20:12]MH_I2C_Read... [17:20:12]Read from MH i2c: E2 03 00 6E 00 00 90 00 E2 [17:20:12]RAPDU: 90 00 [17:20:12]wFMCommunicate OK [17:20:12]wFMCommunicate request_size=255 [17:20:12]MH_SAM_APDU [17:20:12]CAPDU: 80 0D 02 02 FA 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DE 00 00 00 F4 03 04 00 CB 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 81 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 [17:20:12]Write to MH i2c: E2 02 01 6F 00 80 0D 02 02 FA 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DE 00 00 00 F4 03 04 00 CB 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 81 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 00 00 93 [17:20:13]Write i2c OK [17:20:13]MH_I2C_Read... [17:20:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:13]Read from MH i2c: E2 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 03 00 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 03 00 6F 00 00 90 00 E3 [17:20:13]RAPDU: 90 00 [17:20:13]wFMCommunicate OK [17:20:13]wFMCommunicate request_size=38 [17:20:13]MH_SAM_APDU [17:20:13]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D1 01 00 35 04 06 00 43 87 0F 1E 38 10 [17:20:13]Write to MH i2c: E2 29 00 70 00 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D1 01 00 35 04 06 00 43 87 0F 1E 38 10 00 00 0E [17:20:13]Write i2c OK [17:20:13]MH_I2C_Read... [17:20:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:13]Read from MH i2c: E2 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 03 00 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 03 00 70 00 00 90 00 E4 [17:20:13]RAPDU: 90 00 [17:20:13]wFMCommunicate OK [17:20:13]wFMCommunicate request_size=4 [17:20:13]MH_SAM_APDU [17:20:13]CAPDU: 80 0D 03 02 [17:20:13]Write to MH i2c: E2 08 00 71 00 80 0D 03 02 00 00 00 00 EC [17:20:13]Write i2c OK [17:20:13]MH_I2C_Read... [17:20:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:13]Read from MH i2c: E2 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 0B 00 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 0B 00 71 00 00 03 F7 F7 39 E7 5B 77 A0 90 00 70 [17:20:13]RAPDU: 03 F7 F7 39 E7 5B 77 A0 90 00 [17:20:13]wFMCommunicate OK [17:20:13]SAM_PROTO_SignData done [17:20:13]FM_MakeSignedData done [17:20:13]CreateOFDProtocolMessage [17:20:13]wFMCommunicate request_size=4 [17:20:13]MH_SAM_APDU [17:20:13]CAPDU: 80 11 00 00 [17:20:13]Write to MH i2c: E2 08 00 72 00 80 11 00 00 00 00 00 00 EC [17:20:13]Write i2c OK [17:20:13]MH_I2C_Read... [17:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:13]Read from MH i2c: E2 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: E2 17 00 [17:20:13]MH_I2C_Read... [17:20:13]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 34 39 33 39 90 00 47 [17:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:20:13]wFMCommunicate OK [17:20:13]CreateOFDProtocolMessage done [17:20:13]OFDSenderStorePacket 119170 [17:20:13]StoreOFDPacket docnum=119170 [17:20:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 38 AA 23 01 D4 98 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DE 00 00 00 F4 03 04 00 CB 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 81 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D1 01 00 35 04 06 00 43 87 0F 1E 38 10 03 F7 F7 39 E7 5B 77 A0 [17:20:13]CheckFolder [17:20:13]dirname=/storage/ofd_packets [17:20:13]CheckFolder done [17:20:13]ProducePacketName [17:20:13]name=ofd_packets/00119170 [17:20:13]NVStorageSaveData ofd_packets/00119170 [17:20:13]File name is /storage/ofd_packets/00119170 [17:20:13]Write 329 bytes [17:20:13]NVStorageSaveData done [17:20:13]OFDSenderStorePacket done [17:20:13]KKMCreateOFDPacket done [17:20:13]NVStorageSaveData kkm_last_timestamp [17:20:13]File name is /storage/kkm_last_timestamp [17:20:13]Write 4 bytes [17:20:13]NVStorageSaveData done [17:20:13]ExternCall_PrintAddStr [17:20:13]wPrintStart [17:20:13]Write to MH i2c: 01 00 00 73 00 73 [17:20:13]Write i2c OK [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: 01 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: 01 07 00 [17:20:13]MH_I2C_Read... [17:20:13]Read from MH i2c: 01 07 00 73 00 00 00 00 00 00 FF 0F 88 [17:20:13]RasterBufferAndPrint [17:20:13]line Счет N : (1)950086 [17:20:13]line ИНН: 02508201610067 [17:20:13]line Контрольно-Кассовый Чек [17:20:13]line ВОЗВРАТ ПРОДАЖИ [17:20:13]line ТРК (МРК, ГНК) : 31 [17:20:13]line Товар: 2710124130 [17:20:13]line Аи-92-К-4 [17:20:13]line 10.330 * 67.80 [17:20:13]line = 700.37 [17:20:13]line НДС 12% НСП 1% [17:20:13]line > о реализуемом товаре [17:20:13]line ОКРУГЛЕНИЕ: -0.37 [17:20:13]line ИТОГО: 700.00 [17:20:13]line НСП 1% : 6.20 [17:20:13]line НДС 12% : 74.38 [17:20:13]line Наличными: 700.00 [17:20:13]line Безнал.: 0.00 [17:20:13]line Место: АЗС № 134 "Партнер Нефть" [17:20:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:20:13]line СНО: Общий режим [17:20:13]line Чек 222 30.07.2024 17:20 [17:20:13]line Смена: 435 ФФД: 1.0 [17:20:13]line ЗНМ: 0300000044 [17:20:13]line РНМ: 0000000000092660 [17:20:13]line Версия ККМ: 001 [17:20:13]line ФД осн.: 119169 [17:20:13]line ФМ осн.: 0000000000874939 [17:20:13]line ФМ: 0000000000874939 [17:20:13]line ФД: 119170 [17:20:13]line ФПД: 74247353284624 [17:20:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172011&type=2&operation_type=1&fn_number=0000000000874939&fd_number=119170&fm=74247353284624&tin=02508201610067®Number=0000000000092660&sum=70000 [17:20:13]written 0, free lines is 4095 [17:20:13]OFD Sender: Processing packet 119170 [packets to send 86, broken 85] [17:20:13]ProducePacketName [17:20:13]name=ofd_packets/00119170 [17:20:13]OFD Sender: To server: pG, [17:20:13]CommunicateWithHost lk.salyk.kg:30040 [17:20:13]ConnectInit lk.salyk.kg [17:20:14]Write to MH i2c: 01 00 00 9D 00 9D [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: 01 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: 01 07 00 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: 01 07 00 9D 00 00 00 00 00 00 F3 0C A3 [17:20:14]RasterBufferAndPrint [17:20:14]line [17:20:14]line [17:20:14]line [17:20:14]line [17:20:14]line [17:20:14]written 0, free lines is 3350 [17:20:14]MH_Cut [17:20:14]Write to MH i2c: D1 01 00 A4 00 01 76 [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: D1 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: D1 01 00 [17:20:14]MH_I2C_Read... [17:20:14]Read from MH i2c: D1 01 00 A4 00 00 75 [17:20:14]Write to MH i2c: 01 00 00 A5 00 A5 [17:20:14]Write i2c OK [17:20:14]MH_I2C_Read... [17:20:14]Connected sock=11 [17:20:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 2B 01 00 00 38 AA 23 01 D4 98 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DE 00 00 00 F4 03 04 00 CB 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 27 04 04 00 81 D1 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 82 D1 01 00 35 04 06 00 43 87 0F 1E 38 10 03 F7 F7 39 E7 5B 77 A0 [17:20:14]*** Cut start [17:20:14]*** Partial cut [17:20:14]*** CUTSNS_PIN = 1 [17:20:14]*** CUTSNS_PIN = 0 [17:20:15]*** Brake cut motor [17:20:15]Read from MH i2c: 01 [17:20:15]MH_I2C_Read... [17:20:15]*** Stop cut motor [17:20:15]*** Cut end [17:20:15]Read from MH i2c: 01 07 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 FF 0F BA [17:20:15]process_action close_receipt done [17:20:15]requested_data is exist [17:20:15]produce_requested_data [17:20:15]requested_item fm.sn is exist - process it [17:20:15]wFMCommunicate request_size=4 [17:20:15]MH_SAM_APDU [17:20:15]CAPDU: 80 11 00 00 [17:20:15]Write to MH i2c: E2 08 00 A6 00 80 11 00 00 00 00 00 00 20 [17:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 78 98 47 00 91 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:15]34 Write i2c OK [17:20:15]33 MH_I2C_Read... [17:20:15]34 Read from MH i2c: 36 E2 31 [17:20:15]32 MH_I2C_Read... [17:20:15]33 Read from MH i2c: 34 E2 17 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 17 00 A6 00 00 11 04 10 00 30 11 30 04 30 10 30 00 30 30 30 30 30 30 30 30 30 30 30 30 38 30 37 30 34 30 39 30 33 38 37 39 34 90 39 00 33 7B [17:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 39 34 10 39 04 33 04 39 00 90 82 D1 00 01 [17:20:15]00 wFMCommunicate OK [17:20:15]F4 requested_item fd.num is exist - process it [17:20:15]03 SAM_PROTO_GetFieldsCounters [17:20:15]04 wFMCommunicate request_size=4 [17:20:15]00 MH_SAM_APDU [17:20:15]CAPDU: 58 80 CE 13 A8 00 66 00 B6 [17:20:15]04 Write to MH i2c: 01 E2 00 08 00 00 DE A7 C0 00 A8 80 82 13 02 00 28 00 26 00 B5 00 [17:20:15]00 CommunicateWithHost err = 0 [17:20:15]00 CheckOFDResponse [17:20:15]23 1017 (14) - 77093643461234 [17:20:15] [17:20:15]1041 (16) - 0000000000874939 [17:20:15]1040 (4) - 119170 [17:20:15]Write i2c OK [17:20:15]1012 (4) - 30.07.2024 11:28 [17:20:15]MH_I2C_Read... [17:20:15]1206 (1) - 0 [17:20:15]OFD Sender: Remove packet 119170 [17:20:15]ProducePacketName [17:20:15]name=ofd_packets/00119170 [17:20:15]NVStorageDeleteData [17:20:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:15]Read from MH i2c: E2 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 62 00 [17:20:15]MH_I2C_Read... [17:20:15]Read from MH i2c: E2 62 00 A7 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [17:20:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 82 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:16]wFMCommunicate OK [17:20:16]SAM_PROTO_GetFieldsCounters done [17:20:16]requested_item shift.num is exist - process it [17:20:16]requested_item shift.opened is exist - process it [17:20:16]req_shift_opened [17:20:16]FM_GetShiftState [17:20:16]SAM_PROTO_GetShiftState [17:20:16]wFMCommunicate request_size=4 [17:20:16]MH_SAM_APDU [17:20:16]CAPDU: 80 13 01 00 [17:20:16]Write to MH i2c: E2 08 00 A8 00 80 13 01 00 00 00 00 00 25 [17:20:16]Write i2c OK [17:20:16]MH_I2C_Read... [17:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:16]Read from MH i2c: E2 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 0E 00 [17:20:16]MH_I2C_Read... [17:20:16]Read from MH i2c: E2 0E 00 A8 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F0 [17:20:16]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:20:16]wFMCommunicate OK [17:20:16]SAM_PROTO_GetShiftState done [17:20:16]FM_GetShiftState done [17:20:16]req_shift_opened done [17:20:16]requested_item shift.open_date is exist - process it [17:20:16]req_shift_open_date [17:20:16]req_shift_open_date done [17:20:16]produce_requested_data done [17:20:16]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119170,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:20:16]process_action_free close_receipt [17:20:16]json_value_free [17:20:16]json_value_free done [17:20:16]process_json_proto returns [17:20:16]Send response to host [17:20:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119170,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:20:16]free response buf [17:20:16]execute_script done [17:20:16]execute_script returns [17:20:16]free content buf [17:20:16]Sock 6.Close socket [17:20:16]Sock 6.Thread stoped [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:33]accept exits with 9 [17:20:33]New connection [17:20:33]New thread 3066838372 created [17:20:33]Thread 3066695012 joined [17:20:33]Waiting for new connection... [17:20:33] Sock 9.Parse request [17:20:33]Sock 9.Check first char [17:20:33]Sock 9.First char is OK [17:20:33]request: POST /json_proto HTTP/1.0 [17:20:33]Method: POST [17:20:33]URL: /json_proto [17:20:33]Method is POST - this is cgi request [17:20:33]url: /json_proto [17:20:33]query_string will be loaded in cgi processing [17:20:33]execute_cgi json_proto POST (null) [17:20:33]execute_cgi path=json_proto method=POST [17:20:33]POST find Content-Length [17:20:33]Host: 172.17.45.7:8080 [17:20:33]Content-Length: 678 [17:20:33]Content-Type: application/json [17:20:33] [17:20:33]POST finish read [17:20:33]Found Content-Length = 678 [17:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:33]execute_script... [17:20:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:33]POST & json_proto [17:20:33]process_json_proto [17:20:33]json parsed OK: [17:20:33]protocol is kg_v1.0 [17:20:33]action value=close_receipt [17:20:33]process_action close_receipt [17:20:33]cmd_close_receipt [17:20:33]MH_GetDate [17:20:33]Write to MH i2c: F0 00 00 A9 00 98 [17:20:33]Write i2c OK [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: F0 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: F0 09 00 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: F0 09 00 A9 00 00 E2 20 A9 66 90 0F 3E 66 F5 [17:20:33]GetLastDocTimeStamp 1722360011 [17:20:33]current date 1722360034 [17:20:33]FM_GetShiftState [17:20:33]SAM_PROTO_GetShiftState [17:20:33]wFMCommunicate request_size=4 [17:20:33]MH_SAM_APDU [17:20:33]CAPDU: 80 13 01 00 [17:20:33]Write to MH i2c: E2 08 00 AA 00 80 13 01 00 00 00 00 00 27 [17:20:33]Write i2c OK [17:20:33]MH_I2C_Read... [17:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:33]Read from MH i2c: E2 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: E2 0E 00 [17:20:33]MH_I2C_Read... [17:20:33]Read from MH i2c: E2 0E 00 AA 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F2 [17:20:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:20:33]wFMCommunicate OK [17:20:33]SAM_PROTO_GetShiftState done [17:20:33]FM_GetShiftState done [17:20:33]opened in 1722298242 [17:20:33]opened+sec_in_day 1722384642 [17:20:33]quantity*price = 70037 [17:20:33]sum+1 = 70038 [17:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 223 30.07.2024 17:20 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119171 ФПД: 152961262772343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172034&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119171&fm=152961262772343&tin=02508201610067®Number=0000000000092660&sum=70000 [17:20:35]StoreToDocumentArchive [17:20:35]shift 435 fd 119171 [17:20:35]save to /storage/0435/doc_00119171 [17:20:35]save last doc name /storage/0435/doc_00119171 to /storage/kkm_last_doc_name [17:20:35]save OK [17:20:35]Clear old archive folders... [17:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:35]tlvbuf is 0169CA80 [17:20:35]SAM_PROTO_ClearQueue [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 09 00 00 [17:20:35]Write to MH i2c: E2 08 00 B7 00 80 09 00 00 00 00 00 00 29 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [17:20:35]RAPDU: 90 00 [17:20:35]wFMCommunicate OK [17:20:35]SAM_PROTO_ClearQueue done [17:20:35]KKMCreateOFDPacket [17:20:35]OFDProtocolAddRootSTLVToBuf [17:20:35]FM_MakeSignedData [17:20:35]FM_MakeSignedData [17:20:35]SAM_PROTO_SignData [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 0D 01 02 [17:20:35]Write to MH i2c: E2 08 00 B8 00 80 0D 01 02 00 00 00 00 31 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [17:20:35]RAPDU: 90 00 [17:20:35]wFMCommunicate OK [17:20:35]wFMCommunicate request_size=255 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DF 00 00 00 F4 03 04 00 E2 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D1 01 00 35 04 06 00 8B [17:20:35]Write to MH i2c: E2 02 01 B9 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DF 00 00 00 F4 03 04 00 E2 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D1 01 00 35 04 06 00 8B 00 00 20 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [17:20:35]RAPDU: 90 00 [17:20:35]wFMCommunicate OK [17:20:35]wFMCommunicate request_size=10 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 0D 02 02 05 1E 11 BB 60 77 [17:20:35]Write to MH i2c: E2 0D 00 BA 00 80 0D 02 02 05 00 1E 11 BB 60 77 00 00 FF [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [17:20:35]RAPDU: 90 00 [17:20:35]wFMCommunicate OK [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 0D 03 02 [17:20:35]Write to MH i2c: E2 08 00 BB 00 80 0D 03 02 00 00 00 00 36 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 0B 00 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 0B 00 BB 00 00 DB 1A 94 EC 6E 8C B3 2A 90 00 83 [17:20:35]RAPDU: DB 1A 94 EC 6E 8C B3 2A 90 00 [17:20:35]wFMCommunicate OK [17:20:35]SAM_PROTO_SignData done [17:20:35]FM_MakeSignedData done [17:20:35]CreateOFDProtocolMessage [17:20:35]wFMCommunicate request_size=4 [17:20:35]MH_SAM_APDU [17:20:35]CAPDU: 80 11 00 00 [17:20:35]Write to MH i2c: E2 08 00 BC 00 80 11 00 00 00 00 00 00 36 [17:20:35]Write i2c OK [17:20:35]MH_I2C_Read... [17:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:35]Read from MH i2c: E2 [17:20:35]MH_I2C_Read... [17:20:35]Read from MH i2c: E2 17 00 [17:20:35]MH_I2C_Read... [17:20:35]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 34 39 33 39 90 00 91 [17:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:20:36]wFMCommunicate OK [17:20:36]CreateOFDProtocolMessage done [17:20:36]OFDSenderStorePacket 119171 [17:20:36]StoreOFDPacket docnum=119171 [17:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 7F 07 01 1B 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 DF 00 00 00 F4 03 04 00 E2 20 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D1 01 00 35 04 06 00 8B 1E 11 BB 60 77 DB 1A 94 EC 6E 8C B3 2A [17:20:36]CheckFolder [17:20:36]dirname=/storage/ofd_packets [17:20:36]CheckFolder done [17:20:36]ProducePacketName [17:20:36]name=ofd_packets/00119171 [17:20:36]NVStorageSaveData ofd_packets/00119171 [17:20:36]File name is /storage/ofd_packets/00119171 [17:20:36]Write 301 bytes [17:20:36]NVStorageSaveData done [17:20:36]OFDSenderStorePacket done [17:20:36]KKMCreateOFDPacket done [17:20:36]NVStorageSaveData kkm_last_timestamp [17:20:36]File name is /storage/kkm_last_timestamp [17:20:36]Write 4 bytes [17:20:36]NVStorageSaveData done [17:20:36]ExternCall_PrintAddStr [17:20:36]wPrintStart [17:20:36]Write to MH i2c: 01 00 00 BD 00 BD [17:20:36]Write i2c OK [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: 01 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: 01 07 00 [17:20:36]MH_I2C_Read... [17:20:36]OFD Sender: Processing packet 119171 [packets to send 86, broken 85] [17:20:36]ProducePacketName [17:20:36]name=ofd_packets/00119171 [17:20:36]OFD Sender: To server: pG, [17:20:36]CommunicateWithHost lk.salyk.kg:30040 [17:20:36]ConnectInit lk.salyk.kg [17:20:36]Read from MH i2c: 01 07 00 BD 00 00 00 00 00 00 FF 0F D2 [17:20:36]RasterBufferAndPrint [17:20:36]line Счет N : (1)950089 [17:20:36]line ИНН: 02508201610067 [17:20:36]line Контрольно-Кассовый Чек [17:20:36]line ПРОДАЖА [17:20:36]line ТРК (МРК, ГНК) : 41 [17:20:36]line Товар: 2710124130 [17:20:36]line Аи-92-К-4 [17:20:36]line 10.330 * 67.80 [17:20:36]line = 700.37 [17:20:36]line НДС 12% НСП 1% [17:20:36]line > о реализуемом товаре [17:20:36]line ОКРУГЛЕНИЕ: -0.37 [17:20:36]line ИТОГО: 700.00 [17:20:36]line Внесено: 700.00 [17:20:36]line СДАЧА: 0.00 [17:20:36]line НСП 1% : 6.20 [17:20:36]line НДС 12% : 74.38 [17:20:36]line Наличными: 700.00 [17:20:36]line Безнал.: 0.00 [17:20:36]line Место: АЗС № 134 "Партнер Нефть" [17:20:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:20:36]line СНО: Общий режим [17:20:36]line Чек 223 30.07.2024 17:20 [17:20:36]line Смена: 435 ФФД: 1.0 [17:20:36]line ЗНМ: 0300000044 [17:20:36]line РНМ: 0000000000092660 [17:20:36]line Версия ККМ: 001 [17:20:36]line ФМ: 0000000000874939 [17:20:36]line ФД: 119171 [17:20:36]line ФПД: 152961262772343 [17:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172034&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119171&fm=152961262772343&tin=02508201610067®Number=0000000000092660&sum=70000 [17:20:36]written 0, free lines is 4095 [17:20:36]Write to MH i2c: 01 00 00 E7 00 E7 [17:20:36]Write i2c OK [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: 01 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: 01 07 00 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: 01 07 00 E7 00 00 00 00 00 00 DD 0C D7 [17:20:36]RasterBufferAndPrint [17:20:36]line [17:20:36]line [17:20:36]line [17:20:36]line [17:20:36]line [17:20:36]written 0, free lines is 3324 [17:20:36]MH_Cut [17:20:36]Write to MH i2c: D1 01 00 EE 00 01 C0 [17:20:36]Write i2c OK [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: D1 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: D1 01 00 [17:20:36]MH_I2C_Read... [17:20:36]Read from MH i2c: D1 01 00 EE 00 00 BF [17:20:36]Write to MH i2c: 01 00 00 EF 00 EF [17:20:36]Write i2c OK [17:20:36]MH_I2C_Read... [17:20:37]*** Cut start [17:20:37]*** Partial cut [17:20:37]*** CUTSNS_PIN = 1 [17:20:37]*** CUTSNS_PIN = 0 [17:20:37]*** Brake cut motor [17:20:37]Read from MH i2c: 01 [17:20:37]MH_I2C_Read... [17:20:37]*** Stop cut motor [17:20:37]*** Cut end [17:20:37]Read from MH i2c: 01 07 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 FF 0F 04 [17:20:37]process_action close_receipt done [17:20:37]requested_data is exist [17:20:37]produce_requested_data [17:20:37]requested_item fm.sn is exist - process it [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 11 00 00 [17:20:37]Write to MH i2c: E2 08 00 F0 00 80 11 00 00 00 00 00 00 6A [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:37]Read from MH i2c: E2 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 17 00 [17:20:37]MH_I2C_Read... [17:20:37]Read from MH i2c: E2 17 00 F0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C5 [17:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:20:37]wFMCommunicate OK [17:20:37]requested_item fd.num is exist - process it [17:20:37]SAM_PROTO_GetFieldsCounters [17:20:37]wFMCommunicate request_size=4 [17:20:37]MH_SAM_APDU [17:20:37]CAPDU: 80 13 00 00 [17:20:37]Write to MH i2c: E2 08 00 F1 00 80 13 00 00 00 00 00 00 6D [17:20:37]Write i2c OK [17:20:37]MH_I2C_Read... [17:20:38]Connected sock=10 [17:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 12 7F 07 01 1B 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:38]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 Read from MH i2c: 00 E2 00 [17:20:38]1F MH_I2C_Read... [17:20:38]04 Read from MH i2c: 02 E2 00 62 01 00 00 [17:20:38]12 MH_I2C_Read... [17:20:38]04 04 00 DF 00 Read from MH i2c: 00 E2 00 62 F4 00 03 F1 04 00 00 00 E2 5D 20 00 A9 B9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 04 30 01 30 00 30 01 30 11 30 04 39 10 32 00 36 30 36 30 30 30 11 30 04 30 30 10 30 00 30 30 30 30 30 30 38 30 37 30 34 30 39 30 33 30 39 30 30 38 37 34 39 33 39 10 04 04 00 83 D1 01 00 35 04 06 00 8B 1E 11 BB 0D 60 04 77 DB 10 1A 00 94 30 EC 30 6E 30 8C 30 B3 30 2A 30 [17:20:38]30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [17:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 83 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:20:38]wFMCommunicate OK [17:20:38]SAM_PROTO_GetFieldsCounters done [17:20:38]requested_item shift.num is exist - process it [17:20:38]requested_item shift.opened is exist - process it [17:20:38]req_shift_opened [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 F2 00 80 13 01 00 00 00 00 00 6F [17:20:38]Write i2c OK [17:20:38]MH_I2C_Read... [17:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:38]Read from MH i2c: E2 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 0E 00 [17:20:38]MH_I2C_Read... [17:20:38]Read from MH i2c: E2 0E 00 F2 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3A [17:20:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:20:38]wFMCommunicate OK [17:20:38]SAM_PROTO_GetShiftState done [17:20:38]FM_GetShiftState done [17:20:38]req_shift_opened done [17:20:38]requested_item shift.open_date is exist - process it [17:20:38]req_shift_open_date [17:20:38]req_shift_open_date done [17:20:38]produce_requested_data done [17:20:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119171,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:20:38]process_action_free close_receipt [17:20:38]json_value_free [17:20:38]json_value_free done [17:20:38]process_json_proto returns [17:20:38]Send response to host [17:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119171,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:20:38]free response buf [17:20:38]execute_script done [17:20:38]execute_script returns [17:20:38]free content buf [17:20:38]Sock 9.Close socket [17:20:38]Sock 9.Thread stoped [17:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 DF C5 47 00 80 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 83 D1 01 00 F4 03 04 00 6F CE A8 66 B6 04 01 00 00 F0 79 75 59 49 74 FE 1E [17:20:39]CommunicateWithHost err = 0 [17:20:39]CheckOFDResponse [17:20:39]1017 (14) - 77093643461234 [17:20:39]1041 (16) - 0000000000874939 [17:20:39]1040 (4) - 119171 [17:20:39]1012 (4) - 30.07.2024 11:28 [17:20:39]1206 (1) - 0 [17:20:39]OFD Sender: Remove packet 119171 [17:20:39]ProducePacketName [17:20:39]name=ofd_packets/00119171 [17:20:39]NVStorageDeleteData [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:13]accept exits with 7 [17:21:13]New connection [17:21:13]New thread 3066695012 created [17:21:13]Thread 3066838372 joined [17:21:13]Waiting for new connection... [17:21:13] Sock 7.Parse request [17:21:13]Sock 7.Check first char [17:21:13]Sock 7.First char is OK [17:21:13]request: POST /json_proto HTTP/1.0 [17:21:13]Method: POST [17:21:13]URL: /json_proto [17:21:13]Method is POST - this is cgi request [17:21:13]url: /json_proto [17:21:13]query_string will be loaded in cgi processing [17:21:13]execute_cgi json_proto POST (null) [17:21:13]execute_cgi path=json_proto method=POST [17:21:13]POST find Content-Length [17:21:13]Host: 172.17.45.7:8080 [17:21:13]Content-Length: 678 [17:21:13]Content-Type: application/json [17:21:13] [17:21:13]POST finish read [17:21:13]Found Content-Length = 678 [17:21:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:13]execute_script... [17:21: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)950087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:13]POST & json_proto [17:21:13]process_json_proto [17:21:13]json parsed OK: [17:21:13]protocol is kg_v1.0 [17:21:13]action value=close_receipt [17:21:13]process_action close_receipt [17:21:13]cmd_close_receipt [17:21:13]MH_GetDate [17:21:13]Write to MH i2c: F0 00 00 F3 00 E2 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: F0 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: F0 09 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: F0 09 00 F3 00 00 09 21 A9 66 90 0F 3E 66 67 [17:21:13]GetLastDocTimeStamp 1722360034 [17:21:13]current date 1722360073 [17:21:13]FM_GetShiftState [17:21:13]SAM_PROTO_GetShiftState [17:21:13]wFMCommunicate request_size=4 [17:21:13]MH_SAM_APDU [17:21:13]CAPDU: 80 13 01 00 [17:21:13]Write to MH i2c: E2 08 00 F4 00 80 13 01 00 00 00 00 00 71 [17:21:13]Write i2c OK [17:21:13]MH_I2C_Read... [17:21:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:13]Read from MH i2c: E2 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 0E 00 [17:21:13]MH_I2C_Read... [17:21:13]Read from MH i2c: E2 0E 00 F4 00 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 3C [17:21:13]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:21:13]wFMCommunicate OK [17:21:13]SAM_PROTO_GetShiftState done [17:21:13]FM_GetShiftState done [17:21:13]opened in 1722298242 [17:21:13]opened+sec_in_day 1722384642 [17:21:13]quantity*price = 70037 [17:21:13]sum+1 = 70038 [17:21:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 224 30.07.2024 17:21 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119172 ФПД: 86488065226411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172113&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119172&fm=86488065226411&tin=02508201610067®Number=0000000000092660&sum=70000 [17:21:14]StoreToDocumentArchive [17:21:14]shift 435 fd 119172 [17:21:14]save to /storage/0435/doc_00119172 [17:21:14]save last doc name /storage/0435/doc_00119172 to /storage/kkm_last_doc_name [17:21:14]save OK [17:21:14]Clear old archive folders... [17:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:14]tlvbuf is 01624850 [17:21:14]SAM_PROTO_ClearQueue [17:21:14]wFMCommunicate request_size=4 [17:21:14]MH_SAM_APDU [17:21:14]CAPDU: 80 09 00 00 [17:21:14]Write to MH i2c: E2 08 00 01 01 80 09 00 00 00 00 00 00 74 [17:21:14]Write i2c OK [17:21:14]MH_I2C_Read... [17:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:14]Read from MH i2c: E2 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 03 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 03 00 01 01 00 90 00 76 [17:21:14]RAPDU: 90 00 [17:21:14]wFMCommunicate OK [17:21:14]SAM_PROTO_ClearQueue done [17:21:14]KKMCreateOFDPacket [17:21:14]OFDProtocolAddRootSTLVToBuf [17:21:14]FM_MakeSignedData [17:21:14]FM_MakeSignedData [17:21:14]SAM_PROTO_SignData [17:21:14]wFMCommunicate request_size=4 [17:21:14]MH_SAM_APDU [17:21:14]CAPDU: 80 0D 01 02 [17:21:14]Write to MH i2c: E2 08 00 02 01 80 0D 01 02 00 00 00 00 7C [17:21:14]Write i2c OK [17:21:14]MH_I2C_Read... [17:21:14]OFD Sender: No OFD packet to send [17:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:14]Read from MH i2c: E2 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 03 00 [17:21:14]MH_I2C_Read... [17:21:14]Read from MH i2c: E2 03 00 02 01 00 90 00 77 [17:21:14]RAPDU: 90 00 [17:21:14]wFMCommunicate OK [17:21:14]wFMCommunicate request_size=255 [17:21:14]MH_SAM_APDU [17:21: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E0 00 00 00 F4 03 04 00 09 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D1 01 00 35 04 06 00 4E [17:21:14]Write to MH i2c: E2 02 01 03 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E0 00 00 00 F4 03 04 00 09 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D1 01 00 35 04 06 00 4E 00 00 58 [17:21:14]Write i2c OK [17:21:14]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 03 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [17:21:15]RAPDU: 90 00 [17:21:15]wFMCommunicate OK [17:21:15]wFMCommunicate request_size=10 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 0D 02 02 05 A9 12 67 B6 AB [17:21:15]Write to MH i2c: E2 0D 00 04 01 80 0D 02 02 05 00 A9 12 67 B6 AB 00 00 0C [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 03 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [17:21:15]RAPDU: 90 00 [17:21:15]wFMCommunicate OK [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 0D 03 02 [17:21:15]Write to MH i2c: E2 08 00 05 01 80 0D 03 02 00 00 00 00 81 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0B 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 0B 00 05 01 00 9C 3A 01 BE 79 75 D4 37 90 00 10 [17:21:15]RAPDU: 9C 3A 01 BE 79 75 D4 37 90 00 [17:21:15]wFMCommunicate OK [17:21:15]SAM_PROTO_SignData done [17:21:15]FM_MakeSignedData done [17:21:15]CreateOFDProtocolMessage [17:21:15]wFMCommunicate request_size=4 [17:21:15]MH_SAM_APDU [17:21:15]CAPDU: 80 11 00 00 [17:21:15]Write to MH i2c: E2 08 00 06 01 80 11 00 00 00 00 00 00 81 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:15]Read from MH i2c: E2 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 17 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: E2 17 00 06 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DC [17:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:15]wFMCommunicate OK [17:21:15]CreateOFDProtocolMessage done [17:21:15]OFDSenderStorePacket 119172 [17:21:15]StoreOFDPacket docnum=119172 [17:21:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 1D 07 01 EF 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E0 00 00 00 F4 03 04 00 09 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D1 01 00 35 04 06 00 4E A9 12 67 B6 AB 9C 3A 01 BE 79 75 D4 37 [17:21:15]CheckFolder [17:21:15]dirname=/storage/ofd_packets [17:21:15]CheckFolder done [17:21:15]ProducePacketName [17:21:15]name=ofd_packets/00119172 [17:21:15]NVStorageSaveData ofd_packets/00119172 [17:21:15]File name is /storage/ofd_packets/00119172 [17:21:15]Write 301 bytes [17:21:15]NVStorageSaveData done [17:21:15]OFDSenderStorePacket done [17:21:15]KKMCreateOFDPacket done [17:21:15]NVStorageSaveData kkm_last_timestamp [17:21:15]File name is /storage/kkm_last_timestamp [17:21:15]Write 4 bytes [17:21:15]NVStorageSaveData done [17:21:15]ExternCall_PrintAddStr [17:21:15]wPrintStart [17:21:15]Write to MH i2c: 01 00 00 07 01 08 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 07 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 07 00 07 01 00 00 00 00 00 FF 0F 1D [17:21:15]RasterBufferAndPrint [17:21:15]line Счет N : (1)950087 [17:21:15]line ИНН: 02508201610067 [17:21:15]line Контрольно-Кассовый Чек [17:21:15]line ПРОДАЖА [17:21:15]line ТРК (МРК, ГНК) : 31 [17:21:15]line Товар: 2710124130 [17:21:15]line Аи-92-К-4 [17:21:15]line 10.330 * 67.80 [17:21:15]line = 700.37 [17:21:15]line НДС 12% НСП 1% [17:21:15]line > о реализуемом товаре [17:21:15]line ОКРУГЛЕНИЕ: -0.37 [17:21:15]line ИТОГО: 700.00 [17:21:15]line Внесено: 700.00 [17:21:15]line СДАЧА: 0.00 [17:21:15]line НСП 1% : 6.20 [17:21:15]line НДС 12% : 74.38 [17:21:15]line Наличными: 700.00 [17:21:15]line Безнал.: 0.00 [17:21:15]line Место: АЗС № 134 "Партнер Нефть" [17:21:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:21:15]line СНО: Общий режим [17:21:15]line Чек 224 30.07.2024 17:21 [17:21:15]line Смена: 435 ФФД: 1.0 [17:21:15]line ЗНМ: 0300000044 [17:21:15]line РНМ: 0000000000092660 [17:21:15]line Версия ККМ: 001 [17:21:15]line ФМ: 0000000000874939 [17:21:15]line ФД: 119172 [17:21:15]line ФПД: 86488065226411 [17:21:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172113&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119172&fm=86488065226411&tin=02508201610067®Number=0000000000092660&sum=70000 [17:21:15]written 0, free lines is 4095 [17:21:15]OFD Sender: Processing packet 119172 [packets to send 86, broken 85] [17:21:15]ProducePacketName [17:21:15]name=ofd_packets/00119172 [17:21:15]OFD Sender: To server: pG, [17:21:15]CommunicateWithHost lk.salyk.kg:30040 [17:21:15]ConnectInit lk.salyk.kg [17:21:15]Write to MH i2c: 01 00 00 31 01 32 [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 07 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: 01 07 00 31 01 00 00 00 00 00 E5 0C 2A [17:21:15]RasterBufferAndPrint [17:21:15]line [17:21:15]line [17:21:15]line [17:21:15]line [17:21:15]line [17:21:15]written 0, free lines is 3317 [17:21:15]MH_Cut [17:21:15]Write to MH i2c: D1 01 00 38 01 01 0B [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: D1 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: D1 01 00 [17:21:15]MH_I2C_Read... [17:21:15]Read from MH i2c: D1 01 00 38 01 00 0A [17:21:15]Write to MH i2c: 01 00 00 39 01 3A [17:21:15]Write i2c OK [17:21:15]MH_I2C_Read... [17:21:16]*** Cut start [17:21:16]*** Partial cut [17:21:16]*** CUTSNS_PIN = 1 [17:21:16]*** CUTSNS_PIN = 0 [17:21:16]*** Brake cut motor [17:21:16]Read from MH i2c: 01 [17:21:17]MH_I2C_Read... [17:21:17]*** Stop cut motor [17:21:17]*** Cut end [17:21:17]Read from MH i2c: 01 07 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 FF 0F 4F [17:21:17]process_action close_receipt done [17:21:17]requested_data is exist [17:21:17]produce_requested_data [17:21:17]requested_item fm.sn is exist - process it [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 11 00 00 [17:21:17]Write to MH i2c: E2 08 00 3A 01 80 11 00 00 00 00 00 00 B5 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 17 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 17 00 3A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 10 [17:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:17]wFMCommunicate OK [17:21:17]requested_item fd.num is exist - process it [17:21:17]SAM_PROTO_GetFieldsCounters [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 13 00 00 [17:21:17]Write to MH i2c: E2 08 00 3B 01 80 13 00 00 00 00 00 00 B8 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 62 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 62 00 3B 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [17:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 84 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:17]wFMCommunicate OK [17:21:17]SAM_PROTO_GetFieldsCounters done [17:21:17]requested_item shift.num is exist - process it [17:21:17]requested_item shift.opened is exist - process it [17:21:17]req_shift_opened [17:21:17]FM_GetShiftState [17:21:17]SAM_PROTO_GetShiftState [17:21:17]wFMCommunicate request_size=4 [17:21:17]MH_SAM_APDU [17:21:17]CAPDU: 80 13 01 00 [17:21:17]Write to MH i2c: E2 08 00 3C 01 80 13 01 00 00 00 00 00 BA [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:17]Read from MH i2c: E2 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 0E 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: E2 0E 00 3C 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 85 [17:21:17]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:21:17]wFMCommunicate OK [17:21:17]SAM_PROTO_GetShiftState done [17:21:17]FM_GetShiftState done [17:21:17]req_shift_opened done [17:21:17]requested_item shift.open_date is exist - process it [17:21:17]req_shift_open_date [17:21:17]req_shift_open_date done [17:21:17]produce_requested_data done [17:21:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119172,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:21:17]process_action_free close_receipt [17:21:17]json_value_free [17:21:17]json_value_free done [17:21:17]process_json_proto returns [17:21:17]Send response to host [17:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119172,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:21:17]free response buf [17:21:17]execute_script done [17:21:17]execute_script returns [17:21:17]free content buf [17:21:17]Sock 7.Close socket [17:21:17]Sock 7.Thread stoped [17:21:20]Connected sock=11 [17:21:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 54 1D 07 01 EF 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 E0 00 00 00 F4 03 04 00 09 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D1 01 00 35 04 06 00 4E A9 12 67 B6 AB 9C 3A 01 BE 79 75 D4 37 [17:21:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BA 00 47 00 5E 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 84 D1 01 00 F4 03 04 00 99 CE A8 66 B6 04 01 00 00 5E ED D2 D2 0F 8A 07 F5 [17:21:20]CommunicateWithHost err = 0 [17:21:20]CheckOFDResponse [17:21:20]1017 (14) - 77093643461234 [17:21:20]1041 (16) - 0000000000874939 [17:21:20]1040 (4) - 119172 [17:21:20]1012 (4) - 30.07.2024 11:29 [17:21:20]1206 (1) - 0 [17:21:20]OFD Sender: Remove packet 119172 [17:21:20]ProducePacketName [17:21:20]name=ofd_packets/00119172 [17:21:20]NVStorageDeleteData [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:43]accept exits with 10 [17:21:43]New connection [17:21:43]New thread 3066838372 created [17:21:43]Thread 3066695012 joined [17:21:43]Waiting for new connection... [17:21:43] Sock 10.Parse request [17:21:43]Sock 10.Check first char [17:21:43]Sock 10.First char is OK [17:21:43]request: POST /json_proto HTTP/1.0 [17:21:43]Method: POST [17:21:43]URL: /json_proto [17:21:43]Method is POST - this is cgi request [17:21:43]url: /json_proto [17:21:43]query_string will be loaded in cgi processing [17:21:43]execute_cgi json_proto POST (null) [17:21:43]execute_cgi path=json_proto method=POST [17:21:43]POST find Content-Length [17:21:43]Host: 172.17.45.7:8080 [17:21:43]Content-Length: 682 [17:21:43]Content-Type: application/json [17:21:43] [17:21:43]POST finish read [17:21:43]Found Content-Length = 682 [17:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:21:43]execute_script... [17:21: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)950088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:21:43]POST & json_proto [17:21:43]process_json_proto [17:21:43]json parsed OK: [17:21:43]protocol is kg_v1.0 [17:21:43]action value=close_receipt [17:21:43]process_action close_receipt [17:21:43]cmd_close_receipt [17:21:43]MH_GetDate [17:21:43]Write to MH i2c: F0 00 00 3D 01 2D [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: F0 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: F0 09 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: F0 09 00 3D 01 00 27 21 A9 66 90 0F 3E 66 D0 [17:21:43]GetLastDocTimeStamp 1722360073 [17:21:43]current date 1722360103 [17:21:43]FM_GetShiftState [17:21:43]SAM_PROTO_GetShiftState [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 13 01 00 [17:21:43]Write to MH i2c: E2 08 00 3E 01 80 13 01 00 00 00 00 00 BC [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 0E 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 0E 00 3E 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 87 [17:21:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:21:43]wFMCommunicate OK [17:21:43]SAM_PROTO_GetShiftState done [17:21:43]FM_GetShiftState done [17:21:43]opened in 1722298242 [17:21:43]opened+sec_in_day 1722384642 [17:21:43]quantity*price = 100005 [17:21:43]sum+1 = 100006 [17:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 225 30.07.2024 17:21 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119173 ФПД: 99187000866468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172143&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119173&fm=99187000866468&tin=02508201610067®Number=0000000000092660&sum=100000 [17:21:44]StoreToDocumentArchive [17:21:44]shift 435 fd 119173 [17:21:44]save to /storage/0435/doc_00119173 [17:21:44]save last doc name /storage/0435/doc_00119173 to /storage/kkm_last_doc_name [17:21:44]save OK [17:21:44]Clear old archive folders... [17:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:44]tlvbuf is 016A0290 [17:21:44]SAM_PROTO_ClearQueue [17:21:44]wFMCommunicate request_size=4 [17:21:44]MH_SAM_APDU [17:21:44]CAPDU: 80 09 00 00 [17:21:44]Write to MH i2c: E2 08 00 4B 01 80 09 00 00 00 00 00 00 BE [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:44]Read from MH i2c: E2 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [17:21:44]RAPDU: 90 00 [17:21:44]wFMCommunicate OK [17:21:44]SAM_PROTO_ClearQueue done [17:21:44]KKMCreateOFDPacket [17:21:44]OFDProtocolAddRootSTLVToBuf [17:21:44]FM_MakeSignedData [17:21:44]FM_MakeSignedData [17:21:44]SAM_PROTO_SignData [17:21:44]wFMCommunicate request_size=4 [17:21:44]MH_SAM_APDU [17:21:44]CAPDU: 80 0D 01 02 [17:21:44]Write to MH i2c: E2 08 00 4C 01 80 0D 01 02 00 00 00 00 C6 [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:44]Read from MH i2c: E2 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [17:21:44]RAPDU: 90 00 [17:21:44]wFMCommunicate OK [17:21:44]wFMCommunicate request_size=255 [17:21:44]MH_SAM_APDU [17:21: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D1 01 00 35 04 06 00 5A [17:21:44]Write to MH i2c: E2 02 01 4D 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D1 01 00 35 04 06 00 5A 00 00 76 [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:44]Read from MH i2c: E2 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [17:21:44]RAPDU: 90 00 [17:21:44]wFMCommunicate OK [17:21:44]wFMCommunicate request_size=10 [17:21:44]MH_SAM_APDU [17:21:44]CAPDU: 80 0D 02 02 05 35 C5 F3 F6 A4 [17:21:44]Write to MH i2c: E2 0D 00 4E 01 80 0D 02 02 05 00 35 C5 F3 F6 A4 00 00 5A [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:44]Read from MH i2c: E2 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [17:21:44]RAPDU: 90 00 [17:21:44]wFMCommunicate OK [17:21:44]wFMCommunicate request_size=4 [17:21:44]MH_SAM_APDU [17:21:44]CAPDU: 80 0D 03 02 [17:21:44]Write to MH i2c: E2 08 00 4F 01 80 0D 03 02 00 00 00 00 CB [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:45]Read from MH i2c: E2 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 0B 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 0B 00 4F 01 00 30 99 CF 5B D5 A0 91 67 90 00 2C [17:21:45]RAPDU: 30 99 CF 5B D5 A0 91 67 90 00 [17:21:45]wFMCommunicate OK [17:21:45]SAM_PROTO_SignData done [17:21:45]FM_MakeSignedData done [17:21:45]CreateOFDProtocolMessage [17:21:45]wFMCommunicate request_size=4 [17:21:45]MH_SAM_APDU [17:21:45]CAPDU: 80 11 00 00 [17:21:45]Write to MH i2c: E2 08 00 50 01 80 11 00 00 00 00 00 00 CB [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:45]Read from MH i2c: E2 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 17 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: E2 17 00 50 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 26 [17:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:45]wFMCommunicate OK [17:21:45]CreateOFDProtocolMessage done [17:21:45]OFDSenderStorePacket 119173 [17:21:45]StoreOFDPacket docnum=119173 [17:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3D EE 07 01 E5 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D1 01 00 35 04 06 00 5A 35 C5 F3 F6 A4 30 99 CF 5B D5 A0 91 67 [17:21:45]CheckFolder [17:21:45]dirname=/storage/ofd_packets [17:21:45]CheckFolder done [17:21:45]ProducePacketName [17:21:45]name=ofd_packets/00119173 [17:21:45]NVStorageSaveData ofd_packets/00119173 [17:21:45]File name is /storage/ofd_packets/00119173 [17:21:45]Write 301 bytes [17:21:45]NVStorageSaveData done [17:21:45]OFDSenderStorePacket done [17:21:45]KKMCreateOFDPacket done [17:21:45]NVStorageSaveData kkm_last_timestamp [17:21:45]File name is /storage/kkm_last_timestamp [17:21:45]Write 4 bytes [17:21:45]NVStorageSaveData done [17:21:45]ExternCall_PrintAddStr [17:21:45]wPrintStart [17:21:45]Write to MH i2c: 01 00 00 51 01 52 [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 07 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 07 00 51 01 00 00 00 00 00 FF 0F 67 [17:21:45]RasterBufferAndPrint [17:21:45]line Счет N : (1)950088 [17:21:45]line ИНН: 02508201610067 [17:21:45]line Контрольно-Кассовый Чек [17:21:45]line ПРОДАЖА [17:21:45]line ТРК (МРК, ГНК) : 51 [17:21:45]line Товар: 2710124130 [17:21:45]line Аи-92-К-4 [17:21:45]line 14.750 * 67.80 [17:21:45]line = 1000.05 [17:21:45]line НДС 12% НСП 1% [17:21:45]line > о реализуемом товаре [17:21:45]line ОКРУГЛЕНИЕ: -0.05 [17:21:45]line ИТОГО: 1000.00 [17:21:45]line Внесено: 1000.00 [17:21:45]line СДАЧА: 0.00 [17:21:45]line НСП 1% : 8.85 [17:21:45]line НДС 12% : 106.20 [17:21:45]line Наличными: 1000.00 [17:21:45]line Безнал.: 0.00 [17:21:45]line Место: АЗС № 134 "Партнер Нефть" [17:21:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:21:45]line СНО: Общий режим [17:21:45]line Чек 225 30.07.2024 17:21 [17:21:45]line Смена: 435 ФФД: 1.0 [17:21:45]line ЗНМ: 0300000044 [17:21:45]line РНМ: 0000000000092660 [17:21:45]line Версия ККМ: 001 [17:21:45]line ФМ: 0000000000874939 [17:21:45]line ФД: 119173 [17:21:45]line ФПД: 99187000866468 [17:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172143&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119173&fm=99187000866468&tin=02508201610067®Number=0000000000092660&sum=100000 [17:21:45]OFD Sender: Processing packet 119173 [packets to send 86, broken 85] [17:21:45]ProducePacketName [17:21:45]name=ofd_packets/00119173 [17:21:45]OFD Sender: To server: pG, [17:21:45]CommunicateWithHost lk.salyk.kg:30040 [17:21:45]ConnectInit lk.salyk.kg [17:21:45]written 0, free lines is 4095 [17:21:45]Write to MH i2c: 01 00 00 7B 01 7C [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 07 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: 01 07 00 7B 01 00 00 00 00 00 E3 0C 72 [17:21:45]RasterBufferAndPrint [17:21:45]line [17:21:45]line [17:21:45]line [17:21:45]line [17:21:45]line [17:21:45]written 0, free lines is 3319 [17:21:45]MH_Cut [17:21:45]Write to MH i2c: D1 01 00 82 01 01 55 [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: D1 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: D1 01 00 [17:21:45]MH_I2C_Read... [17:21:45]Read from MH i2c: D1 01 00 82 01 00 54 [17:21:45]Write to MH i2c: 01 00 00 83 01 84 [17:21:45]Write i2c OK [17:21:45]MH_I2C_Read... [17:21:46]*** Cut start [17:21:46]*** Partial cut [17:21:46]*** CUTSNS_PIN = 1 [17:21:46]*** CUTSNS_PIN = 0 [17:21:46]*** Brake cut motor [17:21:46]Read from MH i2c: 01 [17:21:46]MH_I2C_Read... [17:21:46]*** Stop cut motor [17:21:46]*** Cut end [17:21:46]Read from MH i2c: 01 07 00 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 FF 0F 99 [17:21:46]process_action close_receipt done [17:21:46]requested_data is exist [17:21:46]produce_requested_data [17:21:46]requested_item fm.sn is exist - process it [17:21:46]wFMCommunicate request_size=4 [17:21:46]MH_SAM_APDU [17:21:46]CAPDU: 80 11 00 00 [17:21:46]Write to MH i2c: E2 08 00 84 01 80 11 00 00 00 00 00 00 FF [17:21:46]Write i2c OK [17:21:46]MH_I2C_Read... [17:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:46]Read from MH i2c: E2 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 17 00 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 17 00 84 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5A [17:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:46]wFMCommunicate OK [17:21:46]requested_item fd.num is exist - process it [17:21:46]SAM_PROTO_GetFieldsCounters [17:21:46]wFMCommunicate request_size=4 [17:21:46]MH_SAM_APDU [17:21:46]CAPDU: 80 13 00 00 [17:21:46]Write to MH i2c: E2 08 00 85 01 80 13 00 00 00 00 00 00 02 [17:21:46]Write i2c OK [17:21:46]MH_I2C_Read... [17:21:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:47]Read from MH i2c: E2 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: E2 62 00 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: E2 62 00 85 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [17:21:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 85 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:47]wFMCommunicate OK [17:21:47]SAM_PROTO_GetFieldsCounters done [17:21:47]requested_item shift.num is exist - process it [17:21:47]requested_item shift.opened is exist - process it [17:21:47]req_shift_opened [17:21:47]FM_GetShiftState [17:21:47]SAM_PROTO_GetShiftState [17:21:47]wFMCommunicate request_size=4 [17:21:47]MH_SAM_APDU [17:21:47]CAPDU: 80 13 01 00 [17:21:47]Write to MH i2c: E2 08 00 86 01 80 13 01 00 00 00 00 00 04 [17:21:47]Write i2c OK [17:21:47]MH_I2C_Read... [17:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:47]Read from MH i2c: E2 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: E2 0E 00 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: E2 0E 00 86 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 CF [17:21:47]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:21:47]wFMCommunicate OK [17:21:47]SAM_PROTO_GetShiftState done [17:21:47]FM_GetShiftState done [17:21:47]req_shift_opened done [17:21:47]requested_item shift.open_date is exist - process it [17:21:47]req_shift_open_date [17:21:47]req_shift_open_date done [17:21:47]produce_requested_data done [17:21:47]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119173,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:21:47]process_action_free close_receipt [17:21:47]json_value_free [17:21:47]json_value_free done [17:21:47]process_json_proto returns [17:21:47]Send response to host [17:21:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119173,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:21:47]free response buf [17:21:47]execute_script done [17:21:47]execute_script returns [17:21:47]free content buf [17:21:47]Sock 10.Close socket [17:21:47]Sock 10.Thread stoped [17:21:50]ConnectInit Can't take IP for lk.salyk.kg [17:21:50]CommunicateWithHost connect error [17:21:50]CommunicateWithHost err = -1 [17:21:50]OFD Sender: Server communicate error [17:21:51]accept exits with 7 [17:21:51]New connection [17:21:51]New thread 3066695012 created [17:21:51]Thread 3066838372 joined [17:21:51]Waiting for new connection... [17:21:51] Sock 7.Parse request [17:21:51]Sock 7.Check first char [17:21:51]Sock 7.First char is OK [17:21:51]request: POST /json_proto HTTP/1.0 [17:21:51]Method: POST [17:21:51]URL: /json_proto [17:21:51]Method is POST - this is cgi request [17:21:51]url: /json_proto [17:21:51]query_string will be loaded in cgi processing [17:21:51]execute_cgi json_proto POST (null) [17:21:51]execute_cgi path=json_proto method=POST [17:21:51]POST find Content-Length [17:21:51]Host: 172.17.45.7:8080 [17:21:51]Content-Length: 677 [17:21:51]Content-Type: application/json [17:21:51] [17:21:51]POST finish read [17:21:51]Found Content-Length = 677 [17:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:51]execute_script... [17:21: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)950090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:51]POST & json_proto [17:21:51]process_json_proto [17:21:51]json parsed OK: [17:21:51]protocol is kg_v1.0 [17:21:51]action value=close_receipt [17:21:51]process_action close_receipt [17:21:51]cmd_close_receipt [17:21:51]MH_GetDate [17:21:51]Write to MH i2c: F0 00 00 87 01 77 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: F0 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: F0 09 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: F0 09 00 87 01 00 2F 21 A9 66 90 0F 3E 66 22 [17:21:51]GetLastDocTimeStamp 1722360103 [17:21:51]current date 1722360111 [17:21:51]FM_GetShiftState [17:21:51]SAM_PROTO_GetShiftState [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 13 01 00 [17:21:51]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0E 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D1 [17:21:51]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_GetShiftState done [17:21:51]FM_GetShiftState done [17:21:51]opened in 1722298242 [17:21:51]opened+sec_in_day 1722384642 [17:21:51]quantity*price = 30035 [17:21:51]sum+1 = 30036 [17:21:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 226 30.07.2024 17:21 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119174 ФПД: 185075486969782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119174&fm=185075486969782&tin=02508201610067®Number=0000000000092660&sum=30000 [17:21:52]StoreToDocumentArchive [17:21:52]shift 435 fd 119174 [17:21:52]save to /storage/0435/doc_00119174 [17:21:52]save last doc name /storage/0435/doc_00119174 to /storage/kkm_last_doc_name [17:21:52]save OK [17:21:52]Clear old archive folders... [17:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:52]tlvbuf is 0165E650 [17:21:52]SAM_PROTO_ClearQueue [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 09 00 00 [17:21:52]Write to MH i2c: E2 08 00 95 01 80 09 00 00 00 00 00 00 08 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [17:21:52]RAPDU: 90 00 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_ClearQueue done [17:21:52]KKMCreateOFDPacket [17:21:52]OFDProtocolAddRootSTLVToBuf [17:21:52]FM_MakeSignedData [17:21:52]FM_MakeSignedData [17:21:52]SAM_PROTO_SignData [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 0D 01 02 [17:21:52]Write to MH i2c: E2 08 00 96 01 80 0D 01 02 00 00 00 00 10 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 96 01 00 90 00 0B [17:21:52]RAPDU: 90 00 [17:21:52]wFMCommunicate OK [17:21:52]wFMCommunicate request_size=255 [17:21:52]MH_SAM_APDU [17:21: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 E2 00 00 00 F4 03 04 00 2F 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D1 01 00 35 04 06 00 A8 [17:21:52]Write to MH i2c: E2 02 01 97 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 E2 00 00 00 F4 03 04 00 2F 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D1 01 00 35 04 06 00 A8 00 00 A8 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [17:21:52]RAPDU: 90 00 [17:21:52]wFMCommunicate OK [17:21:52]wFMCommunicate request_size=10 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 0D 02 02 05 53 3E A8 4F B6 [17:21:52]Write to MH i2c: E2 0D 00 98 01 80 0D 02 02 05 00 53 3E A8 4F B6 00 00 5B [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [17:21:52]RAPDU: 90 00 [17:21:52]wFMCommunicate OK [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 0D 03 02 [17:21:52]Write to MH i2c: E2 08 00 99 01 80 0D 03 02 00 00 00 00 15 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0B 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0B 00 99 01 00 58 B7 67 8E 8B 5C F1 10 90 00 02 [17:21:52]RAPDU: 58 B7 67 8E 8B 5C F1 10 90 00 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_SignData done [17:21:52]FM_MakeSignedData done [17:21:52]CreateOFDProtocolMessage [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 11 00 00 [17:21:52]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 17 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 70 [17:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:53]wFMCommunicate OK [17:21:53]CreateOFDProtocolMessage done [17:21:53]OFDSenderStorePacket 119174 [17:21:53]StoreOFDPacket docnum=119174 [17:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FE D1 07 01 74 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 E2 00 00 00 F4 03 04 00 2F 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D1 01 00 35 04 06 00 A8 53 3E A8 4F B6 58 B7 67 8E 8B 5C F1 10 [17:21:53]CheckFolder [17:21:53]dirname=/storage/ofd_packets [17:21:53]CheckFolder done [17:21:53]ProducePacketName [17:21:53]name=ofd_packets/00119174 [17:21:53]NVStorageSaveData ofd_packets/00119174 [17:21:53]File name is /storage/ofd_packets/00119174 [17:21:53]Write 301 bytes [17:21:53]NVStorageSaveData done [17:21:53]OFDSenderStorePacket done [17:21:53]KKMCreateOFDPacket done [17:21:53]NVStorageSaveData kkm_last_timestamp [17:21:53]File name is /storage/kkm_last_timestamp [17:21:53]Write 4 bytes [17:21:53]NVStorageSaveData done [17:21:53]ExternCall_PrintAddStr [17:21:53]wPrintStart [17:21:53]Write to MH i2c: 01 00 00 9B 01 9C [17:21:53]OFD Sender: Processing packet 119173 [packets to send 87, broken 85] [17:21:53]ProducePacketName [17:21:53]name=ofd_packets/00119173 [17:21:53]OFD Sender: To server: pG, [17:21:53]CommunicateWithHost lk.salyk.kg:30040 [17:21:53]ConnectInit lk.salyk.kg [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 9B 01 00 00 00 00 00 FF 0F B1 [17:21:53]RasterBufferAndPrint [17:21:53]line Счет N : (1)950090 [17:21:53]line ИНН: 02508201610067 [17:21:53]line Контрольно-Кассовый Чек [17:21:53]line ПРОДАЖА [17:21:53]line ТРК (МРК, ГНК) : 51 [17:21:53]line Товар: 2710124130 [17:21:53]line Аи-92-К-4 [17:21:53]line 4.430 * 67.80 [17:21:53]line = 300.35 [17:21:53]line НДС 12% НСП 1% [17:21:53]line > о реализуемом товаре [17:21:53]line ОКРУГЛЕНИЕ: -0.35 [17:21:53]line ИТОГО: 300.00 [17:21:53]line Внесено: 300.00 [17:21:53]line СДАЧА: 0.00 [17:21:53]line НСП 1% : 2.66 [17:21:53]line НДС 12% : 31.90 [17:21:53]line Наличными: 300.00 [17:21:53]line Безнал.: 0.00 [17:21:53]line Место: АЗС № 134 "Партнер Нефть" [17:21:53]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:21:53]line СНО: Общий режим [17:21:53]line Чек 226 30.07.2024 17:21 [17:21:53]line Смена: 435 ФФД: 1.0 [17:21:53]line ЗНМ: 0300000044 [17:21:53]line РНМ: 0000000000092660 [17:21:53]line Версия ККМ: 001 [17:21:53]line ФМ: 0000000000874939 [17:21:53]line ФД: 119174 [17:21:53]line ФПД: 185075486969782 [17:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T172151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119174&fm=185075486969782&tin=02508201610067®Number=0000000000092660&sum=30000 [17:21:53]written 0, free lines is 4095 [17:21:53]Write to MH i2c: 01 00 00 C5 01 C6 [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 E7 0C C0 [17:21:53]RasterBufferAndPrint [17:21:53]line [17:21:53]line [17:21:53]line [17:21:53]line [17:21:53]line [17:21:53]written 0, free lines is 3328 [17:21:53]MH_Cut [17:21:53]Write to MH i2c: D1 01 00 CC 01 01 9F [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: D1 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: D1 01 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: D1 01 00 CC 01 00 9E [17:21:53]Write to MH i2c: 01 00 00 CD 01 CE [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]Connected sock=10 [17:21:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3D EE 07 01 E5 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 27 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D1 01 00 35 04 06 00 5A 35 C5 F3 F6 A4 30 99 CF 5B D5 A0 91 67 [17:21:54]*** Cut start [17:21:54]*** Partial cut [17:21:54]*** CUTSNS_PIN = 1 [17:21:54]*** CUTSNS_PIN = 0 [17:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 25 88 47 00 E2 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 85 D1 01 00 F4 *** Brake cut motor [17:21:54]03 04 00 BB CE A8 66 B6 04 01 00 00 DF 2A 00 B7 99 DA 38 0B [17:21:54]CommunicateWithHost err = 0 [17:21:54]CheckOFDResponse [17:21:54]1017 (14) - 77093643461234 [17:21:54]1041 (16) - 0000000000874939 [17:21:54]1040 (4) - 119173 [17:21:54]1012 (4) - 30.07.2024 11:30 [17:21:54]1206 (1) - 0 [17:21:54]OFD Sender: Remove packet 119173 [17:21:54]ProducePacketName [17:21:54]name=ofd_packets/00119173 [17:21:54]NVStorageDeleteData [17:21:54]Read from MH i2c: 01 [17:21:54]MH_I2C_Read... [17:21:54]*** Stop cut motor [17:21:54]*** Cut end [17:21:54]Read from MH i2c: 01 07 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [17:21:54]process_action close_receipt done [17:21:54]requested_data is exist [17:21:54]produce_requested_data [17:21:54]requested_item fm.sn is exist - process it [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 11 00 00 [17:21:54]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 17 00 [17:21:54]MH_I2C_Read... [17:21:54]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 34 39 33 39 90 00 A4 [17:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [17:21:54]wFMCommunicate OK [17:21:54]requested_item fd.num is exist - process it [17:21:54]SAM_PROTO_GetFieldsCounters [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 13 00 00 [17:21:54]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:55]Read from MH i2c: E2 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 62 00 [17:21:55]MH_I2C_Read... [17:21:55]OFD Sender: Processing packet 119174 [packets to send 86, broken 85] [17:21:55]ProducePacketName [17:21:55]name=ofd_packets/00119174 [17:21:55]OFD Sender: To server: pG, [17:21:55]CommunicateWithHost lk.salyk.kg:30040 [17:21:55]ConnectInit lk.salyk.kg [17:21:55]Read from MH i2c: E2 62 00 CF 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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [17:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 86 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:55]wFMCommunicate OK [17:21:55]SAM_PROTO_GetFieldsCounters done [17:21:55]requested_item shift.num is exist - process it [17:21:55]requested_item shift.opened is exist - process it [17:21:55]req_shift_opened [17:21:55]FM_GetShiftState [17:21:55]SAM_PROTO_GetShiftState [17:21:55]wFMCommunicate request_size=4 [17:21:55]MH_SAM_APDU [17:21:55]CAPDU: 80 13 01 00 [17:21:55]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:55]Read from MH i2c: E2 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 0E 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 19 [17:21:55]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [17:21:55]wFMCommunicate OK [17:21:55]SAM_PROTO_GetShiftState done [17:21:55]FM_GetShiftState done [17:21:55]req_shift_opened done [17:21:55]requested_item shift.open_date is exist - process it [17:21:55]req_shift_open_date [17:21:55]req_shift_open_date done [17:21:55]produce_requested_data done [17:21:55]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119174,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [17:21:55]process_action_free close_receipt [17:21:55]json_value_free [17:21:55]json_value_free done [17:21:55]process_json_proto returns [17:21:55]Send response to host [17:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119174,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [17:21:55]free response buf [17:21:55]execute_script done [17:21:55]execute_script returns [17:21:55]free content buf [17:21:55]Sock 7.Close socket [17:21:55]Sock 7.Thread stoped [17:21:55]Connected sock=10 [17:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FE D1 07 01 74 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 E2 00 00 00 F4 03 04 00 2F 21 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D1 01 00 35 04 06 00 A8 53 3E A8 4F B6 58 B7 67 8E 8B 5C F1 10 [17:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A1 99 47 00 56 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 86 D1 01 00 F4 03 04 00 BD CE A8 66 B6 04 01 00 00 A1 95 AB 31 D1 77 C4 E0 [17:21:56]CommunicateWithHost err = 0 [17:21:56]CheckOFDResponse [17:21:56]1017 (14) - 77093643461234 [17:21:56]1041 (16) - 0000000000874939 [17:21:56]1040 (4) - 119174 [17:21:56]1012 (4) - 30.07.2024 11:30 [17:21:56]1206 (1) - 0 [17:21:56]OFD Sender: Remove packet 119174 [17:21:56]ProducePacketName [17:21:56]name=ofd_packets/00119174 [17:21:56]NVStorageDeleteData [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:49]recv_with_timeout no data received [17:24:51]OFD Sender: No OFD packet to send [22:16:57]ConnectInit Can't connect to host [22:17:02]OFD Sender: Processing packet 119175 [packets to send 161, broken 85] [22:17:02]ProducePacketName [22:17:02]name=ofd_packets/00119175 [22:17:02]OFD Sender: To server: pG, [22:17:02]CommunicateWithHost lk.salyk.kg:30040 [22:17:02]ConnectInit lk.salyk.kg [22:17:02]Connected sock=9 [22:17:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 60 C2 07 01 B1 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 E3 00 00 00 F4 03 04 00 2F 22 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 87 D1 01 00 35 04 06 00 B4 6F 7F E4 8D 33 E3 59 0F 8E B9 83 B5 08 [22:17:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 87 2A 47 00 2C 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 34 39 33 39 10 04 04 00 87 D1 01 00 F4 03 04 00 E8 13 A9 66 B6 04 01 00 00 0F 22 25 0D 0C 50 CD 53 [22:17:02]CommunicateWithHost err = 0 [22:17:02]CheckOFDResponse [22:17:02]1017 (14) - 77093643461234 [22:17:02]1041 (16) - 0000000000874939 [22:17:02]1040 (4) - 119175 [22:17:02]1012 (4) - 30.07.2024 16:25 [22:17:02]1206 (1) - 0 [22:17:02]OFD Sender: Remove packet 119175 [22:17:02]ProducePacketName [22:17:02]name=ofd_packets/00119175 [22:17:02]NVStorageDeleteData [22:17:03]OFD Sender: Processing packet 119176 [packets to send 160, broken 85] [22:17:03]ProducePacketName [22:17:03]name=ofd_packets/00119176 [22:17:03]OFD Sender: To server: pG, [22:17:03]CommunicateWithHost lk.salyk.kg:30040 [22:17:03]ConnectInit lk.salyk.kg [22:17:03]Connected sock=9 [22:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 5A E5 07 01 66 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 E4 00 00 00 F4 03 04 00 80 23 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 D1 01 00 35 04 06 00 49 93 B8 86 B1 D3 B6 BA 2D B7 E0 D5 6C 0E [22:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 C9 AD 47 00 F5 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 88 D1 01 00 F4 03 04 00 E8 13 A9 66 B6 04 01 00 00 BD 5C B1 27 26 B2 1B B3 [22:17:03]CommunicateWithHost err = 0 [22:17:03]CheckOFDResponse [22:17:03]1017 (14) - 77093643461234 [22:17:03]1041 (16) - 0000000000874939 [22:17:03]1040 (4) - 119176 [22:17:03]1012 (4) - 30.07.2024 16:25 [22:17:03]1206 (1) - 0 [22:17:03]OFD Sender: Remove packet 119176 [22:17:03]ProducePacketName [22:17:03]name=ofd_packets/00119176 [22:17:03]NVStorageDeleteData [22:17:03]OFD Sender: Processing packet 119177 [packets to send 159, broken 85] [22:17:03]ProducePacketName [22:17:03]name=ofd_packets/00119177 [22:17:03]OFD Sender: To server: pG, [22:17:03]CommunicateWithHost lk.salyk.kg:30040 [22:17:03]ConnectInit lk.salyk.kg [22:17:03]Connected sock=9 [22:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 C1 FF 07 01 D6 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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 E5 00 00 00 F4 03 04 00 E8 23 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D1 01 00 35 04 06 00 C5 EB 3D 04 89 18 93 FB F4 3A D5 E2 77 DD [22:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8A B7 47 00 F7 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 89 D1 01 00 F4 03 04 00 E9 13 A9 66 B6 04 01 00 00 53 F8 C6 6B 4E 6F 40 46 [22:17:04]CommunicateWithHost err = 0 [22:17:04]CheckOFDResponse [22:17:04]1017 (14) - 77093643461234 [22:17:04]1041 (16) - 0000000000874939 [22:17:04]1040 (4) - 119177 [22:17:04]1012 (4) - 30.07.2024 16:25 [22:17:04]1206 (1) - 0 [22:17:04]OFD Sender: Remove packet 119177 [22:17:04]ProducePacketName [22:17:04]name=ofd_packets/00119177 [22:17:04]NVStorageDeleteData [22:17:04]OFD Sender: Processing packet 119178 [packets to send 158, broken 85] [22:17:04]ProducePacketName [22:17:04]name=ofd_packets/00119178 [22:17:04]OFD Sender: To server: pG, [22:17:04]CommunicateWithHost lk.salyk.kg:30040 [22:17:04]ConnectInit lk.salyk.kg [22:17:04]Connected sock=9 [22:17:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 35 04 01 A8 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 FB 25 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D1 01 00 35 04 06 00 02 06 AC D9 A8 87 45 F1 9B D6 D9 4A 59 01 [22:17:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3C 0B 47 00 FA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8A D1 01 00 F4 03 04 00 EA 13 A9 66 B6 04 01 00 00 35 F4 2D CE EB 4E C5 6A [22:17:04]CommunicateWithHost err = 0 [22:17:04]CheckOFDResponse [22:17:04]1017 (14) - 77093643461234 [22:17:04]1041 (16) - 0000000000874939 [22:17:04]1040 (4) - 119178 [22:17:04]1012 (4) - 30.07.2024 16:25 [22:17:04]1206 (1) - 0 [22:17:04]OFD Sender: Remove packet 119178 [22:17:04]ProducePacketName [22:17:04]name=ofd_packets/00119178 [22:17:04]NVStorageDeleteData [22:17:05]OFD Sender: Processing packet 119179 [packets to send 157, broken 85] [22:17:05]ProducePacketName [22:17:05]name=ofd_packets/00119179 [22:17:05]OFD Sender: To server: pG, [22:17:05]CommunicateWithHost lk.salyk.kg:30040 [22:17:05]ConnectInit lk.salyk.kg [22:17:05]Connected sock=9 [22:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 37 72 07 01 38 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 BA 27 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8B D1 01 00 35 04 06 00 E3 22 26 4A 7D E7 46 3C 27 5B 7F 69 7C 5C [22:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F0 61 47 00 7D 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 34 39 33 39 10 04 04 00 8B D1 01 00 F4 03 04 00 EB 13 A9 66 B6 04 01 00 00 73 F1 85 DD 3A D9 5F F2 [22:17:05]CommunicateWithHost err = 0 [22:17:05]CheckOFDResponse [22:17:05]1017 (14) - 77093643461234 [22:17:05]1041 (16) - 0000000000874939 [22:17:05]1040 (4) - 119179 [22:17:05]1012 (4) - 30.07.2024 16:25 [22:17:05]1206 (1) - 0 [22:17:05]OFD Sender: Remove packet 119179 [22:17:05]ProducePacketName [22:17:05]name=ofd_packets/00119179 [22:17:05]NVStorageDeleteData [22:17:06]OFD Sender: Processing packet 119180 [packets to send 156, broken 85] [22:17:06]ProducePacketName [22:17:06]name=ofd_packets/00119180 [22:17:06]OFD Sender: To server: pG, [22:17:06]CommunicateWithHost lk.salyk.kg:30040 [22:17:06]ConnectInit lk.salyk.kg [22:17:06]Connected sock=9 [22:17:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 08 A3 07 01 10 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3E 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 E8 00 00 00 F4 03 04 00 F2 27 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C D1 01 00 35 04 06 00 49 88 F0 25 02 72 0B 87 3E 98 AE C2 53 75 [22:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7A C9 47 00 D4 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8C D1 01 00 F4 03 04 00 EC 13 A9 66 B6 04 01 00 00 B2 6B B7 C5 45 EF 96 DD [22:17:06]CommunicateWithHost err = 0 [22:17:06]CheckOFDResponse [22:17:06]1017 (14) - 77093643461234 [22:17:06]1041 (16) - 0000000000874939 [22:17:06]1040 (4) - 119180 [22:17:06]1012 (4) - 30.07.2024 16:25 [22:17:06]1206 (1) - 0 [22:17:06]OFD Sender: Remove packet 119180 [22:17:06]ProducePacketName [22:17:06]name=ofd_packets/00119180 [22:17:06]NVStorageDeleteData [22:17:07]OFD Sender: Processing packet 119181 [packets to send 155, broken 85] [22:17:07]ProducePacketName [22:17:07]name=ofd_packets/00119181 [22:17:07]OFD Sender: To server: pG, [22:17:07]CommunicateWithHost lk.salyk.kg:30040 [22:17:07]ConnectInit lk.salyk.kg [22:17:07]Connected sock=9 [22:17:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF 9D 07 01 7E B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 E9 00 00 00 F4 03 04 00 6D 29 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D1 01 00 35 04 06 00 A9 A2 80 D8 E2 70 DD DC EB 06 BB E5 43 B8 [22:17:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B8 EF 47 00 C8 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8D D1 01 00 F4 03 04 00 EC 13 A9 66 B6 04 01 00 00 FF B5 E3 25 39 72 9D 06 [22:17:07]CommunicateWithHost err = 0 [22:17:07]CheckOFDResponse [22:17:07]1017 (14) - 77093643461234 [22:17:07]1041 (16) - 0000000000874939 [22:17:07]1040 (4) - 119181 [22:17:07]1012 (4) - 30.07.2024 16:25 [22:17:07]1206 (1) - 0 [22:17:07]OFD Sender: Remove packet 119181 [22:17:07]ProducePacketName [22:17:07]name=ofd_packets/00119181 [22:17:07]NVStorageDeleteData [22:17:07]OFD Sender: Processing packet 119182 [packets to send 154, broken 85] [22:17:07]ProducePacketName [22:17:07]name=ofd_packets/00119182 [22:17:07]OFD Sender: To server: pG, [22:17:07]CommunicateWithHost lk.salyk.kg:30040 [22:17:07]ConnectInit lk.salyk.kg [22:17:08]Connected sock=10 [22: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 34 39 33 39 0C 01 00 00 07 1D 04 01 D9 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 0D 2A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E D1 01 00 35 04 06 00 1D 75 04 C1 6C D2 97 9E 25 1B 67 C6 8A E6 [22:17:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A9 FB 47 00 71 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8E D1 01 00 F4 03 04 00 ED 13 A9 66 B6 04 01 00 00 BB 07 60 CA 5D 56 8C 18 [22:17:08]CommunicateWithHost err = 0 [22:17:08]CheckOFDResponse [22:17:08]1017 (14) - 77093643461234 [22:17:08]1041 (16) - 0000000000874939 [22:17:08]1040 (4) - 119182 [22:17:08]1012 (4) - 30.07.2024 16:25 [22:17:08]1206 (1) - 0 [22:17:08]OFD Sender: Remove packet 119182 [22:17:08]ProducePacketName [22:17:08]name=ofd_packets/00119182 [22:17:08]NVStorageDeleteData [22:17:08]OFD Sender: Processing packet 119183 [packets to send 153, broken 85] [22:17:08]ProducePacketName [22:17:08]name=ofd_packets/00119183 [22:17:08]OFD Sender: To server: pG, [22:17:08]CommunicateWithHost lk.salyk.kg:30040 [22:17:08]ConnectInit lk.salyk.kg [22:17:08]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 33 70 07 01 1F 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 EB 00 00 00 F4 03 04 00 1A 2A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 8F D1 01 00 35 04 06 00 C2 D3 05 23 B8 7B 13 11 A6 CF 7F E1 36 97 [22:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 3B B2 47 00 B9 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 34 39 33 39 10 04 04 00 8F D1 01 00 F4 03 04 00 EE 13 A9 66 B6 04 01 00 00 AE 59 CB C3 15 1A 90 A7 [22:17:09]CommunicateWithHost err = 0 [22:17:09]CheckOFDResponse [22:17:09]1017 (14) - 77093643461234 [22:17:09]1041 (16) - 0000000000874939 [22:17:09]1040 (4) - 119183 [22:17:09]1012 (4) - 30.07.2024 16:25 [22:17:09]1206 (1) - 0 [22:17:09]OFD Sender: Remove packet 119183 [22:17:09]ProducePacketName [22:17:09]name=ofd_packets/00119183 [22:17:09]NVStorageDeleteData [22:17:09]OFD Sender: Processing packet 119184 [packets to send 152, broken 85] [22:17:09]ProducePacketName [22:17:09]name=ofd_packets/00119184 [22:17:09]OFD Sender: To server: pG, [22:17:09]CommunicateWithHost lk.salyk.kg:30040 [22:17:09]ConnectInit lk.salyk.kg [22:17:09]Connected sock=9 [22:17:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 A3 07 01 AF 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 E5 2A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 90 D1 01 00 35 04 06 00 AC 37 03 9E 1E 6A E0 BA 4A 66 12 33 82 AA [22:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 17 19 47 00 49 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 34 39 33 39 10 04 04 00 90 D1 01 00 F4 03 04 00 EF 13 A9 66 B6 04 01 00 00 45 55 B9 4A 41 98 A7 0B [22:17:09]CommunicateWithHost err = 0 [22:17:09]CheckOFDResponse [22:17:09]1017 (14) - 77093643461234 [22:17:09]1041 (16) - 0000000000874939 [22:17:09]1040 (4) - 119184 [22:17:09]1012 (4) - 30.07.2024 16:25 [22:17:09]1206 (1) - 0 [22:17:09]OFD Sender: Remove packet 119184 [22:17:09]ProducePacketName [22:17:09]name=ofd_packets/00119184 [22:17:09]NVStorageDeleteData [22:17:10]OFD Sender: Processing packet 119185 [packets to send 151, broken 85] [22:17:10]ProducePacketName [22:17:10]name=ofd_packets/00119185 [22:17:10]OFD Sender: To server: pG, [22:17:10]CommunicateWithHost lk.salyk.kg:30040 [22:17:10]ConnectInit lk.salyk.kg [22:17:10]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 47 91 07 01 24 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 ED 00 00 00 F4 03 04 00 00 2B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 91 D1 01 00 35 04 06 00 2F 18 0B B3 5E 47 AF 85 C2 77 12 2D C7 B6 [22:17:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 FD A3 47 00 98 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 34 39 33 39 10 04 04 00 91 D1 01 00 F4 03 04 00 F0 13 A9 66 B6 04 01 00 00 D7 6B 1A 55 F7 B9 D1 A7 [22:17:10]CommunicateWithHost err = 0 [22:17:10]CheckOFDResponse [22:17:10]1017 (14) - 77093643461234 [22:17:10]1041 (16) - 0000000000874939 [22:17:10]1040 (4) - 119185 [22:17:10]1012 (4) - 30.07.2024 16:25 [22:17:10]1206 (1) - 0 [22:17:10]OFD Sender: Remove packet 119185 [22:17:10]ProducePacketName [22:17:10]name=ofd_packets/00119185 [22:17:10]NVStorageDeleteData [22:17:11]OFD Sender: Processing packet 119186 [packets to send 150, broken 85] [22:17:11]ProducePacketName [22:17:11]name=ofd_packets/00119186 [22:17:11]OFD Sender: To server: pG, [22:17:11]CommunicateWithHost lk.salyk.kg:30040 [22:17:11]ConnectInit lk.salyk.kg [22:17:11]Connected sock=9 [22:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3F FE 07 01 FA C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 EE 00 00 00 F4 03 04 00 5E 2B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 D1 01 00 35 04 06 00 76 8D 30 68 65 DB EB 31 F3 8F 83 7E CF A5 [22:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 A8 ED 47 00 FD E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 92 D1 01 00 F4 03 04 00 F1 13 A9 66 B6 04 01 00 00 10 BD 18 F6 11 A1 04 EF [22:17:11]CommunicateWithHost err = 0 [22:17:11]CheckOFDResponse [22:17:11]1017 (14) - 77093643461234 [22:17:11]1041 (16) - 0000000000874939 [22:17:11]1040 (4) - 119186 [22:17:11]1012 (4) - 30.07.2024 16:25 [22:17:11]1206 (1) - 0 [22:17:11]OFD Sender: Remove packet 119186 [22:17:11]ProducePacketName [22:17:11]name=ofd_packets/00119186 [22:17:11]NVStorageDeleteData [22:17:11]OFD Sender: Processing packet 119187 [packets to send 149, broken 85] [22:17:11]ProducePacketName [22:17:11]name=ofd_packets/00119187 [22:17:11]OFD Sender: To server: pG, [22:17:11]CommunicateWithHost lk.salyk.kg:30040 [22:17:11]ConnectInit lk.salyk.kg [22:17:12]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 B0 BE 07 01 13 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 EF 00 00 00 F4 03 04 00 32 32 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D1 01 00 35 04 06 00 60 14 21 EF A2 AC 02 FF F3 EC 64 2A F5 51 [22:17:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 74 CE 47 00 5C 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 93 D1 01 00 F4 03 04 00 F1 13 A9 66 B6 04 01 00 00 6F 39 9E F5 3B B4 E0 F9 [22:17:12]CommunicateWithHost err = 0 [22:17:12]CheckOFDResponse [22:17:12]1017 (14) - 77093643461234 [22:17:12]1041 (16) - 0000000000874939 [22:17:12]1040 (4) - 119187 [22:17:12]1012 (4) - 30.07.2024 16:25 [22:17:12]1206 (1) - 0 [22:17:12]OFD Sender: Remove packet 119187 [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00119187 [22:17:12]NVStorageDeleteData [22:17:12]OFD Sender: Processing packet 119188 [packets to send 148, broken 85] [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00119188 [22:17:12]OFD Sender: To server: pG, [22:17:12]CommunicateWithHost lk.salyk.kg:30040 [22:17:12]ConnectInit lk.salyk.kg [22:17:12]Connected sock=9 [22: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 34 39 33 39 0C 01 00 00 E9 09 04 01 08 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 4A 33 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 D1 01 00 35 04 06 00 CE BF 0B 53 F6 85 9A 7A FC D2 F1 DB 7D FA [22:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 70 BD 47 00 9D 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 94 D1 01 00 F4 03 04 00 F2 13 A9 66 B6 04 01 00 00 98 BC E7 E5 5E 00 AA 3F [22:17:13]CommunicateWithHost err = 0 [22:17:13]CheckOFDResponse [22:17:13]1017 (14) - 77093643461234 [22:17:13]1041 (16) - 0000000000874939 [22:17:13]1040 (4) - 119188 [22:17:13]1012 (4) - 30.07.2024 16:25 [22:17:13]1206 (1) - 0 [22:17:13]OFD Sender: Remove packet 119188 [22:17:13]ProducePacketName [22:17:13]name=ofd_packets/00119188 [22:17:13]NVStorageDeleteData [22:17:13]OFD Sender: Processing packet 119189 [packets to send 147, broken 85] [22:17:13]ProducePacketName [22:17:13]name=ofd_packets/00119189 [22:17:13]OFD Sender: To server: pG, [22:17:13]CommunicateWithHost lk.salyk.kg:30040 [22:17:13]ConnectInit lk.salyk.kg [22:17:13]Connected sock=9 [22:17:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C3 2F 04 01 E3 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 69 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 8B 36 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D1 01 00 35 04 06 00 10 6A 1C 20 D6 96 4A 51 DC 41 90 55 5A CE [22:17:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 4D F4 47 00 A6 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 95 D1 01 00 F4 03 04 00 F3 13 A9 66 B6 04 01 00 00 50 BE 2B 28 DE 49 CA 42 [22:17:13]CommunicateWithHost err = 0 [22:17:13]CheckOFDResponse [22:17:13]1017 (14) - 77093643461234 [22:17:13]1041 (16) - 0000000000874939 [22:17:13]1040 (4) - 119189 [22:17:13]1012 (4) - 30.07.2024 16:25 [22:17:13]1206 (1) - 0 [22:17:13]OFD Sender: Remove packet 119189 [22:17:13]ProducePacketName [22:17:13]name=ofd_packets/00119189 [22:17:13]NVStorageDeleteData [22:17:14]OFD Sender: Processing packet 119190 [packets to send 146, broken 85] [22:17:14]ProducePacketName [22:17:14]name=ofd_packets/00119190 [22:17:14]OFD Sender: To server: pG, [22:17:14]CommunicateWithHost lk.salyk.kg:30040 [22:17:14]ConnectInit lk.salyk.kg [22:17:14]Connected sock=9 [22:17:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 78 08 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 B2 36 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D1 01 00 35 04 06 00 CB 5B D4 32 46 EC 81 5C ED 44 4B 5F 64 F2 [22:17:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E0 2B 47 00 E9 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 96 D1 01 00 F4 03 04 00 F4 13 A9 66 B6 04 01 00 00 8B 2E 6C FB CC F2 5B 2B [22:17:14]CommunicateWithHost err = 0 [22:17:14]CheckOFDResponse [22:17:14]1017 (14) - 77093643461234 [22:17:14]1041 (16) - 0000000000874939 [22:17:14]1040 (4) - 119190 [22:17:14]1012 (4) - 30.07.2024 16:25 [22:17:14]1206 (1) - 0 [22:17:14]OFD Sender: Remove packet 119190 [22:17:14]ProducePacketName [22:17:14]name=ofd_packets/00119190 [22:17:14]NVStorageDeleteData [22:17:15]OFD Sender: Processing packet 119191 [packets to send 145, broken 85] [22:17:15]ProducePacketName [22:17:15]name=ofd_packets/00119191 [22:17:15]OFD Sender: To server: pG, [22:17:15]CommunicateWithHost lk.salyk.kg:30040 [22:17:15]ConnectInit lk.salyk.kg [22:17:15]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 6B 72 07 01 AE 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 AA 50 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 E7 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 BD 36 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 97 D1 01 00 35 04 06 00 B3 A7 4D F7 80 A8 8E 0B CC B6 1D 35 E6 1D [22:17:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D8 34 47 00 62 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 34 39 33 39 10 04 04 00 97 D1 01 00 F4 03 04 00 F5 13 A9 66 B6 04 01 00 00 4B C6 6E 72 C5 97 E7 C7 [22:17:15]CommunicateWithHost err = 0 [22:17:15]CheckOFDResponse [22:17:15]1017 (14) - 77093643461234 [22:17:15]1041 (16) - 0000000000874939 [22:17:15]1040 (4) - 119191 [22:17:15]1012 (4) - 30.07.2024 16:25 [22:17:15]1206 (1) - 0 [22:17:15]OFD Sender: Remove packet 119191 [22:17:15]ProducePacketName [22:17:15]name=ofd_packets/00119191 [22:17:15]NVStorageDeleteData [22:17:16]OFD Sender: Processing packet 119192 [packets to send 144, broken 85] [22:17:16]ProducePacketName [22:17:16]name=ofd_packets/00119192 [22:17:16]OFD Sender: To server: pG, [22:17:16]CommunicateWithHost lk.salyk.kg:30040 [22:17:16]ConnectInit lk.salyk.kg [22:17:16]Connected sock=9 [22:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 3C 19 07 01 23 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 EC 4A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 F8 FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 CF 37 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 D1 01 00 35 04 06 00 8F 8C C8 5E C3 0A F4 20 93 25 59 E1 70 3B [22:17:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E2 FB 47 00 FC F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 98 D1 01 00 F4 03 04 00 F6 13 A9 66 B6 04 01 00 00 7B F6 36 F9 A9 59 C9 E5 [22:17:16]CommunicateWithHost err = 0 [22:17:16]CheckOFDResponse [22:17:16]1017 (14) - 77093643461234 [22:17:16]1041 (16) - 0000000000874939 [22:17:16]1040 (4) - 119192 [22:17:16]1012 (4) - 30.07.2024 16:25 [22:17:16]1206 (1) - 0 [22:17:16]OFD Sender: Remove packet 119192 [22:17:16]ProducePacketName [22:17:16]name=ofd_packets/00119192 [22:17:16]NVStorageDeleteData [22:17:17]OFD Sender: Processing packet 119193 [packets to send 143, broken 85] [22:17:17]ProducePacketName [22:17:17]name=ofd_packets/00119193 [22:17:17]OFD Sender: To server: pG, [22:17:17]CommunicateWithHost lk.salyk.kg:30040 [22:17:17]ConnectInit lk.salyk.kg [22:17:17]Connected sock=9 [22:17:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 ED 04 04 01 D2 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 D4 38 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 D1 01 00 35 04 06 00 FD B8 CF 6B ED 26 B2 0D BA 28 25 AF 6A 7B [22:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 42 9E 47 00 B8 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 99 D1 01 00 F4 03 04 00 F6 13 A9 66 B6 04 01 00 00 A2 95 25 84 E0 EB EC FF [22:17:17]CommunicateWithHost err = 0 [22:17:17]CheckOFDResponse [22:17:17]1017 (14) - 77093643461234 [22:17:17]1041 (16) - 0000000000874939 [22:17:17]1040 (4) - 119193 [22:17:17]1012 (4) - 30.07.2024 16:25 [22:17:17]1206 (1) - 0 [22:17:17]OFD Sender: Remove packet 119193 [22:17:17]ProducePacketName [22:17:17]name=ofd_packets/00119193 [22:17:17]NVStorageDeleteData [22:17:17]OFD Sender: Processing packet 119194 [packets to send 142, broken 85] [22:17:17]ProducePacketName [22:17:17]name=ofd_packets/00119194 [22:17:17]OFD Sender: To server: pG, [22:17:17]CommunicateWithHost lk.salyk.kg:30040 [22:17:17]ConnectInit lk.salyk.kg [22:17:17]Connected sock=9 [22:17:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 51 35 04 01 8C E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 3C 3A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A D1 01 00 35 04 06 00 A5 6F E4 2B 26 B9 38 7C 73 B0 80 B1 34 65 [22:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 01 F0 47 00 2A 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9A D1 01 00 F4 03 04 00 F7 13 A9 66 B6 04 01 00 00 AE C9 A4 85 30 3C 1C 00 [22:17:18]CommunicateWithHost err = 0 [22:17:18]CheckOFDResponse [22:17:18]1017 (14) - 77093643461234 [22:17:18]1041 (16) - 0000000000874939 [22:17:18]1040 (4) - 119194 [22:17:18]1012 (4) - 30.07.2024 16:25 [22:17:18]1206 (1) - 0 [22:17:18]OFD Sender: Remove packet 119194 [22:17:18]ProducePacketName [22:17:18]name=ofd_packets/00119194 [22:17:18]NVStorageDeleteData [22:17:18]OFD Sender: Processing packet 119195 [packets to send 141, broken 85] [22:17:18]ProducePacketName [22:17:18]name=ofd_packets/00119195 [22:17:18]OFD Sender: To server: pG, [22:17:18]CommunicateWithHost lk.salyk.kg:30040 [22:17:18]ConnectInit lk.salyk.kg [22:17:18]Connected sock=9 [22:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 F2 21 04 01 17 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA D9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 07 7C 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 7B 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 B0 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 7B 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 99 3A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9B D1 01 00 35 04 06 00 E6 1B 8C D1 A7 81 D0 99 11 76 B8 90 51 E9 [22:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 C5 47 00 42 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 34 39 33 39 10 04 04 00 9B D1 01 00 F4 03 04 00 F8 13 A9 66 B6 04 01 00 00 81 99 0D 66 9F 79 97 6A [22:17:18]CommunicateWithHost err = 0 [22:17:18]CheckOFDResponse [22:17:18]1017 (14) - 77093643461234 [22:17:18]1041 (16) - 0000000000874939 [22:17:18]1040 (4) - 119195 [22:17:18]1012 (4) - 30.07.2024 16:25 [22:17:18]1206 (1) - 0 [22:17:18]OFD Sender: Remove packet 119195 [22:17:18]ProducePacketName [22:17:18]name=ofd_packets/00119195 [22:17:18]NVStorageDeleteData [22:17:19]OFD Sender: Processing packet 119196 [packets to send 140, broken 85] [22:17:19]ProducePacketName [22:17:19]name=ofd_packets/00119196 [22:17:19]OFD Sender: To server: pG, [22:17:19]CommunicateWithHost lk.salyk.kg:30040 [22:17:19]ConnectInit lk.salyk.kg [22:17:19]Connected sock=9 [22:17:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 AE CA 04 01 34 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 85 3C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D1 01 00 35 04 06 00 67 65 4B DA 15 6B FF 89 7B 1D AD 56 4E 84 [22:17:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7A 63 47 00 4F 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9C D1 01 00 F4 03 04 00 F9 13 A9 66 B6 04 01 00 00 42 17 9B E6 42 D4 F5 2C [22:17:19]CommunicateWithHost err = 0 [22:17:19]CheckOFDResponse [22:17:19]1017 (14) - 77093643461234 [22:17:19]1041 (16) - 0000000000874939 [22:17:19]1040 (4) - 119196 [22:17:19]1012 (4) - 30.07.2024 16:25 [22:17:19]1206 (1) - 0 [22:17:19]OFD Sender: Remove packet 119196 [22:17:19]ProducePacketName [22:17:19]name=ofd_packets/00119196 [22:17:19]NVStorageDeleteData [22:17:20]OFD Sender: Processing packet 119197 [packets to send 139, broken 85] [22:17:20]ProducePacketName [22:17:20]name=ofd_packets/00119197 [22:17:20]OFD Sender: To server: pG, [22:17:20]CommunicateWithHost lk.salyk.kg:30040 [22:17:20]ConnectInit lk.salyk.kg [22:17:20]Connected sock=9 [22:17:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EC 96 04 01 98 A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 E9 3C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9D D1 01 00 35 04 06 00 00 F2 30 66 CE 2E 9C 3C 73 FE 77 4D 5D A5 [22:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 14 46 47 00 B6 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 34 39 33 39 10 04 04 00 9D D1 01 00 F4 03 04 00 FA 13 A9 66 B6 04 01 00 00 0F C7 9B 46 80 96 FB 9C [22:17:20]CommunicateWithHost err = 0 [22:17:20]CheckOFDResponse [22:17:20]1017 (14) - 77093643461234 [22:17:20]1041 (16) - 0000000000874939 [22:17:20]1040 (4) - 119197 [22:17:20]1012 (4) - 30.07.2024 16:25 [22:17:20]1206 (1) - 0 [22:17:20]OFD Sender: Remove packet 119197 [22:17:20]ProducePacketName [22:17:20]name=ofd_packets/00119197 [22:17:20]NVStorageDeleteData [22:17:21]OFD Sender: Processing packet 119198 [packets to send 138, broken 85] [22:17:21]ProducePacketName [22:17:21]name=ofd_packets/00119198 [22:17:21]OFD Sender: To server: pG, [22:17:21]CommunicateWithHost lk.salyk.kg:30040 [22:17:21]ConnectInit lk.salyk.kg [22:17:21]Connected sock=9 [22:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7A 8D 07 01 AC 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F6 1D 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 23 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 FC 3C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E D1 01 00 35 04 06 00 89 53 DB 60 EC 9C 3E 16 7E 24 8F 8D B3 9E [22:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 26 A0 47 00 3F 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9E D1 01 00 F4 03 04 00 FA 13 A9 66 B6 04 01 00 00 77 68 E9 45 E4 42 CA 2F [22:17:21]CommunicateWithHost err = 0 [22:17:21]CheckOFDResponse [22:17:21]1017 (14) - 77093643461234 [22:17:21]1041 (16) - 0000000000874939 [22:17:21]1040 (4) - 119198 [22:17:21]1012 (4) - 30.07.2024 16:25 [22:17:21]1206 (1) - 0 [22:17:21]OFD Sender: Remove packet 119198 [22:17:21]ProducePacketName [22:17:21]name=ofd_packets/00119198 [22:17:21]NVStorageDeleteData [22:17:21]OFD Sender: Processing packet 119199 [packets to send 137, broken 85] [22:17:21]ProducePacketName [22:17:21]name=ofd_packets/00119199 [22:17:21]OFD Sender: To server: pG, [22:17:21]CommunicateWithHost lk.salyk.kg:30040 [22:17:21]ConnectInit lk.salyk.kg [22:17:21]Connected sock=9 [22:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 D8 73 07 01 1B EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 96 40 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D1 01 00 35 04 06 00 49 4C D0 93 82 C2 9D 3D 35 33 97 A7 FA 31 [22:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B4 13 47 00 9E 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 9F D1 01 00 F4 03 04 00 FB 13 A9 66 B6 04 01 00 00 86 62 C9 BD D2 17 27 90 [22:17:22]CommunicateWithHost err = 0 [22:17:22]CheckOFDResponse [22:17:22]1017 (14) - 77093643461234 [22:17:22]1041 (16) - 0000000000874939 [22:17:22]1040 (4) - 119199 [22:17:22]1012 (4) - 30.07.2024 16:25 [22:17:22]1206 (1) - 0 [22:17:22]OFD Sender: Remove packet 119199 [22:17:22]ProducePacketName [22:17:22]name=ofd_packets/00119199 [22:17:22]NVStorageDeleteData [22:17:22]OFD Sender: Processing packet 119200 [packets to send 136, broken 85] [22:17:22]ProducePacketName [22:17:22]name=ofd_packets/00119200 [22:17:22]OFD Sender: To server: pG, [22:17:22]CommunicateWithHost lk.salyk.kg:30040 [22:17:22]ConnectInit lk.salyk.kg [22:17:22]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 36 2C 07 01 75 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 96 41 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 D1 01 00 35 04 06 00 72 37 EF 3A E3 B0 77 B0 EB 44 2E 49 4C 6F [22:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5C 97 47 00 58 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A0 D1 01 00 F4 03 04 00 FC 13 A9 66 B6 04 01 00 00 B4 E4 A2 3A 16 7F 05 76 [22:17:22]CommunicateWithHost err = 0 [22:17:22]CheckOFDResponse [22:17:22]1017 (14) - 77093643461234 [22:17:22]1041 (16) - 0000000000874939 [22:17:22]1040 (4) - 119200 [22:17:22]1012 (4) - 30.07.2024 16:25 [22:17:22]1206 (1) - 0 [22:17:22]OFD Sender: Remove packet 119200 [22:17:22]ProducePacketName [22:17:22]name=ofd_packets/00119200 [22:17:22]NVStorageDeleteData [22:17:23]OFD Sender: Processing packet 119201 [packets to send 135, broken 85] [22:17:23]ProducePacketName [22:17:23]name=ofd_packets/00119201 [22:17:23]OFD Sender: To server: pG, [22:17:23]CommunicateWithHost lk.salyk.kg:30040 [22:17:23]ConnectInit lk.salyk.kg [22:17:23]Connected sock=9 [22:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C9 79 04 01 57 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 99 43 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D1 01 00 35 04 06 00 9C 2F 1F A2 BC 46 52 D4 43 49 D1 0A F3 A9 [22:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B9 00 47 00 FA 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A1 D1 01 00 F4 03 04 00 FD 13 A9 66 B6 04 01 00 00 5E 82 37 F7 15 B3 44 E1 [22:17:23]CommunicateWithHost err = 0 [22:17:23]CheckOFDResponse [22:17:23]1017 (14) - 77093643461234 [22:17:23]1041 (16) - 0000000000874939 [22:17:23]1040 (4) - 119201 [22:17:23]1012 (4) - 30.07.2024 16:25 [22:17:23]1206 (1) - 0 [22:17:23]OFD Sender: Remove packet 119201 [22:17:23]ProducePacketName [22:17:23]name=ofd_packets/00119201 [22:17:23]NVStorageDeleteData [22:17:24]OFD Sender: Processing packet 119202 [packets to send 134, broken 85] [22:17:24]ProducePacketName [22:17:24]name=ofd_packets/00119202 [22:17:24]OFD Sender: To server: pG, [22:17:24]CommunicateWithHost lk.salyk.kg:30040 [22:17:24]ConnectInit lk.salyk.kg [22:17:24]Connected sock=9 [22:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4D 31 07 01 DF D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 7E 44 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D1 01 00 35 04 06 00 28 B2 55 F0 69 75 29 70 3E 54 3E F0 6F 4F [22:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8C 27 47 00 DE 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A2 D1 01 00 F4 03 04 00 FE 13 A9 66 B6 04 01 00 00 44 07 DC D5 6C E7 65 10 [22:17:24]CommunicateWithHost err = 0 [22:17:24]CheckOFDResponse [22:17:24]1017 (14) - 77093643461234 [22:17:24]1041 (16) - 0000000000874939 [22:17:24]1040 (4) - 119202 [22:17:24]1012 (4) - 30.07.2024 16:25 [22:17:24]1206 (1) - 0 [22:17:24]OFD Sender: Remove packet 119202 [22:17:24]ProducePacketName [22:17:24]name=ofd_packets/00119202 [22:17:24]NVStorageDeleteData [22:17:25]OFD Sender: Processing packet 119203 [packets to send 133, broken 85] [22:17:25]ProducePacketName [22:17:25]name=ofd_packets/00119203 [22:17:25]OFD Sender: To server: pG, [22:17:25]CommunicateWithHost lk.salyk.kg:30040 [22:17:25]ConnectInit lk.salyk.kg [22:17:25]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 C6 BA 07 01 52 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 57 46 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 D1 01 00 35 04 06 00 EF 04 2A 02 23 B9 9E 89 25 21 99 AD 16 87 [22:17:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D7 6D 47 00 81 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A3 D1 01 00 F4 03 04 00 FE 13 A9 66 B6 04 01 00 00 95 7D 44 5B 73 C5 0F 30 [22:17:25]CommunicateWithHost err = 0 [22:17:25]CheckOFDResponse [22:17:25]1017 (14) - 77093643461234 [22:17:25]1041 (16) - 0000000000874939 [22:17:25]1040 (4) - 119203 [22:17:25]1012 (4) - 30.07.2024 16:25 [22:17:25]1206 (1) - 0 [22:17:25]OFD Sender: Remove packet 119203 [22:17:25]ProducePacketName [22:17:25]name=ofd_packets/00119203 [22:17:25]NVStorageDeleteData [22:17:25]OFD Sender: Processing packet 119204 [packets to send 132, broken 85] [22:17:25]ProducePacketName [22:17:25]name=ofd_packets/00119204 [22:17:25]OFD Sender: To server: pG, [22:17:25]CommunicateWithHost lk.salyk.kg:30040 [22:17:25]ConnectInit lk.salyk.kg [22:17:25]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 98 59 07 01 82 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 65 48 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 D1 01 00 35 04 06 00 E5 AA 2C 91 08 7D 48 3B 7A 7A 44 03 E0 67 [22:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D DC 47 00 1F DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A4 D1 01 00 F4 03 04 00 FF 13 A9 66 B6 04 01 00 00 A8 A4 0F AC 59 51 E8 32 [22:17:26]CommunicateWithHost err = 0 [22:17:26]CheckOFDResponse [22:17:26]1017 (14) - 77093643461234 [22:17:26]1041 (16) - 0000000000874939 [22:17:26]1040 (4) - 119204 [22:17:26]1012 (4) - 30.07.2024 16:25 [22:17:26]1206 (1) - 0 [22:17:26]OFD Sender: Remove packet 119204 [22:17:26]ProducePacketName [22:17:26]name=ofd_packets/00119204 [22:17:26]NVStorageDeleteData [22:17:26]OFD Sender: Processing packet 119205 [packets to send 131, broken 85] [22:17:26]ProducePacketName [22:17:26]name=ofd_packets/00119205 [22:17:26]OFD Sender: To server: pG, [22:17:26]CommunicateWithHost lk.salyk.kg:30040 [22:17:26]ConnectInit lk.salyk.kg [22:17:26]Connected sock=9 [22:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4C D2 07 01 E5 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 0C 49 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D1 01 00 35 04 06 00 CA 76 FF 23 9B 81 B0 9A 26 73 CA CB AB A2 [22:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 75 B4 47 00 76 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A5 D1 01 00 F4 03 04 00 00 14 A9 66 B6 04 01 00 00 EF 9D F2 A6 1C 79 5A 83 [22:17:26]CommunicateWithHost err = 0 [22:17:26]CheckOFDResponse [22:17:26]1017 (14) - 77093643461234 [22:17:26]1041 (16) - 0000000000874939 [22:17:26]1040 (4) - 119205 [22:17:26]1012 (4) - 30.07.2024 16:25 [22:17:26]1206 (1) - 0 [22:17:26]OFD Sender: Remove packet 119205 [22:17:26]ProducePacketName [22:17:26]name=ofd_packets/00119205 [22:17:26]NVStorageDeleteData [22:17:27]OFD Sender: Processing packet 119206 [packets to send 130, broken 85] [22:17:27]ProducePacketName [22:17:27]name=ofd_packets/00119206 [22:17:27]OFD Sender: To server: pG, [22:17:27]CommunicateWithHost lk.salyk.kg:30040 [22:17:27]ConnectInit lk.salyk.kg [22:17:27]Connected sock=9 [22:17:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 AC C4 07 01 A6 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 49 49 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 D1 01 00 35 04 06 00 49 A3 8A 59 9A F4 20 2B 9D 67 2E 9B 17 2B [22:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 54 81 47 00 A9 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A6 D1 01 00 F4 03 04 00 01 14 A9 66 B6 04 01 00 00 99 DC D5 98 67 4A AB 22 [22:17:27]CommunicateWithHost err = 0 [22:17:27]CheckOFDResponse [22:17:27]1017 (14) - 77093643461234 [22:17:27]1041 (16) - 0000000000874939 [22:17:27]1040 (4) - 119206 [22:17:27]1012 (4) - 30.07.2024 16:25 [22:17:27]1206 (1) - 0 [22:17:27]OFD Sender: Remove packet 119206 [22:17:27]ProducePacketName [22:17:27]name=ofd_packets/00119206 [22:17:27]NVStorageDeleteData [22:17:28]OFD Sender: Processing packet 119207 [packets to send 129, broken 85] [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00119207 [22:17:28]OFD Sender: To server: pG, [22:17:28]CommunicateWithHost lk.salyk.kg:30040 [22:17:28]ConnectInit lk.salyk.kg [22:17:28]Connected sock=9 [22:17:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 7D 0B 07 01 03 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 1F 4A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 D1 01 00 35 04 06 00 7F 25 94 9D FE C7 CC 27 EA 66 64 54 F6 A5 [22:17:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 92 35 47 00 FC D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A7 D1 01 00 F4 03 04 00 02 14 A9 66 B6 04 01 00 00 25 BF 79 F1 21 B9 39 77 [22:17:28]CommunicateWithHost err = 0 [22:17:28]CheckOFDResponse [22:17:28]1017 (14) - 77093643461234 [22:17:28]1041 (16) - 0000000000874939 [22:17:28]1040 (4) - 119207 [22:17:28]1012 (4) - 30.07.2024 16:25 [22:17:28]1206 (1) - 0 [22:17:28]OFD Sender: Remove packet 119207 [22:17:28]ProducePacketName [22:17:28]name=ofd_packets/00119207 [22:17:28]NVStorageDeleteData [22:17:29]OFD Sender: Processing packet 119208 [packets to send 128, broken 85] [22:17:29]ProducePacketName [22:17:29]name=ofd_packets/00119208 [22:17:29]OFD Sender: To server: pG, [22:17:29]CommunicateWithHost lk.salyk.kg:30040 [22:17:29]ConnectInit lk.salyk.kg [22:17:29]Connected sock=9 [22:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C2 EE 04 01 DD 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 BF 4A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 D1 01 00 35 04 06 00 A7 24 36 BB A3 FC 1A E2 36 44 7B F4 52 1C [22:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 03 FD 47 00 C0 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A8 D1 01 00 F4 03 04 00 03 14 A9 66 B6 04 01 00 00 C0 27 C1 FA C1 54 AE E0 [22:17:29]CommunicateWithHost err = 0 [22:17:29]CheckOFDResponse [22:17:29]1017 (14) - 77093643461234 [22:17:29]1041 (16) - 0000000000874939 [22:17:29]1040 (4) - 119208 [22:17:29]1012 (4) - 30.07.2024 16:25 [22:17:29]1206 (1) - 0 [22:17:29]OFD Sender: Remove packet 119208 [22:17:29]ProducePacketName [22:17:29]name=ofd_packets/00119208 [22:17:29]NVStorageDeleteData [22:17:29]OFD Sender: Processing packet 119209 [packets to send 127, broken 85] [22:17:29]ProducePacketName [22:17:29]name=ofd_packets/00119209 [22:17:29]OFD Sender: To server: pG, [22:17:29]CommunicateWithHost lk.salyk.kg:30040 [22:17:29]ConnectInit lk.salyk.kg [22:17:30]Connected sock=9 [22: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 34 39 33 39 0C 01 00 00 DE E9 04 01 71 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 64 4B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 D1 01 00 35 04 06 00 69 6A BD 08 FC 07 A2 93 1A A8 86 3C 7D BC [22:17:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 25 87 47 00 0D 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 A9 D1 01 00 F4 03 04 00 03 14 A9 66 B6 04 01 00 00 BA 00 7F A4 B9 C5 DA 64 [22:17:30]CommunicateWithHost err = 0 [22:17:30]CheckOFDResponse [22:17:30]1017 (14) - 77093643461234 [22:17:30]1041 (16) - 0000000000874939 [22:17:30]1040 (4) - 119209 [22:17:30]1012 (4) - 30.07.2024 16:25 [22:17:30]1206 (1) - 0 [22:17:30]OFD Sender: Remove packet 119209 [22:17:30]ProducePacketName [22:17:30]name=ofd_packets/00119209 [22:17:30]NVStorageDeleteData [22:17:30]OFD Sender: Processing packet 119210 [packets to send 126, broken 85] [22:17:30]ProducePacketName [22:17:30]name=ofd_packets/00119210 [22:17:30]OFD Sender: To server: pG, [22:17:30]CommunicateWithHost lk.salyk.kg:30040 [22:17:30]ConnectInit lk.salyk.kg [22:17:30]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 80 A9 07 01 37 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 39 4C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D1 01 00 35 04 06 00 58 E3 FE 73 F0 8F F1 97 6F 2C 3A F3 4A 5C [22:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 66 C1 47 00 C5 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AA D1 01 00 F4 03 04 00 04 14 A9 66 B6 04 01 00 00 0E 7A A7 A7 89 D7 17 67 [22:17:31]CommunicateWithHost err = 0 [22:17:31]CheckOFDResponse [22:17:31]1017 (14) - 77093643461234 [22:17:31]1041 (16) - 0000000000874939 [22:17:31]1040 (4) - 119210 [22:17:31]1012 (4) - 30.07.2024 16:25 [22:17:31]1206 (1) - 0 [22:17:31]OFD Sender: Remove packet 119210 [22:17:31]ProducePacketName [22:17:31]name=ofd_packets/00119210 [22:17:31]NVStorageDeleteData [22:17:31]OFD Sender: Processing packet 119211 [packets to send 125, broken 85] [22:17:31]ProducePacketName [22:17:31]name=ofd_packets/00119211 [22:17:31]OFD Sender: To server: pG, [22:17:31]CommunicateWithHost lk.salyk.kg:30040 [22:17:31]ConnectInit lk.salyk.kg [22:17:31]Connected sock=9 [22:17:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BE 76 04 01 9C 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 42 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 B5 4C A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AB D1 01 00 35 04 06 00 B3 EA F9 1F 6C 32 75 52 F1 C4 C6 60 EE 71 [22:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 10 65 47 00 85 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 34 39 33 39 10 04 04 00 AB D1 01 00 F4 03 04 00 05 14 A9 66 B6 04 01 00 00 6B 26 0F 6F D5 AB 12 25 [22:17:31]CommunicateWithHost err = 0 [22:17:31]CheckOFDResponse [22:17:31]1017 (14) - 77093643461234 [22:17:31]1041 (16) - 0000000000874939 [22:17:31]1040 (4) - 119211 [22:17:31]1012 (4) - 30.07.2024 16:25 [22:17:31]1206 (1) - 0 [22:17:31]OFD Sender: Remove packet 119211 [22:17:31]ProducePacketName [22:17:31]name=ofd_packets/00119211 [22:17:31]NVStorageDeleteData [22:17:32]OFD Sender: Processing packet 119212 [packets to send 124, broken 85] [22:17:32]ProducePacketName [22:17:32]name=ofd_packets/00119212 [22:17:32]OFD Sender: To server: pG, [22:17:32]CommunicateWithHost lk.salyk.kg:30040 [22:17:32]ConnectInit lk.salyk.kg [22:17:32]Connected sock=9 [22:17:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 80 24 04 01 CD 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 0A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 81 EF 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 EF 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC D7 00 00 00 00 07 04 06 00 40 EF 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 5B 4D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D1 01 00 35 04 06 00 AB C7 80 A5 29 0D F4 0D 25 29 66 12 F1 13 [22:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 0E 77 47 00 E1 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AC D1 01 00 F4 03 04 00 06 14 A9 66 B6 04 01 00 00 9E 36 42 0C E5 73 36 21 [22:17:32]CommunicateWithHost err = 0 [22:17:32]CheckOFDResponse [22:17:32]1017 (14) - 77093643461234 [22:17:32]1041 (16) - 0000000000874939 [22:17:32]1040 (4) - 119212 [22:17:32]1012 (4) - 30.07.2024 16:25 [22:17:32]1206 (1) - 0 [22:17:32]OFD Sender: Remove packet 119212 [22:17:32]ProducePacketName [22:17:32]name=ofd_packets/00119212 [22:17:32]NVStorageDeleteData [22:17:33]OFD Sender: Processing packet 119213 [packets to send 123, broken 85] [22:17:33]ProducePacketName [22:17:33]name=ofd_packets/00119213 [22:17:33]OFD Sender: To server: pG, [22:17:33]CommunicateWithHost lk.salyk.kg:30040 [22:17:33]ConnectInit lk.salyk.kg [22:17:33]Connected sock=9 [22: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 34 39 33 39 0C 01 00 00 E1 85 04 01 8A 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 AE 4D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD D1 01 00 35 04 06 00 04 3F EF E0 F9 E0 AF 01 66 16 25 DD 80 05 [22:17:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CC 8F 47 00 D5 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AD D1 01 00 F4 03 04 00 07 14 A9 66 B6 04 01 00 00 1E 88 8B 2D FD F7 20 44 [22:17:33]CommunicateWithHost err = 0 [22:17:33]CheckOFDResponse [22:17:33]1017 (14) - 77093643461234 [22:17:33]1041 (16) - 0000000000874939 [22:17:33]1040 (4) - 119213 [22:17:33]1012 (4) - 30.07.2024 16:25 [22:17:33]1206 (1) - 0 [22:17:33]OFD Sender: Remove packet 119213 [22:17:33]ProducePacketName [22:17:33]name=ofd_packets/00119213 [22:17:33]NVStorageDeleteData [22:17:34]OFD Sender: Processing packet 119214 [packets to send 122, broken 85] [22:17:34]ProducePacketName [22:17:34]name=ofd_packets/00119214 [22:17:34]OFD Sender: To server: pG, [22:17:34]CommunicateWithHost lk.salyk.kg:30040 [22:17:34]ConnectInit lk.salyk.kg [22:17:34]Connected sock=9 [22:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 B1 91 07 01 CF 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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 0A 01 00 00 F4 03 04 00 5B 4E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D1 01 00 35 04 06 00 F6 39 73 76 2C 7F 45 67 80 07 02 6F B9 F1 [22:17:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 41 04 47 00 AD C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AE D1 01 00 F4 03 04 00 07 14 A9 66 B6 04 01 00 00 1F 95 6A 88 7B 72 38 B7 [22:17:34]CommunicateWithHost err = 0 [22:17:34]CheckOFDResponse [22:17:34]1017 (14) - 77093643461234 [22:17:34]1041 (16) - 0000000000874939 [22:17:34]1040 (4) - 119214 [22:17:34]1012 (4) - 30.07.2024 16:25 [22:17:34]1206 (1) - 0 [22:17:34]OFD Sender: Remove packet 119214 [22:17:34]ProducePacketName [22:17:34]name=ofd_packets/00119214 [22:17:34]NVStorageDeleteData [22:17:34]OFD Sender: Processing packet 119215 [packets to send 121, broken 85] [22:17:34]ProducePacketName [22:17:34]name=ofd_packets/00119215 [22:17:34]OFD Sender: To server: pG, [22:17:34]CommunicateWithHost lk.salyk.kg:30040 [22:17:34]ConnectInit lk.salyk.kg [22:17:34]Connected sock=9 [22:17:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 02 EB 07 01 04 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 64 4E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D1 01 00 35 04 06 00 33 34 FB 74 FC 8B 59 E0 BC 06 B9 AE 04 00 [22:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7B AB 47 00 8E 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 AF D1 01 00 F4 03 04 00 08 14 A9 66 B6 04 01 00 00 BF E5 34 1B 1C 08 84 26 [22:17:35]CommunicateWithHost err = 0 [22:17:35]CheckOFDResponse [22:17:35]1017 (14) - 77093643461234 [22:17:35]1041 (16) - 0000000000874939 [22:17:35]1040 (4) - 119215 [22:17:35]1012 (4) - 30.07.2024 16:25 [22:17:35]1206 (1) - 0 [22:17:35]OFD Sender: Remove packet 119215 [22:17:35]ProducePacketName [22:17:35]name=ofd_packets/00119215 [22:17:35]NVStorageDeleteData [22:17:35]OFD Sender: Processing packet 119216 [packets to send 120, broken 85] [22:17:35]ProducePacketName [22:17:35]name=ofd_packets/00119216 [22:17:35]OFD Sender: To server: pG, [22:17:35]CommunicateWithHost lk.salyk.kg:30040 [22:17:35]ConnectInit lk.salyk.kg [22:17:35]Connected sock=9 [22:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E9 88 04 01 2C 56 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 69 4E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D1 01 00 35 04 06 00 23 7F 20 38 25 54 43 42 6D D0 8D A5 6B E0 [22:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 14 8F 47 00 64 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B0 D1 01 00 F4 03 04 00 09 14 A9 66 B6 04 01 00 00 3C FC 09 51 CF 8C F5 CC [22:17:35]CommunicateWithHost err = 0 [22:17:35]CheckOFDResponse [22:17:35]1017 (14) - 77093643461234 [22:17:35]1041 (16) - 0000000000874939 [22:17:35]1040 (4) - 119216 [22:17:35]1012 (4) - 30.07.2024 16:25 [22:17:35]1206 (1) - 0 [22:17:35]OFD Sender: Remove packet 119216 [22:17:35]ProducePacketName [22:17:35]name=ofd_packets/00119216 [22:17:35]NVStorageDeleteData [22:17:36]OFD Sender: Processing packet 119217 [packets to send 119, broken 85] [22:17:36]ProducePacketName [22:17:36]name=ofd_packets/00119217 [22:17:36]OFD Sender: To server: pG, [22:17:36]CommunicateWithHost lk.salyk.kg:30040 [22:17:36]ConnectInit lk.salyk.kg [22:17:36]Connected sock=9 [22:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 B3 E7 04 01 97 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 88 4E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D1 01 00 35 04 06 00 B7 DD 29 BE 27 8F 06 F4 87 DE 3C 9F 81 A2 [22:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 31 6F 47 00 BC 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B1 D1 01 00 F4 03 04 00 0A 14 A9 66 B6 04 01 00 00 D3 61 B6 E2 E7 17 CC B9 [22:17:36]CommunicateWithHost err = 0 [22:17:36]CheckOFDResponse [22:17:36]1017 (14) - 77093643461234 [22:17:36]1041 (16) - 0000000000874939 [22:17:36]1040 (4) - 119217 [22:17:36]1012 (4) - 30.07.2024 16:25 [22:17:36]1206 (1) - 0 [22:17:36]OFD Sender: Remove packet 119217 [22:17:36]ProducePacketName [22:17:36]name=ofd_packets/00119217 [22:17:36]NVStorageDeleteData [22:17:37]OFD Sender: Processing packet 119218 [packets to send 118, broken 85] [22:17:37]ProducePacketName [22:17:37]name=ofd_packets/00119218 [22:17:37]OFD Sender: To server: pG, [22:17:37]CommunicateWithHost lk.salyk.kg:30040 [22:17:37]ConnectInit lk.salyk.kg [22:17:37]Connected sock=9 [22:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 E0 CC 07 01 F4 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 90 1A 00 00 00 00 00 37 04 06 00 BA 1C 00 00 00 00 13 04 06 00 57 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 3F 4F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D1 01 00 35 04 06 00 06 BB E5 71 6F 07 0A 02 5C 12 D5 BA 4A AD [22:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 36 2C 47 00 96 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B2 D1 01 00 F4 03 04 00 0B 14 A9 66 B6 04 01 00 00 26 B3 EF 14 11 7B 5F F4 [22:17:37]CommunicateWithHost err = 0 [22:17:37]CheckOFDResponse [22:17:37]1017 (14) - 77093643461234 [22:17:37]1041 (16) - 0000000000874939 [22:17:37]1040 (4) - 119218 [22:17:37]1012 (4) - 30.07.2024 16:25 [22:17:37]1206 (1) - 0 [22:17:37]OFD Sender: Remove packet 119218 [22:17:37]ProducePacketName [22:17:37]name=ofd_packets/00119218 [22:17:37]NVStorageDeleteData [22:17:38]OFD Sender: Processing packet 119219 [packets to send 117, broken 85] [22:17:38]ProducePacketName [22:17:38]name=ofd_packets/00119219 [22:17:38]OFD Sender: To server: pG, [22:17:38]CommunicateWithHost lk.salyk.kg:30040 [22:17:38]ConnectInit lk.salyk.kg [22:17:38]Connected sock=9 [22: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 34 39 33 39 0C 01 00 00 46 0F 04 01 F5 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 EB 4F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B3 D1 01 00 35 04 06 00 C0 FC B6 EB 6C 4B 56 2A 9F 9D A8 FF B6 4F [22:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 46 63 47 00 C6 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 34 39 33 39 10 04 04 00 B3 D1 01 00 F4 03 04 00 0B 14 A9 66 B6 04 01 00 00 97 24 3F AB 38 5C 89 E4 [22:17:38]CommunicateWithHost err = 0 [22:17:38]CheckOFDResponse [22:17:38]1017 (14) - 77093643461234 [22:17:38]1041 (16) - 0000000000874939 [22:17:38]1040 (4) - 119219 [22:17:38]1012 (4) - 30.07.2024 16:25 [22:17:38]1206 (1) - 0 [22:17:38]OFD Sender: Remove packet 119219 [22:17:38]ProducePacketName [22:17:38]name=ofd_packets/00119219 [22:17:38]NVStorageDeleteData [22:17:38]OFD Sender: Processing packet 119220 [packets to send 116, broken 85] [22:17:38]ProducePacketName [22:17:38]name=ofd_packets/00119220 [22:17:38]OFD Sender: To server: pG, [22:17:38]CommunicateWithHost lk.salyk.kg:30040 [22:17:38]ConnectInit lk.salyk.kg [22:17:38]Connected sock=9 [22: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 34 39 33 39 0F 01 00 00 18 B3 07 01 FB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 10 01 00 00 F4 03 04 00 68 52 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B4 D1 01 00 35 04 06 00 D9 28 48 C5 C0 6E E4 A5 CF 4E D6 4D 15 0F [22:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 58 71 47 00 81 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 34 39 33 39 10 04 04 00 B4 D1 01 00 F4 03 04 00 0C 14 A9 66 B6 04 01 00 00 54 81 F9 FD DF AF 86 96 [22:17:39]CommunicateWithHost err = 0 [22:17:39]CheckOFDResponse [22:17:39]1017 (14) - 77093643461234 [22:17:39]1041 (16) - 0000000000874939 [22:17:39]1040 (4) - 119220 [22:17:39]1012 (4) - 30.07.2024 16:25 [22:17:39]1206 (1) - 0 [22:17:39]OFD Sender: Remove packet 119220 [22:17:39]ProducePacketName [22:17:39]name=ofd_packets/00119220 [22:17:39]NVStorageDeleteData [22:17:39]OFD Sender: Processing packet 119221 [packets to send 115, broken 85] [22:17:39]ProducePacketName [22:17:39]name=ofd_packets/00119221 [22:17:39]OFD Sender: To server: pG, [22:17:39]CommunicateWithHost lk.salyk.kg:30040 [22:17:39]ConnectInit lk.salyk.kg [22:17:39]Connected sock=9 [22:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 03 02 04 01 DC 98 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 04 02 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 7B 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 6C 52 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D1 01 00 35 04 06 00 F2 A0 61 C7 26 37 8F 4D FE CD CC 1B A7 FB [22:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7E A2 47 00 46 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B5 D1 01 00 F4 03 04 00 0D 14 A9 66 B6 04 01 00 00 6D 0C FB 65 48 C8 A6 88 [22:17:40]CommunicateWithHost err = 0 [22:17:40]CheckOFDResponse [22:17:40]1017 (14) - 77093643461234 [22:17:40]1041 (16) - 0000000000874939 [22:17:40]1040 (4) - 119221 [22:17:40]1012 (4) - 30.07.2024 16:25 [22:17:40]1206 (1) - 0 [22:17:40]OFD Sender: Remove packet 119221 [22:17:40]ProducePacketName [22:17:40]name=ofd_packets/00119221 [22:17:40]NVStorageDeleteData [22:17:40]OFD Sender: Processing packet 119222 [packets to send 114, broken 85] [22:17:40]ProducePacketName [22:17:40]name=ofd_packets/00119222 [22:17:40]OFD Sender: To server: pG, [22:17:40]CommunicateWithHost lk.salyk.kg:30040 [22:17:40]ConnectInit lk.salyk.kg [22:17:40]Connected sock=9 [22:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E3 8E 04 01 92 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 F1 52 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B6 D1 01 00 35 04 06 00 28 50 50 9B 09 CE B0 D9 E7 1D 7C 42 FE 5A [22:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EA F5 47 00 5E 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 34 39 33 39 10 04 04 00 B6 D1 01 00 F4 03 04 00 0E 14 A9 66 B6 04 01 00 00 A7 AD AF E6 E1 E0 C6 1B [22:17:40]CommunicateWithHost err = 0 [22:17:40]CheckOFDResponse [22:17:40]1017 (14) - 77093643461234 [22:17:40]1041 (16) - 0000000000874939 [22:17:40]1040 (4) - 119222 [22:17:40]1012 (4) - 30.07.2024 16:25 [22:17:40]1206 (1) - 0 [22:17:40]OFD Sender: Remove packet 119222 [22:17:40]ProducePacketName [22:17:40]name=ofd_packets/00119222 [22:17:40]NVStorageDeleteData [22:17:41]OFD Sender: Processing packet 119223 [packets to send 113, broken 85] [22:17:41]ProducePacketName [22:17:41]name=ofd_packets/00119223 [22:17:41]OFD Sender: To server: pG, [22:17:41]CommunicateWithHost lk.salyk.kg:30040 [22:17:41]ConnectInit lk.salyk.kg [22:17:41]Connected sock=9 [22:17:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 54 C6 04 01 73 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 21 53 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D1 01 00 35 04 06 00 57 09 48 CF BF C9 E3 A8 2D D5 EB 71 45 20 [22:17:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EC A0 47 00 DB 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B7 D1 01 00 F4 03 04 00 0F 14 A9 66 B6 04 01 00 00 8F 01 C7 C3 B5 22 39 C8 [22:17:41]CommunicateWithHost err = 0 [22:17:41]CheckOFDResponse [22:17:41]1017 (14) - 77093643461234 [22:17:41]1041 (16) - 0000000000874939 [22:17:41]1040 (4) - 119223 [22:17:41]1012 (4) - 30.07.2024 16:25 [22:17:41]1206 (1) - 0 [22:17:41]OFD Sender: Remove packet 119223 [22:17:41]ProducePacketName [22:17:41]name=ofd_packets/00119223 [22:17:41]NVStorageDeleteData [22:17:42]OFD Sender: Processing packet 119224 [packets to send 112, broken 85] [22:17:42]ProducePacketName [22:17:42]name=ofd_packets/00119224 [22:17:42]OFD Sender: To server: pG, [22:17:42]CommunicateWithHost lk.salyk.kg:30040 [22:17:42]ConnectInit lk.salyk.kg [22:17:42]Connected sock=9 [22:17:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 D5 04 01 E6 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 2E 53 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D1 01 00 35 04 06 00 26 F6 5E BE A2 14 DA 9D 90 D7 97 35 1C BC [22:17:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 2C B7 47 00 1C E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B8 D1 01 00 F4 03 04 00 10 14 A9 66 B6 04 01 00 00 7F 6E 8A 04 54 05 ED 7E [22:17:42]CommunicateWithHost err = 0 [22:17:42]CheckOFDResponse [22:17:42]1017 (14) - 77093643461234 [22:17:42]1041 (16) - 0000000000874939 [22:17:42]1040 (4) - 119224 [22:17:42]1012 (4) - 30.07.2024 16:25 [22:17:42]1206 (1) - 0 [22:17:42]OFD Sender: Remove packet 119224 [22:17:42]ProducePacketName [22:17:42]name=ofd_packets/00119224 [22:17:42]NVStorageDeleteData [22:17:43]OFD Sender: Processing packet 119225 [packets to send 111, broken 85] [22:17:43]ProducePacketName [22:17:43]name=ofd_packets/00119225 [22:17:43]OFD Sender: To server: pG, [22:17:43]CommunicateWithHost lk.salyk.kg:30040 [22:17:43]ConnectInit lk.salyk.kg [22:17:43]Connected sock=9 [22:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 62 5A 07 01 89 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 55 54 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 B9 D1 01 00 35 04 06 00 E7 E7 44 FA 32 D6 79 A1 7D 39 87 C2 0B F9 [22:17:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 61 DE 47 00 06 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 34 39 33 39 10 04 04 00 B9 D1 01 00 F4 03 04 00 10 14 A9 66 B6 04 01 00 00 5E 60 D4 B8 AA BE 48 FB [22:17:43]CommunicateWithHost err = 0 [22:17:43]CheckOFDResponse [22:17:43]1017 (14) - 77093643461234 [22:17:43]1041 (16) - 0000000000874939 [22:17:43]1040 (4) - 119225 [22:17:43]1012 (4) - 30.07.2024 16:25 [22:17:43]1206 (1) - 0 [22:17:43]OFD Sender: Remove packet 119225 [22:17:43]ProducePacketName [22:17:43]name=ofd_packets/00119225 [22:17:43]NVStorageDeleteData [22:17:43]OFD Sender: Processing packet 119226 [packets to send 110, broken 85] [22:17:43]ProducePacketName [22:17:43]name=ofd_packets/00119226 [22:17:43]OFD Sender: To server: pG, [22:17:43]CommunicateWithHost lk.salyk.kg:30040 [22:17:43]ConnectInit lk.salyk.kg [22:17:43]Connected sock=9 [22:17:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FA 91 04 01 76 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 D8 54 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D1 01 00 35 04 06 00 63 F3 0F 98 47 CB D3 95 32 4C 3C 37 12 DB [22:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 47 26 47 00 0A 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 BA D1 01 00 F4 03 04 00 11 14 A9 66 B6 04 01 00 00 3C 91 ED A9 CF 8F F7 50 [22:17:44]CommunicateWithHost err = 0 [22:17:44]CheckOFDResponse [22:17:44]1017 (14) - 77093643461234 [22:17:44]1041 (16) - 0000000000874939 [22:17:44]1040 (4) - 119226 [22:17:44]1012 (4) - 30.07.2024 16:25 [22:17:44]1206 (1) - 0 [22:17:44]OFD Sender: Remove packet 119226 [22:17:44]ProducePacketName [22:17:44]name=ofd_packets/00119226 [22:17:44]NVStorageDeleteData [22:17:44]OFD Sender: Processing packet 119227 [packets to send 109, broken 85] [22:17:44]ProducePacketName [22:17:44]name=ofd_packets/00119227 [22:17:44]OFD Sender: To server: pG, [22:17:44]CommunicateWithHost lk.salyk.kg:30040 [22:17:44]ConnectInit lk.salyk.kg [22:17:44]Connected sock=10 [22:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 76 B7 07 01 CF DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 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 17 01 00 00 F4 03 04 00 90 55 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 [22:22:52]ConnectInit Can't connect to host [22:22:53]ConnectInit Can't take IP for lk.salyk.kg [22:22:53]CommunicateWithHost connect error [22:22:53]CommunicateWithHost err = -1 [22:22:53]OFD Sender: Server communicate error [22:22:58]OFD Sender: Processing packet 119243 [packets to send 93, broken 85] [22:22:58]ProducePacketName [22:22:58]name=ofd_packets/00119243 [22:22:58]OFD Sender: To server: pG, [22:22:58]CommunicateWithHost lk.salyk.kg:30040 [22:22:58]ConnectInit lk.salyk.kg [22:22:58]Connected sock=9 [22:22:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 69 85 07 01 14 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 C8 05 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 32 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 27 01 00 00 F4 03 04 00 E0 61 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D1 01 00 35 04 06 00 12 3E 5C 8B FC 0C 29 A8 C9 B7 B5 7E 36 E4 [22:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BD E9 47 00 8A 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CB D1 01 00 F4 03 04 00 4C 15 A9 66 B6 04 01 00 00 CE 78 EE AC 2C E5 87 BB [22:22:58]CommunicateWithHost err = 0 [22:22:58]CheckOFDResponse [22:22:58]1017 (14) - 77093643461234 [22:22:58]1041 (16) - 0000000000874939 [22:22:58]1040 (4) - 119243 [22:22:58]1012 (4) - 30.07.2024 16:31 [22:22:58]1206 (1) - 0 [22:22:58]OFD Sender: Remove packet 119243 [22:22:58]ProducePacketName [22:22:58]name=ofd_packets/00119243 [22:22:58]NVStorageDeleteData [22:22:59]OFD Sender: Processing packet 119244 [packets to send 92, broken 85] [22:22:59]ProducePacketName [22:22:59]name=ofd_packets/00119244 [22:22:59]OFD Sender: To server: pG, [22:22:59]CommunicateWithHost lk.salyk.kg:30040 [22:22:59]ConnectInit lk.salyk.kg [22:22:59]Connected sock=9 [22:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 90 64 04 01 8F FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A 73 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 FB 6E 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 6E 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 5D 00 00 00 00 07 04 06 00 E8 6E 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 04 62 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D1 01 00 35 04 06 00 3D 26 40 AA FA AA A3 54 E3 89 0B F3 77 F0 [22:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D2 92 47 00 3B 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CC D1 01 00 F4 03 04 00 4D 15 A9 66 B6 04 01 00 00 45 3F 41 37 66 8E FB 69 [22:22:59]CommunicateWithHost err = 0 [22:22:59]CheckOFDResponse [22:22:59]1017 (14) - 77093643461234 [22:22:59]1041 (16) - 0000000000874939 [22:22:59]1040 (4) - 119244 [22:22:59]1012 (4) - 30.07.2024 16:31 [22:22:59]1206 (1) - 0 [22:22:59]OFD Sender: Remove packet 119244 [22:22:59]ProducePacketName [22:22:59]name=ofd_packets/00119244 [22:22:59]NVStorageDeleteData [22:23:00]OFD Sender: Processing packet 119245 [packets to send 91, broken 85] [22:23:00]ProducePacketName [22:23:00]name=ofd_packets/00119245 [22:23:00]OFD Sender: To server: pG, [22:23:00]CommunicateWithHost lk.salyk.kg:30040 [22:23:00]ConnectInit lk.salyk.kg [22:23:00]Connected sock=9 [22:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 6D 17 04 01 71 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 29 01 00 00 F4 03 04 00 E5 62 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D1 01 00 35 04 06 00 7E E6 33 1E 75 79 6F 85 80 99 DF 88 E6 76 [22:23:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D8 58 47 00 A1 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CD D1 01 00 F4 03 04 00 4E 15 A9 66 B6 04 01 00 00 90 96 BE 80 98 6F FA C1 [22:23:00]CommunicateWithHost err = 0 [22:23:00]CheckOFDResponse [22:23:00]1017 (14) - 77093643461234 [22:23:00]1041 (16) - 0000000000874939 [22:23:00]1040 (4) - 119245 [22:23:00]1012 (4) - 30.07.2024 16:31 [22:23:00]1206 (1) - 0 [22:23:00]OFD Sender: Remove packet 119245 [22:23:00]ProducePacketName [22:23:00]name=ofd_packets/00119245 [22:23:00]NVStorageDeleteData [22:23:01]OFD Sender: Processing packet 119246 [packets to send 90, broken 85] [22:23:01]ProducePacketName [22:23:01]name=ofd_packets/00119246 [22:23:01]OFD Sender: To server: pG, [22:23:01]CommunicateWithHost lk.salyk.kg:30040 [22:23:01]ConnectInit lk.salyk.kg [22:23:01]Connected sock=9 [22:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 7D F8 04 01 2B C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 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 50 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 2A 01 00 00 F4 03 04 00 2B 63 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D1 01 00 35 04 06 00 B1 0D 84 A9 E3 01 BD DF 17 9D 0C 1B 11 B9 [22:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 75 D7 47 00 3F E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CE D1 01 00 F4 03 04 00 4E 15 A9 66 B6 04 01 00 00 4E 0D 03 16 45 70 21 1D [22:23:01]CommunicateWithHost err = 0 [22:23:01]CheckOFDResponse [22:23:01]1017 (14) - 77093643461234 [22:23:01]1041 (16) - 0000000000874939 [22:23:01]1040 (4) - 119246 [22:23:01]1012 (4) - 30.07.2024 16:31 [22:23:01]1206 (1) - 0 [22:23:01]OFD Sender: Remove packet 119246 [22:23:01]ProducePacketName [22:23:01]name=ofd_packets/00119246 [22:23:01]NVStorageDeleteData [22:23:01]OFD Sender: Processing packet 119247 [packets to send 89, broken 85] [22:23:01]ProducePacketName [22:23:01]name=ofd_packets/00119247 [22:23:01]OFD Sender: To server: pG, [22:23:01]CommunicateWithHost lk.salyk.kg:30040 [22:23:01]ConnectInit lk.salyk.kg [22:23:01]Connected sock=9 [22:23:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 1C 1D 07 01 F2 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 2B 01 00 00 F4 03 04 00 34 64 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF D1 01 00 35 04 06 00 C4 73 44 1B 68 DE 9A AD 56 F1 F1 3E D3 01 [22:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 07 00 47 00 BE 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 CF D1 01 00 F4 03 04 00 4F 15 A9 66 B6 04 01 00 00 15 B7 70 95 18 35 89 9A [22:23:02]CommunicateWithHost err = 0 [22:23:02]CheckOFDResponse [22:23:02]1017 (14) - 77093643461234 [22:23:02]1041 (16) - 0000000000874939 [22:23:02]1040 (4) - 119247 [22:23:02]1012 (4) - 30.07.2024 16:31 [22:23:02]1206 (1) - 0 [22:23:02]OFD Sender: Remove packet 119247 [22:23:02]ProducePacketName [22:23:02]name=ofd_packets/00119247 [22:23:02]NVStorageDeleteData [22:23:02]OFD Sender: Processing packet 119248 [packets to send 88, broken 85] [22:23:02]ProducePacketName [22:23:02]name=ofd_packets/00119248 [22:23:02]OFD Sender: To server: pG, [22:23:02]CommunicateWithHost lk.salyk.kg:30040 [22:23:02]ConnectInit lk.salyk.kg [22:23:02]Connected sock=9 [22:23:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 09 FE 07 01 C4 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F8 61 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 3A 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 C0 64 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 D1 01 00 35 04 06 00 90 13 C6 05 55 03 A3 17 C7 F5 DD 20 8E AA [22:23:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 EF 3A 47 00 AB 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D0 D1 01 00 F4 03 04 00 50 15 A9 66 B6 04 01 00 00 6F 63 4F B3 90 20 21 E5 [22:23:02]CommunicateWithHost err = 0 [22:23:02]CheckOFDResponse [22:23:02]1017 (14) - 77093643461234 [22:23:02]1041 (16) - 0000000000874939 [22:23:02]1040 (4) - 119248 [22:23:02]1012 (4) - 30.07.2024 16:31 [22:23:02]1206 (1) - 0 [22:23:02]OFD Sender: Remove packet 119248 [22:23:02]ProducePacketName [22:23:02]name=ofd_packets/00119248 [22:23:02]NVStorageDeleteData [22:23:03]OFD Sender: Processing packet 119249 [packets to send 87, broken 85] [22:23:03]ProducePacketName [22:23:03]name=ofd_packets/00119249 [22:23:03]OFD Sender: To server: pG, [22:23:03]CommunicateWithHost lk.salyk.kg:30040 [22:23:03]ConnectInit lk.salyk.kg [22:23:03]Connected sock=10 [22:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 EA 87 04 01 44 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D9 65 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 D1 01 00 35 04 06 00 94 B0 21 AC 36 7B E8 6A 5E 34 18 05 89 61 [22:23:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BC C3 47 00 14 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D1 D1 01 00 F4 03 04 00 51 15 A9 66 B6 04 01 00 00 55 E7 B1 FB C7 75 26 19 [22:23:03]CommunicateWithHost err = 0 [22:23:03]CheckOFDResponse [22:23:03]1017 (14) - 77093643461234 [22:23:03]1041 (16) - 0000000000874939 [22:23:03]1040 (4) - 119249 [22:23:03]1012 (4) - 30.07.2024 16:31 [22:23:03]1206 (1) - 0 [22:23:03]OFD Sender: Remove packet 119249 [22:23:03]ProducePacketName [22:23:03]name=ofd_packets/00119249 [22:23:03]NVStorageDeleteData [22:23:04]OFD Sender: Processing packet 119250 [packets to send 86, broken 85] [22:23:04]ProducePacketName [22:23:04]name=ofd_packets/00119250 [22:23:04]OFD Sender: To server: pG, [22:23:04]CommunicateWithHost lk.salyk.kg:30040 [22:23:04]ConnectInit lk.salyk.kg [22:23:04]Connected sock=9 [22:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 BC C0 04 01 86 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 15 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 39 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 3F 66 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 D1 01 00 35 04 06 00 6F 7B 22 64 3A 09 CE 95 C6 E3 15 34 92 52 [22:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B7 13 47 00 5F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D2 D1 01 00 F4 03 04 00 52 15 A9 66 B6 04 01 00 00 05 E0 10 B3 15 26 F2 13 [22:23:04]CommunicateWithHost err = 0 [22:23:04]CheckOFDResponse [22:23:04]1017 (14) - 77093643461234 [22:23:04]1041 (16) - 0000000000874939 [22:23:04]1040 (4) - 119250 [22:23:04]1012 (4) - 30.07.2024 16:31 [22:23:04]1206 (1) - 0 [22:23:04]OFD Sender: Remove packet 119250 [22:23:04]ProducePacketName [22:23:04]name=ofd_packets/00119250 [22:23:04]NVStorageDeleteData [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:51]ConnectInit Can't connect to host [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:37]accept exits with 7 [22:33:37]New connection [22:33:37]New thread 3066695012 created [22:33:37]Thread 3066838372 joined [22:33:37]Waiting for new connection... [22:33:37] Sock 7.Parse request [22:33:37]Sock 7.Check first char [22:33:37]Sock 7.First char is OK [22:33:37]request: POST /json_proto HTTP/1.0 [22:33:37]Method: POST [22:33:37]URL: /json_proto [22:33:37]Method is POST - this is cgi request [22:33:37]url: /json_proto [22:33:37]query_string will be loaded in cgi processing [22:33:37]execute_cgi json_proto POST (null) [22:33:37]execute_cgi path=json_proto method=POST [22:33:37]POST find Content-Length [22:33:37]Host: 172.17.45.7:8080 [22:33:37]Content-Length: 679 [22:33:37]Content-Type: application/json [22:33:37] [22:33:37]POST finish read [22:33:37]Found Content-Length = 679 [22:33:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:37]execute_script... [22:33: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)950176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:37]POST & json_proto [22:33:37]process_json_proto [22:33:37]json parsed OK: [22:33:37]protocol is kg_v1.0 [22:33:37]action value=close_receipt [22:33:37]process_action close_receipt [22:33:37]cmd_close_receipt [22:33:37]MH_GetDate [22:33:37]Write to MH i2c: F0 00 00 03 19 0B [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: F0 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: F0 09 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: F0 09 00 03 19 00 42 6A A9 66 90 0F 3E 66 12 [22:33:37]GetLastDocTimeStamp 1722377791 [22:33:37]current date 1722378818 [22:33:37]FM_GetShiftState [22:33:37]SAM_PROTO_GetShiftState [22:33:37]wFMCommunicate request_size=4 [22:33:37]MH_SAM_APDU [22:33:37]CAPDU: 80 13 01 00 [22:33:37]Write to MH i2c: E2 08 00 04 19 80 13 01 00 00 00 00 00 9A [22:33:37]Write i2c OK [22:33:37]MH_I2C_Read... [22:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:37]Read from MH i2c: E2 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 0E 00 [22:33:37]MH_I2C_Read... [22:33:37]Read from MH i2c: E2 0E 00 04 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 65 [22:33:37]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:33:37]wFMCommunicate OK [22:33:37]SAM_PROTO_GetShiftState done [22:33:37]FM_GetShiftState done [22:33:37]opened in 1722298242 [22:33:37]opened+sec_in_day 1722384642 [22:33:37]quantity*price = 300075 [22:33:37]sum+1 = 300077 [22:33:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 303 30.07.2024 22:33 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119251 ФПД: 214649015242625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T223338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119251&fm=214649015242625&tin=02508201610067®Number=0000000000092660&sum=300000 [22:33:38]StoreToDocumentArchive [22:33:38]shift 435 fd 119251 [22:33:38]save to /storage/0435/doc_00119251 [22:33:38]save last doc name /storage/0435/doc_00119251 to /storage/kkm_last_doc_name [22:33:38]save OK [22:33:38]Clear old archive folders... [22:33:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:33:38]tlvbuf is 015D7360 [22:33:38]SAM_PROTO_ClearQueue [22:33:38]wFMCommunicate request_size=4 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 09 00 00 [22:33:38]Write to MH i2c: E2 08 00 11 19 80 09 00 00 00 00 00 00 9C [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [22:33:38]RAPDU: 90 00 [22:33:38]wFMCommunicate OK [22:33:38]SAM_PROTO_ClearQueue done [22:33:38]KKMCreateOFDPacket [22:33:38]OFDProtocolAddRootSTLVToBuf [22:33:38]FM_MakeSignedData [22:33:38]FM_MakeSignedData [22:33:38]SAM_PROTO_SignData [22:33:38]wFMCommunicate request_size=4 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 0D 01 02 [22:33:38]Write to MH i2c: E2 08 00 12 19 80 0D 01 02 00 00 00 00 A4 [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 12 19 00 90 00 9F [22:33:38]RAPDU: 90 00 [22:33:38]wFMCommunicate OK [22:33:38]wFMCommunicate request_size=255 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 42 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D1 01 00 35 04 06 00 C3 38 DE 4E [22:33:38]Write to MH i2c: E2 02 01 13 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 42 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D1 01 00 35 04 06 00 C3 38 DE 4E 00 00 D6 [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 13 19 00 90 00 A0 [22:33:38]RAPDU: 90 00 [22:33:38]wFMCommunicate OK [22:33:38]wFMCommunicate request_size=7 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 0D 02 02 02 0F 81 [22:33:38]Write to MH i2c: E2 0A 00 14 19 80 0D 02 02 02 00 0F 81 00 00 3B [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 03 00 14 19 00 90 00 A1 [22:33:38]RAPDU: 90 00 [22:33:38]wFMCommunicate OK [22:33:38]wFMCommunicate request_size=4 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 0D 03 02 [22:33:38]Write to MH i2c: E2 08 00 15 19 80 0D 03 02 00 00 00 00 A9 [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 0B 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 0B 00 15 19 00 8E BD BD CD 6A 8E 0C 7D 90 00 00 [22:33:38]RAPDU: 8E BD BD CD 6A 8E 0C 7D 90 00 [22:33:38]wFMCommunicate OK [22:33:38]SAM_PROTO_SignData done [22:33:38]FM_MakeSignedData done [22:33:38]CreateOFDProtocolMessage [22:33:38]wFMCommunicate request_size=4 [22:33:38]MH_SAM_APDU [22:33:38]CAPDU: 80 11 00 00 [22:33:38]Write to MH i2c: E2 08 00 16 19 80 11 00 00 00 00 00 00 A9 [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:38]Read from MH i2c: E2 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 17 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: E2 17 00 16 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [22:33:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:33:38]wFMCommunicate OK [22:33:38]CreateOFDProtocolMessage done [22:33:38]OFDSenderStorePacket 119251 [22:33:38]StoreOFDPacket docnum=119251 [22:33:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 63 CD 04 01 FE EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 42 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D1 01 00 35 04 06 00 C3 38 DE 4E 0F 81 8E BD BD CD 6A 8E 0C 7D [22:33:38]CheckFolder [22:33:38]dirname=/storage/ofd_packets [22:33:38]CheckFolder done [22:33:38]ProducePacketName [22:33:38]name=ofd_packets/00119251 [22:33:38]NVStorageSaveData ofd_packets/00119251 [22:33:38]File name is /storage/ofd_packets/00119251 [22:33:38]Write 298 bytes [22:33:38]NVStorageSaveData done [22:33:38]OFDSenderStorePacket done [22:33:38]KKMCreateOFDPacket done [22:33:38]NVStorageSaveData kkm_last_timestamp [22:33:38]File name is /storage/kkm_last_timestamp [22:33:38]Write 4 bytes [22:33:38]NVStorageSaveData done [22:33:38]ExternCall_PrintAddStr [22:33:38]wPrintStart [22:33:38]Write to MH i2c: 01 00 00 17 19 30 [22:33:38]Write i2c OK [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: 01 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: 01 07 00 [22:33:38]MH_I2C_Read... [22:33:38]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 FF 0F 45 [22:33:38]RasterBufferAndPrint [22:33:38]line Счет N : (1)950176 [22:33:38]line ИНН: 02508201610067 [22:33:38]line Контрольно-Кассовый Чек [22:33:38]line ПРОДАЖА [22:33:38]line ТРК (МРК, ГНК) : 21 [22:33:38]line Товар: 2710194800 [22:33:38]line ДТ-К-5 [22:33:38]line 39.380 * 76.20 [22:33:38]line = 3000.76 [22:33:38]line НДС 12% НСП 1% [22:33:38]line > о реализуемом товаре [22:33:38]line ОКРУГЛЕНИЕ: -0.76 [22:33:38]line ИТОГО: 3000.00 [22:33:38]line Внесено: 3000.00 [22:33:38]line СДАЧА: 0.00 [22:33:38]line НСП 1% : 26.55 [22:33:38]line НДС 12% : 318.66 [22:33:38]line Наличными: 3000.00 [22:33:38]line Безнал.: 0.00 [22:33:38]line Место: АЗС № 134 "Партнер Нефть" [22:33:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:33:38]line СНО: Общий режим [22:33:38]line Чек 303 30.07.2024 22:33 [22:33:38]line Смена: 435 ФФД: 1.0 [22:33:38]line ЗНМ: 0300000044 [22:33:38]line РНМ: 0000000000092660 [22:33:38]line Версия ККМ: 001 [22:33:38]line ФМ: 0000000000874939 [22:33:38]line ФД: 119251 [22:33:38]line ФПД: 214649015242625 [22:33:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T223338&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119251&fm=214649015242625&tin=02508201610067®Number=0000000000092660&sum=300000 [22:33:39]OFD Sender: Processing packet 119251 [packets to send 86, broken 85] [22:33:39]ProducePacketName [22:33:39]name=ofd_packets/00119251 [22:33:39]OFD Sender: To server: pG, [22:33:39]CommunicateWithHost lk.salyk.kg:30040 [22:33:39]ConnectInit lk.salyk.kg [22:33:39]written 0, free lines is 4095 [22:33:39]Connected sock=10 [22:33:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 63 CD 04 01 FE EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 42 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D1 01 00 35 04 06 00 C3 38 DE 4E 0F 81 8E BD BD CD 6A 8E 0C 7D [22:33:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 57 14 47 00 70 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D3 D1 01 00 F4 03 04 00 CD 17 A9 66 B6 04 01 00 00 79 E6 5A 5B 25 FB 03 AC [22:33:39]CommunicateWithHost err = 0 [22:33:39]CheckOFDResponse [22:33:39]1017 (14) - 77093643461234 [22:33:39]1041 (16) - 0000000000874939 [22:33:39]1040 (4) - 119251 [22:33:39]1012 (4) - 30.07.2024 16:41 [22:33:39]1206 (1) - 0 [22:33:39]OFD Sender: Remove packet 119251 [22:33:39]ProducePacketName [22:33:39]name=ofd_packets/00119251 [22:33:39]NVStorageDeleteData [22:33:39]Write to MH i2c: 01 00 00 41 19 5A [22:33:39]Write i2c OK [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: 01 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: 01 07 00 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: 01 07 00 41 19 00 00 00 00 00 D1 0C 3E [22:33:39]RasterBufferAndPrint [22:33:39]line [22:33:39]line [22:33:39]line [22:33:39]line [22:33:39]line [22:33:39]written 0, free lines is 3289 [22:33:39]MH_Cut [22:33:39]Write to MH i2c: D1 01 00 48 19 01 33 [22:33:39]Write i2c OK [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: D1 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: D1 01 00 [22:33:39]MH_I2C_Read... [22:33:39]Read from MH i2c: D1 01 00 48 19 00 32 [22:33:39]Write to MH i2c: 01 00 00 49 19 62 [22:33:39]Write i2c OK [22:33:39]MH_I2C_Read... [22:33:39]OFD Sender: No OFD packet to send [22:33:40]*** Cut start [22:33:40]*** Partial cut [22:33:40]*** CUTSNS_PIN = 1 [22:33:40]*** CUTSNS_PIN = 0 [22:33:40]*** Brake cut motor [22:33:40]Read from MH i2c: 01 [22:33:40]MH_I2C_Read... [22:33:40]*** Stop cut motor [22:33:40]*** Cut end [22:33:40]Read from MH i2c: 01 07 00 [22:33:40]MH_I2C_Read... [22:33:40]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 FF 0F 77 [22:33:40]process_action close_receipt done [22:33:40]requested_data is exist [22:33:40]produce_requested_data [22:33:40]requested_item fm.sn is exist - process it [22:33:40]wFMCommunicate request_size=4 [22:33:40]MH_SAM_APDU [22:33:40]CAPDU: 80 11 00 00 [22:33:40]Write to MH i2c: E2 08 00 4A 19 80 11 00 00 00 00 00 00 DD [22:33:40]Write i2c OK [22:33:40]MH_I2C_Read... [22:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:40]Read from MH i2c: E2 [22:33:40]MH_I2C_Read... [22:33:40]Read from MH i2c: E2 17 00 [22:33:40]MH_I2C_Read... [22:33:40]Read from MH i2c: E2 17 00 4A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [22:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:33:40]wFMCommunicate OK [22:33:40]requested_item fd.num is exist - process it [22:33:40]SAM_PROTO_GetFieldsCounters [22:33:40]wFMCommunicate request_size=4 [22:33:40]MH_SAM_APDU [22:33:40]CAPDU: 80 13 00 00 [22:33:40]Write to MH i2c: E2 08 00 4B 19 80 13 00 00 00 00 00 00 E0 [22:33:40]Write i2c OK [22:33:40]MH_I2C_Read... [22:33:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:41]Read from MH i2c: E2 [22:33:41]MH_I2C_Read... [22:33:41]Read from MH i2c: E2 62 00 [22:33:41]MH_I2C_Read... [22:33:41]Read from MH i2c: E2 62 00 4B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 F0 [22:33:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:41]wFMCommunicate OK [22:33:41]SAM_PROTO_GetFieldsCounters done [22:33:41]requested_item shift.num is exist - process it [22:33:41]requested_item shift.opened is exist - process it [22:33:41]req_shift_opened [22:33:41]FM_GetShiftState [22:33:41]SAM_PROTO_GetShiftState [22:33:41]wFMCommunicate request_size=4 [22:33:41]MH_SAM_APDU [22:33:41]CAPDU: 80 13 01 00 [22:33:41]Write to MH i2c: E2 08 00 4C 19 80 13 01 00 00 00 00 00 E2 [22:33:41]Write i2c OK [22:33:41]MH_I2C_Read... [22:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:41]Read from MH i2c: E2 [22:33:41]MH_I2C_Read... [22:33:41]Read from MH i2c: E2 0E 00 [22:33:41]MH_I2C_Read... [22:33:41]Read from MH i2c: E2 0E 00 4C 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AD [22:33:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:33:41]wFMCommunicate OK [22:33:41]SAM_PROTO_GetShiftState done [22:33:41]FM_GetShiftState done [22:33:41]req_shift_opened done [22:33:41]requested_item shift.open_date is exist - process it [22:33:41]req_shift_open_date [22:33:41]req_shift_open_date done [22:33:41]produce_requested_data done [22:33:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119251,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [22:33:41]process_action_free close_receipt [22:33:41]json_value_free [22:33:41]json_value_free done [22:33:41]process_json_proto returns [22:33:41]Send response to host [22:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119251,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [22:33:41]free response buf [22:33:41]execute_script done [22:33:41]execute_script returns [22:33:41]free content buf [22:33:41]Sock 7.Close socket [22:33:41]Sock 7.Thread stoped [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:38]accept exits with 9 [22:34:38]New connection [22:34:38]New thread 3066838372 created [22:34:38]Thread 3066695012 joined [22:34:38]Waiting for new connection... [22:34:38] Sock 9.Parse request [22:34:38]Sock 9.Check first char [22:34:38]Sock 9.First char is OK [22:34:38]request: POST /json_proto HTTP/1.0 [22:34:38]Method: POST [22:34:38]URL: /json_proto [22:34:38]Method is POST - this is cgi request [22:34:38]url: /json_proto [22:34:38]query_string will be loaded in cgi processing [22:34:38]execute_cgi json_proto POST (null) [22:34:38]execute_cgi path=json_proto method=POST [22:34:38]POST find Content-Length [22:34:38]Host: 172.17.45.7:8080 [22:34:38]Content-Length: 679 [22:34:38]Content-Type: application/json [22:34:38] [22:34:38]POST finish read [22:34:38]Found Content-Length = 679 [22:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:38]execute_script... [22:34:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:38]POST & json_proto [22:34:38]process_json_proto [22:34:38]json parsed OK: [22:34:38]protocol is kg_v1.0 [22:34:38]action value=close_receipt [22:34:38]process_action close_receipt [22:34:38]cmd_close_receipt [22:34:38]MH_GetDate [22:34:38]Write to MH i2c: F0 00 00 4D 19 55 [22:34:38]Write i2c OK [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: F0 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: F0 09 00 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: F0 09 00 4D 19 00 80 6A A9 66 90 0F 3E 66 9A [22:34:38]GetLastDocTimeStamp 1722378818 [22:34:38]current date 1722378880 [22:34:38]FM_GetShiftState [22:34:38]SAM_PROTO_GetShiftState [22:34:38]wFMCommunicate request_size=4 [22:34:38]MH_SAM_APDU [22:34:38]CAPDU: 80 13 01 00 [22:34:38]Write to MH i2c: E2 08 00 4E 19 80 13 01 00 00 00 00 00 E4 [22:34:38]Write i2c OK [22:34:38]MH_I2C_Read... [22:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:38]Read from MH i2c: E2 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: E2 0E 00 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: E2 0E 00 4E 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 AF [22:34:38]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:34:38]wFMCommunicate OK [22:34:38]SAM_PROTO_GetShiftState done [22:34:38]FM_GetShiftState done [22:34:38]opened in 1722298242 [22:34:38]opened+sec_in_day 1722384642 [22:34:38]quantity*price = 350062 [22:34:38]sum+1 = 350064 [22:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 304 30.07.2024 22:34 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119252 ФПД: 154836437193037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T223440&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119252&fm=154836437193037&tin=02508201610067®Number=0000000000092660&sum=350000 [22:34:39]StoreToDocumentArchive [22:34:39]shift 435 fd 119252 [22:34:39]save to /storage/0435/doc_00119252 [22:34:39]save last doc name /storage/0435/doc_00119252 to /storage/kkm_last_doc_name [22:34:39]save OK [22:34:39]Clear old archive folders... [22:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:34:39]tlvbuf is B6EBE670 [22:34:39]SAM_PROTO_ClearQueue [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 09 00 00 [22:34:39]Write to MH i2c: E2 08 00 5B 19 80 09 00 00 00 00 00 00 E6 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]SAM_PROTO_ClearQueue done [22:34:39]KKMCreateOFDPacket [22:34:39]OFDProtocolAddRootSTLVToBuf [22:34:39]FM_MakeSignedData [22:34:39]FM_MakeSignedData [22:34:39]SAM_PROTO_SignData [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 01 02 [22:34:39]Write to MH i2c: E2 08 00 5C 19 80 0D 01 02 00 00 00 00 EE [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=255 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 80 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D1 01 00 35 04 06 00 8C D2 AA D6 [22:34:39]Write to MH i2c: E2 02 01 5D 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 80 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D1 01 00 35 04 06 00 8C D2 AA D6 00 00 91 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:40]OFD Sender: No OFD packet to send [22:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]wFMCommunicate request_size=7 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 0D 02 02 02 51 4D [22:34:40]Write to MH i2c: E2 0A 00 5E 19 80 0D 02 02 02 00 51 4D 00 00 93 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 03 00 5E 19 00 90 00 EB [22:34:40]RAPDU: 90 00 [22:34:40]wFMCommunicate OK [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 0D 03 02 [22:34:40]Write to MH i2c: E2 08 00 5F 19 80 0D 03 02 00 00 00 00 F3 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0B 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 0B 00 5F 19 00 52 2D 55 E1 70 60 DF 08 90 00 60 [22:34:40]RAPDU: 52 2D 55 E1 70 60 DF 08 90 00 [22:34:40]wFMCommunicate OK [22:34:40]SAM_PROTO_SignData done [22:34:40]FM_MakeSignedData done [22:34:40]CreateOFDProtocolMessage [22:34:40]wFMCommunicate request_size=4 [22:34:40]MH_SAM_APDU [22:34:40]CAPDU: 80 11 00 00 [22:34:40]Write to MH i2c: E2 08 00 60 19 80 11 00 00 00 00 00 00 F3 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:40]Read from MH i2c: E2 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 17 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: E2 17 00 60 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [22:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:34:40]wFMCommunicate OK [22:34:40]CreateOFDProtocolMessage done [22:34:40]OFDSenderStorePacket 119252 [22:34:40]StoreOFDPacket docnum=119252 [22:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C7 B2 04 01 3A AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 80 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D1 01 00 35 04 06 00 8C D2 AA D6 51 4D 52 2D 55 E1 70 60 DF 08 [22:34:40]CheckFolder [22:34:40]dirname=/storage/ofd_packets [22:34:40]CheckFolder done [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00119252 [22:34:40]NVStorageSaveData ofd_packets/00119252 [22:34:40]File name is /storage/ofd_packets/00119252 [22:34:40]Write 298 bytes [22:34:40]NVStorageSaveData done [22:34:40]OFDSenderStorePacket done [22:34:40]KKMCreateOFDPacket done [22:34:40]NVStorageSaveData kkm_last_timestamp [22:34:40]File name is /storage/kkm_last_timestamp [22:34:40]Write 4 bytes [22:34:40]NVStorageSaveData done [22:34:40]OFD Sender: Processing packet 119252 [packets to send 86, broken 85] [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00119252 [22:34:40]OFD Sender: To server: pG, [22:34:40]CommunicateWithHost lk.salyk.kg:30040 [22:34:40]ConnectInit lk.salyk.kg [22:34:40]ExternCall_PrintAddStr [22:34:40]wPrintStart [22:34:40]Write to MH i2c: 01 00 00 61 19 7A [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 61 19 00 00 00 00 00 FF 0F 8F [22:34:40]RasterBufferAndPrint [22:34:40]line Счет N : (1)950177 [22:34:40]line ИНН: 02508201610067 [22:34:40]line Контрольно-Кассовый Чек [22:34:40]line ПРОДАЖА [22:34:40]line ТРК (МРК, ГНК) : 11 [22:34:40]line Товар: 2710194800 [22:34:40]line ДТ-К-5 [22:34:40]line 45.940 * 76.20 [22:34:40]line = 3500.63 [22:34:40]line НДС 12% НСП 1% [22:34:40]line > о реализуемом товаре [22:34:40]line ОКРУГЛЕНИЕ: -0.63 [22:34:40]line ИТОГО: 3500.00 [22:34:40]line Внесено: 3500.00 [22:34:40]line СДАЧА: 0.00 [22:34:40]line НСП 1% : 30.98 [22:34:40]line НДС 12% : 371.75 [22:34:40]line Наличными: 3500.00 [22:34:40]line Безнал.: 0.00 [22:34:40]line Место: АЗС № 134 "Партнер Нефть" [22:34:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:34:40]line СНО: Общий режим [22:34:40]line Чек 304 30.07.2024 22:34 [22:34:40]line Смена: 435 ФФД: 1.0 [22:34:40]line ЗНМ: 0300000044 [22:34:40]line РНМ: 0000000000092660 [22:34:40]line Версия ККМ: 001 [22:34:40]line ФМ: 0000000000874939 [22:34:40]line ФД: 119252 [22:34:40]line ФПД: 154836437193037 [22:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T223440&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119252&fm=154836437193037&tin=02508201610067®Number=0000000000092660&sum=350000 [22:34:40]Connected sock=11 [22:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 C7 B2 04 01 3A AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 80 6A A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D1 01 00 35 04 06 00 8C D2 AA D6 51 4D 52 2D 55 E1 70 60 DF 08 [22:34:40]written 0, free lines is 4095 [22:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CD B1 47 00 45 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D4 D1 01 00 F4 03 04 00 0A 18 A9 66 B6 04 01 00 00 85 8C 8A F3 D6 7B 9D 39 [22:34:40]CommunicateWithHost err = 0 [22:34:40]CheckOFDResponse [22:34:40]1017 (14) - 77093643461234 [22:34:40]1041 (16) - 0000000000874939 [22:34:40]1040 (4) - 119252 [22:34:40]1012 (4) - 30.07.2024 16:42 [22:34:40]1206 (1) - 0 [22:34:40]OFD Sender: Remove packet 119252 [22:34:40]ProducePacketName [22:34:40]name=ofd_packets/00119252 [22:34:40]NVStorageDeleteData [22:34:41]Write to MH i2c: 01 00 00 8B 19 A4 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 DE 0C 95 [22:34:41]RasterBufferAndPrint [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]line [22:34:41]written 0, free lines is 3298 [22:34:41]MH_Cut [22:34:41]Write to MH i2c: D1 01 00 92 19 01 7D [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 01 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: D1 01 00 92 19 00 7C [22:34:41]Write to MH i2c: 01 00 00 93 19 AC [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]OFD Sender: No OFD packet to send [22:34:41]*** Cut start [22:34:41]*** Partial cut [22:34:41]*** CUTSNS_PIN = 1 [22:34:41]*** CUTSNS_PIN = 0 [22:34:42]*** Brake cut motor [22:34:42]Read from MH i2c: 01 [22:34:42]MH_I2C_Read... [22:34:42]*** Stop cut motor [22:34:42]*** Cut end [22:34:42]Read from MH i2c: 01 07 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 FF 0F C1 [22:34:42]process_action close_receipt done [22:34:42]requested_data is exist [22:34:42]produce_requested_data [22:34:42]requested_item fm.sn is exist - process it [22:34:42]wFMCommunicate request_size=4 [22:34:42]MH_SAM_APDU [22:34:42]CAPDU: 80 11 00 00 [22:34:42]Write to MH i2c: E2 08 00 94 19 80 11 00 00 00 00 00 00 27 [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:42]Read from MH i2c: E2 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 17 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 17 00 94 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [22:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:34:42]wFMCommunicate OK [22:34:42]requested_item fd.num is exist - process it [22:34:42]SAM_PROTO_GetFieldsCounters [22:34:42]wFMCommunicate request_size=4 [22:34:42]MH_SAM_APDU [22:34:42]CAPDU: 80 13 00 00 [22:34:42]Write to MH i2c: E2 08 00 95 19 80 13 00 00 00 00 00 00 2A [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:42]Read from MH i2c: E2 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 62 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 62 00 95 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [22:34:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D4 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:42]wFMCommunicate OK [22:34:42]SAM_PROTO_GetFieldsCounters done [22:34:42]requested_item shift.num is exist - process it [22:34:42]requested_item shift.opened is exist - process it [22:34:42]req_shift_opened [22:34:42]FM_GetShiftState [22:34:42]SAM_PROTO_GetShiftState [22:34:42]wFMCommunicate request_size=4 [22:34:42]MH_SAM_APDU [22:34:42]CAPDU: 80 13 01 00 [22:34:42]Write to MH i2c: E2 08 00 96 19 80 13 01 00 00 00 00 00 2C [22:34:42]Write i2c OK [22:34:42]MH_I2C_Read... [22:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:42]Read from MH i2c: E2 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 0E 00 [22:34:42]MH_I2C_Read... [22:34:42]Read from MH i2c: E2 0E 00 96 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F7 [22:34:42]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:34:42]wFMCommunicate OK [22:34:42]SAM_PROTO_GetShiftState done [22:34:42]FM_GetShiftState done [22:34:42]req_shift_opened done [22:34:42]requested_item shift.open_date is exist - process it [22:34:42]req_shift_open_date [22:34:42]req_shift_open_date done [22:34:42]produce_requested_data done [22:34:42]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119252,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [22:34:42]process_action_free close_receipt [22:34:42]json_value_free [22:34:42]json_value_free done [22:34:42]process_json_proto returns [22:34:42]Send response to host [22:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119252,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [22:34:42]free response buf [22:34:42]execute_script done [22:34:42]execute_script returns [22:34:42]free content buf [22:34:42]Sock 9.Close socket [22:34:42]Sock 9.Thread stoped [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:04]accept exits with 7 [22:49:04]New connection [22:49:04]New thread 3066695012 created [22:49:04]Thread 3066838372 joined [22:49:04]Waiting for new connection... [22:49:04] Sock 7.Parse request [22:49:04]Sock 7.Check first char [22:49:04]Sock 7.First char is OK [22:49:04]request: POST /json_proto HTTP/1.0 [22:49:04]Method: POST [22:49:04]URL: /json_proto [22:49:04]Method is POST - this is cgi request [22:49:04]url: /json_proto [22:49:04]query_string will be loaded in cgi processing [22:49:04]execute_cgi json_proto POST (null) [22:49:04]execute_cgi path=json_proto method=POST [22:49:04]POST find Content-Length [22:49:04]Host: 172.17.45.7:8080 [22:49:04]Content-Length: 682 [22:49:04]Content-Type: application/json [22:49:04] [22:49:04]POST finish read [22:49:04]Found Content-Length = 682 [22:49:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 27.110, "sum" : 1838.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1838.00, "total" : 1838.00, "payments": [ { "type": 0, "sum" : 1838.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:04]execute_script... [22:49: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)950178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 27.110, "sum" : 1838.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1838.00, "total" : 1838.00, "payments": [ { "type": 0, "sum" : 1838.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:04]POST & json_proto [22:49:04]process_json_proto [22:49:04]json parsed OK: [22:49:04]protocol is kg_v1.0 [22:49:04]action value=close_receipt [22:49:04]process_action close_receipt [22:49:04]cmd_close_receipt [22:49:04]MH_GetDate [22:49:04]Write to MH i2c: F0 00 00 97 19 9F [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: F0 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: F0 09 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: F0 09 00 97 19 00 E2 6D A9 66 90 0F 3E 66 49 [22:49:04]GetLastDocTimeStamp 1722378880 [22:49:04]current date 1722379746 [22:49:04]FM_GetShiftState [22:49:04]SAM_PROTO_GetShiftState [22:49:04]wFMCommunicate request_size=4 [22:49:04]MH_SAM_APDU [22:49:04]CAPDU: 80 13 01 00 [22:49:04]Write to MH i2c: E2 08 00 98 19 80 13 01 00 00 00 00 00 2E [22:49:04]Write i2c OK [22:49:04]MH_I2C_Read... [22:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:04]Read from MH i2c: E2 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 0E 00 [22:49:04]MH_I2C_Read... [22:49:04]Read from MH i2c: E2 0E 00 98 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 F9 [22:49:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:49:04]wFMCommunicate OK [22:49:04]SAM_PROTO_GetShiftState done [22:49:04]FM_GetShiftState done [22:49:04]opened in 1722298242 [22:49:04]opened+sec_in_day 1722384642 [22:49:04]quantity*price = 183805 [22:49:04]sum+1 = 183807 [22:49:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1838.00 Внесено: 1838.00 СДАЧА: 0.00 НСП 1% : 16.27 НДС 12% : 195.19 Наличными: 1838.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 305 30.07.2024 22:49 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119253 ФПД: 112536623648467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T224906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119253&fm=112536623648467&tin=02508201610067®Number=0000000000092660&sum=183800 [22:49:05]StoreToDocumentArchive [22:49:05]shift 435 fd 119253 [22:49:05]save to /storage/0435/doc_00119253 [22:49:05]save last doc name /storage/0435/doc_00119253 to /storage/kkm_last_doc_name [22:49:05]save OK [22:49:05]Clear old archive folders... [22:49:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:49:05]tlvbuf is 015D7220 [22:49:05]SAM_PROTO_ClearQueue [22:49:05]wFMCommunicate request_size=4 [22:49:05]MH_SAM_APDU [22:49:05]CAPDU: 80 09 00 00 [22:49:05]Write to MH i2c: E2 08 00 A5 19 80 09 00 00 00 00 00 00 30 [22:49:05]Write i2c OK [22:49:05]MH_I2C_Read... [22:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:06]Read from MH i2c: E2 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 A5 19 00 90 00 32 [22:49:06]RAPDU: 90 00 [22:49:06]wFMCommunicate OK [22:49:06]SAM_PROTO_ClearQueue done [22:49:06]KKMCreateOFDPacket [22:49:06]OFDProtocolAddRootSTLVToBuf [22:49:06]FM_MakeSignedData [22:49:06]FM_MakeSignedData [22:49:06]SAM_PROTO_SignData [22:49:06]wFMCommunicate request_size=4 [22:49:06]MH_SAM_APDU [22:49:06]CAPDU: 80 0D 01 02 [22:49:06]Write to MH i2c: E2 08 00 A6 19 80 0D 01 02 00 00 00 00 38 [22:49:06]Write i2c OK [22:49:06]MH_I2C_Read... [22:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:06]Read from MH i2c: E2 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 A6 19 00 90 00 33 [22:49:06]RAPDU: 90 00 [22:49:06]wFMCommunicate OK [22:49:06]wFMCommunicate request_size=255 [22:49:06]MH_SAM_APDU [22:49: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 E6 69 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 CD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4C 00 00 00 00 07 04 06 00 F8 CD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E2 6D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D1 01 00 35 04 06 00 66 [22:49:06]Write to MH i2c: E2 02 01 A7 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 69 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 CD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4C 00 00 00 00 07 04 06 00 F8 CD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E2 6D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D1 01 00 35 04 06 00 66 00 00 C4 [22:49:06]Write i2c OK [22:49:06]MH_I2C_Read... [22:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:06]Read from MH i2c: E2 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [22:49:06]RAPDU: 90 00 [22:49:06]wFMCommunicate OK [22:49:06]wFMCommunicate request_size=10 [22:49:06]MH_SAM_APDU [22:49:06]CAPDU: 80 0D 02 02 05 59 F9 7A 0E D3 [22:49:06]Write to MH i2c: E2 0D 00 A8 19 80 0D 02 02 05 00 59 F9 7A 0E D3 00 00 F2 [22:49:06]Write i2c OK [22:49:06]MH_I2C_Read... [22:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:06]Read from MH i2c: E2 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [22:49:06]RAPDU: 90 00 [22:49:06]wFMCommunicate OK [22:49:06]wFMCommunicate request_size=4 [22:49:06]MH_SAM_APDU [22:49:06]CAPDU: 80 0D 03 02 [22:49:06]Write to MH i2c: E2 08 00 A9 19 80 0D 03 02 00 00 00 00 3D [22:49:06]Write i2c OK [22:49:06]MH_I2C_Read... [22:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:06]Read from MH i2c: E2 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 0B 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 0B 00 A9 19 00 58 BB 7F E3 43 7F 1F F4 90 00 88 [22:49:06]RAPDU: 58 BB 7F E3 43 7F 1F F4 90 00 [22:49:06]wFMCommunicate OK [22:49:06]SAM_PROTO_SignData done [22:49:06]FM_MakeSignedData done [22:49:06]CreateOFDProtocolMessage [22:49:06]wFMCommunicate request_size=4 [22:49:06]MH_SAM_APDU [22:49:06]CAPDU: 80 11 00 00 [22:49:06]Write to MH i2c: E2 08 00 AA 19 80 11 00 00 00 00 00 00 3D [22:49:06]Write i2c OK [22:49:06]MH_I2C_Read... [22:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:06]Read from MH i2c: E2 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 17 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: E2 17 00 AA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [22:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:49:06]wFMCommunicate OK [22:49:06]CreateOFDProtocolMessage done [22:49:06]OFDSenderStorePacket 119253 [22:49:06]StoreOFDPacket docnum=119253 [22:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 8A 07 01 72 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 E6 69 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 CD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4C 00 00 00 00 07 04 06 00 F8 CD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E2 6D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D1 01 00 35 04 06 00 66 59 F9 7A 0E D3 58 BB 7F E3 43 7F 1F F4 [22:49:06]CheckFolder [22:49:06]dirname=/storage/ofd_packets [22:49:06]CheckFolder done [22:49:06]ProducePacketName [22:49:06]name=ofd_packets/00119253 [22:49:06]NVStorageSaveData ofd_packets/00119253 [22:49:06]File name is /storage/ofd_packets/00119253 [22:49:06]Write 301 bytes [22:49:06]NVStorageSaveData done [22:49:06]OFDSenderStorePacket done [22:49:06]KKMCreateOFDPacket done [22:49:06]NVStorageSaveData kkm_last_timestamp [22:49:06]File name is /storage/kkm_last_timestamp [22:49:06]Write 4 bytes [22:49:06]NVStorageSaveData done [22:49:06]ExternCall_PrintAddStr [22:49:06]wPrintStart [22:49:06]Write to MH i2c: 01 00 00 AB 19 C4 [22:49:06]Write i2c OK [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: 01 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: 01 07 00 [22:49:06]MH_I2C_Read... [22:49:06]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 FF 0F D9 [22:49:06]RasterBufferAndPrint [22:49:06]line Счет N : (1)950178 [22:49:06]line ИНН: 02508201610067 [22:49:06]line Контрольно-Кассовый Чек [22:49:06]line ПРОДАЖА [22:49:06]line ТРК (МРК, ГНК) : 41 [22:49:06]line Товар: 2710124130 [22:49:06]line Аи-92-К-4 [22:49:06]line 27.110 * 67.80 [22:49:06]line = 1838.06 [22:49:06]line НДС 12% НСП 1% [22:49:06]line > о реализуемом товаре [22:49:06]line ОКРУГЛЕНИЕ: -0.06 [22:49:06]line ИТОГО: 1838.00 [22:49:06]line Внесено: 1838.00 [22:49:06]line СДАЧА: 0.00 [22:49:06]line НСП 1% : 16.27 [22:49:06]line НДС 12% : 195.19 [22:49:06]line Наличными: 1838.00 [22:49:06]line Безнал.: 0.00 [22:49:06]line Место: АЗС № 134 "Партнер Нефть" [22:49:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:49:06]line СНО: Общий режим [22:49:06]line Чек 305 30.07.2024 22:49 [22:49:06]line Смена: 435 ФФД: 1.0 [22:49:06]line ЗНМ: 0300000044 [22:49:06]line РНМ: 0000000000092660 [22:49:06]line Версия ККМ: 001 [22:49:06]line ФМ: 0000000000874939 [22:49:06]line ФД: 119253 [22:49:06]line ФПД: 112536623648467 [22:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T224906&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119253&fm=112536623648467&tin=02508201610067®Number=0000000000092660&sum=183800 [22:49:06]OFD Sender: Processing packet 119253 [packets to send 86, broken 85] [22:49:06]ProducePacketName [22:49:06]name=ofd_packets/00119253 [22:49:06]OFD Sender: To server: pG, [22:49:06]CommunicateWithHost lk.salyk.kg:30040 [22:49:06]ConnectInit lk.salyk.kg [22:49:06]written 0, free lines is 4095 [22:49:06]Connected sock=10 [22:49:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 06 8A 07 01 72 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 E6 69 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 FE CD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 CD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 4C 00 00 00 00 07 04 06 00 F8 CD 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 E2 6D A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D1 01 00 35 04 06 00 66 59 F9 7A 0E D3 58 BB 7F E3 43 7F 1F F4 [22:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BB 3E 47 00 CE 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D5 D1 01 00 F4 03 04 00 6C 1B A9 66 B6 04 01 00 00 80 55 98 FB 55 F7 79 D3 [22:49:07]CommunicateWithHost err = 0 [22:49:07]CheckOFDResponse [22:49:07]1017 (14) - 77093643461234 [22:49:07]1041 (16) - 0000000000874939 [22:49:07]1040 (4) - 119253 [22:49:07]1012 (4) - 30.07.2024 16:57 [22:49:07]1206 (1) - 0 [22:49:07]OFD Sender: Remove packet 119253 [22:49:07]ProducePacketName [22:49:07]name=ofd_packets/00119253 [22:49:07]NVStorageDeleteData [22:49:07]Write to MH i2c: 01 00 00 D5 19 EE [22:49:07]Write i2c OK [22:49:07]MH_I2C_Read... [22:49:07]Read from MH i2c: 01 [22:49:07]MH_I2C_Read... [22:49:07]Read from MH i2c: 01 07 00 [22:49:07]MH_I2C_Read... [22:49:07]Read from MH i2c: 01 07 00 D5 19 00 00 00 00 00 DC 0C DD [22:49:07]RasterBufferAndPrint [22:49:07]line [22:49:07]line [22:49:07]line [22:49:07]line [22:49:07]line [22:49:07]written 0, free lines is 3296 [22:49:07]MH_Cut [22:49:07]Write to MH i2c: D1 01 00 DC 19 01 C7 [22:49:07]Write i2c OK [22:49:07]MH_I2C_Read... [22:49:07]Read from MH i2c: D1 [22:49:07]MH_I2C_Read... [22:49:07]Read from MH i2c: D1 01 00 [22:49:07]MH_I2C_Read... [22:49:07]Read from MH i2c: D1 01 00 DC 19 00 C6 [22:49:07]Write to MH i2c: 01 00 00 DD 19 F6 [22:49:07]Write i2c OK [22:49:07]MH_I2C_Read... [22:49:07]OFD Sender: No OFD packet to send [22:49:08]*** Cut start [22:49:08]*** Partial cut [22:49:08]*** CUTSNS_PIN = 1 [22:49:08]*** CUTSNS_PIN = 0 [22:49:08]*** Brake cut motor [22:49:08]Read from MH i2c: 01 [22:49:08]MH_I2C_Read... [22:49:08]*** Stop cut motor [22:49:08]*** Cut end [22:49:08]Read from MH i2c: 01 07 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [22:49:08]process_action close_receipt done [22:49:08]requested_data is exist [22:49:08]produce_requested_data [22:49:08]requested_item fm.sn is exist - process it [22:49:08]wFMCommunicate request_size=4 [22:49:08]MH_SAM_APDU [22:49:08]CAPDU: 80 11 00 00 [22:49:08]Write to MH i2c: E2 08 00 DE 19 80 11 00 00 00 00 00 00 71 [22:49:08]Write i2c OK [22:49:08]MH_I2C_Read... [22:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:08]Read from MH i2c: E2 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 17 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 17 00 DE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [22:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:49:08]wFMCommunicate OK [22:49:08]requested_item fd.num is exist - process it [22:49:08]SAM_PROTO_GetFieldsCounters [22:49:08]wFMCommunicate request_size=4 [22:49:08]MH_SAM_APDU [22:49:08]CAPDU: 80 13 00 00 [22:49:08]Write to MH i2c: E2 08 00 DF 19 80 13 00 00 00 00 00 00 74 [22:49:08]Write i2c OK [22:49:08]MH_I2C_Read... [22:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:08]Read from MH i2c: E2 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 62 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 62 00 DF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [22:49:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D5 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:49:08]wFMCommunicate OK [22:49:08]SAM_PROTO_GetFieldsCounters done [22:49:08]requested_item shift.num is exist - process it [22:49:08]requested_item shift.opened is exist - process it [22:49:08]req_shift_opened [22:49:08]FM_GetShiftState [22:49:08]SAM_PROTO_GetShiftState [22:49:08]wFMCommunicate request_size=4 [22:49:08]MH_SAM_APDU [22:49:08]CAPDU: 80 13 01 00 [22:49:08]Write to MH i2c: E2 08 00 E0 19 80 13 01 00 00 00 00 00 76 [22:49:08]Write i2c OK [22:49:08]MH_I2C_Read... [22:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:08]Read from MH i2c: E2 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 0E 00 [22:49:08]MH_I2C_Read... [22:49:08]Read from MH i2c: E2 0E 00 E0 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 41 [22:49:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:49:08]wFMCommunicate OK [22:49:08]SAM_PROTO_GetShiftState done [22:49:08]FM_GetShiftState done [22:49:08]req_shift_opened done [22:49:08]requested_item shift.open_date is exist - process it [22:49:08]req_shift_open_date [22:49:08]req_shift_open_date done [22:49:08]produce_requested_data done [22:49:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119253,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [22:49:08]process_action_free close_receipt [22:49:08]json_value_free [22:49:08]json_value_free done [22:49:08]process_json_proto returns [22:49:08]Send response to host [22:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119253,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [22:49:08]free response buf [22:49:08]execute_script done [22:49:08]execute_script returns [22:49:08]free content buf [22:49:08]Sock 7.Close socket [22:49:08]Sock 7.Thread stoped [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:10]accept exits with 9 [22:52:10]New connection [22:52:10]New thread 3066838372 created [22:52:10]Thread 3066695012 joined [22:52:10]Waiting for new connection... [22:52:10] Sock 9.Parse request [22:52:10]Sock 9.Check first char [22:52:10]Sock 9.First char is OK [22:52:10]request: POST /json_proto HTTP/1.0 [22:52:10]Method: POST [22:52:10]URL: /json_proto [22:52:10]Method is POST - this is cgi request [22:52:10]url: /json_proto [22:52:10]query_string will be loaded in cgi processing [22:52:10]execute_cgi json_proto POST (null) [22:52:10]execute_cgi path=json_proto method=POST [22:52:10]POST find Content-Length [22:52:10]Host: 172.17.45.7:8080 [22:52:10]Content-Length: 820 [22:52:10]Content-Type: application/json [22:52:10] [22:52:10]POST finish read [22:52:10]Found Content-Length = 820 [22:52:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:10]execute_script... [22:52: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)950179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:52:10]POST & json_proto [22:52:10]process_json_proto [22:52:10]json parsed OK: [22:52:10]protocol is kg_v1.0 [22:52:10]action value=close_receipt [22:52:10]process_action close_receipt [22:52:10]cmd_close_receipt [22:52:10]MH_GetDate [22:52:10]Write to MH i2c: F0 00 00 E1 19 E9 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: F0 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: F0 09 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: F0 09 00 E1 19 00 9C 6E A9 66 90 0F 3E 66 4E [22:52:10]GetLastDocTimeStamp 1722379746 [22:52:10]current date 1722379932 [22:52:10]FM_GetShiftState [22:52:10]SAM_PROTO_GetShiftState [22:52:10]wFMCommunicate request_size=4 [22:52:10]MH_SAM_APDU [22:52:10]CAPDU: 80 13 01 00 [22:52:10]Write to MH i2c: E2 08 00 E2 19 80 13 01 00 00 00 00 00 78 [22:52:10]Write i2c OK [22:52:10]MH_I2C_Read... [22:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:10]Read from MH i2c: E2 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 0E 00 [22:52:10]MH_I2C_Read... [22:52:10]Read from MH i2c: E2 0E 00 E2 19 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 43 [22:52:10]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:52:10]wFMCommunicate OK [22:52:10]SAM_PROTO_GetShiftState done [22:52:10]FM_GetShiftState done [22:52:10]opened in 1722298242 [22:52:10]opened+sec_in_day 1722384642 [22:52:10]quantity*price = 998982 [22:52:10]sum+1 = 998983 [22:52:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 306 30.07.2024 22:52 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119254 ФПД: 114320404510647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T225212&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119254&fm=114320404510647&tin=02508201610067®Number=0000000000092660&sum=998900 [22:52:11]StoreToDocumentArchive [22:52:11]shift 435 fd 119254 [22:52:11]save to /storage/0435/doc_00119254 [22:52:11]save last doc name /storage/0435/doc_00119254 to /storage/kkm_last_doc_name [22:52:11]save OK [22:52:11]Clear old archive folders... [22:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:52:11]tlvbuf is 01658C70 [22:52:11]SAM_PROTO_ClearQueue [22:52:11]wFMCommunicate request_size=4 [22:52:11]MH_SAM_APDU [22:52:11]CAPDU: 80 09 00 00 [22:52:11]Write to MH i2c: E2 08 00 EF 19 80 09 00 00 00 00 00 00 7A [22:52:11]Write i2c OK [22:52:11]MH_I2C_Read... [22:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:52:11]Read from MH i2c: E2 [22:52:11]MH_I2C_Read... [22:52:11]Read from MH i2c: E2 03 00 [22:52:11]MH_I2C_Read... [22:52:11]Read from MH i2c: E2 03 00 EF 19 00 90 00 7C [22:52:11]RAPDU: 90 00 [22:52:11]wFMCommunicate OK [22:52:11]SAM_PROTO_ClearQueue done [22:52:11]KKMCreateOFDPacket [22:52:11]OFDProtocolAddRootSTLVToBuf [22:52:11]FM_MakeSignedData [22:52:11]FM_MakeSignedData [22:52:11]SAM_PROTO_SignData [22:52:11]wFMCommunicate request_size=4 [22:52:11]MH_SAM_APDU [22:52:11]CAPDU: 80 0D 01 02 [22:52:11]Write to MH i2c: E2 08 00 F0 19 80 0D 01 02 00 00 00 00 82 [22:52:11]Write i2c OK [22:52:11]MH_I2C_Read... [22:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:52:11]Read from MH i2c: E2 [22:52:11]MH_I2C_Read... [22:52:11]Read from MH i2c: E2 03 00 [22:52:11]MH_I2C_Read... [22:52:11]Read from MH i2c: E2 03 00 F0 19 00 90 00 7D [22:52:11]RAPDU: 90 00 [22:52:11]wFMCommunicate OK [22:52:11]wFMCommunicate request_size=255 [22:52:11]MH_SAM_APDU [22:52:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 9C 6E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D1 01 00 35 04 06 00 67 F9 4B 19 [22:52:11]Write to MH i2c: E2 02 01 F1 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 9C 6E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D1 01 00 35 04 06 00 67 F9 4B 19 00 00 18 [22:52:11]Write i2c OK [22:52:11]MH_I2C_Read... [22:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:12]Read from MH i2c: E2 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 03 00 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 03 00 F1 19 00 90 00 7E [22:52:12]RAPDU: 90 00 [22:52:12]wFMCommunicate OK [22:52:12]wFMCommunicate request_size=7 [22:52:12]MH_SAM_APDU [22:52:12]CAPDU: 80 0D 02 02 02 F7 B7 [22:52:12]Write to MH i2c: E2 0A 00 F2 19 80 0D 02 02 02 00 F7 B7 00 00 37 [22:52:12]Write i2c OK [22:52:12]MH_I2C_Read... [22:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:52:12]Read from MH i2c: E2 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 03 00 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 03 00 F2 19 00 90 00 7F [22:52:12]RAPDU: 90 00 [22:52:12]wFMCommunicate OK [22:52:12]wFMCommunicate request_size=4 [22:52:12]MH_SAM_APDU [22:52:12]CAPDU: 80 0D 03 02 [22:52:12]Write to MH i2c: E2 08 00 F3 19 80 0D 03 02 00 00 00 00 87 [22:52:12]Write i2c OK [22:52:12]MH_I2C_Read... [22:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:52:12]Read from MH i2c: E2 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 0B 00 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 0B 00 F3 19 00 E8 92 6E 2D CC A8 7D D5 90 00 63 [22:52:12]RAPDU: E8 92 6E 2D CC A8 7D D5 90 00 [22:52:12]wFMCommunicate OK [22:52:12]SAM_PROTO_SignData done [22:52:12]FM_MakeSignedData done [22:52:12]CreateOFDProtocolMessage [22:52:12]wFMCommunicate request_size=4 [22:52:12]MH_SAM_APDU [22:52:12]CAPDU: 80 11 00 00 [22:52:12]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [22:52:12]Write i2c OK [22:52:12]MH_I2C_Read... [22:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:12]Read from MH i2c: E2 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 17 00 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [22:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:52:12]wFMCommunicate OK [22:52:12]CreateOFDProtocolMessage done [22:52:12]OFDSenderStorePacket 119254 [22:52:12]StoreOFDPacket docnum=119254 [22:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D7 DA 04 01 FB BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 9C 6E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D1 01 00 35 04 06 00 67 F9 4B 19 F7 B7 E8 92 6E 2D CC A8 7D D5 [22:52:12]CheckFolder [22:52:12]dirname=/storage/ofd_packets [22:52:12]CheckFolder done [22:52:12]ProducePacketName [22:52:12]name=ofd_packets/00119254 [22:52:12]NVStorageSaveData ofd_packets/00119254 [22:52:12]File name is /storage/ofd_packets/00119254 [22:52:12]Write 298 bytes [22:52:12]NVStorageSaveData done [22:52:12]OFDSenderStorePacket done [22:52:12]KKMCreateOFDPacket done [22:52:12]NVStorageSaveData kkm_last_timestamp [22:52:12]File name is /storage/kkm_last_timestamp [22:52:12]Write 4 bytes [22:52:12]NVStorageSaveData done [22:52:12]ExternCall_PrintAddStr [22:52:12]wPrintStart [22:52:12]Write to MH i2c: 01 00 00 F5 19 0E [22:52:12]Write i2c OK [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: 01 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: 01 07 00 [22:52:12]MH_I2C_Read... [22:52:12]Read from MH i2c: 01 07 00 F5 19 00 00 00 00 00 FF 0F 23 [22:52:12]RasterBufferAndPrint [22:52:12]line Счет N : (1)950179 [22:52:12]line ИНН: 02508201610067 [22:52:12]line Контрольно-Кассовый Чек [22:52:12]line ПРОДАЖА [22:52:12]line ТРК (МРК, ГНК) : 21 [22:52:12]line Товар: 2710194800 [22:52:12]line ДТ-К-5 [22:52:12]line 131.100 * 76.20 [22:52:12]line = 9989.82 [22:52:12]line НДС 12% НСП 1% [22:52:12]line > о реализуемом товаре [22:52:12]line ОКРУГЛЕНИЕ: -0.82 [22:52:12]line ИТОГО: 9989.00 [22:52:12]line НСП 1% : 88.40 [22:52:12]line НДС 12% : 1060.87 [22:52:12]line Наличными: 0.00 [22:52:12]line Безнал.: 9989.00 [22:52:12]line Место: АЗС № 134 "Партнер Нефть" [22:52:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:52:12]line СНО: Общий режим [22:52:12]line Чек 306 30.07.2024 22:52 [22:52:12]line Смена: 435 ФФД: 1.0 [22:52:12]line ЗНМ: 0300000044 [22:52:12]line РНМ: 0000000000092660 [22:52:12]line Версия ККМ: 001 [22:52:12]line Платежная система: O! деньги [22:52:12]line ФМ: 0000000000874939 [22:52:12]line ФД: 119254 [22:52:12]line ФПД: 114320404510647 [22:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T225212&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119254&fm=114320404510647&tin=02508201610067®Number=0000000000092660&sum=998900 [22:52:12]OFD Sender: Processing packet 119254 [packets to send 86, broken 85] [22:52:12]ProducePacketName [22:52:12]name=ofd_packets/00119254 [22:52:12]OFD Sender: To server: pG, [22:52:12]CommunicateWithHost lk.salyk.kg:30040 [22:52:12]ConnectInit lk.salyk.kg [22:52:12]written 0, free lines is 4095 [22:52:12]Connected sock=10 [22:52:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D7 DA 04 01 FB BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 9C 6E A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D1 01 00 35 04 06 00 67 F9 4B 19 F7 B7 E8 92 6E 2D CC A8 7D D5 [22:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 F8 C9 47 00 19 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D6 D1 01 00 F4 03 04 00 26 1C A9 66 B6 04 01 00 00 FE E4 E7 C2 CF 2E D3 B0 [22:52:12]CommunicateWithHost err = 0 [22:52:12]CheckOFDResponse [22:52:12]1017 (14) - 77093643461234 [22:52:12]1041 (16) - 0000000000874939 [22:52:12]1040 (4) - 119254 [22:52:12]1012 (4) - 30.07.2024 17:00 [22:52:12]1206 (1) - 0 [22:52:12]OFD Sender: Remove packet 119254 [22:52:12]ProducePacketName [22:52:12]name=ofd_packets/00119254 [22:52:12]NVStorageDeleteData [22:52:13]Write to MH i2c: 01 00 00 1F 1A 39 [22:52:13]Write i2c OK [22:52:13]MH_I2C_Read... [22:52:13]Read from MH i2c: 01 [22:52:13]MH_I2C_Read... [22:52:13]Read from MH i2c: 01 07 00 [22:52:13]MH_I2C_Read... [22:52:13]Read from MH i2c: 01 07 00 1F 1A 00 00 00 00 00 D9 0C 25 [22:52:13]RasterBufferAndPrint [22:52:13]line [22:52:13]line [22:52:13]line [22:52:13]line [22:52:13]line [22:52:13]written 0, free lines is 3296 [22:52:13]MH_Cut [22:52:13]Write to MH i2c: D1 01 00 26 1A 01 12 [22:52:13]Write i2c OK [22:52:13]MH_I2C_Read... [22:52:13]Read from MH i2c: D1 [22:52:13]MH_I2C_Read... [22:52:13]Read from MH i2c: D1 01 00 [22:52:13]MH_I2C_Read... [22:52:13]Read from MH i2c: D1 01 00 26 1A 00 11 [22:52:13]Write to MH i2c: 01 00 00 27 1A 41 [22:52:13]Write i2c OK [22:52:13]MH_I2C_Read... [22:52:13]OFD Sender: No OFD packet to send [22:52:13]*** Cut start [22:52:13]*** Partial cut [22:52:13]*** CUTSNS_PIN = 1 [22:52:13]*** CUTSNS_PIN = 0 [22:52:14]*** Brake cut motor [22:52:14]Read from MH i2c: 01 [22:52:14]MH_I2C_Read... [22:52:14]*** Stop cut motor [22:52:14]*** Cut end [22:52:14]Read from MH i2c: 01 07 00 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: 01 07 00 27 1A 00 00 00 00 00 FF 0F 56 [22:52:14]process_action close_receipt done [22:52:14]requested_data is exist [22:52:14]produce_requested_data [22:52:14]requested_item fm.sn is exist - process it [22:52:14]wFMCommunicate request_size=4 [22:52:14]MH_SAM_APDU [22:52:14]CAPDU: 80 11 00 00 [22:52:14]Write to MH i2c: E2 08 00 28 1A 80 11 00 00 00 00 00 00 BC [22:52:14]Write i2c OK [22:52:14]MH_I2C_Read... [22:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:52:14]Read from MH i2c: E2 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: E2 17 00 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: E2 17 00 28 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [22:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:52:14]wFMCommunicate OK [22:52:14]requested_item fd.num is exist - process it [22:52:14]SAM_PROTO_GetFieldsCounters [22:52:14]wFMCommunicate request_size=4 [22:52:14]MH_SAM_APDU [22:52:14]CAPDU: 80 13 00 00 [22:52:14]Write to MH i2c: E2 08 00 29 1A 80 13 00 00 00 00 00 00 BF [22:52:14]Write i2c OK [22:52:14]MH_I2C_Read... [22:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:52:14]Read from MH i2c: E2 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: E2 62 00 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: E2 62 00 29 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [22:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D6 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:52:14]wFMCommunicate OK [22:52:14]SAM_PROTO_GetFieldsCounters done [22:52:14]requested_item shift.num is exist - process it [22:52:14]requested_item shift.opened is exist - process it [22:52:14]req_shift_opened [22:52:14]FM_GetShiftState [22:52:14]SAM_PROTO_GetShiftState [22:52:14]wFMCommunicate request_size=4 [22:52:14]MH_SAM_APDU [22:52:14]CAPDU: 80 13 01 00 [22:52:14]Write to MH i2c: E2 08 00 2A 1A 80 13 01 00 00 00 00 00 C1 [22:52:14]Write i2c OK [22:52:14]MH_I2C_Read... [22:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:52:14]Read from MH i2c: E2 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: E2 0E 00 [22:52:14]MH_I2C_Read... [22:52:14]Read from MH i2c: E2 0E 00 2A 1A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8C [22:52:14]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:52:14]wFMCommunicate OK [22:52:14]SAM_PROTO_GetShiftState done [22:52:14]FM_GetShiftState done [22:52:14]req_shift_opened done [22:52:14]requested_item shift.open_date is exist - process it [22:52:14]req_shift_open_date [22:52:14]req_shift_open_date done [22:52:14]produce_requested_data done [22:52:14]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119254,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [22:52:14]process_action_free close_receipt [22:52:14]json_value_free [22:52:14]json_value_free done [22:52:14]process_json_proto returns [22:52:14]Send response to host [22:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119254,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [22:52:14]free response buf [22:52:14]execute_script done [22:52:14]execute_script returns [22:52:14]free content buf [22:52:14]Sock 9.Close socket [22:52:14]Sock 9.Thread stoped [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:04]accept exits with 7 [22:56:04]New connection [22:56:04]New thread 3066695012 created [22:56:04]Thread 3066838372 joined [22:56:04]Waiting for new connection... [22:56:04] Sock 7.Parse request [22:56:04]Sock 7.Check first char [22:56:04]Sock 7.First char is OK [22:56:04]request: POST /json_proto HTTP/1.0 [22:56:04]Method: POST [22:56:04]URL: /json_proto [22:56:04]Method is POST - this is cgi request [22:56:04]url: /json_proto [22:56:04]query_string will be loaded in cgi processing [22:56:04]execute_cgi json_proto POST (null) [22:56:04]execute_cgi path=json_proto method=POST [22:56:04]POST find Content-Length [22:56:04]Host: 172.17.45.7:8080 [22:56:04]Content-Length: 820 [22:56:04]Content-Type: application/json [22:56:04] [22:56:04]POST finish read [22:56:04]Found Content-Length = 820 [22:56:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:04]execute_script... [22:56:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 9989.00, "payments": [ { "type": 1, "sum" : 9989.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:04]POST & json_proto [22:56:04]process_json_proto [22:56:04]json parsed OK: [22:56:04]protocol is kg_v1.0 [22:56:04]action value=close_receipt [22:56:04]process_action close_receipt [22:56:04]cmd_close_receipt [22:56:04]MH_GetDate [22:56:04]Write to MH i2c: F0 00 00 2B 1A 34 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: F0 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: F0 09 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: F0 09 00 2B 1A 00 86 6F A9 66 90 0F 3E 66 84 [22:56:04]GetLastDocTimeStamp 1722379932 [22:56:04]current date 1722380166 [22:56:04]FM_GetShiftState [22:56:04]SAM_PROTO_GetShiftState [22:56:04]wFMCommunicate request_size=4 [22:56:04]MH_SAM_APDU [22:56:04]CAPDU: 80 13 01 00 [22:56:04]Write to MH i2c: E2 08 00 2C 1A 80 13 01 00 00 00 00 00 C3 [22:56:04]Write i2c OK [22:56:04]MH_I2C_Read... [22:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:04]Read from MH i2c: E2 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 0E 00 [22:56:04]MH_I2C_Read... [22:56:04]Read from MH i2c: E2 0E 00 2C 1A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 8E [22:56:04]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:56:04]wFMCommunicate OK [22:56:04]SAM_PROTO_GetShiftState done [22:56:04]FM_GetShiftState done [22:56:04]opened in 1722298242 [22:56:04]opened+sec_in_day 1722384642 [22:56:04]quantity*price = 998982 [22:56:04]sum+1 = 998983 [22:56:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 9989.00 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 307 30.07.2024 22:56 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119255 ФПД: 11786727547782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T225606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119255&fm=11786727547782&tin=02508201610067®Number=0000000000092660&sum=998900 [22:56:05]StoreToDocumentArchive [22:56:05]shift 435 fd 119255 [22:56:05]save to /storage/0435/doc_00119255 [22:56:05]save last doc name /storage/0435/doc_00119255 to /storage/kkm_last_doc_name [22:56:05]save OK [22:56:05]Clear old archive folders... [22:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:56:05]tlvbuf is 0168E520 [22:56:05]SAM_PROTO_ClearQueue [22:56:05]wFMCommunicate request_size=4 [22:56:05]MH_SAM_APDU [22:56:05]CAPDU: 80 09 00 00 [22:56:05]Write to MH i2c: E2 08 00 39 1A 80 09 00 00 00 00 00 00 C5 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:05]Read from MH i2c: E2 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 39 1A 00 90 00 C7 [22:56:05]RAPDU: 90 00 [22:56:05]wFMCommunicate OK [22:56:05]SAM_PROTO_ClearQueue done [22:56:05]KKMCreateOFDPacket [22:56:05]OFDProtocolAddRootSTLVToBuf [22:56:05]FM_MakeSignedData [22:56:05]FM_MakeSignedData [22:56:05]SAM_PROTO_SignData [22:56:05]wFMCommunicate request_size=4 [22:56:05]MH_SAM_APDU [22:56:05]CAPDU: 80 0D 01 02 [22:56:05]Write to MH i2c: E2 08 00 3A 1A 80 0D 01 02 00 00 00 00 CD [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:05]Read from MH i2c: E2 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 3A 1A 00 90 00 C8 [22:56:05]RAPDU: 90 00 [22:56:05]wFMCommunicate OK [22:56:05]wFMCommunicate request_size=255 [22:56:05]MH_SAM_APDU [22:56:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 86 6F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D1 01 00 35 04 06 00 0A B8 4F B5 [22:56:05]Write to MH i2c: E2 02 01 3B 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 86 6F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D1 01 00 35 04 06 00 0A B8 4F B5 00 00 52 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:05]Read from MH i2c: E2 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 3B 1A 00 90 00 C9 [22:56:05]RAPDU: 90 00 [22:56:05]wFMCommunicate OK [22:56:05]wFMCommunicate request_size=7 [22:56:05]MH_SAM_APDU [22:56:05]CAPDU: 80 0D 02 02 02 63 86 [22:56:05]Write to MH i2c: E2 0A 00 3C 1A 80 0D 02 02 02 00 63 86 00 00 BD [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:05]Read from MH i2c: E2 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 03 00 3C 1A 00 90 00 CA [22:56:05]RAPDU: 90 00 [22:56:05]wFMCommunicate OK [22:56:05]wFMCommunicate request_size=4 [22:56:05]MH_SAM_APDU [22:56:05]CAPDU: 80 0D 03 02 [22:56:05]Write to MH i2c: E2 08 00 3D 1A 80 0D 03 02 00 00 00 00 D2 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:05]Read from MH i2c: E2 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 0B 00 [22:56:05]MH_I2C_Read... [22:56:05]Read from MH i2c: E2 0B 00 3D 1A 00 19 B5 5F C0 6C AC 00 9E 90 00 76 [22:56:05]RAPDU: 19 B5 5F C0 6C AC 00 9E 90 00 [22:56:05]wFMCommunicate OK [22:56:05]SAM_PROTO_SignData done [22:56:05]FM_MakeSignedData done [22:56:05]CreateOFDProtocolMessage [22:56:05]wFMCommunicate request_size=4 [22:56:05]MH_SAM_APDU [22:56:05]CAPDU: 80 11 00 00 [22:56:05]Write to MH i2c: E2 08 00 3E 1A 80 11 00 00 00 00 00 00 D2 [22:56:05]Write i2c OK [22:56:05]MH_I2C_Read... [22:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:06]Read from MH i2c: E2 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: E2 17 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: E2 17 00 3E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [22:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:56:06]wFMCommunicate OK [22:56:06]CreateOFDProtocolMessage done [22:56:06]OFDSenderStorePacket 119255 [22:56:06]StoreOFDPacket docnum=119255 [22:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C 0D 04 01 DB 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 86 6F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D1 01 00 35 04 06 00 0A B8 4F B5 63 86 19 B5 5F C0 6C AC 00 9E [22:56:06]CheckFolder [22:56:06]dirname=/storage/ofd_packets [22:56:06]CheckFolder done [22:56:06]ProducePacketName [22:56:06]name=ofd_packets/00119255 [22:56:06]NVStorageSaveData ofd_packets/00119255 [22:56:06]File name is /storage/ofd_packets/00119255 [22:56:06]Write 298 bytes [22:56:06]NVStorageSaveData done [22:56:06]OFDSenderStorePacket done [22:56:06]KKMCreateOFDPacket done [22:56:06]NVStorageSaveData kkm_last_timestamp [22:56:06]File name is /storage/kkm_last_timestamp [22:56:06]Write 4 bytes [22:56:06]NVStorageSaveData done [22:56:06]ExternCall_PrintAddStr [22:56:06]wPrintStart [22:56:06]Write to MH i2c: 01 00 00 3F 1A 59 [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 07 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 07 00 3F 1A 00 00 00 00 00 FF 0F 6E [22:56:06]RasterBufferAndPrint [22:56:06]line Счет N : (1)950180 [22:56:06]line ИНН: 02508201610067 [22:56:06]line Контрольно-Кассовый Чек [22:56:06]line ПРОДАЖА [22:56:06]line ТРК (МРК, ГНК) : 21 [22:56:06]line Товар: 2710194800 [22:56:06]line ДТ-К-5 [22:56:06]line 131.100 * 76.20 [22:56:06]line = 9989.82 [22:56:06]line НДС 12% НСП 1% [22:56:06]line > о реализуемом товаре [22:56:06]line ОКРУГЛЕНИЕ: -0.82 [22:56:06]line ИТОГО: 9989.00 [22:56:06]line НСП 1% : 88.40 [22:56:06]line НДС 12% : 1060.87 [22:56:06]line Наличными: 0.00 [22:56:06]line Безнал.: 9989.00 [22:56:06]line Место: АЗС № 134 "Партнер Нефть" [22:56:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:56:06]line СНО: Общий режим [22:56:06]line Чек 307 30.07.2024 22:56 [22:56:06]line Смена: 435 ФФД: 1.0 [22:56:06]line ЗНМ: 0300000044 [22:56:06]line РНМ: 0000000000092660 [22:56:06]line Версия ККМ: 001 [22:56:06]line Платежная система: O! деньги [22:56:06]line ФМ: 0000000000874939 [22:56:06]line ФД: 119255 [22:56:06]line ФПД: 11786727547782 [22:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T225606&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119255&fm=11786727547782&tin=02508201610067®Number=0000000000092660&sum=998900 [22:56:06]OFD Sender: Processing packet 119255 [packets to send 86, broken 85] [22:56:06]ProducePacketName [22:56:06]name=ofd_packets/00119255 [22:56:06]OFD Sender: To server: pG, [22:56:06]CommunicateWithHost lk.salyk.kg:30040 [22:56:06]ConnectInit lk.salyk.kg [22:56:06]written 0, free lines is 4095 [22:56:06]Connected sock=10 [22:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 9C 0D 04 01 DB 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 3D 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 3D 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 86 6F A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D7 D1 01 00 35 04 06 00 0A B8 4F B5 63 86 19 B5 5F C0 6C AC 00 9E [22:56:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 33 1A 47 00 9B 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 34 39 33 39 10 04 04 00 D7 D1 01 00 F4 03 04 00 10 1D A9 66 B6 04 01 00 00 6D BC 26 73 5E 49 F5 FC [22:56:06]CommunicateWithHost err = 0 [22:56:06]CheckOFDResponse [22:56:06]1017 (14) - 77093643461234 [22:56:06]1041 (16) - 0000000000874939 [22:56:06]1040 (4) - 119255 [22:56:06]1012 (4) - 30.07.2024 17:04 [22:56:06]1206 (1) - 0 [22:56:06]OFD Sender: Remove packet 119255 [22:56:06]ProducePacketName [22:56:06]name=ofd_packets/00119255 [22:56:06]NVStorageDeleteData [22:56:06]Write to MH i2c: 01 00 00 69 1A 83 [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 07 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: 01 07 00 69 1A 00 00 00 00 00 D4 0C 6A [22:56:06]RasterBufferAndPrint [22:56:06]line [22:56:06]line [22:56:06]line [22:56:06]line [22:56:06]line [22:56:06]written 0, free lines is 3290 [22:56:06]MH_Cut [22:56:06]Write to MH i2c: D1 01 00 70 1A 01 5C [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: D1 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: D1 01 00 [22:56:06]MH_I2C_Read... [22:56:06]Read from MH i2c: D1 01 00 70 1A 00 5B [22:56:06]Write to MH i2c: 01 00 00 71 1A 8B [22:56:06]Write i2c OK [22:56:06]MH_I2C_Read... [22:56:07]OFD Sender: No OFD packet to send [22:56:07]*** Cut start [22:56:07]*** Partial cut [22:56:07]*** CUTSNS_PIN = 1 [22:56:07]*** CUTSNS_PIN = 0 [22:56:07]*** Brake cut motor [22:56:08]Read from MH i2c: 01 [22:56:08]MH_I2C_Read... [22:56:08]*** Stop cut motor [22:56:08]*** Cut end [22:56:08]Read from MH i2c: 01 07 00 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: 01 07 00 71 1A 00 00 00 00 00 FF 0F A0 [22:56:08]process_action close_receipt done [22:56:08]requested_data is exist [22:56:08]produce_requested_data [22:56:08]requested_item fm.sn is exist - process it [22:56:08]wFMCommunicate request_size=4 [22:56:08]MH_SAM_APDU [22:56:08]CAPDU: 80 11 00 00 [22:56:08]Write to MH i2c: E2 08 00 72 1A 80 11 00 00 00 00 00 00 06 [22:56:08]Write i2c OK [22:56:08]MH_I2C_Read... [22:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:08]Read from MH i2c: E2 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: E2 17 00 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: E2 17 00 72 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [22:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [22:56:08]wFMCommunicate OK [22:56:08]requested_item fd.num is exist - process it [22:56:08]SAM_PROTO_GetFieldsCounters [22:56:08]wFMCommunicate request_size=4 [22:56:08]MH_SAM_APDU [22:56:08]CAPDU: 80 13 00 00 [22:56:08]Write to MH i2c: E2 08 00 73 1A 80 13 00 00 00 00 00 00 09 [22:56:08]Write i2c OK [22:56:08]MH_I2C_Read... [22:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:08]Read from MH i2c: E2 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: E2 62 00 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: E2 62 00 73 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [22:56:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D7 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:08]wFMCommunicate OK [22:56:08]SAM_PROTO_GetFieldsCounters done [22:56:08]requested_item shift.num is exist - process it [22:56:08]requested_item shift.opened is exist - process it [22:56:08]req_shift_opened [22:56:08]FM_GetShiftState [22:56:08]SAM_PROTO_GetShiftState [22:56:08]wFMCommunicate request_size=4 [22:56:08]MH_SAM_APDU [22:56:08]CAPDU: 80 13 01 00 [22:56:08]Write to MH i2c: E2 08 00 74 1A 80 13 01 00 00 00 00 00 0B [22:56:08]Write i2c OK [22:56:08]MH_I2C_Read... [22:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:08]Read from MH i2c: E2 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: E2 0E 00 [22:56:08]MH_I2C_Read... [22:56:08]Read from MH i2c: E2 0E 00 74 1A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D6 [22:56:08]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [22:56:08]wFMCommunicate OK [22:56:08]SAM_PROTO_GetShiftState done [22:56:08]FM_GetShiftState done [22:56:08]req_shift_opened done [22:56:08]requested_item shift.open_date is exist - process it [22:56:08]req_shift_open_date [22:56:08]req_shift_open_date done [22:56:08]produce_requested_data done [22:56:08]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119255,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [22:56:08]process_action_free close_receipt [22:56:08]json_value_free [22:56:08]json_value_free done [22:56:08]process_json_proto returns [22:56:08]Send response to host [22:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119255,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [22:56:08]free response buf [22:56:08]execute_script done [22:56:08]execute_script returns [22:56:08]free content buf [22:56:08]Sock 7.Close socket [22:56:08]Sock 7.Thread stoped [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:04]accept exits with 9 [23:00:04]New connection [23:00:04]New thread 3066838372 created [23:00:04]Thread 3066695012 joined [23:00:04]Waiting for new connection... [23:00:04] Sock 9.Parse request [23:00:04]Sock 9.Check first char [23:00:04]Sock 9.First char is OK [23:00:04]request: POST /json_proto HTTP/1.0 [23:00:04]Method: POST [23:00:04]URL: /json_proto [23:00:04]Method is POST - this is cgi request [23:00:04]url: /json_proto [23:00:04]query_string will be loaded in cgi processing [23:00:04]execute_cgi json_proto POST (null) [23:00:04]execute_cgi path=json_proto method=POST [23:00:04]POST find Content-Length [23:00:04]Host: 172.17.45.7:8080 [23:00:04]Content-Length: 679 [23:00:04]Content-Type: application/json [23:00:04] [23:00:04]POST finish read [23:00:04]Found Content-Length = 679 [23:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:04]execute_script... [23:00: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)950181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:04]POST & json_proto [23:00:04]process_json_proto [23:00:04]json parsed OK: [23:00:04]protocol is kg_v1.0 [23:00:04]action value=close_receipt [23:00:04]process_action close_receipt [23:00:04]cmd_close_receipt [23:00:04]MH_GetDate [23:00:04]Write to MH i2c: F0 00 00 75 1A 7E [23:00:04]Write i2c OK [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: F0 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: F0 09 00 [23:00:04]MH_I2C_Read... [23:00:04]Read from MH i2c: F0 09 00 75 1A 00 76 70 A9 66 90 0F 3E 66 BF [23:00:04]GetLastDocTimeStamp 1722380166 [23:00:04]current date 1722380406 [23:00:04]FM_GetShiftState [23:00:04]SAM_PROTO_GetShiftState [23:00:04]wFMCommunicate request_size=4 [23:00:04]MH_SAM_APDU [23:00:04]CAPDU: 80 13 01 00 [23:00:04]Write to MH i2c: E2 08 00 76 1A 80 13 01 00 00 00 00 00 0D [23:00:04]Write i2c OK [23:00:04]MH_I2C_Read... [23:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:05]Read from MH i2c: E2 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 0E 00 [23:00:05]MH_I2C_Read... [23:00:05]Read from MH i2c: E2 0E 00 76 1A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 D8 [23:00:05]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:00:05]wFMCommunicate OK [23:00:05]SAM_PROTO_GetShiftState done [23:00:05]FM_GetShiftState done [23:00:05]opened in 1722298242 [23:00:05]opened+sec_in_day 1722384642 [23:00:05]quantity*price = 400050 [23:00:05]sum+1 = 400051 [23:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 5000.00 СДАЧА: 1000.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 308 30.07.2024 23:00 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119256 ФПД: 125614957105708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T230006&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119256&fm=125614957105708&tin=02508201610067®Number=0000000000092660&sum=400000 [23:00:06]StoreToDocumentArchive [23:00:06]shift 435 fd 119256 [23:00:06]save to /storage/0435/doc_00119256 [23:00:06]save last doc name /storage/0435/doc_00119256 to /storage/kkm_last_doc_name [23:00:06]save OK [23:00:06]Clear old archive folders... [23:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:00:06]tlvbuf is 01695A00 [23:00:06]SAM_PROTO_ClearQueue [23:00:06]wFMCommunicate request_size=4 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 09 00 00 [23:00:06]Write to MH i2c: E2 08 00 83 1A 80 09 00 00 00 00 00 00 0F [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:06]Read from MH i2c: E2 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 83 1A 00 90 00 11 [23:00:06]RAPDU: 90 00 [23:00:06]wFMCommunicate OK [23:00:06]SAM_PROTO_ClearQueue done [23:00:06]KKMCreateOFDPacket [23:00:06]OFDProtocolAddRootSTLVToBuf [23:00:06]FM_MakeSignedData [23:00:06]FM_MakeSignedData [23:00:06]SAM_PROTO_SignData [23:00:06]wFMCommunicate request_size=4 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 0D 01 02 [23:00:06]Write to MH i2c: E2 08 00 84 1A 80 0D 01 02 00 00 00 00 17 [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:06]Read from MH i2c: E2 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 84 1A 00 90 00 12 [23:00:06]RAPDU: 90 00 [23:00:06]wFMCommunicate OK [23:00:06]wFMCommunicate request_size=255 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 76 70 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D1 01 00 35 04 06 00 72 3F 02 E5 [23:00:06]Write to MH i2c: E2 02 01 85 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 76 70 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D1 01 00 35 04 06 00 72 3F 02 E5 00 00 EC [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:06]Read from MH i2c: E2 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 85 1A 00 90 00 13 [23:00:06]RAPDU: 90 00 [23:00:06]wFMCommunicate OK [23:00:06]wFMCommunicate request_size=7 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 0D 02 02 02 92 2C [23:00:06]Write to MH i2c: E2 0A 00 86 1A 80 0D 02 02 02 00 92 2C 00 00 DC [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:06]Read from MH i2c: E2 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 03 00 86 1A 00 90 00 14 [23:00:06]RAPDU: 90 00 [23:00:06]wFMCommunicate OK [23:00:06]wFMCommunicate request_size=4 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 0D 03 02 [23:00:06]Write to MH i2c: E2 08 00 87 1A 80 0D 03 02 00 00 00 00 1C [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:06]Read from MH i2c: E2 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 0B 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 0B 00 87 1A 00 70 08 9D 3C 3C ED E8 AC 90 00 2B [23:00:06]RAPDU: 70 08 9D 3C 3C ED E8 AC 90 00 [23:00:06]wFMCommunicate OK [23:00:06]SAM_PROTO_SignData done [23:00:06]FM_MakeSignedData done [23:00:06]CreateOFDProtocolMessage [23:00:06]wFMCommunicate request_size=4 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 11 00 00 [23:00:06]Write to MH i2c: E2 08 00 88 1A 80 11 00 00 00 00 00 00 1C [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:06]Read from MH i2c: E2 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 17 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: E2 17 00 88 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [23:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:00:06]wFMCommunicate OK [23:00:06]CreateOFDProtocolMessage done [23:00:06]OFDSenderStorePacket 119256 [23:00:06]StoreOFDPacket docnum=119256 [23:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 65 E3 04 01 39 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 76 70 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D1 01 00 35 04 06 00 72 3F 02 E5 92 2C 70 08 9D 3C 3C ED E8 AC [23:00:06]CheckFolder [23:00:06]dirname=/storage/ofd_packets [23:00:06]CheckFolder done [23:00:06]ProducePacketName [23:00:06]name=ofd_packets/00119256 [23:00:06]NVStorageSaveData ofd_packets/00119256 [23:00:06]File name is /storage/ofd_packets/00119256 [23:00:06]Write 298 bytes [23:00:06]NVStorageSaveData done [23:00:06]OFDSenderStorePacket done [23:00:06]KKMCreateOFDPacket done [23:00:06]NVStorageSaveData kkm_last_timestamp [23:00:06]File name is /storage/kkm_last_timestamp [23:00:06]Write 4 bytes [23:00:06]NVStorageSaveData done [23:00:06]ExternCall_PrintAddStr [23:00:06]wPrintStart [23:00:06]Write to MH i2c: 01 00 00 89 1A A3 [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 07 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0F B8 [23:00:06]RasterBufferAndPrint [23:00:06]line Счет N : (1)950181 [23:00:06]line ИНН: 02508201610067 [23:00:06]line Контрольно-Кассовый Чек [23:00:06]line ПРОДАЖА [23:00:06]line ТРК (МРК, ГНК) : 21 [23:00:06]line Товар: 2710194800 [23:00:06]line ДТ-К-5 [23:00:06]line 52.500 * 76.20 [23:00:06]line = 4000.50 [23:00:06]line НДС 12% НСП 1% [23:00:06]line > о реализуемом товаре [23:00:06]line ОКРУГЛЕНИЕ: -0.50 [23:00:06]line ИТОГО: 4000.00 [23:00:06]line Внесено: 5000.00 [23:00:06]line СДАЧА: 1000.00 [23:00:06]line НСП 1% : 35.40 [23:00:06]line НДС 12% : 424.83 [23:00:06]line Наличными: 4000.00 [23:00:06]line Безнал.: 0.00 [23:00:06]line Место: АЗС № 134 "Партнер Нефть" [23:00:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:00:06]line СНО: Общий режим [23:00:06]line Чек 308 30.07.2024 23:00 [23:00:06]line Смена: 435 ФФД: 1.0 [23:00:06]line ЗНМ: 0300000044 [23:00:06]line РНМ: 0000000000092660 [23:00:06]line Версия ККМ: 001 [23:00:06]line ФМ: 0000000000874939 [23:00:06]line ФД: 119256 [23:00:06]line ФПД: 125614957105708 [23:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T230006&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119256&fm=125614957105708&tin=02508201610067®Number=0000000000092660&sum=400000 [23:00:06]OFD Sender: Processing packet 119256 [packets to send 86, broken 85] [23:00:06]ProducePacketName [23:00:06]name=ofd_packets/00119256 [23:00:06]OFD Sender: To server: pG, [23:00:06]CommunicateWithHost lk.salyk.kg:30040 [23:00:07]ConnectInit lk.salyk.kg [23:00:07]written 0, free lines is 4095 [23:00:07]Connected sock=10 [23:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 65 E3 04 01 39 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 76 70 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D1 01 00 35 04 06 00 72 3F 02 E5 92 2C 70 08 9D 3C 3C ED E8 AC [23:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 00 57 47 00 B9 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D8 D1 01 00 F4 03 04 00 00 1E A9 66 B6 04 01 00 00 2E 75 61 79 7C AB 2B 2C [23:00:07]CommunicateWithHost err = 0 [23:00:07]CheckOFDResponse [23:00:07]1017 (14) - 77093643461234 [23:00:07]1041 (16) - 0000000000874939 [23:00:07]1040 (4) - 119256 [23:00:07]1012 (4) - 30.07.2024 17:08 [23:00:07]1206 (1) - 0 [23:00:07]OFD Sender: Remove packet 119256 [23:00:07]ProducePacketName [23:00:07]name=ofd_packets/00119256 [23:00:07]NVStorageDeleteData [23:00:07]Write to MH i2c: 01 00 00 B3 1A CD [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: 01 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: 01 07 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: 01 07 00 B3 1A 00 00 00 00 00 E5 0C C5 [23:00:07]RasterBufferAndPrint [23:00:07]line [23:00:07]line [23:00:07]line [23:00:07]line [23:00:07]line [23:00:07]written 0, free lines is 3307 [23:00:07]MH_Cut [23:00:07]Write to MH i2c: D1 01 00 BA 1A 01 A6 [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: D1 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: D1 01 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: D1 01 00 BA 1A 00 A5 [23:00:07]Write to MH i2c: 01 00 00 BB 1A D5 [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]OFD Sender: No OFD packet to send [23:00:08]*** Cut start [23:00:08]*** Partial cut [23:00:08]*** CUTSNS_PIN = 1 [23:00:08]*** CUTSNS_PIN = 0 [23:00:08]*** Brake cut motor [23:00:08]Read from MH i2c: 01 [23:00:08]MH_I2C_Read... [23:00:08]*** Stop cut motor [23:00:08]*** Cut end [23:00:08]Read from MH i2c: 01 07 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 FF 0F EA [23:00:08]process_action close_receipt done [23:00:08]requested_data is exist [23:00:08]produce_requested_data [23:00:08]requested_item fm.sn is exist - process it [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 11 00 00 [23:00:08]Write to MH i2c: E2 08 00 BC 1A 80 11 00 00 00 00 00 00 50 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 17 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 17 00 BC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [23:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:00:08]wFMCommunicate OK [23:00:08]requested_item fd.num is exist - process it [23:00:08]SAM_PROTO_GetFieldsCounters [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 13 00 00 [23:00:08]Write to MH i2c: E2 08 00 BD 1A 80 13 00 00 00 00 00 00 53 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 62 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 62 00 BD 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [23:00:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D8 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:09]wFMCommunicate OK [23:00:09]SAM_PROTO_GetFieldsCounters done [23:00:09]requested_item shift.num is exist - process it [23:00:09]requested_item shift.opened is exist - process it [23:00:09]req_shift_opened [23:00:09]FM_GetShiftState [23:00:09]SAM_PROTO_GetShiftState [23:00:09]wFMCommunicate request_size=4 [23:00:09]MH_SAM_APDU [23:00:09]CAPDU: 80 13 01 00 [23:00:09]Write to MH i2c: E2 08 00 BE 1A 80 13 01 00 00 00 00 00 55 [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:09]Read from MH i2c: E2 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: E2 0E 00 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: E2 0E 00 BE 1A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 20 [23:00:09]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:00:09]wFMCommunicate OK [23:00:09]SAM_PROTO_GetShiftState done [23:00:09]FM_GetShiftState done [23:00:09]req_shift_opened done [23:00:09]requested_item shift.open_date is exist - process it [23:00:09]req_shift_open_date [23:00:09]req_shift_open_date done [23:00:09]produce_requested_data done [23:00:09]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119256,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:00:09]process_action_free close_receipt [23:00:09]json_value_free [23:00:09]json_value_free done [23:00:09]process_json_proto returns [23:00:09]Send response to host [23:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119256,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:00:09]free response buf [23:00:09]execute_script done [23:00:09]execute_script returns [23:00:09]free content buf [23:00:09]Sock 9.Close socket [23:00:09]Sock 9.Thread stoped [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:42]accept exits with 7 [23:05:42]New connection [23:05:42]New thread 3066695012 created [23:05:42]Thread 3066838372 joined [23:05:42]Waiting for new connection... [23:05:42] Sock 7.Parse request [23:05:42]Sock 7.Check first char [23:05:42]Sock 7.First char is OK [23:05:42]request: POST /json_proto HTTP/1.0 [23:05:42]Method: POST [23:05:42]URL: /json_proto [23:05:42]Method is POST - this is cgi request [23:05:42]url: /json_proto [23:05:42]query_string will be loaded in cgi processing [23:05:42]execute_cgi json_proto POST (null) [23:05:42]execute_cgi path=json_proto method=POST [23:05:42]POST find Content-Length [23:05:42]Host: 172.17.45.7:8080 [23:05:42]Content-Length: 682 [23:05:42]Content-Type: application/json [23:05:42] [23:05:42]POST finish read [23:05:42]Found Content-Length = 682 [23:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:42]execute_script... [23:05: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)950182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:42]POST & json_proto [23:05:42]process_json_proto [23:05:42]json parsed OK: [23:05:42]protocol is kg_v1.0 [23:05:42]action value=close_receipt [23:05:42]process_action close_receipt [23:05:42]cmd_close_receipt [23:05:42]MH_GetDate [23:05:42]Write to MH i2c: F0 00 00 BF 1A C8 [23:05:42]Write i2c OK [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: F0 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: F0 09 00 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: F0 09 00 BF 1A 00 C8 71 A9 66 90 0F 3E 66 5C [23:05:42]GetLastDocTimeStamp 1722380406 [23:05:42]current date 1722380744 [23:05:42]FM_GetShiftState [23:05:42]SAM_PROTO_GetShiftState [23:05:42]wFMCommunicate request_size=4 [23:05:42]MH_SAM_APDU [23:05:42]CAPDU: 80 13 01 00 [23:05:42]Write to MH i2c: E2 08 00 C0 1A 80 13 01 00 00 00 00 00 57 [23:05:42]Write i2c OK [23:05:42]MH_I2C_Read... [23:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:42]Read from MH i2c: E2 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: E2 0E 00 [23:05:42]MH_I2C_Read... [23:05:42]Read from MH i2c: E2 0E 00 C0 1A 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 22 [23:05:42]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:05:42]wFMCommunicate OK [23:05:42]SAM_PROTO_GetShiftState done [23:05:42]FM_GetShiftState done [23:05:42]opened in 1722298242 [23:05:42]opened+sec_in_day 1722384642 [23:05:42]quantity*price = 100005 [23:05:42]sum+1 = 100006 [23:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 309 30.07.2024 23:05 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119257 ФПД: 101496438823240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T230544&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119257&fm=101496438823240&tin=02508201610067®Number=0000000000092660&sum=100000 [23:05:43]StoreToDocumentArchive [23:05:43]shift 435 fd 119257 [23:05:43]save to /storage/0435/doc_00119257 [23:05:43]save last doc name /storage/0435/doc_00119257 to /storage/kkm_last_doc_name [23:05:43]save OK [23:05:43]Clear old archive folders... [23:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:43]tlvbuf is 0162D4A0 [23:05:43]SAM_PROTO_ClearQueue [23:05:43]wFMCommunicate request_size=4 [23:05:43]MH_SAM_APDU [23:05:43]CAPDU: 80 09 00 00 [23:05:43]Write to MH i2c: E2 08 00 CD 1A 80 09 00 00 00 00 00 00 59 [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:43]Read from MH i2c: E2 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 CD 1A 00 90 00 5B [23:05:43]RAPDU: 90 00 [23:05:43]wFMCommunicate OK [23:05:43]SAM_PROTO_ClearQueue done [23:05:43]KKMCreateOFDPacket [23:05:43]OFDProtocolAddRootSTLVToBuf [23:05:43]FM_MakeSignedData [23:05:43]FM_MakeSignedData [23:05:43]SAM_PROTO_SignData [23:05:43]wFMCommunicate request_size=4 [23:05:43]MH_SAM_APDU [23:05:43]CAPDU: 80 0D 01 02 [23:05:43]Write to MH i2c: E2 08 00 CE 1A 80 0D 01 02 00 00 00 00 61 [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:43]Read from MH i2c: E2 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 CE 1A 00 90 00 5C [23:05:43]RAPDU: 90 00 [23:05:43]wFMCommunicate OK [23:05:43]wFMCommunicate request_size=255 [23:05:43]MH_SAM_APDU [23:05: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 C8 71 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D1 01 00 35 04 06 00 5C [23:05:43]Write to MH i2c: E2 02 01 CF 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 C8 71 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D1 01 00 35 04 06 00 5C 00 00 AD [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:43]Read from MH i2c: E2 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 CF 1A 00 90 00 5D [23:05:43]RAPDU: 90 00 [23:05:43]wFMCommunicate OK [23:05:43]wFMCommunicate request_size=10 [23:05:43]MH_SAM_APDU [23:05:43]CAPDU: 80 0D 02 02 05 4F 7B 2E 99 48 [23:05:43]Write to MH i2c: E2 0D 00 D0 1A 80 0D 02 02 05 00 4F 7B 2E 99 48 00 00 47 [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:43]Read from MH i2c: E2 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 [23:05:43]MH_I2C_Read... [23:05:43]Read from MH i2c: E2 03 00 D0 1A 00 90 00 5E [23:05:43]RAPDU: 90 00 [23:05:43]wFMCommunicate OK [23:05:43]wFMCommunicate request_size=4 [23:05:43]MH_SAM_APDU [23:05:43]CAPDU: 80 0D 03 02 [23:05:43]Write to MH i2c: E2 08 00 D1 1A 80 0D 03 02 00 00 00 00 66 [23:05:43]Write i2c OK [23:05:43]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 0B 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 0B 00 D1 1A 00 41 C2 5A 63 E1 F5 49 68 90 00 AE [23:05:44]RAPDU: 41 C2 5A 63 E1 F5 49 68 90 00 [23:05:44]wFMCommunicate OK [23:05:44]SAM_PROTO_SignData done [23:05:44]FM_MakeSignedData done [23:05:44]CreateOFDProtocolMessage [23:05:44]wFMCommunicate request_size=4 [23:05:44]MH_SAM_APDU [23:05:44]CAPDU: 80 11 00 00 [23:05:44]Write to MH i2c: E2 08 00 D2 1A 80 11 00 00 00 00 00 00 66 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:44]Read from MH i2c: E2 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 17 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: E2 17 00 D2 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [23:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:05:44]wFMCommunicate OK [23:05:44]CreateOFDProtocolMessage done [23:05:44]OFDSenderStorePacket 119257 [23:05:44]StoreOFDPacket docnum=119257 [23:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 DF 07 01 06 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 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 C8 71 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D1 01 00 35 04 06 00 5C 4F 7B 2E 99 48 41 C2 5A 63 E1 F5 49 68 [23:05:44]CheckFolder [23:05:44]dirname=/storage/ofd_packets [23:05:44]CheckFolder done [23:05:44]ProducePacketName [23:05:44]name=ofd_packets/00119257 [23:05:44]NVStorageSaveData ofd_packets/00119257 [23:05:44]File name is /storage/ofd_packets/00119257 [23:05:44]Write 301 bytes [23:05:44]NVStorageSaveData done [23:05:44]OFDSenderStorePacket done [23:05:44]KKMCreateOFDPacket done [23:05:44]NVStorageSaveData kkm_last_timestamp [23:05:44]File name is /storage/kkm_last_timestamp [23:05:44]Write 4 bytes [23:05:44]NVStorageSaveData done [23:05:44]ExternCall_PrintAddStr [23:05:44]wPrintStart [23:05:44]Write to MH i2c: 01 00 00 D3 1A ED [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 07 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 07 00 D3 1A 00 00 00 00 00 FF 0F 02 [23:05:44]RasterBufferAndPrint [23:05:44]line Счет N : (1)950182 [23:05:44]line ИНН: 02508201610067 [23:05:44]line Контрольно-Кассовый Чек [23:05:44]line ПРОДАЖА [23:05:44]line ТРК (МРК, ГНК) : 41 [23:05:44]line Товар: 2710124130 [23:05:44]line Аи-92-К-4 [23:05:44]line 14.750 * 67.80 [23:05:44]line = 1000.05 [23:05:44]line НДС 12% НСП 1% [23:05:44]line > о реализуемом товаре [23:05:44]line ОКРУГЛЕНИЕ: -0.05 [23:05:44]line ИТОГО: 1000.00 [23:05:44]line Внесено: 1000.00 [23:05:44]line СДАЧА: 0.00 [23:05:44]line НСП 1% : 8.85 [23:05:44]line НДС 12% : 106.20 [23:05:44]line Наличными: 1000.00 [23:05:44]line Безнал.: 0.00 [23:05:44]line Место: АЗС № 134 "Партнер Нефть" [23:05:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:05:44]line СНО: Общий режим [23:05:44]line Чек 309 30.07.2024 23:05 [23:05:44]line Смена: 435 ФФД: 1.0 [23:05:44]line ЗНМ: 0300000044 [23:05:44]line РНМ: 0000000000092660 [23:05:44]line Версия ККМ: 001 [23:05:44]line ФМ: 0000000000874939 [23:05:44]line ФД: 119257 [23:05:44]line ФПД: 101496438823240 [23:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T230544&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119257&fm=101496438823240&tin=02508201610067®Number=0000000000092660&sum=100000 [23:05:44]OFD Sender: Processing packet 119257 [packets to send 86, broken 85] [23:05:44]ProducePacketName [23:05:44]name=ofd_packets/00119257 [23:05:44]OFD Sender: To server: pG, [23:05:44]CommunicateWithHost lk.salyk.kg:30040 [23:05:44]ConnectInit lk.salyk.kg [23:05:44]written 0, free lines is 4095 [23:05:44]Connected sock=10 [23:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 53 DF 07 01 06 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 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 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 C8 71 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 D9 D1 01 00 35 04 06 00 5C 4F 7B 2E 99 48 41 C2 5A 63 E1 F5 49 68 [23:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 7E 85 47 00 96 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 34 39 33 39 10 04 04 00 D9 D1 01 00 F4 03 04 00 52 1F A9 66 B6 04 01 00 00 D3 35 A1 DF DF 8A 37 CA [23:05:44]CommunicateWithHost err = 0 [23:05:44]CheckOFDResponse [23:05:44]1017 (14) - 77093643461234 [23:05:44]1041 (16) - 0000000000874939 [23:05:44]1040 (4) - 119257 [23:05:44]1012 (4) - 30.07.2024 17:13 [23:05:44]1206 (1) - 0 [23:05:44]OFD Sender: Remove packet 119257 [23:05:44]ProducePacketName [23:05:44]name=ofd_packets/00119257 [23:05:44]NVStorageDeleteData [23:05:44]Write to MH i2c: 01 00 00 FD 1A 17 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 07 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: 01 07 00 FD 1A 00 00 00 00 00 DC 0C 06 [23:05:44]RasterBufferAndPrint [23:05:44]line [23:05:44]line [23:05:44]line [23:05:44]line [23:05:44]line [23:05:44]written 0, free lines is 3298 [23:05:44]MH_Cut [23:05:44]Write to MH i2c: D1 01 00 04 1B 01 F1 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: D1 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: D1 01 00 [23:05:44]MH_I2C_Read... [23:05:44]Read from MH i2c: D1 01 00 04 1B 00 F0 [23:05:44]Write to MH i2c: 01 00 00 05 1B 20 [23:05:44]Write i2c OK [23:05:44]MH_I2C_Read... [23:05:45]OFD Sender: No OFD packet to send [23:05:45]*** Cut start [23:05:45]*** Partial cut [23:05:45]*** CUTSNS_PIN = 1 [23:05:45]*** CUTSNS_PIN = 0 [23:05:45]*** Brake cut motor [23:05:46]Read from MH i2c: 01 [23:05:46]MH_I2C_Read... [23:05:46]*** Stop cut motor [23:05:46]*** Cut end [23:05:46]Read from MH i2c: 01 07 00 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: 01 07 00 05 1B 00 00 00 00 00 FF 0F 35 [23:05:46]process_action close_receipt done [23:05:46]requested_data is exist [23:05:46]produce_requested_data [23:05:46]requested_item fm.sn is exist - process it [23:05:46]wFMCommunicate request_size=4 [23:05:46]MH_SAM_APDU [23:05:46]CAPDU: 80 11 00 00 [23:05:46]Write to MH i2c: E2 08 00 06 1B 80 11 00 00 00 00 00 00 9B [23:05:46]Write i2c OK [23:05:46]MH_I2C_Read... [23:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:46]Read from MH i2c: E2 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: E2 17 00 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: E2 17 00 06 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F6 [23:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:05:46]wFMCommunicate OK [23:05:46]requested_item fd.num is exist - process it [23:05:46]SAM_PROTO_GetFieldsCounters [23:05:46]wFMCommunicate request_size=4 [23:05:46]MH_SAM_APDU [23:05:46]CAPDU: 80 13 00 00 [23:05:46]Write to MH i2c: E2 08 00 07 1B 80 13 00 00 00 00 00 00 9E [23:05:46]Write i2c OK [23:05:46]MH_I2C_Read... [23:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:46]Read from MH i2c: E2 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: E2 62 00 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: E2 62 00 07 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 D9 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:46]wFMCommunicate OK [23:05:46]SAM_PROTO_GetFieldsCounters done [23:05:46]requested_item shift.num is exist - process it [23:05:46]requested_item shift.opened is exist - process it [23:05:46]req_shift_opened [23:05:46]FM_GetShiftState [23:05:46]SAM_PROTO_GetShiftState [23:05:46]wFMCommunicate request_size=4 [23:05:46]MH_SAM_APDU [23:05:46]CAPDU: 80 13 01 00 [23:05:46]Write to MH i2c: E2 08 00 08 1B 80 13 01 00 00 00 00 00 A0 [23:05:46]Write i2c OK [23:05:46]MH_I2C_Read... [23:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:46]Read from MH i2c: E2 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: E2 0E 00 [23:05:46]MH_I2C_Read... [23:05:46]Read from MH i2c: E2 0E 00 08 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6B [23:05:46]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:05:46]wFMCommunicate OK [23:05:46]SAM_PROTO_GetShiftState done [23:05:46]FM_GetShiftState done [23:05:46]req_shift_opened done [23:05:46]requested_item shift.open_date is exist - process it [23:05:46]req_shift_open_date [23:05:46]req_shift_open_date done [23:05:46]produce_requested_data done [23:05:46]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119257,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:05:46]process_action_free close_receipt [23:05:46]json_value_free [23:05:46]json_value_free done [23:05:46]process_json_proto returns [23:05:46]Send response to host [23:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119257,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:05:46]free response buf [23:05:46]execute_script done [23:05:46]execute_script returns [23:05:46]free content buf [23:05:46]Sock 7.Close socket [23:05:46]Sock 7.Thread stoped [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:19]accept exits with 9 [23:12:19]New connection [23:12:19]New thread 3066838372 created [23:12:19]Thread 3066695012 joined [23:12:19]Waiting for new connection... [23:12:19] Sock 9.Parse request [23:12:19]Sock 9.Check first char [23:12:19]Sock 9.First char is OK [23:12:19]request: POST /json_proto HTTP/1.0 [23:12:19]Method: POST [23:12:19]URL: /json_proto [23:12:19]Method is POST - this is cgi request [23:12:19]url: /json_proto [23:12:19]query_string will be loaded in cgi processing [23:12:19]execute_cgi json_proto POST (null) [23:12:19]execute_cgi path=json_proto method=POST [23:12:19]POST find Content-Length [23:12:19]Host: 172.17.45.7:8080 [23:12:19]Content-Length: 679 [23:12:19]Content-Type: application/json [23:12:19] [23:12:19]POST finish read [23:12:19]Found Content-Length = 679 [23:12:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:19]execute_script... [23: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)950183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:12:19]POST & json_proto [23:12:19]process_json_proto [23:12:19]json parsed OK: [23:12:19]protocol is kg_v1.0 [23:12:19]action value=close_receipt [23:12:19]process_action close_receipt [23:12:19]cmd_close_receipt [23:12:19]MH_GetDate [23:12:19]Write to MH i2c: F0 00 00 09 1B 13 [23:12:19]Write i2c OK [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: F0 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: F0 09 00 [23:12:19]MH_I2C_Read... [23:12:19]Read from MH i2c: F0 09 00 09 1B 00 55 73 A9 66 90 0F 3E 66 36 [23:12:19]GetLastDocTimeStamp 1722380744 [23:12:19]current date 1722381141 [23:12:19]FM_GetShiftState [23:12:19]SAM_PROTO_GetShiftState [23:12:19]wFMCommunicate request_size=4 [23:12:19]MH_SAM_APDU [23:12:19]CAPDU: 80 13 01 00 [23:12:19]Write to MH i2c: E2 08 00 0A 1B 80 13 01 00 00 00 00 00 A2 [23:12:19]Write i2c OK [23:12:19]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 0A 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6D [23:12:19]RAPDU: 09 00 01 82 2F A8 66 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]opened in 1722298242 [23:12:19]opened+sec_in_day 1722384642 [23:12:19]quantity*price = 100050 [23:12:19]sum+1 = 100052 [23:12:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 310 30.07.2024 23:12 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119258 ФПД: 84224954355689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119258&fm=84224954355689&tin=02508201610067®Number=0000000000092660&sum=100000 [23:12:20]StoreToDocumentArchive [23:12:20]shift 435 fd 119258 [23:12:20]save to /storage/0435/doc_00119258 [23:12:20]save last doc name /storage/0435/doc_00119258 to /storage/kkm_last_doc_name [23:12:20]save OK [23:12:20]Clear old archive folders... [23:12:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:12:20]tlvbuf is 015DEB30 [23:12:20]SAM_PROTO_ClearQueue [23:12:20]wFMCommunicate request_size=4 [23:12:20]MH_SAM_APDU [23:12:20]CAPDU: 80 09 00 00 [23:12:20]Write to MH i2c: E2 08 00 17 1B 80 09 00 00 00 00 00 00 A4 [23:12:20]Write i2c OK [23:12:20]MH_I2C_Read... [23:12:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:12:20]Read from MH i2c: E2 [23:12:20]MH_I2C_Read... [23:12:20]Read from MH i2c: E2 03 00 [23:12:20]MH_I2C_Read... [23:12:20]Read from MH i2c: E2 03 00 17 1B 00 90 00 A6 [23:12:20]RAPDU: 90 00 [23:12:20]wFMCommunicate OK [23:12:20]SAM_PROTO_ClearQueue done [23:12:20]KKMCreateOFDPacket [23:12:20]OFDProtocolAddRootSTLVToBuf [23:12:20]FM_MakeSignedData [23:12:20]FM_MakeSignedData [23:12:20]SAM_PROTO_SignData [23:12:20]wFMCommunicate request_size=4 [23:12:20]MH_SAM_APDU [23:12:20]CAPDU: 80 0D 01 02 [23:12:20]Write to MH i2c: E2 08 00 18 1B 80 0D 01 02 00 00 00 00 AC [23:12:20]Write i2c OK [23:12:20]MH_I2C_Read... [23:12:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:12:20]Read from MH i2c: E2 [23:12:20]MH_I2C_Read... [23:12:20]Read from MH i2c: E2 03 00 [23:12:20]MH_I2C_Read... [23:12:20]Read from MH i2c: E2 03 00 18 1B 00 90 00 A7 [23:12:20]RAPDU: 90 00 [23:12:20]wFMCommunicate OK [23:12:20]wFMCommunicate request_size=255 [23:12:20]MH_SAM_APDU [23:12:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 55 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D1 01 00 35 04 06 00 4C 9A 26 7C [23:12:20]Write to MH i2c: E2 02 01 19 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 55 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D1 01 00 35 04 06 00 4C 9A 26 7C 00 00 32 [23:12:20]Write i2c OK [23:12:20]MH_I2C_Read... [23:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:21]Read from MH i2c: E2 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 03 00 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 03 00 19 1B 00 90 00 A8 [23:12:21]RAPDU: 90 00 [23:12:21]wFMCommunicate OK [23:12:21]wFMCommunicate request_size=7 [23:12:21]MH_SAM_APDU [23:12:21]CAPDU: 80 0D 02 02 02 4F E9 [23:12:21]Write to MH i2c: E2 0A 00 1A 1B 80 0D 02 02 02 00 4F E9 00 00 EB [23:12:21]Write i2c OK [23:12:21]MH_I2C_Read... [23:12:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:12:21]Read from MH i2c: E2 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 03 00 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 03 00 1A 1B 00 90 00 A9 [23:12:21]RAPDU: 90 00 [23:12:21]wFMCommunicate OK [23:12:21]wFMCommunicate request_size=4 [23:12:21]MH_SAM_APDU [23:12:21]CAPDU: 80 0D 03 02 [23:12:21]Write to MH i2c: E2 08 00 1B 1B 80 0D 03 02 00 00 00 00 B1 [23:12:21]Write i2c OK [23:12:21]MH_I2C_Read... [23:12:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:21]Read from MH i2c: E2 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 0B 00 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 0B 00 1B 1B 00 E7 09 9D FB 17 F9 7D E0 90 00 A7 [23:12:21]RAPDU: E7 09 9D FB 17 F9 7D E0 90 00 [23:12:21]wFMCommunicate OK [23:12:21]SAM_PROTO_SignData done [23:12:21]FM_MakeSignedData done [23:12:21]CreateOFDProtocolMessage [23:12:21]wFMCommunicate request_size=4 [23:12:21]MH_SAM_APDU [23:12:21]CAPDU: 80 11 00 00 [23:12:21]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [23:12:21]Write i2c OK [23:12:21]MH_I2C_Read... [23:12:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:21]Read from MH i2c: E2 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 17 00 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [23:12:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:12:21]wFMCommunicate OK [23:12:21]CreateOFDProtocolMessage done [23:12:21]OFDSenderStorePacket 119258 [23:12:21]StoreOFDPacket docnum=119258 [23:12:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 E4 F1 04 01 EE 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 55 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D1 01 00 35 04 06 00 4C 9A 26 7C 4F E9 E7 09 9D FB 17 F9 7D E0 [23:12:21]CheckFolder [23:12:21]dirname=/storage/ofd_packets [23:12:21]CheckFolder done [23:12:21]ProducePacketName [23:12:21]name=ofd_packets/00119258 [23:12:21]NVStorageSaveData ofd_packets/00119258 [23:12:21]File name is /storage/ofd_packets/00119258 [23:12:21]Write 298 bytes [23:12:21]NVStorageSaveData done [23:12:21]OFDSenderStorePacket done [23:12:21]KKMCreateOFDPacket done [23:12:21]NVStorageSaveData kkm_last_timestamp [23:12:21]File name is /storage/kkm_last_timestamp [23:12:21]Write 4 bytes [23:12:21]NVStorageSaveData done [23:12:21]ExternCall_PrintAddStr [23:12:21]wPrintStart [23:12:21]Write to MH i2c: 01 00 00 1D 1B 38 [23:12:21]Write i2c OK [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: 01 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: 01 07 00 [23:12:21]MH_I2C_Read... [23:12:21]Read from MH i2c: 01 07 00 1D 1B 00 00 00 00 00 FF 0F 4D [23:12:21]RasterBufferAndPrint [23:12:21]line Счет N : (1)950183 [23:12:21]line ИНН: 02508201610067 [23:12:21]line Контрольно-Кассовый Чек [23:12:21]line ПРОДАЖА [23:12:21]line ТРК (МРК, ГНК) : 44 [23:12:21]line Товар: 2710194800 [23:12:21]line ДТ-К-5 [23:12:21]line 13.130 * 76.20 [23:12:21]line = 1000.51 [23:12:21]line НДС 12% НСП 1% [23:12:21]line > о реализуемом товаре [23:12:21]line ОКРУГЛЕНИЕ: -0.51 [23:12:21]line ИТОГО: 1000.00 [23:12:21]line Внесено: 1000.00 [23:12:21]line СДАЧА: 0.00 [23:12:21]line НСП 1% : 8.85 [23:12:21]line НДС 12% : 106.25 [23:12:21]line Наличными: 1000.00 [23:12:21]line Безнал.: 0.00 [23:12:21]line Место: АЗС № 134 "Партнер Нефть" [23:12:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:12:21]line СНО: Общий режим [23:12:21]line Чек 310 30.07.2024 23:12 [23:12:21]line Смена: 435 ФФД: 1.0 [23:12:21]line ЗНМ: 0300000044 [23:12:21]line РНМ: 0000000000092660 [23:12:21]line Версия ККМ: 001 [23:12:21]line ФМ: 0000000000874939 [23:12:21]line ФД: 119258 [23:12:21]line ФПД: 84224954355689 [23:12:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231221&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119258&fm=84224954355689&tin=02508201610067®Number=0000000000092660&sum=100000 [23:12:21]OFD Sender: Processing packet 119258 [packets to send 86, broken 85] [23:12:21]ProducePacketName [23:12:21]name=ofd_packets/00119258 [23:12:21]OFD Sender: To server: pG, [23:12:21]CommunicateWithHost lk.salyk.kg:30040 [23:12:21]ConnectInit lk.salyk.kg [23:12:21]written 0, free lines is 4095 [23:12:21]Connected sock=10 [23: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 34 39 33 39 0C 01 00 00 E4 F1 04 01 EE 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 55 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D1 01 00 35 04 06 00 4C 9A 26 7C 4F E9 E7 09 9D FB 17 F9 7D E0 [23:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 9D 47 47 00 92 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DA D1 01 00 F4 03 04 00 DF 20 A9 66 B6 04 01 00 00 B1 26 44 BB 2D EE CA 5A [23:12:22]CommunicateWithHost err = 0 [23:12:22]CheckOFDResponse [23:12:22]1017 (14) - 77093643461234 [23:12:22]1041 (16) - 0000000000874939 [23:12:22]1040 (4) - 119258 [23:12:22]1012 (4) - 30.07.2024 17:20 [23:12:22]1206 (1) - 0 [23:12:22]OFD Sender: Remove packet 119258 [23:12:22]ProducePacketName [23:12:22]name=ofd_packets/00119258 [23:12:22]NVStorageDeleteData [23:12:22]Write to MH i2c: 01 00 00 47 1B 62 [23:12:22]Write i2c OK [23:12:22]MH_I2C_Read... [23:12:22]Read from MH i2c: 01 [23:12:22]MH_I2C_Read... [23:12:22]Read from MH i2c: 01 07 00 [23:12:22]MH_I2C_Read... [23:12:22]Read from MH i2c: 01 07 00 47 1B 00 00 00 00 00 E2 0C 57 [23:12:22]RasterBufferAndPrint [23:12:22]line [23:12:22]line [23:12:22]line [23:12:22]line [23:12:22]line [23:12:22]written 0, free lines is 3305 [23:12:22]MH_Cut [23:12:22]Write to MH i2c: D1 01 00 4E 1B 01 3B [23:12:22]Write i2c OK [23:12:22]MH_I2C_Read... [23:12:22]Read from MH i2c: D1 [23:12:22]MH_I2C_Read... [23:12:22]Read from MH i2c: D1 01 00 [23:12:22]MH_I2C_Read... [23:12:22]Read from MH i2c: D1 01 00 4E 1B 00 3A [23:12:22]Write to MH i2c: 01 00 00 4F 1B 6A [23:12:22]Write i2c OK [23:12:22]MH_I2C_Read... [23:12:22]OFD Sender: No OFD packet to send [23:12:22]*** Cut start [23:12:22]*** Partial cut [23:12:22]*** CUTSNS_PIN = 1 [23:12:22]*** CUTSNS_PIN = 0 [23:12:23]*** Brake cut motor [23:12:23]Read from MH i2c: 01 [23:12:23]MH_I2C_Read... [23:12:23]*** Stop cut motor [23:12:23]*** Cut end [23:12:23]Read from MH i2c: 01 07 00 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: 01 07 00 4F 1B 00 00 00 00 00 FF 0F 7F [23:12:23]process_action close_receipt done [23:12:23]requested_data is exist [23:12:23]produce_requested_data [23:12:23]requested_item fm.sn is exist - process it [23:12:23]wFMCommunicate request_size=4 [23:12:23]MH_SAM_APDU [23:12:23]CAPDU: 80 11 00 00 [23:12:23]Write to MH i2c: E2 08 00 50 1B 80 11 00 00 00 00 00 00 E5 [23:12:23]Write i2c OK [23:12:23]MH_I2C_Read... [23:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:23]Read from MH i2c: E2 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: E2 17 00 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: E2 17 00 50 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [23:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:12:23]wFMCommunicate OK [23:12:23]requested_item fd.num is exist - process it [23:12:23]SAM_PROTO_GetFieldsCounters [23:12:23]wFMCommunicate request_size=4 [23:12:23]MH_SAM_APDU [23:12:23]CAPDU: 80 13 00 00 [23:12:23]Write to MH i2c: E2 08 00 51 1B 80 13 00 00 00 00 00 00 E8 [23:12:23]Write i2c OK [23:12:23]MH_I2C_Read... [23:12:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:23]Read from MH i2c: E2 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: E2 62 00 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: E2 62 00 51 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [23:12:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DA D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:12:23]wFMCommunicate OK [23:12:23]SAM_PROTO_GetFieldsCounters done [23:12:23]requested_item shift.num is exist - process it [23:12:23]requested_item shift.opened is exist - process it [23:12:23]req_shift_opened [23:12:23]FM_GetShiftState [23:12:23]SAM_PROTO_GetShiftState [23:12:23]wFMCommunicate request_size=4 [23:12:23]MH_SAM_APDU [23:12:23]CAPDU: 80 13 01 00 [23:12:23]Write to MH i2c: E2 08 00 52 1B 80 13 01 00 00 00 00 00 EA [23:12:23]Write i2c OK [23:12:23]MH_I2C_Read... [23:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:23]Read from MH i2c: E2 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: E2 0E 00 [23:12:23]MH_I2C_Read... [23:12:23]Read from MH i2c: E2 0E 00 52 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B5 [23:12:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:12:23]wFMCommunicate OK [23:12:23]SAM_PROTO_GetShiftState done [23:12:23]FM_GetShiftState done [23:12:23]req_shift_opened done [23:12:23]requested_item shift.open_date is exist - process it [23:12:23]req_shift_open_date [23:12:23]req_shift_open_date done [23:12:23]produce_requested_data done [23:12:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119258,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:12:23]process_action_free close_receipt [23:12:23]json_value_free [23:12:23]json_value_free done [23:12:23]process_json_proto returns [23:12:23]Send response to host [23:12:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119258,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:12:23]free response buf [23:12:23]execute_script done [23:12:23]execute_script returns [23:12:23]free content buf [23:12:23]Sock 9.Close socket [23:12:23]Sock 9.Thread stoped [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:49]accept exits with 7 [23:14:49]New connection [23:14:49]New thread 3066695012 created [23:14:49]Thread 3066838372 joined [23:14:49]Waiting for new connection... [23:14:49] Sock 7.Parse request [23:14:49]Sock 7.Check first char [23:14:49]Sock 7.First char is OK [23:14:49]request: POST /json_proto HTTP/1.0 [23:14:49]Method: POST [23:14:49]URL: /json_proto [23:14:49]Method is POST - this is cgi request [23:14:49]url: /json_proto [23:14:49]query_string will be loaded in cgi processing [23:14:49]execute_cgi json_proto POST (null) [23:14:49]execute_cgi path=json_proto method=POST [23:14:49]POST find Content-Length [23:14:49]Host: 172.17.45.7:8080 [23:14:49]Content-Length: 679 [23:14:49]Content-Type: application/json [23:14:49] [23:14:49]POST finish read [23:14:49]Found Content-Length = 679 [23:14:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:49]execute_script... [23:14: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)950185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:49]POST & json_proto [23:14:49]process_json_proto [23:14:49]json parsed OK: [23:14:49]protocol is kg_v1.0 [23:14:49]action value=close_receipt [23:14:49]process_action close_receipt [23:14:49]cmd_close_receipt [23:14:49]MH_GetDate [23:14:49]Write to MH i2c: F0 00 00 53 1B 5D [23:14:49]Write i2c OK [23:14:49]MH_I2C_Read... [23:14:49]Read from MH i2c: F0 [23:14:49]MH_I2C_Read... [23:14:49]Read from MH i2c: F0 09 00 [23:14:49]MH_I2C_Read... [23:14:49]Read from MH i2c: F0 09 00 53 1B 00 EB 73 A9 66 90 0F 3E 66 16 [23:14:49]GetLastDocTimeStamp 1722381141 [23:14:49]current date 1722381291 [23:14:49]FM_GetShiftState [23:14:49]SAM_PROTO_GetShiftState [23:14:49]wFMCommunicate request_size=4 [23:14:49]MH_SAM_APDU [23:14:49]CAPDU: 80 13 01 00 [23:14:49]Write to MH i2c: E2 08 00 54 1B 80 13 01 00 00 00 00 00 EC [23:14:49]Write i2c OK [23:14:49]MH_I2C_Read... [23:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:49]Read from MH i2c: E2 [23:14:49]MH_I2C_Read... [23:14:49]Read from MH i2c: E2 0E 00 [23:14:49]MH_I2C_Read... [23:14:49]Read from MH i2c: E2 0E 00 54 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 B7 [23:14:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:14:49]wFMCommunicate OK [23:14:49]SAM_PROTO_GetShiftState done [23:14:49]FM_GetShiftState done [23:14:49]opened in 1722298242 [23:14:49]opened+sec_in_day 1722384642 [23:14:49]quantity*price = 300075 [23:14:49]sum+1 = 300077 [23:14:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 311 30.07.2024 23:14 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119259 ФПД: 102143626306560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231451&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119259&fm=102143626306560&tin=02508201610067®Number=0000000000092660&sum=300000 [23:14:50]StoreToDocumentArchive [23:14:50]shift 435 fd 119259 [23:14:50]save to /storage/0435/doc_00119259 [23:14:50]save last doc name /storage/0435/doc_00119259 to /storage/kkm_last_doc_name [23:14:50]save OK [23:14:50]Clear old archive folders... [23:14:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:14:50]tlvbuf is B6F39010 [23:14:50]SAM_PROTO_ClearQueue [23:14:50]wFMCommunicate request_size=4 [23:14:50]MH_SAM_APDU [23:14:50]CAPDU: 80 09 00 00 [23:14:50]Write to MH i2c: E2 08 00 61 1B 80 09 00 00 00 00 00 00 EE [23:14:50]Write i2c OK [23:14:50]MH_I2C_Read... [23:14:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:50]Read from MH i2c: E2 [23:14:50]MH_I2C_Read... [23:14:50]Read from MH i2c: E2 03 00 [23:14:50]MH_I2C_Read... [23:14:50]Read from MH i2c: E2 03 00 61 1B 00 90 00 F0 [23:14:50]RAPDU: 90 00 [23:14:50]wFMCommunicate OK [23:14:50]SAM_PROTO_ClearQueue done [23:14:50]KKMCreateOFDPacket [23:14:50]OFDProtocolAddRootSTLVToBuf [23:14:50]FM_MakeSignedData [23:14:50]FM_MakeSignedData [23:14:50]SAM_PROTO_SignData [23:14:50]wFMCommunicate request_size=4 [23:14:50]MH_SAM_APDU [23:14:50]CAPDU: 80 0D 01 02 [23:14:50]Write to MH i2c: E2 08 00 62 1B 80 0D 01 02 00 00 00 00 F6 [23:14:50]Write i2c OK [23:14:50]MH_I2C_Read... [23:14:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:50]Read from MH i2c: E2 [23:14:50]MH_I2C_Read... [23:14:50]Read from MH i2c: E2 03 00 [23:14:50]MH_I2C_Read... [23:14:50]Read from MH i2c: E2 03 00 62 1B 00 90 00 F1 [23:14:50]RAPDU: 90 00 [23:14:50]wFMCommunicate OK [23:14:50]wFMCommunicate request_size=255 [23:14:50]MH_SAM_APDU [23:14:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 EB 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D1 01 00 35 04 06 00 5C E6 2A 8F [23:14:50]Write to MH i2c: E2 02 01 63 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 EB 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D1 01 00 35 04 06 00 5C E6 2A 8F 00 00 BE [23:14:50]Write i2c OK [23:14:50]MH_I2C_Read... [23:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:50]Read from MH i2c: E2 [23:14:50]MH_I2C_Read... [23:14:50]Read from MH i2c: E2 03 00 [23:14:50]MH_I2C_Read... [23:14:50]Read from MH i2c: E2 03 00 63 1B 00 90 00 F2 [23:14:50]RAPDU: 90 00 [23:14:50]wFMCommunicate OK [23:14:50]wFMCommunicate request_size=7 [23:14:50]MH_SAM_APDU [23:14:50]CAPDU: 80 0D 02 02 02 E4 00 [23:14:50]Write to MH i2c: E2 0A 00 64 1B 80 0D 02 02 02 00 E4 00 00 00 E1 [23:14:50]Write i2c OK [23:14:50]MH_I2C_Read... [23:14:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:51]Read from MH i2c: E2 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: E2 03 00 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: E2 03 00 64 1B 00 90 00 F3 [23:14:51]RAPDU: 90 00 [23:14:51]wFMCommunicate OK [23:14:51]wFMCommunicate request_size=4 [23:14:51]MH_SAM_APDU [23:14:51]CAPDU: 80 0D 03 02 [23:14:51]Write to MH i2c: E2 08 00 65 1B 80 0D 03 02 00 00 00 00 FB [23:14:51]Write i2c OK [23:14:51]MH_I2C_Read... [23:14:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:51]Read from MH i2c: E2 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: E2 0B 00 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: E2 0B 00 65 1B 00 66 09 B9 DE B8 AE 06 8F 90 00 FD [23:14:51]RAPDU: 66 09 B9 DE B8 AE 06 8F 90 00 [23:14:51]wFMCommunicate OK [23:14:51]SAM_PROTO_SignData done [23:14:51]FM_MakeSignedData done [23:14:51]CreateOFDProtocolMessage [23:14:51]wFMCommunicate request_size=4 [23:14:51]MH_SAM_APDU [23:14:51]CAPDU: 80 11 00 00 [23:14:51]Write to MH i2c: E2 08 00 66 1B 80 11 00 00 00 00 00 00 FB [23:14:51]Write i2c OK [23:14:51]MH_I2C_Read... [23:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:51]Read from MH i2c: E2 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: E2 17 00 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: E2 17 00 66 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 56 [23:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:14:51]wFMCommunicate OK [23:14:51]CreateOFDProtocolMessage done [23:14:51]OFDSenderStorePacket 119259 [23:14:51]StoreOFDPacket docnum=119259 [23:14:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FA 92 04 01 CD 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 EB 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D1 01 00 35 04 06 00 5C E6 2A 8F E4 00 66 09 B9 DE B8 AE 06 8F [23:14:51]CheckFolder [23:14:51]dirname=/storage/ofd_packets [23:14:51]CheckFolder done [23:14:51]ProducePacketName [23:14:51]name=ofd_packets/00119259 [23:14:51]NVStorageSaveData ofd_packets/00119259 [23:14:51]File name is /storage/ofd_packets/00119259 [23:14:51]Write 298 bytes [23:14:51]NVStorageSaveData done [23:14:51]OFDSenderStorePacket done [23:14:51]KKMCreateOFDPacket done [23:14:51]NVStorageSaveData kkm_last_timestamp [23:14:51]File name is /storage/kkm_last_timestamp [23:14:51]Write 4 bytes [23:14:51]NVStorageSaveData done [23:14:51]ExternCall_PrintAddStr [23:14:51]wPrintStart [23:14:51]Write to MH i2c: 01 00 00 67 1B 82 [23:14:51]Write i2c OK [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: 01 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: 01 07 00 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: 01 07 00 67 1B 00 00 00 00 00 FF 0F 97 [23:14:51]RasterBufferAndPrint [23:14:51]line Счет N : (1)950185 [23:14:51]line ИНН: 02508201610067 [23:14:51]line Контрольно-Кассовый Чек [23:14:51]line ПРОДАЖА [23:14:51]line ТРК (МРК, ГНК) : 44 [23:14:51]line Товар: 2710194800 [23:14:51]line ДТ-К-5 [23:14:51]line 39.380 * 76.20 [23:14:51]line = 3000.76 [23:14:51]line НДС 12% НСП 1% [23:14:51]line > о реализуемом товаре [23:14:51]line ОКРУГЛЕНИЕ: -0.76 [23:14:51]line ИТОГО: 3000.00 [23:14:51]line Внесено: 3000.00 [23:14:51]line СДАЧА: 0.00 [23:14:51]line НСП 1% : 26.55 [23:14:51]line НДС 12% : 318.66 [23:14:51]line Наличными: 3000.00 [23:14:51]line Безнал.: 0.00 [23:14:51]line Место: АЗС № 134 "Партнер Нефть" [23:14:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:14:51]line СНО: Общий режим [23:14:51]line Чек 311 30.07.2024 23:14 [23:14:51]line Смена: 435 ФФД: 1.0 [23:14:51]line ЗНМ: 0300000044 [23:14:51]line РНМ: 0000000000092660 [23:14:51]line Версия ККМ: 001 [23:14:51]line ФМ: 0000000000874939 [23:14:51]line ФД: 119259 [23:14:51]line ФПД: 102143626306560 [23:14:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231451&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119259&fm=102143626306560&tin=02508201610067®Number=0000000000092660&sum=300000 [23:14:51]OFD Sender: Processing packet 119259 [packets to send 86, broken 85] [23:14:51]ProducePacketName [23:14:51]name=ofd_packets/00119259 [23:14:51]OFD Sender: To server: pG, [23:14:51]CommunicateWithHost lk.salyk.kg:30040 [23:14:51]ConnectInit lk.salyk.kg [23:14:51]written 0, free lines is 4095 [23:14:51]Connected sock=10 [23:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 FA 92 04 01 CD 9A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 EB 73 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D1 01 00 35 04 06 00 5C E6 2A 8F E4 00 66 09 B9 DE B8 AE 06 8F [23:14:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE A1 47 00 AC 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DB D1 01 00 F4 03 04 00 75 21 A9 66 B6 04 01 00 00 31 82 41 58 44 DF B9 20 [23:14:51]CommunicateWithHost err = 0 [23:14:51]CheckOFDResponse [23:14:51]1017 (14) - 77093643461234 [23:14:51]1041 (16) - 0000000000874939 [23:14:51]1040 (4) - 119259 [23:14:51]1012 (4) - 30.07.2024 17:23 [23:14:51]1206 (1) - 0 [23:14:51]OFD Sender: Remove packet 119259 [23:14:51]ProducePacketName [23:14:51]name=ofd_packets/00119259 [23:14:51]NVStorageDeleteData [23:14:51]Write to MH i2c: 01 00 00 91 1B AC [23:14:51]Write i2c OK [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: 01 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: 01 07 00 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: 01 07 00 91 1B 00 00 00 00 00 E1 0C A0 [23:14:51]RasterBufferAndPrint [23:14:51]line [23:14:51]line [23:14:51]line [23:14:51]line [23:14:51]line [23:14:51]written 0, free lines is 3304 [23:14:51]MH_Cut [23:14:51]Write to MH i2c: D1 01 00 98 1B 01 85 [23:14:51]Write i2c OK [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: D1 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: D1 01 00 [23:14:51]MH_I2C_Read... [23:14:51]Read from MH i2c: D1 01 00 98 1B 00 84 [23:14:51]Write to MH i2c: 01 00 00 99 1B B4 [23:14:51]Write i2c OK [23:14:51]MH_I2C_Read... [23:14:52]OFD Sender: No OFD packet to send [23:14:52]*** Cut start [23:14:52]*** Partial cut [23:14:52]*** CUTSNS_PIN = 1 [23:14:52]*** CUTSNS_PIN = 0 [23:14:52]*** Brake cut motor [23:14:53]Read from MH i2c: 01 [23:14:53]MH_I2C_Read... [23:14:53]*** Stop cut motor [23:14:53]*** Cut end [23:14:53]Read from MH i2c: 01 07 00 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: 01 07 00 99 1B 00 00 00 00 00 FF 0F C9 [23:14:53]process_action close_receipt done [23:14:53]requested_data is exist [23:14:53]produce_requested_data [23:14:53]requested_item fm.sn is exist - process it [23:14:53]wFMCommunicate request_size=4 [23:14:53]MH_SAM_APDU [23:14:53]CAPDU: 80 11 00 00 [23:14:53]Write to MH i2c: E2 08 00 9A 1B 80 11 00 00 00 00 00 00 2F [23:14:53]Write i2c OK [23:14:53]MH_I2C_Read... [23:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:53]Read from MH i2c: E2 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: E2 17 00 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: E2 17 00 9A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 8A [23:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:14:53]wFMCommunicate OK [23:14:53]requested_item fd.num is exist - process it [23:14:53]SAM_PROTO_GetFieldsCounters [23:14:53]wFMCommunicate request_size=4 [23:14:53]MH_SAM_APDU [23:14:53]CAPDU: 80 13 00 00 [23:14:53]Write to MH i2c: E2 08 00 9B 1B 80 13 00 00 00 00 00 00 32 [23:14:53]Write i2c OK [23:14:53]MH_I2C_Read... [23:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:53]Read from MH i2c: E2 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: E2 62 00 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: E2 62 00 9B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [23:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DB D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:53]wFMCommunicate OK [23:14:53]SAM_PROTO_GetFieldsCounters done [23:14:53]requested_item shift.num is exist - process it [23:14:53]requested_item shift.opened is exist - process it [23:14:53]req_shift_opened [23:14:53]FM_GetShiftState [23:14:53]SAM_PROTO_GetShiftState [23:14:53]wFMCommunicate request_size=4 [23:14:53]MH_SAM_APDU [23:14:53]CAPDU: 80 13 01 00 [23:14:53]Write to MH i2c: E2 08 00 9C 1B 80 13 01 00 00 00 00 00 34 [23:14:53]Write i2c OK [23:14:53]MH_I2C_Read... [23:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:53]Read from MH i2c: E2 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: E2 0E 00 [23:14:53]MH_I2C_Read... [23:14:53]Read from MH i2c: E2 0E 00 9C 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 FF [23:14:53]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:14:53]wFMCommunicate OK [23:14:53]SAM_PROTO_GetShiftState done [23:14:53]FM_GetShiftState done [23:14:53]req_shift_opened done [23:14:53]requested_item shift.open_date is exist - process it [23:14:53]req_shift_open_date [23:14:53]req_shift_open_date done [23:14:53]produce_requested_data done [23:14:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119259,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:14:53]process_action_free close_receipt [23:14:53]json_value_free [23:14:53]json_value_free done [23:14:53]process_json_proto returns [23:14:53]Send response to host [23:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119259,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:14:53]free response buf [23:14:53]execute_script done [23:14:53]execute_script returns [23:14:53]free content buf [23:14:53]Sock 7.Close socket [23:14:53]Sock 7.Thread stoped [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:24]accept exits with 9 [23:16:24]New connection [23:16:24]New thread 3066838372 created [23:16:24]Thread 3066695012 joined [23:16:24]Waiting for new connection... [23:16:24] Sock 9.Parse request [23:16:24]Sock 9.Check first char [23:16:24]Sock 9.First char is OK [23:16:24]request: POST /json_proto HTTP/1.0 [23:16:24]Method: POST [23:16:24]URL: /json_proto [23:16:24]Method is POST - this is cgi request [23:16:24]url: /json_proto [23:16:24]query_string will be loaded in cgi processing [23:16:24]execute_cgi json_proto POST (null) [23:16:24]execute_cgi path=json_proto method=POST [23:16:24]POST find Content-Length [23:16:24]Host: 172.17.45.7:8080 [23:16:24]Content-Length: 835 [23:16:24]Content-Type: application/json [23:16:24] [23:16:24]POST finish read [23:16:24]Found Content-Length = 835 [23:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 52.960, "sum" : 4000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:24]execute_script... [23:16: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)950184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.53, "quantity" : 52.960, "sum" : 4000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "total" : 4000.00, "payments": [ { "type": 1, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:24]POST & json_proto [23:16:24]process_json_proto [23:16:24]json parsed OK: [23:16:24]protocol is kg_v1.0 [23:16:24]action value=close_receipt [23:16:24]process_action close_receipt [23:16:24]cmd_close_receipt [23:16:24]MH_GetDate [23:16:24]Write to MH i2c: F0 00 00 9D 1B A7 [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: F0 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: F0 09 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: F0 09 00 9D 1B 00 4A 74 A9 66 90 0F 3E 66 C0 [23:16:24]GetLastDocTimeStamp 1722381291 [23:16:24]current date 1722381386 [23:16:24]FM_GetShiftState [23:16:24]SAM_PROTO_GetShiftState [23:16:24]wFMCommunicate request_size=4 [23:16:24]MH_SAM_APDU [23:16:24]CAPDU: 80 13 01 00 [23:16:24]Write to MH i2c: E2 08 00 9E 1B 80 13 01 00 00 00 00 00 36 [23:16:24]Write i2c OK [23:16:24]MH_I2C_Read... [23:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:24]Read from MH i2c: E2 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: E2 0E 00 [23:16:24]MH_I2C_Read... [23:16:24]Read from MH i2c: E2 0E 00 9E 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 01 [23:16:24]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:16:24]wFMCommunicate OK [23:16:24]SAM_PROTO_GetShiftState done [23:16:24]FM_GetShiftState done [23:16:24]opened in 1722298242 [23:16:24]opened+sec_in_day 1722384642 [23:16:24]quantity*price = 400006 [23:16:24]sum+1 = 400008 [23:16:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 312 30.07.2024 23:16 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874939 ФД: 119260 ФПД: 211019318796599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231626&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119260&fm=211019318796599&tin=02508201610067®Number=0000000000092660&sum=400000 [23:16:25]StoreToDocumentArchive [23:16:25]shift 435 fd 119260 [23:16:25]save to /storage/0435/doc_00119260 [23:16:25]save last doc name /storage/0435/doc_00119260 to /storage/kkm_last_doc_name [23:16:25]save OK [23:16:25]Clear old archive folders... [23:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:16:25]tlvbuf is B6F3C340 [23:16:25]SAM_PROTO_ClearQueue [23:16:25]wFMCommunicate request_size=4 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 09 00 00 [23:16:25]Write to MH i2c: E2 08 00 AB 1B 80 09 00 00 00 00 00 00 38 [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:25]Read from MH i2c: E2 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 AB 1B 00 90 00 3A [23:16:25]RAPDU: 90 00 [23:16:25]wFMCommunicate OK [23:16:25]SAM_PROTO_ClearQueue done [23:16:25]KKMCreateOFDPacket [23:16:25]OFDProtocolAddRootSTLVToBuf [23:16:25]FM_MakeSignedData [23:16:25]FM_MakeSignedData [23:16:25]SAM_PROTO_SignData [23:16:25]wFMCommunicate request_size=4 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 0D 01 02 [23:16:25]Write to MH i2c: E2 08 00 AC 1B 80 0D 01 02 00 00 00 00 40 [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:25]Read from MH i2c: E2 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 AC 1B 00 90 00 3B [23:16:25]RAPDU: 90 00 [23:16:25]wFMCommunicate OK [23:16:25]wFMCommunicate request_size=255 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 4A 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D1 01 00 35 04 06 00 BF EB C3 89 [23:16:25]Write to MH i2c: E2 02 01 AD 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 4A 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D1 01 00 35 04 06 00 BF EB C3 89 00 00 AE [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:25]Read from MH i2c: E2 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 AD 1B 00 90 00 3C [23:16:25]RAPDU: 90 00 [23:16:25]wFMCommunicate OK [23:16:25]wFMCommunicate request_size=7 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 0D 02 02 02 A1 37 [23:16:25]Write to MH i2c: E2 0A 00 AE 1B 80 0D 02 02 02 00 A1 37 00 00 1F [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:25]Read from MH i2c: E2 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 03 00 AE 1B 00 90 00 3D [23:16:25]RAPDU: 90 00 [23:16:25]wFMCommunicate OK [23:16:25]wFMCommunicate request_size=4 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 0D 03 02 [23:16:25]Write to MH i2c: E2 08 00 AF 1B 80 0D 03 02 00 00 00 00 45 [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:25]Read from MH i2c: E2 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 0B 00 [23:16:25]MH_I2C_Read... [23:16:25]Read from MH i2c: E2 0B 00 AF 1B 00 AC E5 C6 97 05 AE 97 9A 90 00 18 [23:16:25]RAPDU: AC E5 C6 97 05 AE 97 9A 90 00 [23:16:25]wFMCommunicate OK [23:16:25]SAM_PROTO_SignData done [23:16:25]FM_MakeSignedData done [23:16:25]CreateOFDProtocolMessage [23:16:25]wFMCommunicate request_size=4 [23:16:25]MH_SAM_APDU [23:16:25]CAPDU: 80 11 00 00 [23:16:25]Write to MH i2c: E2 08 00 B0 1B 80 11 00 00 00 00 00 00 45 [23:16:25]Write i2c OK [23:16:25]MH_I2C_Read... [23:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:26]Read from MH i2c: E2 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 17 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: E2 17 00 B0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A0 [23:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:16:26]wFMCommunicate OK [23:16:26]CreateOFDProtocolMessage done [23:16:26]OFDSenderStorePacket 119260 [23:16:26]StoreOFDPacket docnum=119260 [23:16:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 3B 04 01 D3 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 4A 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D1 01 00 35 04 06 00 BF EB C3 89 A1 37 AC E5 C6 97 05 AE 97 9A [23:16:26]CheckFolder [23:16:26]dirname=/storage/ofd_packets [23:16:26]CheckFolder done [23:16:26]ProducePacketName [23:16:26]name=ofd_packets/00119260 [23:16:26]NVStorageSaveData ofd_packets/00119260 [23:16:26]File name is /storage/ofd_packets/00119260 [23:16:26]Write 298 bytes [23:16:26]NVStorageSaveData done [23:16:26]OFDSenderStorePacket done [23:16:26]KKMCreateOFDPacket done [23:16:26]NVStorageSaveData kkm_last_timestamp [23:16:26]File name is /storage/kkm_last_timestamp [23:16:26]Write 4 bytes [23:16:26]NVStorageSaveData done [23:16:26]ExternCall_PrintAddStr [23:16:26]wPrintStart [23:16:26]Write to MH i2c: 01 00 00 B1 1B CC [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 07 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 07 00 B1 1B 00 00 00 00 00 FF 0F E1 [23:16:26]RasterBufferAndPrint [23:16:26]line Счет N : (1)950184 [23:16:26]line ИНН: 02508201610067 [23:16:26]line Контрольно-Кассовый Чек [23:16:26]line ПРОДАЖА [23:16:26]line ТРК (МРК, ГНК) : 21 [23:16:26]line Товар: 2710194800 [23:16:26]line ДТ-К-5 [23:16:26]line 52.960 * 75.53 [23:16:26]line = 4000.07 [23:16:26]line НДС 12% НСП 1% [23:16:26]line > о реализуемом товаре [23:16:26]line ОКРУГЛЕНИЕ: -0.07 [23:16:26]line ИТОГО: 4000.00 [23:16:26]line НСП 1% : 35.40 [23:16:26]line НДС 12% : 424.79 [23:16:26]line Наличными: 0.00 [23:16:26]line Безнал.: 4000.00 [23:16:26]line Место: АЗС № 134 "Партнер Нефть" [23:16:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:16:26]line СНО: Общий режим [23:16:26]line Чек 312 30.07.2024 23:16 [23:16:26]line Смена: 435 ФФД: 1.0 [23:16:26]line ЗНМ: 0300000044 [23:16:26]line РНМ: 0000000000092660 [23:16:26]line Версия ККМ: 001 [23:16:26]line Платежная система: Бакай Банк [23:16:26]line ФМ: 0000000000874939 [23:16:26]line ФД: 119260 [23:16:26]line ФПД: 211019318796599 [23:16:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231626&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119260&fm=211019318796599&tin=02508201610067®Number=0000000000092660&sum=400000 [23:16:26]OFD Sender: Processing packet 119260 [packets to send 86, broken 85] [23:16:26]ProducePacketName [23:16:26]name=ofd_packets/00119260 [23:16:26]OFD Sender: To server: pG, [23:16:26]CommunicateWithHost lk.salyk.kg:30040 [23:16:26]ConnectInit lk.salyk.kg [23:16:26]written 0, free lines is 4095 [23:16:26]Connected sock=10 [23:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 53 3B 04 01 D3 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 CE 00 00 00 00 00 37 04 06 00 81 1D 00 00 00 00 13 04 06 00 87 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 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 4A 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D1 01 00 35 04 06 00 BF EB C3 89 A1 37 AC E5 C6 97 05 AE 97 9A [23:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6D 59 47 00 4A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DC D1 01 00 F4 03 04 00 D4 21 A9 66 B6 04 01 00 00 F6 F6 07 6C FD D5 65 F4 [23:16:26]CommunicateWithHost err = 0 [23:16:26]CheckOFDResponse [23:16:26]1017 (14) - 77093643461234 [23:16:26]1041 (16) - 0000000000874939 [23:16:26]1040 (4) - 119260 [23:16:26]1012 (4) - 30.07.2024 17:24 [23:16:26]1206 (1) - 0 [23:16:26]OFD Sender: Remove packet 119260 [23:16:26]ProducePacketName [23:16:26]name=ofd_packets/00119260 [23:16:26]NVStorageDeleteData [23:16:26]Write to MH i2c: 01 00 00 DB 1B F6 [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 07 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: 01 07 00 DB 1B 00 00 00 00 00 E9 0C F2 [23:16:26]RasterBufferAndPrint [23:16:26]line [23:16:26]line [23:16:26]line [23:16:26]line [23:16:26]line [23:16:26]written 0, free lines is 3311 [23:16:26]MH_Cut [23:16:26]Write to MH i2c: D1 01 00 E2 1B 01 CF [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: D1 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: D1 01 00 [23:16:26]MH_I2C_Read... [23:16:26]Read from MH i2c: D1 01 00 E2 1B 00 CE [23:16:26]Write to MH i2c: 01 00 00 E3 1B FE [23:16:26]Write i2c OK [23:16:26]MH_I2C_Read... [23:16:27]OFD Sender: No OFD packet to send [23:16:27]*** Cut start [23:16:27]*** Partial cut [23:16:27]*** CUTSNS_PIN = 1 [23:16:27]*** CUTSNS_PIN = 0 [23:16:27]*** Brake cut motor [23:16:28]Read from MH i2c: 01 [23:16:28]MH_I2C_Read... [23:16:28]*** Stop cut motor [23:16:28]*** Cut end [23:16:28]Read from MH i2c: 01 07 00 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: 01 07 00 E3 1B 00 00 00 00 00 FF 0F 13 [23:16:28]process_action close_receipt done [23:16:28]requested_data is exist [23:16:28]produce_requested_data [23:16:28]requested_item fm.sn is exist - process it [23:16:28]wFMCommunicate request_size=4 [23:16:28]MH_SAM_APDU [23:16:28]CAPDU: 80 11 00 00 [23:16:28]Write to MH i2c: E2 08 00 E4 1B 80 11 00 00 00 00 00 00 79 [23:16:28]Write i2c OK [23:16:28]MH_I2C_Read... [23:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:28]Read from MH i2c: E2 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: E2 17 00 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: E2 17 00 E4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 D4 [23:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:16:28]wFMCommunicate OK [23:16:28]requested_item fd.num is exist - process it [23:16:28]SAM_PROTO_GetFieldsCounters [23:16:28]wFMCommunicate request_size=4 [23:16:28]MH_SAM_APDU [23:16:28]CAPDU: 80 13 00 00 [23:16:28]Write to MH i2c: E2 08 00 E5 1B 80 13 00 00 00 00 00 00 7C [23:16:28]Write i2c OK [23:16:28]MH_I2C_Read... [23:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:28]Read from MH i2c: E2 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: E2 62 00 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: E2 62 00 E5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 B0 [23:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DC D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:28]wFMCommunicate OK [23:16:28]SAM_PROTO_GetFieldsCounters done [23:16:28]requested_item shift.num is exist - process it [23:16:28]requested_item shift.opened is exist - process it [23:16:28]req_shift_opened [23:16:28]FM_GetShiftState [23:16:28]SAM_PROTO_GetShiftState [23:16:28]wFMCommunicate request_size=4 [23:16:28]MH_SAM_APDU [23:16:28]CAPDU: 80 13 01 00 [23:16:28]Write to MH i2c: E2 08 00 E6 1B 80 13 01 00 00 00 00 00 7E [23:16:28]Write i2c OK [23:16:28]MH_I2C_Read... [23:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:28]Read from MH i2c: E2 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: E2 0E 00 [23:16:28]MH_I2C_Read... [23:16:28]Read from MH i2c: E2 0E 00 E6 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 49 [23:16:28]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:16:28]wFMCommunicate OK [23:16:28]SAM_PROTO_GetShiftState done [23:16:28]FM_GetShiftState done [23:16:28]req_shift_opened done [23:16:28]requested_item shift.open_date is exist - process it [23:16:28]req_shift_open_date [23:16:28]req_shift_open_date done [23:16:28]produce_requested_data done [23:16:28]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119260,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:16:28]process_action_free close_receipt [23:16:28]json_value_free [23:16:28]json_value_free done [23:16:28]process_json_proto returns [23:16:28]Send response to host [23:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119260,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:16:28]free response buf [23:16:28]execute_script done [23:16:28]execute_script returns [23:16:28]free content buf [23:16:28]Sock 9.Close socket [23:16:28]Sock 9.Thread stoped [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:52]accept exits with 7 [23:18:52]New connection [23:18:52]New thread 3066695012 created [23:18:52]Thread 3066838372 joined [23:18:52]Waiting for new connection... [23:18:52] Sock 7.Parse request [23:18:52]Sock 7.Check first char [23:18:52]Sock 7.First char is OK [23:18:52]request: POST /json_proto HTTP/1.0 [23:18:52]Method: POST [23:18:52]URL: /json_proto [23:18:52]Method is POST - this is cgi request [23:18:52]url: /json_proto [23:18:52]query_string will be loaded in cgi processing [23:18:52]execute_cgi json_proto POST (null) [23:18:52]execute_cgi path=json_proto method=POST [23:18:52]POST find Content-Length [23:18:52]Host: 172.17.45.7:8080 [23:18:52]Content-Length: 679 [23:18:52]Content-Type: application/json [23:18:52] [23:18:52]POST finish read [23:18:52]Found Content-Length = 679 [23:18:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:52]execute_script... [23: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)950186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:52]POST & json_proto [23:18:52]process_json_proto [23:18:52]json parsed OK: [23:18:52]protocol is kg_v1.0 [23:18:52]action value=close_receipt [23:18:52]process_action close_receipt [23:18:52]cmd_close_receipt [23:18:52]MH_GetDate [23:18:52]Write to MH i2c: F0 00 00 E7 1B F1 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: F0 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: F0 09 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: F0 09 00 E7 1B 00 DE 74 A9 66 90 0F 3E 66 9E [23:18:52]GetLastDocTimeStamp 1722381386 [23:18:52]current date 1722381534 [23:18:52]FM_GetShiftState [23:18:52]SAM_PROTO_GetShiftState [23:18:52]wFMCommunicate request_size=4 [23:18:52]MH_SAM_APDU [23:18:52]CAPDU: 80 13 01 00 [23:18:52]Write to MH i2c: E2 08 00 E8 1B 80 13 01 00 00 00 00 00 80 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:52]Read from MH i2c: E2 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 0E 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 0E 00 E8 1B 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 4B [23:18:52]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:18:52]wFMCommunicate OK [23:18:52]SAM_PROTO_GetShiftState done [23:18:52]FM_GetShiftState done [23:18:52]opened in 1722298242 [23:18:52]opened+sec_in_day 1722384642 [23:18:52]quantity*price = 300075 [23:18:52]sum+1 = 300077 [23:18:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 313 30.07.2024 23:18 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119261 ФПД: 245244698620690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231854&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119261&fm=245244698620690&tin=02508201610067®Number=0000000000092660&sum=300000 [23:18:53]StoreToDocumentArchive [23:18:53]shift 435 fd 119261 [23:18:53]save to /storage/0435/doc_00119261 [23:18:53]save last doc name /storage/0435/doc_00119261 to /storage/kkm_last_doc_name [23:18:53]save OK [23:18:53]Clear old archive folders... [23:18:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:18:53]tlvbuf is B6F39130 [23:18:53]SAM_PROTO_ClearQueue [23:18:53]wFMCommunicate request_size=4 [23:18:53]MH_SAM_APDU [23:18:53]CAPDU: 80 09 00 00 [23:18:53]Write to MH i2c: E2 08 00 F5 1B 80 09 00 00 00 00 00 00 82 [23:18:53]Write i2c OK [23:18:53]MH_I2C_Read... [23:18:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:53]Read from MH i2c: E2 [23:18:53]MH_I2C_Read... [23:18:53]Read from MH i2c: E2 03 00 [23:18:53]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 F5 1B 00 90 00 84 [23:18:54]RAPDU: 90 00 [23:18:54]wFMCommunicate OK [23:18:54]SAM_PROTO_ClearQueue done [23:18:54]KKMCreateOFDPacket [23:18:54]OFDProtocolAddRootSTLVToBuf [23:18:54]FM_MakeSignedData [23:18:54]FM_MakeSignedData [23:18:54]SAM_PROTO_SignData [23:18:54]wFMCommunicate request_size=4 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 0D 01 02 [23:18:54]Write to MH i2c: E2 08 00 F6 1B 80 0D 01 02 00 00 00 00 8A [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 F6 1B 00 90 00 85 [23:18:54]RAPDU: 90 00 [23:18:54]wFMCommunicate OK [23:18:54]wFMCommunicate request_size=255 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DE 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D1 01 00 35 04 06 00 DF 0C 7B 24 [23:18:54]Write to MH i2c: E2 02 01 F7 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DE 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D1 01 00 35 04 06 00 DF 0C 7B 24 00 00 D9 [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 F7 1B 00 90 00 86 [23:18:54]RAPDU: 90 00 [23:18:54]wFMCommunicate OK [23:18:54]wFMCommunicate request_size=7 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 0D 02 02 02 F3 12 [23:18:54]Write to MH i2c: E2 0A 00 F8 1B 80 0D 02 02 02 00 F3 12 00 00 96 [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 03 00 F8 1B 00 90 00 87 [23:18:54]RAPDU: 90 00 [23:18:54]wFMCommunicate OK [23:18:54]wFMCommunicate request_size=4 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 0D 03 02 [23:18:54]Write to MH i2c: E2 08 00 F9 1B 80 0D 03 02 00 00 00 00 8F [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 0B 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 0B 00 F9 1B 00 C3 1E F5 68 EC E8 90 62 90 00 94 [23:18:54]RAPDU: C3 1E F5 68 EC E8 90 62 90 00 [23:18:54]wFMCommunicate OK [23:18:54]SAM_PROTO_SignData done [23:18:54]FM_MakeSignedData done [23:18:54]CreateOFDProtocolMessage [23:18:54]wFMCommunicate request_size=4 [23:18:54]MH_SAM_APDU [23:18:54]CAPDU: 80 11 00 00 [23:18:54]Write to MH i2c: E2 08 00 FA 1B 80 11 00 00 00 00 00 00 8F [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:54]Read from MH i2c: E2 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 17 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: E2 17 00 FA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EA [23:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:18:54]wFMCommunicate OK [23:18:54]CreateOFDProtocolMessage done [23:18:54]OFDSenderStorePacket 119261 [23:18:54]StoreOFDPacket docnum=119261 [23:18:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D8 7A 04 01 F7 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DE 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D1 01 00 35 04 06 00 DF 0C 7B 24 F3 12 C3 1E F5 68 EC E8 90 62 [23:18:54]CheckFolder [23:18:54]dirname=/storage/ofd_packets [23:18:54]CheckFolder done [23:18:54]ProducePacketName [23:18:54]name=ofd_packets/00119261 [23:18:54]NVStorageSaveData ofd_packets/00119261 [23:18:54]File name is /storage/ofd_packets/00119261 [23:18:54]Write 298 bytes [23:18:54]NVStorageSaveData done [23:18:54]OFDSenderStorePacket done [23:18:54]KKMCreateOFDPacket done [23:18:54]NVStorageSaveData kkm_last_timestamp [23:18:54]File name is /storage/kkm_last_timestamp [23:18:54]Write 4 bytes [23:18:54]NVStorageSaveData done [23:18:54]ExternCall_PrintAddStr [23:18:54]wPrintStart [23:18:54]Write to MH i2c: 01 00 00 FB 1B 16 [23:18:54]Write i2c OK [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: 01 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: 01 07 00 [23:18:54]MH_I2C_Read... [23:18:54]Read from MH i2c: 01 07 00 FB 1B 00 00 00 00 00 FF 0F 2B [23:18:54]RasterBufferAndPrint [23:18:54]line Счет N : (1)950186 [23:18:54]line ИНН: 02508201610067 [23:18:54]line Контрольно-Кассовый Чек [23:18:54]line ПРОДАЖА [23:18:54]line ТРК (МРК, ГНК) : 34 [23:18:54]line Товар: 2710194800 [23:18:54]line ДТ-К-5 [23:18:54]line 39.380 * 76.20 [23:18:54]line = 3000.76 [23:18:54]line НДС 12% НСП 1% [23:18:54]line > о реализуемом товаре [23:18:54]line ОКРУГЛЕНИЕ: -0.76 [23:18:54]line ИТОГО: 3000.00 [23:18:54]line Внесено: 3000.00 [23:18:54]line СДАЧА: 0.00 [23:18:54]line НСП 1% : 26.55 [23:18:54]line НДС 12% : 318.66 [23:18:54]line Наличными: 3000.00 [23:18:54]line Безнал.: 0.00 [23:18:54]line Место: АЗС № 134 "Партнер Нефть" [23:18:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:18:54]line СНО: Общий режим [23:18:54]line Чек 313 30.07.2024 23:18 [23:18:54]line Смена: 435 ФФД: 1.0 [23:18:54]line ЗНМ: 0300000044 [23:18:54]line РНМ: 0000000000092660 [23:18:54]line Версия ККМ: 001 [23:18:54]line ФМ: 0000000000874939 [23:18:54]line ФД: 119261 [23:18:54]line ФПД: 245244698620690 [23:18:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T231854&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119261&fm=245244698620690&tin=02508201610067®Number=0000000000092660&sum=300000 [23:18:54]OFD Sender: Processing packet 119261 [packets to send 86, broken 85] [23:18:54]ProducePacketName [23:18:54]name=ofd_packets/00119261 [23:18:54]OFD Sender: To server: pG, [23:18:54]CommunicateWithHost lk.salyk.kg:30040 [23:18:54]ConnectInit lk.salyk.kg [23:18:54]written 0, free lines is 4095 [23:18:55]Write to MH i2c: 01 00 00 25 1C 41 [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: 01 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: 01 07 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: 01 07 00 25 1C 00 00 00 00 00 DC 0C 30 [23:18:55]RasterBufferAndPrint [23:18:55]line [23:18:55]line [23:18:55]line [23:18:55]line [23:18:55]line [23:18:55]written 0, free lines is 3296 [23:18:55]MH_Cut [23:18:55]Write to MH i2c: D1 01 00 2C 1C 01 1A [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: D1 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: D1 01 00 [23:18:55]MH_I2C_Read... [23:18:55]Read from MH i2c: D1 01 00 2C 1C 00 19 [23:18:55]Write to MH i2c: 01 00 00 2D 1C 49 [23:18:55]Write i2c OK [23:18:55]MH_I2C_Read... [23:18:56]*** Cut start [23:18:56]*** Partial cut [23:18:56]*** CUTSNS_PIN = 1 [23:18:56]*** CUTSNS_PIN = 0 [23:18:56]*** Brake cut motor [23:18:56]Read from MH i2c: 01 [23:18:56]MH_I2C_Read... [23:18:56]*** Stop cut motor [23:18:56]*** Cut end [23:18:56]Read from MH i2c: 01 07 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: 01 07 00 2D 1C 00 00 00 00 00 FF 0F 5E [23:18:56]process_action close_receipt done [23:18:56]requested_data is exist [23:18:56]produce_requested_data [23:18:56]requested_item fm.sn is exist - process it [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 11 00 00 [23:18:56]Write to MH i2c: E2 08 00 2E 1C 80 11 00 00 00 00 00 00 C4 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 17 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 17 00 2E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 1F [23:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:18:56]wFMCommunicate OK [23:18:56]requested_item fd.num is exist - process it [23:18:56]SAM_PROTO_GetFieldsCounters [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 13 00 00 [23:18:56]Write to MH i2c: E2 08 00 2F 1C 80 13 00 00 00 00 00 00 C7 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 62 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 62 00 2F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [23:18:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DD D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:56]wFMCommunicate OK [23:18:56]SAM_PROTO_GetFieldsCounters done [23:18:56]requested_item shift.num is exist - process it [23:18:56]requested_item shift.opened is exist - process it [23:18:56]req_shift_opened [23:18:56]FM_GetShiftState [23:18:56]SAM_PROTO_GetShiftState [23:18:56]wFMCommunicate request_size=4 [23:18:56]MH_SAM_APDU [23:18:56]CAPDU: 80 13 01 00 [23:18:56]Write to MH i2c: E2 08 00 30 1C 80 13 01 00 00 00 00 00 C9 [23:18:56]Write i2c OK [23:18:56]MH_I2C_Read... [23:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:56]Read from MH i2c: E2 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 0E 00 [23:18:56]MH_I2C_Read... [23:18:56]Read from MH i2c: E2 0E 00 30 1C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 94 [23:18:56]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:18:56]wFMCommunicate OK [23:18:56]SAM_PROTO_GetShiftState done [23:18:56]FM_GetShiftState done [23:18:56]req_shift_opened done [23:18:56]requested_item shift.open_date is exist - process it [23:18:56]req_shift_open_date [23:18:56]req_shift_open_date done [23:18:56]produce_requested_data done [23:18:56]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119261,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:18:56]process_action_free close_receipt [23:18:56]json_value_free [23:18:56]json_value_free done [23:18:56]process_json_proto returns [23:18:56]Send response to host [23:18:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119261,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:18:56]free response buf [23:18:56]execute_script done [23:18:56]execute_script returns [23:18:56]free content buf [23:18:56]Sock 7.Close socket [23:18:56]Sock 7.Thread stoped [23:21:08]ConnectInit Can't connect to host [23:21:08]CommunicateWithHost connect error [23:21:08]CommunicateWithHost err = -1 [23:21:08]OFD Sender: Server communicate error [23:21:13]OFD Sender: Processing packet 119261 [packets to send 86, broken 85] [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00119261 [23:21:13]OFD Sender: To server: pG, [23:21:13]CommunicateWithHost lk.salyk.kg:30040 [23:21:13]ConnectInit lk.salyk.kg [23:21:13]Connected sock=7 [23:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 D8 7A 04 01 F7 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 DE 74 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DD D1 01 00 35 04 06 00 DF 0C 7B 24 F3 12 C3 1E F5 68 EC E8 90 62 [23:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 81 58 47 00 1C 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 34 39 33 39 10 04 04 00 DD D1 01 00 F4 03 04 00 F3 22 A9 66 B6 04 01 00 00 93 80 81 C9 AE EB B1 80 [23:21:13]CommunicateWithHost err = 0 [23:21:13]CheckOFDResponse [23:21:13]1017 (14) - 77093643461234 [23:21:13]1041 (16) - 0000000000874939 [23:21:13]1040 (4) - 119261 [23:21:13]1012 (4) - 30.07.2024 17:29 [23:21:13]1206 (1) - 0 [23:21:13]OFD Sender: Remove packet 119261 [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00119261 [23:21:13]NVStorageDeleteData [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:14]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: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:26]accept exits with 9 [23:23:26]New connection [23:23:26]New thread 3066838372 created [23:23:26]Thread 3066695012 joined [23:23:26]Waiting for new connection... [23:23:26] Sock 9.Parse request [23:23:26]Sock 9.Check first char [23:23:26]Sock 9.First char is OK [23:23:26]request: POST /json_proto HTTP/1.0 [23:23:26]Method: POST [23:23:26]URL: /json_proto [23:23:26]Method is POST - this is cgi request [23:23:26]url: /json_proto [23:23:26]query_string will be loaded in cgi processing [23:23:26]execute_cgi json_proto POST (null) [23:23:26]execute_cgi path=json_proto method=POST [23:23:26]POST find Content-Length [23:23:26]Host: 172.17.45.7:8080 [23:23:26]Content-Length: 680 [23:23:26]Content-Type: application/json [23:23:26] [23:23:26]POST finish read [23:23:26]Found Content-Length = 680 [23:23:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 124.680, "sum" : 9500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:26]execute_script... [23: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)950188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 124.680, "sum" : 9500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:26]POST & json_proto [23:23:26]process_json_proto [23:23:26]json parsed OK: [23:23:26]protocol is kg_v1.0 [23:23:26]action value=close_receipt [23:23:26]process_action close_receipt [23:23:26]cmd_close_receipt [23:23:26]MH_GetDate [23:23:26]Write to MH i2c: F0 00 00 31 1C 3C [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: F0 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: F0 09 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: F0 09 00 31 1C 00 EF 75 A9 66 90 0F 3E 66 FB [23:23:26]GetLastDocTimeStamp 1722381534 [23:23:26]current date 1722381807 [23:23:26]FM_GetShiftState [23:23:26]SAM_PROTO_GetShiftState [23:23:26]wFMCommunicate request_size=4 [23:23:26]MH_SAM_APDU [23:23:26]CAPDU: 80 13 01 00 [23:23:26]Write to MH i2c: E2 08 00 32 1C 80 13 01 00 00 00 00 00 CB [23:23:26]Write i2c OK [23:23:26]MH_I2C_Read... [23:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:26]Read from MH i2c: E2 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 0E 00 [23:23:26]MH_I2C_Read... [23:23:26]Read from MH i2c: E2 0E 00 32 1C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 96 [23:23:26]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:23:26]wFMCommunicate OK [23:23:26]SAM_PROTO_GetShiftState done [23:23:26]FM_GetShiftState done [23:23:26]opened in 1722298242 [23:23:26]opened+sec_in_day 1722384642 [23:23:26]quantity*price = 950061 [23:23:26]sum+1 = 950063 [23:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.08 НДС 12% : 1008.91 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 314 30.07.2024 23:23 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119262 ФПД: 38743630205963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T232328&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119262&fm=38743630205963&tin=02508201610067®Number=0000000000092660&sum=950000 [23:23:27]StoreToDocumentArchive [23:23:27]shift 435 fd 119262 [23:23:27]save to /storage/0435/doc_00119262 [23:23:27]save last doc name /storage/0435/doc_00119262 to /storage/kkm_last_doc_name [23:23:27]save OK [23:23:27]Clear old archive folders... [23:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:23:27]tlvbuf is 01655160 [23:23:27]SAM_PROTO_ClearQueue [23:23:27]wFMCommunicate request_size=4 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 09 00 00 [23:23:27]Write to MH i2c: E2 08 00 3F 1C 80 09 00 00 00 00 00 00 CD [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 3F 1C 00 90 00 CF [23:23:27]RAPDU: 90 00 [23:23:27]wFMCommunicate OK [23:23:27]SAM_PROTO_ClearQueue done [23:23:27]KKMCreateOFDPacket [23:23:27]OFDProtocolAddRootSTLVToBuf [23:23:27]FM_MakeSignedData [23:23:27]FM_MakeSignedData [23:23:27]SAM_PROTO_SignData [23:23:27]wFMCommunicate request_size=4 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 0D 01 02 [23:23:27]Write to MH i2c: E2 08 00 40 1C 80 0D 01 02 00 00 00 00 D5 [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 40 1C 00 90 00 D0 [23:23:27]RAPDU: 90 00 [23:23:27]wFMCommunicate OK [23:23:27]wFMCommunicate request_size=255 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 F0 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D1 01 00 35 04 06 00 23 3C B4 50 [23:23:27]Write to MH i2c: E2 02 01 41 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 F0 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D1 01 00 35 04 06 00 23 3C B4 50 00 00 D5 [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 41 1C 00 90 00 D1 [23:23:27]RAPDU: 90 00 [23:23:27]wFMCommunicate OK [23:23:27]wFMCommunicate request_size=7 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 0D 02 02 02 D4 0B [23:23:27]Write to MH i2c: E2 0A 00 42 1C 80 0D 02 02 02 00 D4 0B 00 00 BB [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 03 00 42 1C 00 90 00 D2 [23:23:27]RAPDU: 90 00 [23:23:27]wFMCommunicate OK [23:23:27]wFMCommunicate request_size=4 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 0D 03 02 [23:23:27]Write to MH i2c: E2 08 00 43 1C 80 0D 03 02 00 00 00 00 DA [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 0B 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 0B 00 43 1C 00 CB 5C BA C1 E8 43 37 70 90 00 4F [23:23:27]RAPDU: CB 5C BA C1 E8 43 37 70 90 00 [23:23:27]wFMCommunicate OK [23:23:27]SAM_PROTO_SignData done [23:23:27]FM_MakeSignedData done [23:23:27]CreateOFDProtocolMessage [23:23:27]wFMCommunicate request_size=4 [23:23:27]MH_SAM_APDU [23:23:27]CAPDU: 80 11 00 00 [23:23:27]Write to MH i2c: E2 08 00 44 1C 80 11 00 00 00 00 00 00 DA [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:27]Read from MH i2c: E2 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 17 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: E2 17 00 44 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 35 [23:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:23:27]wFMCommunicate OK [23:23:27]CreateOFDProtocolMessage done [23:23:27]OFDSenderStorePacket 119262 [23:23:27]StoreOFDPacket docnum=119262 [23:23:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 B7 04 01 C5 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 F0 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D1 01 00 35 04 06 00 23 3C B4 50 D4 0B CB 5C BA C1 E8 43 37 70 [23:23:27]CheckFolder [23:23:27]dirname=/storage/ofd_packets [23:23:27]CheckFolder done [23:23:27]ProducePacketName [23:23:27]name=ofd_packets/00119262 [23:23:27]NVStorageSaveData ofd_packets/00119262 [23:23:27]File name is /storage/ofd_packets/00119262 [23:23:27]Write 298 bytes [23:23:27]NVStorageSaveData done [23:23:27]OFDSenderStorePacket done [23:23:27]KKMCreateOFDPacket done [23:23:27]NVStorageSaveData kkm_last_timestamp [23:23:27]File name is /storage/kkm_last_timestamp [23:23:27]Write 4 bytes [23:23:27]NVStorageSaveData done [23:23:27]ExternCall_PrintAddStr [23:23:27]wPrintStart [23:23:27]Write to MH i2c: 01 00 00 45 1C 61 [23:23:27]Write i2c OK [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: 01 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: 01 07 00 [23:23:27]MH_I2C_Read... [23:23:27]Read from MH i2c: 01 07 00 45 1C 00 00 00 00 00 FF 0F 76 [23:23:27]RasterBufferAndPrint [23:23:27]line Счет N : (1)950188 [23:23:27]line ИНН: 02508201610067 [23:23:27]line Контрольно-Кассовый Чек [23:23:27]line ПРОДАЖА [23:23:27]line ТРК (МРК, ГНК) : 21 [23:23:27]line Товар: 2710194800 [23:23:27]line ДТ-К-5 [23:23:27]line 124.680 * 76.20 [23:23:27]line = 9500.62 [23:23:27]line НДС 12% НСП 1% [23:23:27]line > о реализуемом товаре [23:23:27]line ОКРУГЛЕНИЕ: -0.62 [23:23:27]line ИТОГО: 9500.00 [23:23:27]line Внесено: 9500.00 [23:23:27]line СДАЧА: 0.00 [23:23:27]line НСП 1% : 84.08 [23:23:27]line НДС 12% : 1008.91 [23:23:27]line Наличными: 9500.00 [23:23:27]line Безнал.: 0.00 [23:23:27]line Место: АЗС № 134 "Партнер Нефть" [23:23:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:23:27]line СНО: Общий режим [23:23:27]line Чек 314 30.07.2024 23:23 [23:23:27]line Смена: 435 ФФД: 1.0 [23:23:27]line ЗНМ: 0300000044 [23:23:27]line РНМ: 0000000000092660 [23:23:27]line Версия ККМ: 001 [23:23:27]line ФМ: 0000000000874939 [23:23:27]line ФД: 119262 [23:23:27]line ФПД: 38743630205963 [23:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T232328&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119262&fm=38743630205963&tin=02508201610067®Number=0000000000092660&sum=950000 [23:23:28]OFD Sender: Processing packet 119262 [packets to send 86, broken 85] [23:23:28]ProducePacketName [23:23:28]name=ofd_packets/00119262 [23:23:28]OFD Sender: To server: pG, [23:23:28]CommunicateWithHost lk.salyk.kg:30040 [23:23:28]ConnectInit lk.salyk.kg [23:23:28]written 0, free lines is 4095 [23:23:28]Connected sock=11 [23:23:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 64 B7 04 01 C5 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 F0 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D1 01 00 35 04 06 00 23 3C B4 50 D4 0B CB 5C BA C1 E8 43 37 70 [23:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 CC 2A 47 00 E7 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DE D1 01 00 F4 03 04 00 7A 23 A9 66 B6 04 01 00 00 B0 8C 56 48 51 B9 11 00 [23:23:28]CommunicateWithHost err = 0 [23:23:28]CheckOFDResponse [23:23:28]1017 (14) - 77093643461234 [23:23:28]1041 (16) - 0000000000874939 [23:23:28]1040 (4) - 119262 [23:23:28]1012 (4) - 30.07.2024 17:31 [23:23:28]1206 (1) - 0 [23:23:28]OFD Sender: Remove packet 119262 [23:23:28]ProducePacketName [23:23:28]name=ofd_packets/00119262 [23:23:28]NVStorageDeleteData [23:23:28]Write to MH i2c: 01 00 00 6F 1C 8B [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: 01 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: 01 07 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 DA 0C 78 [23:23:28]RasterBufferAndPrint [23:23:28]line [23:23:28]line [23:23:28]line [23:23:28]line [23:23:28]line [23:23:28]written 0, free lines is 3295 [23:23:28]MH_Cut [23:23:28]Write to MH i2c: D1 01 00 76 1C 01 64 [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: D1 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: D1 01 00 [23:23:28]MH_I2C_Read... [23:23:28]Read from MH i2c: D1 01 00 76 1C 00 63 [23:23:28]Write to MH i2c: 01 00 00 77 1C 93 [23:23:28]Write i2c OK [23:23:28]MH_I2C_Read... [23:23:29]OFD Sender: No OFD packet to send [23:23:29]*** Cut start [23:23:29]*** Partial cut [23:23:29]*** CUTSNS_PIN = 1 [23:23:29]*** CUTSNS_PIN = 0 [23:23:29]*** Brake cut motor [23:23:29]Read from MH i2c: 01 [23:23:30]MH_I2C_Read... [23:23:30]*** Stop cut motor [23:23:30]*** Cut end [23:23:30]Read from MH i2c: 01 07 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: 01 07 00 77 1C 00 00 00 00 00 FF 0F A8 [23:23:30]process_action close_receipt done [23:23:30]requested_data is exist [23:23:30]produce_requested_data [23:23:30]requested_item fm.sn is exist - process it [23:23:30]wFMCommunicate request_size=4 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 11 00 00 [23:23:30]Write to MH i2c: E2 08 00 78 1C 80 11 00 00 00 00 00 00 0E [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 17 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 17 00 78 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 69 [23:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:23:30]wFMCommunicate OK [23:23:30]requested_item fd.num is exist - process it [23:23:30]SAM_PROTO_GetFieldsCounters [23:23:30]wFMCommunicate request_size=4 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 13 00 00 [23:23:30]Write to MH i2c: E2 08 00 79 1C 80 13 00 00 00 00 00 00 11 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 62 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 62 00 79 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DE D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:30]wFMCommunicate OK [23:23:30]SAM_PROTO_GetFieldsCounters done [23:23:30]requested_item shift.num is exist - process it [23:23:30]requested_item shift.opened is exist - process it [23:23:30]req_shift_opened [23:23:30]FM_GetShiftState [23:23:30]SAM_PROTO_GetShiftState [23:23:30]wFMCommunicate request_size=4 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 13 01 00 [23:23:30]Write to MH i2c: E2 08 00 7A 1C 80 13 01 00 00 00 00 00 13 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 0E 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 0E 00 7A 1C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 DE [23:23:30]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:23:30]wFMCommunicate OK [23:23:30]SAM_PROTO_GetShiftState done [23:23:30]FM_GetShiftState done [23:23:30]req_shift_opened done [23:23:30]requested_item shift.open_date is exist - process it [23:23:30]req_shift_open_date [23:23:30]req_shift_open_date done [23:23:30]produce_requested_data done [23:23:30]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119262,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:23:30]process_action_free close_receipt [23:23:30]json_value_free [23:23:30]json_value_free done [23:23:30]process_json_proto returns [23:23:30]Send response to host [23:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119262,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:23:30]free response buf [23:23:30]execute_script done [23:23:30]execute_script returns [23:23:30]free content buf [23:23:30]Sock 9.Close socket [23:23:30]Sock 9.Thread stoped [23:23:30]accept exits with 7 [23:23:30]New connection [23:23:30]New thread 3066695012 created [23:23:30]Thread 3066838372 joined [23:23:30]Waiting for new connection... [23:23:30] Sock 7.Parse request [23:23:30]Sock 7.Check first char [23:23:30]Sock 7.First char is OK [23:23:30]request: POST /json_proto HTTP/1.0 [23:23:30]Method: POST [23:23:30]URL: /json_proto [23:23:30]Method is POST - this is cgi request [23:23:30]url: /json_proto [23:23:30]query_string will be loaded in cgi processing [23:23:30]execute_cgi json_proto POST (null) [23:23:30]execute_cgi path=json_proto method=POST [23:23:30]POST find Content-Length [23:23:30]Host: 172.17.45.7:8080 [23:23:30]Content-Length: 680 [23:23:30]Content-Type: application/json [23:23:30] [23:23:30]POST finish read [23:23:30]Found Content-Length = 680 [23:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 124.680, "sum" : 9500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:30]execute_script... [23:23: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)950187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 124.680, "sum" : 9500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9500.00, "total" : 9500.00, "payments": [ { "type": 0, "sum" : 9500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:30]POST & json_proto [23:23:30]process_json_proto [23:23:30]json parsed OK: [23:23:30]protocol is kg_v1.0 [23:23:30]action value=close_receipt [23:23:30]process_action close_receipt [23:23:30]cmd_close_receipt [23:23:30]MH_GetDate [23:23:30]Write to MH i2c: F0 00 00 7B 1C 86 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: F0 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: F0 09 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: F0 09 00 7B 1C 00 F4 75 A9 66 90 0F 3E 66 4A [23:23:30]GetLastDocTimeStamp 1722381808 [23:23:30]current date 1722381812 [23:23:30]FM_GetShiftState [23:23:30]SAM_PROTO_GetShiftState [23:23:30]wFMCommunicate request_size=4 [23:23:30]MH_SAM_APDU [23:23:30]CAPDU: 80 13 01 00 [23:23:30]Write to MH i2c: E2 08 00 7C 1C 80 13 01 00 00 00 00 00 15 [23:23:30]Write i2c OK [23:23:30]MH_I2C_Read... [23:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:30]Read from MH i2c: E2 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 0E 00 [23:23:30]MH_I2C_Read... [23:23:30]Read from MH i2c: E2 0E 00 7C 1C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E0 [23:23:30]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:23:30]wFMCommunicate OK [23:23:30]SAM_PROTO_GetShiftState done [23:23:30]FM_GetShiftState done [23:23:30]opened in 1722298242 [23:23:30]opened+sec_in_day 1722384642 [23:23:30]quantity*price = 950061 [23:23:30]sum+1 = 950063 [23:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 9500.00 Внесено: 9500.00 СДАЧА: 0.00 НСП 1% : 84.08 НДС 12% : 1008.91 Наличными: 9500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 315 30.07.2024 23:23 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119263 ФПД: 215126011607425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T232332&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119263&fm=215126011607425&tin=02508201610067®Number=0000000000092660&sum=950000 [23:23:31]StoreToDocumentArchive [23:23:31]shift 435 fd 119263 [23:23:31]save to /storage/0435/doc_00119263 [23:23:31]save last doc name /storage/0435/doc_00119263 to /storage/kkm_last_doc_name [23:23:31]save OK [23:23:31]Clear old archive folders... [23:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:23:31]tlvbuf is 016766C0 [23:23:31]SAM_PROTO_ClearQueue [23:23:31]wFMCommunicate request_size=4 [23:23:31]MH_SAM_APDU [23:23:31]CAPDU: 80 09 00 00 [23:23:31]Write to MH i2c: E2 08 00 89 1C 80 09 00 00 00 00 00 00 17 [23:23:31]Write i2c OK [23:23:31]MH_I2C_Read... [23:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:31]Read from MH i2c: E2 [23:23:31]MH_I2C_Read... [23:23:31]Read from MH i2c: E2 03 00 [23:23:31]MH_I2C_Read... [23:23:31]Read from MH i2c: E2 03 00 89 1C 00 90 00 19 [23:23:31]RAPDU: 90 00 [23:23:31]wFMCommunicate OK [23:23:31]SAM_PROTO_ClearQueue done [23:23:31]KKMCreateOFDPacket [23:23:31]OFDProtocolAddRootSTLVToBuf [23:23:31]FM_MakeSignedData [23:23:31]FM_MakeSignedData [23:23:31]SAM_PROTO_SignData [23:23:31]wFMCommunicate request_size=4 [23:23:31]MH_SAM_APDU [23:23:31]CAPDU: 80 0D 01 02 [23:23:31]Write to MH i2c: E2 08 00 8A 1C 80 0D 01 02 00 00 00 00 1F [23:23:31]Write i2c OK [23:23:31]MH_I2C_Read... [23:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:31]Read from MH i2c: E2 [23:23:31]MH_I2C_Read... [23:23:31]Read from MH i2c: E2 03 00 [23:23:31]MH_I2C_Read... [23:23:31]Read from MH i2c: E2 03 00 8A 1C 00 90 00 1A [23:23:31]RAPDU: 90 00 [23:23:31]wFMCommunicate OK [23:23:31]wFMCommunicate request_size=255 [23:23:31]MH_SAM_APDU [23:23:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F4 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D1 01 00 35 04 06 00 C3 A7 ED 80 [23:23:31]Write to MH i2c: E2 02 01 8B 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F4 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D1 01 00 35 04 06 00 C3 A7 ED 80 00 00 99 [23:23:31]Write i2c OK [23:23:31]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 03 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 03 00 8B 1C 00 90 00 1B [23:23:32]RAPDU: 90 00 [23:23:32]wFMCommunicate OK [23:23:32]wFMCommunicate request_size=7 [23:23:32]MH_SAM_APDU [23:23:32]CAPDU: 80 0D 02 02 02 F9 81 [23:23:32]Write to MH i2c: E2 0A 00 8C 1C 80 0D 02 02 02 00 F9 81 00 00 A0 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 03 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 03 00 8C 1C 00 90 00 1C [23:23:32]RAPDU: 90 00 [23:23:32]wFMCommunicate OK [23:23:32]wFMCommunicate request_size=4 [23:23:32]MH_SAM_APDU [23:23:32]CAPDU: 80 0D 03 02 [23:23:32]Write to MH i2c: E2 08 00 8D 1C 80 0D 03 02 00 00 00 00 24 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 0B 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 0B 00 8D 1C 00 6B 8A 3E 18 C2 D9 AE EB 90 00 A4 [23:23:32]RAPDU: 6B 8A 3E 18 C2 D9 AE EB 90 00 [23:23:32]wFMCommunicate OK [23:23:32]SAM_PROTO_SignData done [23:23:32]FM_MakeSignedData done [23:23:32]CreateOFDProtocolMessage [23:23:32]wFMCommunicate request_size=4 [23:23:32]MH_SAM_APDU [23:23:32]CAPDU: 80 11 00 00 [23:23:32]Write to MH i2c: E2 08 00 8E 1C 80 11 00 00 00 00 00 00 24 [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:32]Read from MH i2c: E2 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 17 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: E2 17 00 8E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 7F [23:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:23:32]wFMCommunicate OK [23:23:32]CreateOFDProtocolMessage done [23:23:32]OFDSenderStorePacket 119263 [23:23:32]StoreOFDPacket docnum=119263 [23:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 9E 04 01 47 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F4 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D1 01 00 35 04 06 00 C3 A7 ED 80 F9 81 6B 8A 3E 18 C2 D9 AE EB [23:23:32]CheckFolder [23:23:32]dirname=/storage/ofd_packets [23:23:32]CheckFolder done [23:23:32]ProducePacketName [23:23:32]name=ofd_packets/00119263 [23:23:32]NVStorageSaveData ofd_packets/00119263 [23:23:32]File name is /storage/ofd_packets/00119263 [23:23:32]Write 298 bytes [23:23:32]NVStorageSaveData done [23:23:32]OFDSenderStorePacket done [23:23:32]KKMCreateOFDPacket done [23:23:32]NVStorageSaveData kkm_last_timestamp [23:23:32]File name is /storage/kkm_last_timestamp [23:23:32]Write 4 bytes [23:23:32]NVStorageSaveData done [23:23:32]ExternCall_PrintAddStr [23:23:32]wPrintStart [23:23:32]Write to MH i2c: 01 00 00 8F 1C AB [23:23:32]OFD Sender: Processing packet 119263 [packets to send 86, broken 85] [23:23:32]ProducePacketName [23:23:32]name=ofd_packets/00119263 [23:23:32]OFD Sender: To server: pG, [23:23:32]CommunicateWithHost lk.salyk.kg:30040 [23:23:32]ConnectInit lk.salyk.kg [23:23:32]Write i2c OK [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: 01 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: 01 07 00 [23:23:32]MH_I2C_Read... [23:23:32]Read from MH i2c: 01 07 00 8F 1C 00 00 00 00 00 FF 0F C0 [23:23:33]RasterBufferAndPrint [23:23:33]line Счет N : (1)950187 [23:23:33]line ИНН: 02508201610067 [23:23:33]line Контрольно-Кассовый Чек [23:23:33]line ПРОДАЖА [23:23:33]line ТРК (МРК, ГНК) : 11 [23:23:33]line Товар: 2710194800 [23:23:33]line ДТ-К-5 [23:23:33]line 124.680 * 76.20 [23:23:33]line = 9500.62 [23:23:33]line НДС 12% НСП 1% [23:23:33]line > о реализуемом товаре [23:23:33]line ОКРУГЛЕНИЕ: -0.62 [23:23:33]line ИТОГО: 9500.00 [23:23:33]line Внесено: 9500.00 [23:23:33]line СДАЧА: 0.00 [23:23:33]line НСП 1% : 84.08 [23:23:33]line НДС 12% : 1008.91 [23:23:33]line Наличными: 9500.00 [23:23:33]line Безнал.: 0.00 [23:23:33]line Место: АЗС № 134 "Партнер Нефть" [23:23:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:23:33]line СНО: Общий режим [23:23:33]line Чек 315 30.07.2024 23:23 [23:23:33]line Смена: 435 ФФД: 1.0 [23:23:33]line ЗНМ: 0300000044 [23:23:33]line РНМ: 0000000000092660 [23:23:33]line Версия ККМ: 001 [23:23:33]line ФМ: 0000000000874939 [23:23:33]line ФД: 119263 [23:23:33]line ФПД: 215126011607425 [23:23:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T232332&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119263&fm=215126011607425&tin=02508201610067®Number=0000000000092660&sum=950000 [23:23:33]written 0, free lines is 4095 [23:23:33]Connected sock=10 [23:23:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 81 9E 04 01 47 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 E7 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2E 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 7E 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 8A 01 00 00 00 07 04 06 00 F0 7E 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F4 75 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D1 01 00 35 04 06 00 C3 A7 ED 80 F9 81 6B 8A 3E 18 C2 D9 AE EB [23:23:33]Write to MH i2c: 01 00 00 B9 1C D5 [23:23:33]Write i2c OK [23:23:33]MH_I2C_Read... [23:23:33]Read from MH i2c: 01 [23:23:33]MH_I2C_Read... [23:23:33]Read from MH i2c: 01 07 00 [23:23:33]MH_I2C_Read... [23:23:33]Read from MH i2c: 01 07 00 B9 1C 00 00 00 00 00 DE 0C C6 [23:23:33]RasterBufferAndPrint [23:23:33]line [23:23:33]line [23:23:33]line [23:23:33]line [23:23:33]line [23:23:33]written 0, free lines is 3305 [23:23:33]MH_Cut [23:23:33]Write to MH i2c: D1 01 00 C0 1C 01 AE [23:23:33]Write i2c OK [23:23:33]MH_I2C_Read... [23:23:33]Read from MH i2c: D1 [23:23:33]MH_I2C_Read... [23:23:33]Read from MH i2c: D1 01 00 [23:23:33]MH_I2C_Read... [23:23:33]Read from MH i2c: D1 01 00 C0 1C 00 AD [23:23:33]Write to MH i2c: 01 00 00 C1 1C DD [23:23:33]Write i2c OK [23:23:33]MH_I2C_Read... [23:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E 0C 47 00 7D C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 DF D1 01 00 F4 03 04 00 7F 23 A9 66 B6 04 01 00 00 4F 84 AC 25 8A 94 4D 07 [23:23:33]CommunicateWithHost err = 0 [23:23:33]CheckOFDResponse [23:23:33]1017 (14) - 77093643461234 [23:23:33]1041 (16) - 0000000000874939 [23:23:33]1040 (4) - 119263 [23:23:33]1012 (4) - 30.07.2024 17:31 [23:23:33]1206 (1) - 0 [23:23:33]OFD Sender: Remove packet 119263 [23:23:33]ProducePacketName [23:23:33]name=ofd_packets/00119263 [23:23:33]NVStorageDeleteData [23:23:34]OFD Sender: No OFD packet to send [23:23:34]*** Cut start [23:23:34]*** Partial cut [23:23:34]*** CUTSNS_PIN = 1 [23:23:34]*** CUTSNS_PIN = 0 [23:23:34]*** Brake cut motor [23:23:34]Read from MH i2c: 01 [23:23:34]MH_I2C_Read... [23:23:34]*** Stop cut motor [23:23:34]*** Cut end [23:23:34]Read from MH i2c: 01 07 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: 01 07 00 C1 1C 00 00 00 00 00 FF 0F F2 [23:23:34]process_action close_receipt done [23:23:34]requested_data is exist [23:23:34]produce_requested_data [23:23:34]requested_item fm.sn is exist - process it [23:23:34]wFMCommunicate request_size=4 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 11 00 00 [23:23:34]Write to MH i2c: E2 08 00 C2 1C 80 11 00 00 00 00 00 00 58 [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:34]Read from MH i2c: E2 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 17 00 [23:23:34]MH_I2C_Read... [23:23:34]Read from MH i2c: E2 17 00 C2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 B3 [23:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:23:34]wFMCommunicate OK [23:23:34]requested_item fd.num is exist - process it [23:23:34]SAM_PROTO_GetFieldsCounters [23:23:34]wFMCommunicate request_size=4 [23:23:34]MH_SAM_APDU [23:23:34]CAPDU: 80 13 00 00 [23:23:34]Write to MH i2c: E2 08 00 C3 1C 80 13 00 00 00 00 00 00 5B [23:23:34]Write i2c OK [23:23:34]MH_I2C_Read... [23:23:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:35]Read from MH i2c: E2 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: E2 62 00 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: E2 62 00 C3 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 9B [23:23:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 DF D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:35]wFMCommunicate OK [23:23:35]SAM_PROTO_GetFieldsCounters done [23:23:35]requested_item shift.num is exist - process it [23:23:35]requested_item shift.opened is exist - process it [23:23:35]req_shift_opened [23:23:35]FM_GetShiftState [23:23:35]SAM_PROTO_GetShiftState [23:23:35]wFMCommunicate request_size=4 [23:23:35]MH_SAM_APDU [23:23:35]CAPDU: 80 13 01 00 [23:23:35]Write to MH i2c: E2 08 00 C4 1C 80 13 01 00 00 00 00 00 5D [23:23:35]Write i2c OK [23:23:35]MH_I2C_Read... [23:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:35]Read from MH i2c: E2 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: E2 0E 00 [23:23:35]MH_I2C_Read... [23:23:35]Read from MH i2c: E2 0E 00 C4 1C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 28 [23:23:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:23:35]wFMCommunicate OK [23:23:35]SAM_PROTO_GetShiftState done [23:23:35]FM_GetShiftState done [23:23:35]req_shift_opened done [23:23:35]requested_item shift.open_date is exist - process it [23:23:35]req_shift_open_date [23:23:35]req_shift_open_date done [23:23:35]produce_requested_data done [23:23:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119263,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:23:35]process_action_free close_receipt [23:23:35]json_value_free [23:23:35]json_value_free done [23:23:35]process_json_proto returns [23:23:35]Send response to host [23:23:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119263,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:23:35]free response buf [23:23:35]execute_script done [23:23:35]execute_script returns [23:23:35]free content buf [23:23:35]Sock 7.Close socket [23:23:35]Sock 7.Thread stoped [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:57]accept exits with 9 [23:24:57]New connection [23:24:57]New thread 3066838372 created [23:24:57]Thread 3066695012 joined [23:24:57]Waiting for new connection... [23:24:57] Sock 9.Parse request [23:24:57]Sock 9.Check first char [23:24:57]Sock 9.First char is OK [23:24:57]request: POST /json_proto HTTP/1.0 [23:24:57]Method: POST [23:24:57]URL: /json_proto [23:24:57]Method is POST - this is cgi request [23:24:57]url: /json_proto [23:24:57]query_string will be loaded in cgi processing [23:24:57]execute_cgi json_proto POST (null) [23:24:57]execute_cgi path=json_proto method=POST [23:24:57]POST find Content-Length [23:24:57]Host: 172.17.45.7:8080 [23:24:57]Content-Length: 679 [23:24:57]Content-Type: application/json [23:24:57] [23:24:57]POST finish read [23:24:57]Found Content-Length = 679 [23:24:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:57]execute_script... [23:24: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)950189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:24:57]POST & json_proto [23:24:57]process_json_proto [23:24:57]json parsed OK: [23:24:57]protocol is kg_v1.0 [23:24:57]action value=close_receipt [23:24:57]process_action close_receipt [23:24:57]cmd_close_receipt [23:24:57]MH_GetDate [23:24:57]Write to MH i2c: F0 00 00 C5 1C D0 [23:24:57]Write i2c OK [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: F0 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: F0 09 00 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: F0 09 00 C5 1C 00 4B 76 A9 66 90 0F 3E 66 EC [23:24:57]GetLastDocTimeStamp 1722381812 [23:24:57]current date 1722381899 [23:24:57]FM_GetShiftState [23:24:57]SAM_PROTO_GetShiftState [23:24:57]wFMCommunicate request_size=4 [23:24:57]MH_SAM_APDU [23:24:57]CAPDU: 80 13 01 00 [23:24:57]Write to MH i2c: E2 08 00 C6 1C 80 13 01 00 00 00 00 00 5F [23:24:57]Write i2c OK [23:24:57]MH_I2C_Read... [23:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:24:57]Read from MH i2c: E2 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: E2 0E 00 [23:24:57]MH_I2C_Read... [23:24:57]Read from MH i2c: E2 0E 00 C6 1C 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 2A [23:24:57]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:24:57]wFMCommunicate OK [23:24:57]SAM_PROTO_GetShiftState done [23:24:57]FM_GetShiftState done [23:24:57]opened in 1722298242 [23:24:57]opened+sec_in_day 1722384642 [23:24:57]quantity*price = 300075 [23:24:57]sum+1 = 300077 [23:24:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 316 30.07.2024 23:24 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119264 ФПД: 261126890563890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T232459&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119264&fm=261126890563890&tin=02508201610067®Number=0000000000092660&sum=300000 [23:24:58]StoreToDocumentArchive [23:24:58]shift 435 fd 119264 [23:24:58]save to /storage/0435/doc_00119264 [23:24:58]save last doc name /storage/0435/doc_00119264 to /storage/kkm_last_doc_name [23:24:58]save OK [23:24:58]Clear old archive folders... [23:24:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:24:58]tlvbuf is 015DE740 [23:24:58]SAM_PROTO_ClearQueue [23:24:58]wFMCommunicate request_size=4 [23:24:58]MH_SAM_APDU [23:24:58]CAPDU: 80 09 00 00 [23:24:58]Write to MH i2c: E2 08 00 D3 1C 80 09 00 00 00 00 00 00 61 [23:24:58]Write i2c OK [23:24:58]MH_I2C_Read... [23:24:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:24:58]Read from MH i2c: E2 [23:24:58]MH_I2C_Read... [23:24:58]Read from MH i2c: E2 03 00 [23:24:58]MH_I2C_Read... [23:24:58]Read from MH i2c: E2 03 00 D3 1C 00 90 00 63 [23:24:58]RAPDU: 90 00 [23:24:58]wFMCommunicate OK [23:24:58]SAM_PROTO_ClearQueue done [23:24:58]KKMCreateOFDPacket [23:24:58]OFDProtocolAddRootSTLVToBuf [23:24:58]FM_MakeSignedData [23:24:58]FM_MakeSignedData [23:24:58]SAM_PROTO_SignData [23:24:58]wFMCommunicate request_size=4 [23:24:58]MH_SAM_APDU [23:24:58]CAPDU: 80 0D 01 02 [23:24:58]Write to MH i2c: E2 08 00 D4 1C 80 0D 01 02 00 00 00 00 69 [23:24:58]Write i2c OK [23:24:58]MH_I2C_Read... [23:24:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:24:58]Read from MH i2c: E2 [23:24:58]MH_I2C_Read... [23:24:58]Read from MH i2c: E2 03 00 [23:24:58]MH_I2C_Read... [23:24:58]Read from MH i2c: E2 03 00 D4 1C 00 90 00 64 [23:24:58]RAPDU: 90 00 [23:24:58]wFMCommunicate OK [23:24:58]wFMCommunicate request_size=255 [23:24:58]MH_SAM_APDU [23:24:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4B 76 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D1 01 00 35 04 06 00 ED 7E 57 8D [23:24:58]Write to MH i2c: E2 02 01 D5 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4B 76 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D1 01 00 35 04 06 00 ED 7E 57 8D 00 00 F2 [23:24:58]Write i2c OK [23:24:58]MH_I2C_Read... [23:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:59]Read from MH i2c: E2 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 03 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 03 00 D5 1C 00 90 00 65 [23:24:59]RAPDU: 90 00 [23:24:59]wFMCommunicate OK [23:24:59]wFMCommunicate request_size=7 [23:24:59]MH_SAM_APDU [23:24:59]CAPDU: 80 0D 02 02 02 A9 32 [23:24:59]Write to MH i2c: E2 0A 00 D6 1C 80 0D 02 02 02 00 A9 32 00 00 4B [23:24:59]Write i2c OK [23:24:59]MH_I2C_Read... [23:24:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:24:59]Read from MH i2c: E2 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 03 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 03 00 D6 1C 00 90 00 66 [23:24:59]RAPDU: 90 00 [23:24:59]wFMCommunicate OK [23:24:59]wFMCommunicate request_size=4 [23:24:59]MH_SAM_APDU [23:24:59]CAPDU: 80 0D 03 02 [23:24:59]Write to MH i2c: E2 08 00 D7 1C 80 0D 03 02 00 00 00 00 6E [23:24:59]Write i2c OK [23:24:59]MH_I2C_Read... [23:24:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:24:59]Read from MH i2c: E2 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 0B 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 0B 00 D7 1C 00 8B 2F 20 96 6A 1A 34 88 90 00 1F [23:24:59]RAPDU: 8B 2F 20 96 6A 1A 34 88 90 00 [23:24:59]wFMCommunicate OK [23:24:59]SAM_PROTO_SignData done [23:24:59]FM_MakeSignedData done [23:24:59]CreateOFDProtocolMessage [23:24:59]wFMCommunicate request_size=4 [23:24:59]MH_SAM_APDU [23:24:59]CAPDU: 80 11 00 00 [23:24:59]Write to MH i2c: E2 08 00 D8 1C 80 11 00 00 00 00 00 00 6E [23:24:59]Write i2c OK [23:24:59]MH_I2C_Read... [23:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:24:59]Read from MH i2c: E2 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 17 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: E2 17 00 D8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C9 [23:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:24:59]wFMCommunicate OK [23:24:59]CreateOFDProtocolMessage done [23:24:59]OFDSenderStorePacket 119264 [23:24:59]StoreOFDPacket docnum=119264 [23:24:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 22 04 01 30 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4B 76 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D1 01 00 35 04 06 00 ED 7E 57 8D A9 32 8B 2F 20 96 6A 1A 34 88 [23:24:59]CheckFolder [23:24:59]dirname=/storage/ofd_packets [23:24:59]CheckFolder done [23:24:59]ProducePacketName [23:24:59]name=ofd_packets/00119264 [23:24:59]NVStorageSaveData ofd_packets/00119264 [23:24:59]File name is /storage/ofd_packets/00119264 [23:24:59]Write 298 bytes [23:24:59]NVStorageSaveData done [23:24:59]OFDSenderStorePacket done [23:24:59]KKMCreateOFDPacket done [23:24:59]NVStorageSaveData kkm_last_timestamp [23:24:59]File name is /storage/kkm_last_timestamp [23:24:59]Write 4 bytes [23:24:59]NVStorageSaveData done [23:24:59]ExternCall_PrintAddStr [23:24:59]wPrintStart [23:24:59]Write to MH i2c: 01 00 00 D9 1C F5 [23:24:59]Write i2c OK [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: 01 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: 01 07 00 [23:24:59]MH_I2C_Read... [23:24:59]Read from MH i2c: 01 07 00 D9 1C 00 00 00 00 00 FF 0F 0A [23:24:59]RasterBufferAndPrint [23:24:59]line Счет N : (1)950189 [23:24:59]line ИНН: 02508201610067 [23:24:59]line Контрольно-Кассовый Чек [23:24:59]line ПРОДАЖА [23:24:59]line ТРК (МРК, ГНК) : 21 [23:24:59]line Товар: 2710194800 [23:24:59]line ДТ-К-5 [23:24:59]line 39.380 * 76.20 [23:24:59]line = 3000.76 [23:24:59]line НДС 12% НСП 1% [23:24:59]line > о реализуемом товаре [23:24:59]line ОКРУГЛЕНИЕ: -0.76 [23:24:59]line ИТОГО: 3000.00 [23:24:59]line Внесено: 3000.00 [23:24:59]line СДАЧА: 0.00 [23:24:59]line НСП 1% : 26.55 [23:24:59]line НДС 12% : 318.66 [23:24:59]line Наличными: 3000.00 [23:24:59]line Безнал.: 0.00 [23:24:59]line Место: АЗС № 134 "Партнер Нефть" [23:24:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:24:59]line СНО: Общий режим [23:24:59]line Чек 316 30.07.2024 23:24 [23:24:59]line Смена: 435 ФФД: 1.0 [23:24:59]line ЗНМ: 0300000044 [23:24:59]line РНМ: 0000000000092660 [23:24:59]line Версия ККМ: 001 [23:24:59]line ФМ: 0000000000874939 [23:24:59]line ФД: 119264 [23:24:59]line ФПД: 261126890563890 [23:24:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T232459&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119264&fm=261126890563890&tin=02508201610067®Number=0000000000092660&sum=300000 [23:24:59]OFD Sender: Processing packet 119264 [packets to send 86, broken 85] [23:24:59]ProducePacketName [23:24:59]name=ofd_packets/00119264 [23:24:59]OFD Sender: To server: pG, [23:24:59]CommunicateWithHost lk.salyk.kg:30040 [23:24:59]ConnectInit lk.salyk.kg [23:24:59]written 0, free lines is 4095 [23:24:59]Connected sock=10 [23:24:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 2F 22 04 01 30 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4B 76 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D1 01 00 35 04 06 00 ED 7E 57 8D A9 32 8B 2F 20 96 6A 1A 34 88 [23:24:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 8A 59 47 00 D6 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E0 D1 01 00 F4 03 04 00 D5 23 A9 66 B6 04 01 00 00 E8 95 0F 25 81 DE BC 98 [23:24:59]CommunicateWithHost err = 0 [23:24:59]CheckOFDResponse [23:24:59]1017 (14) - 77093643461234 [23:24:59]1041 (16) - 0000000000874939 [23:24:59]1040 (4) - 119264 [23:24:59]1012 (4) - 30.07.2024 17:33 [23:24:59]1206 (1) - 0 [23:24:59]OFD Sender: Remove packet 119264 [23:24:59]ProducePacketName [23:24:59]name=ofd_packets/00119264 [23:24:59]NVStorageDeleteData [23:25:00]Write to MH i2c: 01 00 00 03 1D 20 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 07 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: 01 07 00 03 1D 00 00 00 00 00 E5 0C 18 [23:25:00]RasterBufferAndPrint [23:25:00]line [23:25:00]line [23:25:00]line [23:25:00]line [23:25:00]line [23:25:00]written 0, free lines is 3306 [23:25:00]MH_Cut [23:25:00]Write to MH i2c: D1 01 00 0A 1D 01 F9 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: D1 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: D1 01 00 [23:25:00]MH_I2C_Read... [23:25:00]Read from MH i2c: D1 01 00 0A 1D 00 F8 [23:25:00]Write to MH i2c: 01 00 00 0B 1D 28 [23:25:00]Write i2c OK [23:25:00]MH_I2C_Read... [23:25:00]OFD Sender: No OFD packet to send [23:25:00]*** Cut start [23:25:00]*** Partial cut [23:25:00]*** CUTSNS_PIN = 1 [23:25:00]*** CUTSNS_PIN = 0 [23:25:01]*** Brake cut motor [23:25:01]Read from MH i2c: 01 [23:25:01]MH_I2C_Read... [23:25:01]*** Stop cut motor [23:25:01]*** Cut end [23:25:01]Read from MH i2c: 01 07 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: 01 07 00 0B 1D 00 00 00 00 00 FF 0F 3D [23:25:01]process_action close_receipt done [23:25:01]requested_data is exist [23:25:01]produce_requested_data [23:25:01]requested_item fm.sn is exist - process it [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 11 00 00 [23:25:01]Write to MH i2c: E2 08 00 0C 1D 80 11 00 00 00 00 00 00 A3 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 17 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 17 00 0C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FE [23:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:25:01]wFMCommunicate OK [23:25:01]requested_item fd.num is exist - process it [23:25:01]SAM_PROTO_GetFieldsCounters [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 13 00 00 [23:25:01]Write to MH i2c: E2 08 00 0D 1D 80 13 00 00 00 00 00 00 A6 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 62 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 62 00 0D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [23:25:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E0 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:25:01]wFMCommunicate OK [23:25:01]SAM_PROTO_GetFieldsCounters done [23:25:01]requested_item shift.num is exist - process it [23:25:01]requested_item shift.opened is exist - process it [23:25:01]req_shift_opened [23:25:01]FM_GetShiftState [23:25:01]SAM_PROTO_GetShiftState [23:25:01]wFMCommunicate request_size=4 [23:25:01]MH_SAM_APDU [23:25:01]CAPDU: 80 13 01 00 [23:25:01]Write to MH i2c: E2 08 00 0E 1D 80 13 01 00 00 00 00 00 A8 [23:25:01]Write i2c OK [23:25:01]MH_I2C_Read... [23:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:01]Read from MH i2c: E2 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 0E 00 [23:25:01]MH_I2C_Read... [23:25:01]Read from MH i2c: E2 0E 00 0E 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 73 [23:25:01]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:25:01]wFMCommunicate OK [23:25:01]SAM_PROTO_GetShiftState done [23:25:01]FM_GetShiftState done [23:25:01]req_shift_opened done [23:25:01]requested_item shift.open_date is exist - process it [23:25:01]req_shift_open_date [23:25:01]req_shift_open_date done [23:25:01]produce_requested_data done [23:25:01]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119264,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:25:01]process_action_free close_receipt [23:25:01]json_value_free [23:25:01]json_value_free done [23:25:01]process_json_proto returns [23:25:01]Send response to host [23:25:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119264,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:25:01]free response buf [23:25:01]execute_script done [23:25:01]execute_script returns [23:25:01]free content buf [23:25:01]Sock 9.Close socket [23:25:01]Sock 9.Thread stoped [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]accept exits with 7 [23:34:30]New connection [23:34:30]New thread 3066695012 created [23:34:30]Thread 3066838372 joined [23:34:30]Waiting for new connection... [23:34:30] Sock 7.Parse request [23:34:30]Sock 7.Check first char [23:34:30]Sock 7.First char is OK [23:34:30]request: POST /json_proto HTTP/1.0 [23:34:30]Method: POST [23:34:30]URL: /json_proto [23:34:30]Method is POST - this is cgi request [23:34:30]url: /json_proto [23:34:30]query_string will be loaded in cgi processing [23:34:30]execute_cgi json_proto POST (null) [23:34:30]execute_cgi path=json_proto method=POST [23:34:30]POST find Content-Length [23:34:30]Host: 172.17.45.7:8080 [23:34:30]Content-Length: 678 [23:34:30]Content-Type: application/json [23:34:30] [23:34:30]POST finish read [23:34:30]Found Content-Length = 678 [23:34:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [23:34:30]execute_script... [23:34: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)950190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [23:34:30]POST & json_proto [23:34:30]process_json_proto [23:34:30]json parsed OK: [23:34:30]protocol is kg_v1.0 [23:34:30]action value=close_receipt [23:34:30]process_action close_receipt [23:34:30]cmd_close_receipt [23:34:30]MH_GetDate [23:34:30]Write to MH i2c: F0 00 00 0F 1D 1B [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: F0 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: F0 09 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: F0 09 00 0F 1D 00 88 78 A9 66 90 0F 3E 66 76 [23:34:30]GetLastDocTimeStamp 1722381899 [23:34:30]current date 1722382472 [23:34:30]FM_GetShiftState [23:34:30]SAM_PROTO_GetShiftState [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 13 01 00 [23:34:30]Write to MH i2c: E2 08 00 10 1D 80 13 01 00 00 00 00 00 AA [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 0E 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 0E 00 10 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 75 [23:34:30]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:34:30]wFMCommunicate OK [23:34:30]SAM_PROTO_GetShiftState done [23:34:30]FM_GetShiftState done [23:34:30]opened in 1722298242 [23:34:30]opened+sec_in_day 1722384642 [23:34:30]quantity*price = 80004 [23:34:30]sum+1 = 80005 [23:34:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 317 30.07.2024 23:34 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119265 ФПД: 86648578325269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T233432&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119265&fm=86648578325269&tin=02508201610067®Number=0000000000092660&sum=80000 [23:34:32]StoreToDocumentArchive [23:34:32]shift 435 fd 119265 [23:34:32]save to /storage/0435/doc_00119265 [23:34:32]save last doc name /storage/0435/doc_00119265 to /storage/kkm_last_doc_name [23:34:32]save OK [23:34:32]Clear old archive folders... [23:34:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:32]tlvbuf is 0163A370 [23:34:32]SAM_PROTO_ClearQueue [23:34:32]wFMCommunicate request_size=4 [23:34:32]MH_SAM_APDU [23:34:32]CAPDU: 80 09 00 00 [23:34:32]Write to MH i2c: E2 08 00 1D 1D 80 09 00 00 00 00 00 00 AC [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 1D 1D 00 90 00 AE [23:34:32]RAPDU: 90 00 [23:34:32]wFMCommunicate OK [23:34:32]SAM_PROTO_ClearQueue done [23:34:32]KKMCreateOFDPacket [23:34:32]OFDProtocolAddRootSTLVToBuf [23:34:32]FM_MakeSignedData [23:34:32]FM_MakeSignedData [23:34:32]SAM_PROTO_SignData [23:34:32]wFMCommunicate request_size=4 [23:34:32]MH_SAM_APDU [23:34:32]CAPDU: 80 0D 01 02 [23:34:32]Write to MH i2c: E2 08 00 1E 1D 80 0D 01 02 00 00 00 00 B4 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 1E 1D 00 90 00 AF [23:34:32]RAPDU: 90 00 [23:34:32]wFMCommunicate OK [23:34:32]wFMCommunicate request_size=255 [23:34:32]MH_SAM_APDU [23:34: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 3D 01 00 00 F4 03 04 00 88 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D1 01 00 35 04 06 00 4E [23:34:32]Write to MH i2c: E2 02 01 1F 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 3D 01 00 00 F4 03 04 00 88 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D1 01 00 35 04 06 00 4E 00 00 E7 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 1F 1D 00 90 00 B0 [23:34:32]RAPDU: 90 00 [23:34:32]wFMCommunicate OK [23:34:32]wFMCommunicate request_size=10 [23:34:32]MH_SAM_APDU [23:34:32]CAPDU: 80 0D 02 02 05 CE 71 BB 3B 15 [23:34:32]Write to MH i2c: E2 0D 00 20 1D 80 0D 02 02 05 00 CE 71 BB 3B 15 00 00 0B [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 03 00 20 1D 00 90 00 B1 [23:34:32]RAPDU: 90 00 [23:34:32]wFMCommunicate OK [23:34:32]wFMCommunicate request_size=4 [23:34:32]MH_SAM_APDU [23:34:32]CAPDU: 80 0D 03 02 [23:34:32]Write to MH i2c: E2 08 00 21 1D 80 0D 03 02 00 00 00 00 B9 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 0B 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 0B 00 21 1D 00 07 7A 0E AB 8E 6E D1 63 90 00 24 [23:34:32]RAPDU: 07 7A 0E AB 8E 6E D1 63 90 00 [23:34:32]wFMCommunicate OK [23:34:32]SAM_PROTO_SignData done [23:34:32]FM_MakeSignedData done [23:34:32]CreateOFDProtocolMessage [23:34:32]wFMCommunicate request_size=4 [23:34:32]MH_SAM_APDU [23:34:32]CAPDU: 80 11 00 00 [23:34:32]Write to MH i2c: E2 08 00 22 1D 80 11 00 00 00 00 00 00 B9 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:32]Read from MH i2c: E2 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 17 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: E2 17 00 22 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [23:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:34:32]wFMCommunicate OK [23:34:32]CreateOFDProtocolMessage done [23:34:32]OFDSenderStorePacket 119265 [23:34:32]StoreOFDPacket docnum=119265 [23:34:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6B 50 07 01 1C 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 3D 01 00 00 F4 03 04 00 88 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D1 01 00 35 04 06 00 4E CE 71 BB 3B 15 07 7A 0E AB 8E 6E D1 63 [23:34:32]CheckFolder [23:34:32]dirname=/storage/ofd_packets [23:34:32]CheckFolder done [23:34:32]ProducePacketName [23:34:32]name=ofd_packets/00119265 [23:34:32]NVStorageSaveData ofd_packets/00119265 [23:34:32]File name is /storage/ofd_packets/00119265 [23:34:32]Write 301 bytes [23:34:32]NVStorageSaveData done [23:34:32]OFDSenderStorePacket done [23:34:32]KKMCreateOFDPacket done [23:34:32]NVStorageSaveData kkm_last_timestamp [23:34:32]File name is /storage/kkm_last_timestamp [23:34:32]Write 4 bytes [23:34:32]NVStorageSaveData done [23:34:32]ExternCall_PrintAddStr [23:34:32]wPrintStart [23:34:32]Write to MH i2c: 01 00 00 23 1D 40 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: 01 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: 01 07 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: 01 07 00 23 1D 00 00 00 00 00 FF 0F 55 [23:34:32]RasterBufferAndPrint [23:34:32]line Счет N : (1)950190 [23:34:32]line ИНН: 02508201610067 [23:34:32]line Контрольно-Кассовый Чек [23:34:32]line ПРОДАЖА [23:34:32]line ТРК (МРК, ГНК) : 41 [23:34:32]line Товар: 2710124130 [23:34:32]line Аи-92-К-4 [23:34:32]line 11.800 * 67.80 [23:34:32]line = 800.04 [23:34:32]line НДС 12% НСП 1% [23:34:32]line > о реализуемом товаре [23:34:32]line ОКРУГЛЕНИЕ: -0.04 [23:34:32]line ИТОГО: 800.00 [23:34:32]line Внесено: 800.00 [23:34:32]line СДАЧА: 0.00 [23:34:32]line НСП 1% : 7.08 [23:34:32]line НДС 12% : 84.96 [23:34:32]line Наличными: 800.00 [23:34:32]line Безнал.: 0.00 [23:34:32]line Место: АЗС № 134 "Партнер Нефть" [23:34:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:34:32]line СНО: Общий режим [23:34:32]line Чек 317 30.07.2024 23:34 [23:34:32]line Смена: 435 ФФД: 1.0 [23:34:32]line ЗНМ: 0300000044 [23:34:32]line РНМ: 0000000000092660 [23:34:32]line Версия ККМ: 001 [23:34:32]line ФМ: 0000000000874939 [23:34:32]line ФД: 119265 [23:34:32]line ФПД: 86648578325269 [23:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T233432&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119265&fm=86648578325269&tin=02508201610067®Number=0000000000092660&sum=80000 [23:34:32]OFD Sender: Processing packet 119265 [packets to send 86, broken 85] [23:34:32]ProducePacketName [23:34:32]name=ofd_packets/00119265 [23:34:32]OFD Sender: To server: pG, [23:34:32]CommunicateWithHost lk.salyk.kg:30040 [23:34:32]ConnectInit lk.salyk.kg [23:34:32]written 0, free lines is 4095 [23:34:33]Connected sock=10 [23:34:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6B 50 07 01 1C 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 3D 01 00 00 F4 03 04 00 88 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D1 01 00 35 04 06 00 4E CE 71 BB 3B 15 07 7A 0E AB 8E 6E D1 63 [23:34:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 98 7E 47 00 53 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E1 D1 01 00 F4 03 04 00 13 26 A9 66 B6 04 01 00 00 1D A3 48 7E 6D 1E 8A 85 [23:34:33]CommunicateWithHost err = 0 [23:34:33]CheckOFDResponse [23:34:33]1017 (14) - 77093643461234 [23:34:33]1041 (16) - 0000000000874939 [23:34:33]1040 (4) - 119265 [23:34:33]1012 (4) - 30.07.2024 17:42 [23:34:33]1206 (1) - 0 [23:34:33]OFD Sender: Remove packet 119265 [23:34:33]ProducePacketName [23:34:33]name=ofd_packets/00119265 [23:34:33]NVStorageDeleteData [23:34:33]Write to MH i2c: 01 00 00 4D 1D 6A [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: 01 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: 01 07 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: 01 07 00 4D 1D 00 00 00 00 00 E5 0C 62 [23:34:33]RasterBufferAndPrint [23:34:33]line [23:34:33]line [23:34:33]line [23:34:33]line [23:34:33]line [23:34:33]written 0, free lines is 3307 [23:34:33]MH_Cut [23:34:33]Write to MH i2c: D1 01 00 54 1D 01 43 [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: D1 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: D1 01 00 [23:34:33]MH_I2C_Read... [23:34:33]Read from MH i2c: D1 01 00 54 1D 00 42 [23:34:33]Write to MH i2c: 01 00 00 55 1D 72 [23:34:33]Write i2c OK [23:34:33]MH_I2C_Read... [23:34:33]OFD Sender: No OFD packet to send [23:34:34]*** Cut start [23:34:34]*** Partial cut [23:34:34]*** CUTSNS_PIN = 1 [23:34:34]*** CUTSNS_PIN = 0 [23:34:34]*** Brake cut motor [23:34:34]Read from MH i2c: 01 [23:34:34]MH_I2C_Read... [23:34:34]*** Stop cut motor [23:34:34]*** Cut end [23:34:34]Read from MH i2c: 01 07 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: 01 07 00 55 1D 00 00 00 00 00 FF 0F 87 [23:34:34]process_action close_receipt done [23:34:34]requested_data is exist [23:34:34]produce_requested_data [23:34:34]requested_item fm.sn is exist - process it [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 11 00 00 [23:34:34]Write to MH i2c: E2 08 00 56 1D 80 11 00 00 00 00 00 00 ED [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 17 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 17 00 56 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 48 [23:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:34:34]wFMCommunicate OK [23:34:34]requested_item fd.num is exist - process it [23:34:34]SAM_PROTO_GetFieldsCounters [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 13 00 00 [23:34:34]Write to MH i2c: E2 08 00 57 1D 80 13 00 00 00 00 00 00 F0 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 62 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 62 00 57 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [23:34:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E1 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:34]wFMCommunicate OK [23:34:34]SAM_PROTO_GetFieldsCounters done [23:34:34]requested_item shift.num is exist - process it [23:34:34]requested_item shift.opened is exist - process it [23:34:34]req_shift_opened [23:34:34]FM_GetShiftState [23:34:34]SAM_PROTO_GetShiftState [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 13 01 00 [23:34:34]Write to MH i2c: E2 08 00 58 1D 80 13 01 00 00 00 00 00 F2 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:35]Read from MH i2c: E2 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 0E 00 [23:34:35]MH_I2C_Read... [23:34:35]Read from MH i2c: E2 0E 00 58 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BD [23:34:35]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:34:35]wFMCommunicate OK [23:34:35]SAM_PROTO_GetShiftState done [23:34:35]FM_GetShiftState done [23:34:35]req_shift_opened done [23:34:35]requested_item shift.open_date is exist - process it [23:34:35]req_shift_open_date [23:34:35]req_shift_open_date done [23:34:35]produce_requested_data done [23:34:35]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119265,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:34:35]process_action_free close_receipt [23:34:35]json_value_free [23:34:35]json_value_free done [23:34:35]process_json_proto returns [23:34:35]Send response to host [23:34:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119265,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:34:35]free response buf [23:34:35]execute_script done [23:34:35]execute_script returns [23:34:35]free content buf [23:34:35]Sock 7.Close socket [23:34:35]Sock 7.Thread stoped [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]accept exits with 9 [23:35:03]New connection [23:35:03]New thread 3066838372 created [23:35:03]Thread 3066695012 joined [23:35:03]Waiting for new connection... [23:35:03] Sock 9.Parse request [23:35:03]Sock 9.Check first char [23:35:03]Sock 9.First char is OK [23:35:03]request: POST /json_proto HTTP/1.0 [23:35:03]Method: POST [23:35:03]URL: /json_proto [23:35:03]Method is POST - this is cgi request [23:35:03]url: /json_proto [23:35:03]query_string will be loaded in cgi processing [23:35:03]execute_cgi json_proto POST (null) [23:35:03]execute_cgi path=json_proto method=POST [23:35:03]POST find Content-Length [23:35:03]Host: 172.17.45.7:8080 [23:35:03]Content-Length: 677 [23:35:03]Content-Type: application/json [23:35:03] [23:35:03]POST finish read [23:35:03]Found Content-Length = 677 [23:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:35:03]execute_script... [23:35: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)950191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:35:03]POST & json_proto [23:35:03]process_json_proto [23:35:03]json parsed OK: [23:35:03]protocol is kg_v1.0 [23:35:03]action value=close_receipt [23:35:03]process_action close_receipt [23:35:03]cmd_close_receipt [23:35:03]MH_GetDate [23:35:03]Write to MH i2c: F0 00 00 59 1D 65 [23:35:03]Write i2c OK [23:35:03]MH_I2C_Read... [23:35:03]Read from MH i2c: F0 [23:35:03]MH_I2C_Read... [23:35:03]Read from MH i2c: F0 09 00 [23:35:03]MH_I2C_Read... [23:35:03]Read from MH i2c: F0 09 00 59 1D 00 A9 78 A9 66 90 0F 3E 66 E1 [23:35:03]GetLastDocTimeStamp 1722382472 [23:35:03]current date 1722382505 [23:35:03]FM_GetShiftState [23:35:03]SAM_PROTO_GetShiftState [23:35:03]wFMCommunicate request_size=4 [23:35:03]MH_SAM_APDU [23:35:03]CAPDU: 80 13 01 00 [23:35:03]Write to MH i2c: E2 08 00 5A 1D 80 13 01 00 00 00 00 00 F4 [23:35:03]Write i2c OK [23:35:03]MH_I2C_Read... [23:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:03]Read from MH i2c: E2 [23:35:03]MH_I2C_Read... [23:35:03]Read from MH i2c: E2 0E 00 [23:35:03]MH_I2C_Read... [23:35:03]Read from MH i2c: E2 0E 00 5A 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 BF [23:35:03]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:35:03]wFMCommunicate OK [23:35:03]SAM_PROTO_GetShiftState done [23:35:03]FM_GetShiftState done [23:35:03]opened in 1722298242 [23:35:03]opened+sec_in_day 1722384642 [23:35:03]quantity*price = 40002 [23:35:03]sum+1 = 40003 [23:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 318 30.07.2024 23:35 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119266 ФПД: 131560149560587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T233505&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119266&fm=131560149560587&tin=02508201610067®Number=0000000000092660&sum=40000 [23:35:04]StoreToDocumentArchive [23:35:04]shift 435 fd 119266 [23:35:04]save to /storage/0435/doc_00119266 [23:35:04]save last doc name /storage/0435/doc_00119266 to /storage/kkm_last_doc_name [23:35:04]save OK [23:35:04]Clear old archive folders... [23:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:04]tlvbuf is B6F39060 [23:35:04]SAM_PROTO_ClearQueue [23:35:04]wFMCommunicate request_size=4 [23:35:04]MH_SAM_APDU [23:35:04]CAPDU: 80 09 00 00 [23:35:04]Write to MH i2c: E2 08 00 67 1D 80 09 00 00 00 00 00 00 F6 [23:35:04]Write i2c OK [23:35:04]MH_I2C_Read... [23:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:04]Read from MH i2c: E2 [23:35:04]MH_I2C_Read... [23:35:04]Read from MH i2c: E2 03 00 [23:35:04]MH_I2C_Read... [23:35:04]Read from MH i2c: E2 03 00 67 1D 00 90 00 F8 [23:35:04]RAPDU: 90 00 [23:35:04]wFMCommunicate OK [23:35:04]SAM_PROTO_ClearQueue done [23:35:04]KKMCreateOFDPacket [23:35:04]OFDProtocolAddRootSTLVToBuf [23:35:04]FM_MakeSignedData [23:35:04]FM_MakeSignedData [23:35:04]SAM_PROTO_SignData [23:35:04]wFMCommunicate request_size=4 [23:35:04]MH_SAM_APDU [23:35:04]CAPDU: 80 0D 01 02 [23:35:04]Write to MH i2c: E2 08 00 68 1D 80 0D 01 02 00 00 00 00 FE [23:35:04]Write i2c OK [23:35:04]MH_I2C_Read... [23:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:04]Read from MH i2c: E2 [23:35:04]MH_I2C_Read... [23:35:04]Read from MH i2c: E2 03 00 [23:35:04]MH_I2C_Read... [23:35:04]Read from MH i2c: E2 03 00 68 1D 00 90 00 F9 [23:35:04]RAPDU: 90 00 [23:35:04]wFMCommunicate OK [23:35:04]wFMCommunicate request_size=255 [23:35:04]MH_SAM_APDU [23:35: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3E 01 00 00 F4 03 04 00 A9 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D1 01 00 35 04 06 00 77 [23:35:04]Write to MH i2c: E2 02 01 69 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3E 01 00 00 F4 03 04 00 A9 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D1 01 00 35 04 06 00 77 00 00 B5 [23:35:04]Write i2c OK [23:35:04]MH_I2C_Read... [23:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:05]Read from MH i2c: E2 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 03 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 03 00 69 1D 00 90 00 FA [23:35:05]RAPDU: 90 00 [23:35:05]wFMCommunicate OK [23:35:05]wFMCommunicate request_size=10 [23:35:05]MH_SAM_APDU [23:35:05]CAPDU: 80 0D 02 02 05 A7 3B FB 2D 0B [23:35:05]Write to MH i2c: E2 0D 00 6A 1D 80 0D 02 02 05 00 A7 3B FB 2D 0B 00 00 20 [23:35:05]Write i2c OK [23:35:05]MH_I2C_Read... [23:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:05]Read from MH i2c: E2 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 03 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 03 00 6A 1D 00 90 00 FB [23:35:05]RAPDU: 90 00 [23:35:05]wFMCommunicate OK [23:35:05]wFMCommunicate request_size=4 [23:35:05]MH_SAM_APDU [23:35:05]CAPDU: 80 0D 03 02 [23:35:05]Write to MH i2c: E2 08 00 6B 1D 80 0D 03 02 00 00 00 00 03 [23:35:05]Write i2c OK [23:35:05]MH_I2C_Read... [23:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:05]Read from MH i2c: E2 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 0B 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 0B 00 6B 1D 00 B0 0E 8C 9F D7 80 0C 8D 90 00 DD [23:35:05]RAPDU: B0 0E 8C 9F D7 80 0C 8D 90 00 [23:35:05]wFMCommunicate OK [23:35:05]SAM_PROTO_SignData done [23:35:05]FM_MakeSignedData done [23:35:05]CreateOFDProtocolMessage [23:35:05]wFMCommunicate request_size=4 [23:35:05]MH_SAM_APDU [23:35:05]CAPDU: 80 11 00 00 [23:35:05]Write to MH i2c: E2 08 00 6C 1D 80 11 00 00 00 00 00 00 03 [23:35:05]Write i2c OK [23:35:05]MH_I2C_Read... [23:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:05]Read from MH i2c: E2 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 17 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: E2 17 00 6C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 5E [23:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:35:05]wFMCommunicate OK [23:35:05]CreateOFDProtocolMessage done [23:35:05]OFDSenderStorePacket 119266 [23:35:05]StoreOFDPacket docnum=119266 [23:35:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6A 49 07 01 09 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3E 01 00 00 F4 03 04 00 A9 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D1 01 00 35 04 06 00 77 A7 3B FB 2D 0B B0 0E 8C 9F D7 80 0C 8D [23:35:05]CheckFolder [23:35:05]dirname=/storage/ofd_packets [23:35:05]CheckFolder done [23:35:05]ProducePacketName [23:35:05]name=ofd_packets/00119266 [23:35:05]NVStorageSaveData ofd_packets/00119266 [23:35:05]File name is /storage/ofd_packets/00119266 [23:35:05]Write 301 bytes [23:35:05]NVStorageSaveData done [23:35:05]OFDSenderStorePacket done [23:35:05]KKMCreateOFDPacket done [23:35:05]NVStorageSaveData kkm_last_timestamp [23:35:05]File name is /storage/kkm_last_timestamp [23:35:05]Write 4 bytes [23:35:05]OFD Sender: Processing packet 119266 [packets to send 86, broken 85] [23:35:05]ProducePacketName [23:35:05]name=ofd_packets/00119266 [23:35:05]OFD Sender: To server: pG, [23:35:05]CommunicateWithHost lk.salyk.kg:30040 [23:35:05]ConnectInit lk.salyk.kg [23:35:05]NVStorageSaveData done [23:35:05]ExternCall_PrintAddStr [23:35:05]wPrintStart [23:35:05]Write to MH i2c: 01 00 00 6D 1D 8A [23:35:05]Write i2c OK [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: 01 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: 01 07 00 [23:35:05]MH_I2C_Read... [23:35:05]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [23:35:05]RasterBufferAndPrint [23:35:05]line Счет N : (1)950191 [23:35:05]line ИНН: 02508201610067 [23:35:05]line Контрольно-Кассовый Чек [23:35:05]line ПРОДАЖА [23:35:05]line ТРК (МРК, ГНК) : 61 [23:35:05]line Товар: 2710124130 [23:35:05]line Аи-92-К-4 [23:35:05]line 5.900 * 67.80 [23:35:05]line = 400.02 [23:35:05]line НДС 12% НСП 1% [23:35:05]line > о реализуемом товаре [23:35:05]line ОКРУГЛЕНИЕ: -0.02 [23:35:05]line ИТОГО: 400.00 [23:35:05]line Внесено: 400.00 [23:35:05]line СДАЧА: 0.00 [23:35:05]line НСП 1% : 3.54 [23:35:05]line НДС 12% : 42.48 [23:35:05]line Наличными: 400.00 [23:35:05]line Безнал.: 0.00 [23:35:05]line Место: АЗС № 134 "Партнер Нефть" [23:35:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:35:05]line СНО: Общий режим [23:35:05]line Чек 318 30.07.2024 23:35 [23:35:05]line Смена: 435 ФФД: 1.0 [23:35:05]line ЗНМ: 0300000044 [23:35:05]line РНМ: 0000000000092660 [23:35:05]line Версия ККМ: 001 [23:35:05]line ФМ: 0000000000874939 [23:35:05]line ФД: 119266 [23:35:05]line ФПД: 131560149560587 [23:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T233505&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119266&fm=131560149560587&tin=02508201610067®Number=0000000000092660&sum=40000 [23:35:05]Connected sock=10 [23:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 6A 49 07 01 09 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 3E 01 00 00 F4 03 04 00 A9 78 A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D1 01 00 35 04 06 00 77 A7 3B FB 2D 0B B0 0E 8C 9F D7 80 0C 8D [23:35:05]written 0, free lines is 4095 [23:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 75 2E 47 00 E4 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E2 D1 01 00 F4 03 04 00 33 26 A9 66 B6 04 01 00 00 72 89 9D 76 D1 F9 BC 87 [23:35:05]CommunicateWithHost err = 0 [23:35:05]CheckOFDResponse [23:35:05]1017 (14) - 77093643461234 [23:35:05]1041 (16) - 0000000000874939 [23:35:05]1040 (4) - 119266 [23:35:05]1012 (4) - 30.07.2024 17:43 [23:35:05]1206 (1) - 0 [23:35:05]OFD Sender: Remove packet 119266 [23:35:05]ProducePacketName [23:35:05]name=ofd_packets/00119266 [23:35:05]NVStorageDeleteData [23:35:06]Write to MH i2c: 01 00 00 97 1D B4 [23:35:06]Write i2c OK [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: 01 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: 01 07 00 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: 01 07 00 97 1D 00 00 00 00 00 D9 0C A0 [23:35:06]RasterBufferAndPrint [23:35:06]line [23:35:06]line [23:35:06]line [23:35:06]line [23:35:06]line [23:35:06]written 0, free lines is 3296 [23:35:06]MH_Cut [23:35:06]Write to MH i2c: D1 01 00 9E 1D 01 8D [23:35:06]Write i2c OK [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: D1 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: D1 01 00 [23:35:06]MH_I2C_Read... [23:35:06]Read from MH i2c: D1 01 00 9E 1D 00 8C [23:35:06]Write to MH i2c: 01 00 00 9F 1D BC [23:35:06]Write i2c OK [23:35:06]MH_I2C_Read... [23:35:06]OFD Sender: No OFD packet to send [23:35:06]*** Cut start [23:35:06]*** Partial cut [23:35:06]*** CUTSNS_PIN = 1 [23:35:06]*** CUTSNS_PIN = 0 [23:35:07]*** Brake cut motor [23:35:07]Read from MH i2c: 01 [23:35:07]MH_I2C_Read... [23:35:07]*** Stop cut motor [23:35:07]*** Cut end [23:35:07]Read from MH i2c: 01 07 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: 01 07 00 9F 1D 00 00 00 00 00 FF 0F D1 [23:35:07]process_action close_receipt done [23:35:07]requested_data is exist [23:35:07]produce_requested_data [23:35:07]requested_item fm.sn is exist - process it [23:35:07]wFMCommunicate request_size=4 [23:35:07]MH_SAM_APDU [23:35:07]CAPDU: 80 11 00 00 [23:35:07]Write to MH i2c: E2 08 00 A0 1D 80 11 00 00 00 00 00 00 37 [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 17 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 17 00 A0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 92 [23:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:35:07]wFMCommunicate OK [23:35:07]requested_item fd.num is exist - process it [23:35:07]SAM_PROTO_GetFieldsCounters [23:35:07]wFMCommunicate request_size=4 [23:35:07]MH_SAM_APDU [23:35:07]CAPDU: 80 13 00 00 [23:35:07]Write to MH i2c: E2 08 00 A1 1D 80 13 00 00 00 00 00 00 3A [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 62 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 62 00 A1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [23:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E2 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:07]wFMCommunicate OK [23:35:07]SAM_PROTO_GetFieldsCounters done [23:35:07]requested_item shift.num is exist - process it [23:35:07]requested_item shift.opened is exist - process it [23:35:07]req_shift_opened [23:35:07]FM_GetShiftState [23:35:07]SAM_PROTO_GetShiftState [23:35:07]wFMCommunicate request_size=4 [23:35:07]MH_SAM_APDU [23:35:07]CAPDU: 80 13 01 00 [23:35:07]Write to MH i2c: E2 08 00 A2 1D 80 13 01 00 00 00 00 00 3C [23:35:07]Write i2c OK [23:35:07]MH_I2C_Read... [23:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:07]Read from MH i2c: E2 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 0E 00 [23:35:07]MH_I2C_Read... [23:35:07]Read from MH i2c: E2 0E 00 A2 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 07 [23:35:07]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:35:07]wFMCommunicate OK [23:35:07]SAM_PROTO_GetShiftState done [23:35:07]FM_GetShiftState done [23:35:07]req_shift_opened done [23:35:07]requested_item shift.open_date is exist - process it [23:35:07]req_shift_open_date [23:35:07]req_shift_open_date done [23:35:07]produce_requested_data done [23:35:07]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119266,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:35:07]process_action_free close_receipt [23:35:07]json_value_free [23:35:07]json_value_free done [23:35:07]process_json_proto returns [23:35:07]Send response to host [23:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119266,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:35:07]free response buf [23:35:07]execute_script done [23:35:07]execute_script returns [23:35:07]free content buf [23:35:07]Sock 9.Close socket [23:35:07]Sock 9.Thread stoped [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:34]accept exits with 7 [23:47:34]New connection [23:47:34]New thread 3066695012 created [23:47:34]Thread 3066838372 joined [23:47:34]Waiting for new connection... [23:47:34] Sock 7.Parse request [23:47:34]Sock 7.Check first char [23:47:34]Sock 7.First char is OK [23:47:34]request: POST /json_proto HTTP/1.0 [23:47:34]Method: POST [23:47:34]URL: /json_proto [23:47:34]Method is POST - this is cgi request [23:47:34]url: /json_proto [23:47:34]query_string will be loaded in cgi processing [23:47:34]execute_cgi json_proto POST (null) [23:47:34]execute_cgi path=json_proto method=POST [23:47:34]POST find Content-Length [23:47:34]Host: 172.17.45.7:8080 [23:47:34]Content-Length: 677 [23:47:34]Content-Type: application/json [23:47:34] [23:47:34]POST finish read [23:47:34]Found Content-Length = 677 [23:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [23:47:34]execute_script... [23:47:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [23:47:34]POST & json_proto [23:47:34]process_json_proto [23:47:34]json parsed OK: [23:47:34]protocol is kg_v1.0 [23:47:34]action value=close_receipt [23:47:34]process_action close_receipt [23:47:34]cmd_close_receipt [23:47:34]MH_GetDate [23:47:34]Write to MH i2c: F0 00 00 A3 1D AF [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: F0 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: F0 09 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: F0 09 00 A3 1D 00 98 7B A9 66 90 0F 3E 66 1D [23:47:34]GetLastDocTimeStamp 1722382505 [23:47:34]current date 1722383256 [23:47:34]FM_GetShiftState [23:47:34]SAM_PROTO_GetShiftState [23:47:34]wFMCommunicate request_size=4 [23:47:34]MH_SAM_APDU [23:47:34]CAPDU: 80 13 01 00 [23:47:34]Write to MH i2c: E2 08 00 A4 1D 80 13 01 00 00 00 00 00 3E [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:34]Read from MH i2c: E2 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 0E 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: E2 0E 00 A4 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 09 [23:47:34]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:47:34]wFMCommunicate OK [23:47:34]SAM_PROTO_GetShiftState done [23:47:34]FM_GetShiftState done [23:47:34]opened in 1722298242 [23:47:34]opened+sec_in_day 1722384642 [23:47:34]quantity*price = 30035 [23:47:34]sum+1 = 30036 [23:47:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 319 30.07.2024 23:47 Смена: 435 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119267 ФПД: 8018498985568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T234736&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119267&fm=8018498985568&tin=02508201610067®Number=0000000000092660&sum=30000 [23:47:36]StoreToDocumentArchive [23:47:36]shift 435 fd 119267 [23:47:36]save to /storage/0435/doc_00119267 [23:47:36]save last doc name /storage/0435/doc_00119267 to /storage/kkm_last_doc_name [23:47:36]save OK [23:47:36]Clear old archive folders... [23:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:47:36]tlvbuf is 0161FE20 [23:47:36]SAM_PROTO_ClearQueue [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 09 00 00 [23:47:36]Write to MH i2c: E2 08 00 B1 1D 80 09 00 00 00 00 00 00 40 [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 B1 1D 00 90 00 42 [23:47:36]RAPDU: 90 00 [23:47:36]wFMCommunicate OK [23:47:36]SAM_PROTO_ClearQueue done [23:47:36]KKMCreateOFDPacket [23:47:36]OFDProtocolAddRootSTLVToBuf [23:47:36]FM_MakeSignedData [23:47:36]FM_MakeSignedData [23:47:36]SAM_PROTO_SignData [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 0D 01 02 [23:47:36]Write to MH i2c: E2 08 00 B2 1D 80 0D 01 02 00 00 00 00 48 [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 B2 1D 00 90 00 43 [23:47:36]RAPDU: 90 00 [23:47:36]wFMCommunicate OK [23:47:36]wFMCommunicate request_size=255 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 3F 01 00 00 F4 03 04 00 98 7B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D1 01 00 35 04 06 00 07 [23:47:36]Write to MH i2c: E2 02 01 B3 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 3F 01 00 00 F4 03 04 00 98 7B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D1 01 00 35 04 06 00 07 00 00 BD [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 B3 1D 00 90 00 44 [23:47:36]RAPDU: 90 00 [23:47:36]wFMCommunicate OK [23:47:36]wFMCommunicate request_size=10 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 0D 02 02 05 4A F3 C8 9E 60 [23:47:36]Write to MH i2c: E2 0D 00 B4 1D 80 0D 02 02 05 00 4A F3 C8 9E 60 00 00 58 [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 03 00 B4 1D 00 90 00 45 [23:47:36]RAPDU: 90 00 [23:47:36]wFMCommunicate OK [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 0D 03 02 [23:47:36]Write to MH i2c: E2 08 00 B5 1D 80 0D 03 02 00 00 00 00 4D [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 0B 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 0B 00 B5 1D 00 7A 54 B1 C6 AB 4C 00 78 90 00 02 [23:47:36]RAPDU: 7A 54 B1 C6 AB 4C 00 78 90 00 [23:47:36]wFMCommunicate OK [23:47:36]SAM_PROTO_SignData done [23:47:36]FM_MakeSignedData done [23:47:36]CreateOFDProtocolMessage [23:47:36]wFMCommunicate request_size=4 [23:47:36]MH_SAM_APDU [23:47:36]CAPDU: 80 11 00 00 [23:47:36]Write to MH i2c: E2 08 00 B6 1D 80 11 00 00 00 00 00 00 4D [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:36]Read from MH i2c: E2 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 17 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: E2 17 00 B6 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 A8 [23:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:47:36]wFMCommunicate OK [23:47:36]CreateOFDProtocolMessage done [23:47:36]OFDSenderStorePacket 119267 [23:47:36]StoreOFDPacket docnum=119267 [23:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 A6 07 01 0A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 3F 01 00 00 F4 03 04 00 98 7B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D1 01 00 35 04 06 00 07 4A F3 C8 9E 60 7A 54 B1 C6 AB 4C 00 78 [23:47:36]CheckFolder [23:47:36]dirname=/storage/ofd_packets [23:47:36]CheckFolder done [23:47:36]ProducePacketName [23:47:36]name=ofd_packets/00119267 [23:47:36]NVStorageSaveData ofd_packets/00119267 [23:47:36]File name is /storage/ofd_packets/00119267 [23:47:36]Write 301 bytes [23:47:36]NVStorageSaveData done [23:47:36]OFDSenderStorePacket done [23:47:36]KKMCreateOFDPacket done [23:47:36]NVStorageSaveData kkm_last_timestamp [23:47:36]File name is /storage/kkm_last_timestamp [23:47:36]Write 4 bytes [23:47:36]NVStorageSaveData done [23:47:36]ExternCall_PrintAddStr [23:47:36]wPrintStart [23:47:36]Write to MH i2c: 01 00 00 B7 1D D4 [23:47:36]Write i2c OK [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: 01 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: 01 07 00 [23:47:36]MH_I2C_Read... [23:47:36]Read from MH i2c: 01 07 00 B7 1D 00 00 00 00 00 FF 0F E9 [23:47:36]RasterBufferAndPrint [23:47:36]line Счет N : (1)950192 [23:47:36]line ИНН: 02508201610067 [23:47:36]line Контрольно-Кассовый Чек [23:47:36]line ПРОДАЖА [23:47:36]line ТРК (МРК, ГНК) : 41 [23:47:36]line Товар: 2710124130 [23:47:36]line Аи-92-К-4 [23:47:36]line 4.430 * 67.80 [23:47:36]line = 300.35 [23:47:36]line НДС 12% НСП 1% [23:47:36]line > о реализуемом товаре [23:47:36]line ОКРУГЛЕНИЕ: -0.35 [23:47:36]line ИТОГО: 300.00 [23:47:36]line Внесено: 300.00 [23:47:36]line СДАЧА: 0.00 [23:47:36]line НСП 1% : 2.66 [23:47:36]line НДС 12% : 31.90 [23:47:36]line Наличными: 300.00 [23:47:36]line Безнал.: 0.00 [23:47:36]line Место: АЗС № 134 "Партнер Нефть" [23:47:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:47:36]line СНО: Общий режим [23:47:36]line Чек 319 30.07.2024 23:47 [23:47:36]line Смена: 435 ФФД: 1.0 [23:47:36]line ЗНМ: 0300000044 [23:47:36]line РНМ: 0000000000092660 [23:47:36]line Версия ККМ: 001 [23:47:36]line ФМ: 0000000000874939 [23:47:36]line ФД: 119267 [23:47:36]line ФПД: 8018498985568 [23:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T234736&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119267&fm=8018498985568&tin=02508201610067®Number=0000000000092660&sum=30000 [23:47:36]OFD Sender: Processing packet 119267 [packets to send 86, broken 85] [23:47:36]ProducePacketName [23:47:36]name=ofd_packets/00119267 [23:47:36]OFD Sender: To server: pG, [23:47:36]CommunicateWithHost lk.salyk.kg:30040 [23:47:36]ConnectInit lk.salyk.kg [23:47:36]written 0, free lines is 4095 [23:47:37]Connected sock=10 [23:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 34 A6 07 01 0A 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 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 3F 01 00 00 F4 03 04 00 98 7B A9 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D1 01 00 35 04 06 00 07 4A F3 C8 9E 60 7A 54 B1 C6 AB 4C 00 78 [23:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 E7 CD 47 00 B7 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E3 D1 01 00 F4 03 04 00 23 29 A9 66 B6 04 01 00 00 EE 78 18 BD 06 EC CD 38 [23:47:37]CommunicateWithHost err = 0 [23:47:37]CheckOFDResponse [23:47:37]1017 (14) - 77093643461234 [23:47:37]1041 (16) - 0000000000874939 [23:47:37]1040 (4) - 119267 [23:47:37]1012 (4) - 30.07.2024 17:55 [23:47:37]1206 (1) - 0 [23:47:37]OFD Sender: Remove packet 119267 [23:47:37]ProducePacketName [23:47:37]name=ofd_packets/00119267 [23:47:37]NVStorageDeleteData [23:47:37]Write to MH i2c: 01 00 00 E1 1D FE [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: 01 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: 01 07 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: 01 07 00 E1 1D 00 00 00 00 00 E0 0C F1 [23:47:37]RasterBufferAndPrint [23:47:37]line [23:47:37]line [23:47:37]line [23:47:37]line [23:47:37]line [23:47:37]written 0, free lines is 3302 [23:47:37]MH_Cut [23:47:37]Write to MH i2c: D1 01 00 E8 1D 01 D7 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: D1 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: D1 01 00 [23:47:37]MH_I2C_Read... [23:47:37]Read from MH i2c: D1 01 00 E8 1D 00 D6 [23:47:37]Write to MH i2c: 01 00 00 E9 1D 06 [23:47:37]Write i2c OK [23:47:37]MH_I2C_Read... [23:47:37]OFD Sender: No OFD packet to send [23:47:38]*** Cut start [23:47:38]*** Partial cut [23:47:38]*** CUTSNS_PIN = 1 [23:47:38]*** CUTSNS_PIN = 0 [23:47:38]*** Brake cut motor [23:47:38]Read from MH i2c: 01 [23:47:38]MH_I2C_Read... [23:47:38]*** Stop cut motor [23:47:38]*** Cut end [23:47:38]Read from MH i2c: 01 07 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: 01 07 00 E9 1D 00 00 00 00 00 FF 0F 1B [23:47:38]process_action close_receipt done [23:47:38]requested_data is exist [23:47:38]produce_requested_data [23:47:38]requested_item fm.sn is exist - process it [23:47:38]wFMCommunicate request_size=4 [23:47:38]MH_SAM_APDU [23:47:38]CAPDU: 80 11 00 00 [23:47:38]Write to MH i2c: E2 08 00 EA 1D 80 11 00 00 00 00 00 00 81 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:38]Read from MH i2c: E2 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 17 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 17 00 EA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DC [23:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:47:38]wFMCommunicate OK [23:47:38]requested_item fd.num is exist - process it [23:47:38]SAM_PROTO_GetFieldsCounters [23:47:38]wFMCommunicate request_size=4 [23:47:38]MH_SAM_APDU [23:47:38]CAPDU: 80 13 00 00 [23:47:38]Write to MH i2c: E2 08 00 EB 1D 80 13 00 00 00 00 00 00 84 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:38]Read from MH i2c: E2 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 62 00 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 62 00 EB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [23:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:47:38]wFMCommunicate OK [23:47:38]SAM_PROTO_GetFieldsCounters done [23:47:38]requested_item shift.num is exist - process it [23:47:38]requested_item shift.opened is exist - process it [23:47:38]req_shift_opened [23:47:38]FM_GetShiftState [23:47:38]SAM_PROTO_GetShiftState [23:47:38]wFMCommunicate request_size=4 [23:47:38]MH_SAM_APDU [23:47:38]CAPDU: 80 13 01 00 [23:47:38]Write to MH i2c: E2 08 00 EC 1D 80 13 01 00 00 00 00 00 86 [23:47:38]Write i2c OK [23:47:38]MH_I2C_Read... [23:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:38]Read from MH i2c: E2 [23:47:38]MH_I2C_Read... [23:47:38]Read from MH i2c: E2 0E 00 [23:47:38]MH_I2C_Read... [23:47:39]Read from MH i2c: E2 0E 00 EC 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 51 [23:47:39]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:47:39]wFMCommunicate OK [23:47:39]SAM_PROTO_GetShiftState done [23:47:39]FM_GetShiftState done [23:47:39]req_shift_opened done [23:47:39]requested_item shift.open_date is exist - process it [23:47:39]req_shift_open_date [23:47:39]req_shift_open_date done [23:47:39]produce_requested_data done [23:47:39]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:47:39]process_action_free close_receipt [23:47:39]json_value_free [23:47:39]json_value_free done [23:47:39]process_json_proto returns [23:47:39]Send response to host [23:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:47:39]free response buf [23:47:39]execute_script done [23:47:39]execute_script returns [23:47:39]free content buf [23:47:39]Sock 7.Close socket [23:47:39]Sock 7.Thread stoped [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:43]accept exits with 9 [23:50:43]New connection [23:50:43]New thread 3066838372 created [23:50:43]Thread 3066695012 joined [23:50:43]Waiting for new connection... [23:50:43] Sock 9.Parse request [23:50:43]Sock 9.Check first char [23:50:43]Sock 9.First char is OK [23:50:43]request: POST /json_proto HTTP/1.0 [23:50:43]Method: POST [23:50:43]URL: /json_proto [23:50:43]Method is POST - this is cgi request [23:50:43]url: /json_proto [23:50:43]query_string will be loaded in cgi processing [23:50:43]execute_cgi json_proto POST (null) [23:50:43]execute_cgi path=json_proto method=POST [23:50:43]POST find Content-Length [23:50:43]Host: 172.17.45.7:8080 [23:50:43]Content-Length: 215 [23:50:43]Content-Type: application/json [23:50:43] [23:50:43]POST finish read [23:50:43]Found Content-Length = 215 [23:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:43]execute_script... [23:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:43]POST & json_proto [23:50:43]process_json_proto [23:50:43]json parsed OK: [23:50:43]protocol is kg_v1.0 [23:50:43]action value=get_value [23:50:43]process_action get_value [23:50:43]cmd_get_value [23:50:43]process_action get_value done [23:50:43]requested_data is exist [23:50:43]produce_requested_data [23:50:43]requested_item kkm.sn is exist - process it [23:50:43]requested_item kkm.ver is exist - process it [23:50:43]requested_item fm.sn is exist - process it [23:50:43]wFMCommunicate request_size=4 [23:50:43]MH_SAM_APDU [23:50:43]CAPDU: 80 11 00 00 [23:50:43]Write to MH i2c: E2 08 00 ED 1D 80 11 00 00 00 00 00 00 84 [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:43]Read from MH i2c: E2 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 17 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 17 00 ED 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 DF [23:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:50:43]wFMCommunicate OK [23:50:43]requested_item fd.num is exist - process it [23:50:43]SAM_PROTO_GetFieldsCounters [23:50:43]wFMCommunicate request_size=4 [23:50:43]MH_SAM_APDU [23:50:43]CAPDU: 80 13 00 00 [23:50:43]Write to MH i2c: E2 08 00 EE 1D 80 13 00 00 00 00 00 00 87 [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:43]Read from MH i2c: E2 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 62 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 62 00 EE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [23:50:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:43]wFMCommunicate OK [23:50:43]SAM_PROTO_GetFieldsCounters done [23:50:43]requested_item shift.num is exist - process it [23:50:43]requested_item shift.opened is exist - process it [23:50:43]req_shift_opened [23:50:43]FM_GetShiftState [23:50:43]SAM_PROTO_GetShiftState [23:50:43]wFMCommunicate request_size=4 [23:50:43]MH_SAM_APDU [23:50:43]CAPDU: 80 13 01 00 [23:50:43]Write to MH i2c: E2 08 00 EF 1D 80 13 01 00 00 00 00 00 89 [23:50:43]Write i2c OK [23:50:43]MH_I2C_Read... [23:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:43]Read from MH i2c: E2 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 0E 00 [23:50:43]MH_I2C_Read... [23:50:43]Read from MH i2c: E2 0E 00 EF 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 54 [23:50:43]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:50:43]wFMCommunicate OK [23:50:43]SAM_PROTO_GetShiftState done [23:50:43]FM_GetShiftState done [23:50:43]req_shift_opened done [23:50:43]requested_item shift.open_date is exist - process it [23:50:43]req_shift_open_date [23:50:43]req_shift_open_date done [23:50:43]produce_requested_data done [23:50:43]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:50:43]process_action_free get_value [23:50:43]json_value_free [23:50:43]json_value_free done [23:50:43]process_json_proto returns [23:50:43]Send response to host [23:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:50:43]free response buf [23:50:43]execute_script done [23:50:43]execute_script returns [23:50:43]free content buf [23:50:43]Sock 9.Close socket [23:50:43]Sock 9.Thread stoped [23:50:43]accept exits with 7 [23:50:43]New connection [23:50:43]New thread 3066695012 created [23:50:43]Thread 3066838372 joined [23:50:43]Waiting for new connection... [23:50:43] Sock 7.Parse request [23:50:43]Sock 7.Check first char [23:50:43]Sock 7.First char is OK [23:50:43]request: POST /json_proto HTTP/1.0 [23:50:43]Method: POST [23:50:43]URL: /json_proto [23:50:43]Method is POST - this is cgi request [23:50:43]url: /json_proto [23:50:43]query_string will be loaded in cgi processing [23:50:43]execute_cgi json_proto POST (null) [23:50:43]execute_cgi path=json_proto method=POST [23:50:43]POST find Content-Length [23:50:43]Host: 172.17.45.7:8080 [23:50:43]Content-Length: 331 [23:50:43]Content-Type: application/json [23:50:43] [23:50:43]POST finish read [23:50:43]Found Content-Length = 331 [23:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:43]execute_script... [23:50:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:50:44]POST & json_proto [23:50:44]process_json_proto [23:50:44]json parsed OK: [23:50:44]protocol is kg_v1.0 [23:50:44]action value=get_value [23:50:44]process_action get_value [23:50:44]cmd_get_value [23:50:44]process_action get_value done [23:50:44]requested_data is exist [23:50:44]produce_requested_data [23:50:44]requested_item fm.sale.total is exist - process it [23:50:44]SAM_PROTO_GetFMData [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 13 03 00 [23:50:44]Write to MH i2c: E2 08 00 F0 1D 80 13 03 00 00 00 00 00 8C [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:50:44]Read from MH i2c: E2 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 FD 00 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 FD 00 F0 1D 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 85 [23:50:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:50:44]wFMCommunicate OK [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 17 00 00 [23:50:44]Write to MH i2c: E2 08 00 F1 1D 80 17 00 00 00 00 00 00 8E [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:44]Read from MH i2c: E2 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 FD 00 [23:50:44]MH_I2C_Read... [23:50:44]Read from MH i2c: E2 FD 00 F1 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 64 [23:50:44]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:50:44]wFMCommunicate OK [23:50:44]wFMCommunicate request_size=4 [23:50:44]MH_SAM_APDU [23:50:44]CAPDU: 80 17 00 00 [23:50:44]Write to MH i2c: E2 08 00 F2 1D 80 17 00 00 00 00 00 00 8F [23:50:44]Write i2c OK [23:50:44]MH_I2C_Read... [23:50:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 F2 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A1 [23:50:45]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:50:45]wFMCommunicate OK [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 17 00 00 [23:50:45]Write to MH i2c: E2 08 00 F3 1D 80 17 00 00 00 00 00 00 90 [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 FD 00 F3 1D 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1C [23:50:45]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:50:45]wFMCommunicate OK [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 17 00 00 [23:50:45]Write to MH i2c: E2 08 00 F4 1D 80 17 00 00 00 00 00 00 91 [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:50:45]Read from MH i2c: E2 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 E2 00 [23:50:45]MH_I2C_Read... [23:50:45]Read from MH i2c: E2 E2 00 F4 1D 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [23:50:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:45]wFMCommunicate OK [23:50:45]SAM_PROTO_GetFMData done [23:50:45]requested_item fm.sale_refund.total is exist - process it [23:50:45]requested_item fm.buy.total is exist - process it [23:50:45]requested_item shift.sale.total is exist - process it [23:50:45]SAM_PROTO_GetShiftData [23:50:45]wFMCommunicate request_size=4 [23:50:45]MH_SAM_APDU [23:50:45]CAPDU: 80 13 02 00 [23:50:45]Write to MH i2c: E2 08 00 F5 1D 80 13 02 00 00 00 00 00 90 [23:50:45]Write i2c OK [23:50:45]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 F5 1D 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 16 [23:50:46]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:50:46]wFMCommunicate OK [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 17 00 00 [23:50:46]Write to MH i2c: E2 08 00 F6 1D 80 17 00 00 00 00 00 00 93 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 F6 1D 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 B5 [23:50:46]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:50:46]wFMCommunicate OK [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 17 00 00 [23:50:46]Write to MH i2c: E2 08 00 F7 1D 80 17 00 00 00 00 00 00 94 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:46]Read from MH i2c: E2 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 [23:50:46]MH_I2C_Read... [23:50:46]Read from MH i2c: E2 FD 00 F7 1D 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 C6 [23:50:46]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:50:46]wFMCommunicate OK [23:50:46]wFMCommunicate request_size=4 [23:50:46]MH_SAM_APDU [23:50:46]CAPDU: 80 17 00 00 [23:50:46]Write to MH i2c: E2 08 00 F8 1D 80 17 00 00 00 00 00 00 95 [23:50:46]Write i2c OK [23:50:46]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 FD 00 F8 1D 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0C [23:50:47]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:50:47]wFMCommunicate OK [23:50:47]wFMCommunicate request_size=4 [23:50:47]MH_SAM_APDU [23:50:47]CAPDU: 80 17 00 00 [23:50:47]Write to MH i2c: E2 08 00 F9 1D 80 17 00 00 00 00 00 00 96 [23:50:47]Write i2c OK [23:50:47]MH_I2C_Read... [23:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:50:47]Read from MH i2c: E2 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 DA 00 [23:50:47]MH_I2C_Read... [23:50:47]Read from MH i2c: E2 DA 00 F9 1D 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [23:50:47]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:50:47]wFMCommunicate OK [23:50:47]SAM_PROTO_GetShiftData done [23:50:47]requested_item shift.sale.total_cash is exist - process it [23:50:47]requested_item shift.sale_refund.total is exist - process it [23:50:47]requested_item shift.sale_refund.total_cash is exist - process it [23:50:47]requested_item shift.buy.total is exist - process it [23:50:47]requested_item shift.buy.total_cash is exist - process it [23:50:47]produce_requested_data done [23:50:47]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:50:47]process_action_free get_value [23:50:47]json_value_free [23:50:47]json_value_free done [23:50:47]process_json_proto returns [23:50:47]Send response to host [23:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:50:47]free response buf [23:50:47]execute_script done [23:50:47]execute_script returns [23:50:47]free content buf [23:50:47]Sock 7.Close socket [23:50:47]Sock 7.Thread stoped [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:18]accept exits with 9 [23:51:18]New connection [23:51:18]New thread 3066838372 created [23:51:18]Thread 3066695012 joined [23:51:18]Waiting for new connection... [23:51:18] Sock 9.Parse request [23:51:18]Sock 9.Check first char [23:51:18]Sock 9.First char is OK [23:51:18]request: POST /json_proto HTTP/1.0 [23:51:18]Method: POST [23:51:18]URL: /json_proto [23:51:18]Method is POST - this is cgi request [23:51:18]url: /json_proto [23:51:18]query_string will be loaded in cgi processing [23:51:18]execute_cgi json_proto POST (null) [23:51:18]execute_cgi path=json_proto method=POST [23:51:18]POST find Content-Length [23:51:18]Host: 172.17.45.7:8080 [23:51:18]Content-Length: 215 [23:51:18]Content-Type: application/json [23:51:18] [23:51:18]POST finish read [23:51:18]Found Content-Length = 215 [23:51: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" ] } } [23:51:18]execute_script... [23:51: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" ] } } [23:51:18]POST & json_proto [23:51:18]process_json_proto [23:51:18]json parsed OK: [23:51:18]protocol is kg_v1.0 [23:51:18]action value=get_value [23:51:18]process_action get_value [23:51:18]cmd_get_value [23:51:18]process_action get_value done [23:51:18]requested_data is exist [23:51:18]produce_requested_data [23:51:18]requested_item kkm.sn is exist - process it [23:51:18]requested_item kkm.ver is exist - process it [23:51:18]requested_item fm.sn is exist - process it [23:51:18]wFMCommunicate request_size=4 [23:51:18]MH_SAM_APDU [23:51:18]CAPDU: 80 11 00 00 [23:51:18]Write to MH i2c: E2 08 00 FA 1D 80 11 00 00 00 00 00 00 91 [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:18]Read from MH i2c: E2 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 17 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 17 00 FA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 EC [23:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:51:18]wFMCommunicate OK [23:51:18]requested_item fd.num is exist - process it [23:51:18]SAM_PROTO_GetFieldsCounters [23:51:18]wFMCommunicate request_size=4 [23:51:18]MH_SAM_APDU [23:51:18]CAPDU: 80 13 00 00 [23:51:18]Write to MH i2c: E2 08 00 FB 1D 80 13 00 00 00 00 00 00 94 [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:18]Read from MH i2c: E2 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 62 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 62 00 FB 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [23:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:18]wFMCommunicate OK [23:51:18]SAM_PROTO_GetFieldsCounters done [23:51:18]requested_item shift.num is exist - process it [23:51:18]requested_item shift.opened is exist - process it [23:51:18]req_shift_opened [23:51:18]FM_GetShiftState [23:51:18]SAM_PROTO_GetShiftState [23:51:18]wFMCommunicate request_size=4 [23:51:18]MH_SAM_APDU [23:51:18]CAPDU: 80 13 01 00 [23:51:18]Write to MH i2c: E2 08 00 FC 1D 80 13 01 00 00 00 00 00 96 [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:18]Read from MH i2c: E2 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 0E 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 0E 00 FC 1D 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 61 [23:51:18]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:51:18]wFMCommunicate OK [23:51:18]SAM_PROTO_GetShiftState done [23:51:18]FM_GetShiftState done [23:51:18]req_shift_opened done [23:51:18]requested_item shift.open_date is exist - process it [23:51:18]req_shift_open_date [23:51:18]req_shift_open_date done [23:51:18]produce_requested_data done [23:51:18]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:51:18]process_action_free get_value [23:51:18]json_value_free [23:51:18]json_value_free done [23:51:18]process_json_proto returns [23:51:18]Send response to host [23:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:51:18]free response buf [23:51:18]execute_script done [23:51:18]execute_script returns [23:51:18]free content buf [23:51:18]Sock 9.Close socket [23:51:18]Sock 9.Thread stoped [23:51:18]accept exits with 7 [23:51:18]New connection [23:51:18]New thread 3066695012 created [23:51:18]Thread 3066838372 joined [23:51:18]Waiting for new connection... [23:51:18] Sock 7.Parse request [23:51:18]Sock 7.Check first char [23:51:18]Sock 7.First char is OK [23:51:18]request: POST /json_proto HTTP/1.0 [23:51:18]Method: POST [23:51:18]URL: /json_proto [23:51:18]Method is POST - this is cgi request [23:51:18]url: /json_proto [23:51:18]query_string will be loaded in cgi processing [23:51:18]execute_cgi json_proto POST (null) [23:51:18]execute_cgi path=json_proto method=POST [23:51:18]POST find Content-Length [23:51:18]Host: 172.17.45.7:8080 [23:51:18]Content-Length: 331 [23:51:18]Content-Type: application/json [23:51:18] [23:51:18]POST finish read [23:51:18]Found Content-Length = 331 [23:51:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:18]execute_script... [23:51: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" ] } } [23:51:19]POST & json_proto [23:51:19]process_json_proto [23:51:19]json parsed OK: [23:51:19]protocol is kg_v1.0 [23:51:19]action value=get_value [23:51:19]process_action get_value [23:51:19]cmd_get_value [23:51:19]process_action get_value done [23:51:19]requested_data is exist [23:51:19]produce_requested_data [23:51:19]requested_item fm.sale.total is exist - process it [23:51:19]SAM_PROTO_GetFMData [23:51:19]wFMCommunicate request_size=4 [23:51:19]MH_SAM_APDU [23:51:19]CAPDU: 80 13 03 00 [23:51:19]Write to MH i2c: E2 08 00 FD 1D 80 13 03 00 00 00 00 00 99 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:19]Read from MH i2c: E2 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 FD 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 FD 00 FD 1D 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 92 [23:51:19]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:51:19]wFMCommunicate OK [23:51:19]wFMCommunicate request_size=4 [23:51:19]MH_SAM_APDU [23:51:19]CAPDU: 80 17 00 00 [23:51:19]Write to MH i2c: E2 08 00 FE 1D 80 17 00 00 00 00 00 00 9B [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:19]Read from MH i2c: E2 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 FD 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 FD 00 FE 1D 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 71 [23:51:19]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:51:19]wFMCommunicate OK [23:51:19]wFMCommunicate request_size=4 [23:51:19]MH_SAM_APDU [23:51:19]CAPDU: 80 17 00 00 [23:51:19]Write to MH i2c: E2 08 00 FF 1D 80 17 00 00 00 00 00 00 9C [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:20]Read from MH i2c: E2 [23:51:20]MH_I2C_Read... [23:51:20]Read from MH i2c: E2 FD 00 [23:51:20]MH_I2C_Read... [23:51:20]Read from MH i2c: E2 FD 00 FF 1D 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 AE [23:51:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:51:20]wFMCommunicate OK [23:51:20]wFMCommunicate request_size=4 [23:51:20]MH_SAM_APDU [23:51:20]CAPDU: 80 17 00 00 [23:51:20]Write to MH i2c: E2 08 00 00 1E 80 17 00 00 00 00 00 00 9E [23:51:20]Write i2c OK [23:51:20]MH_I2C_Read... [23:51:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:20]Read from MH i2c: E2 [23:51:20]MH_I2C_Read... [23:51:20]Read from MH i2c: E2 FD 00 [23:51:20]MH_I2C_Read... [23:51:20]Read from MH i2c: E2 FD 00 00 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 2A [23:51:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:51:20]wFMCommunicate OK [23:51:20]wFMCommunicate request_size=4 [23:51:20]MH_SAM_APDU [23:51:20]CAPDU: 80 17 00 00 [23:51:20]Write to MH i2c: E2 08 00 01 1E 80 17 00 00 00 00 00 00 9F [23:51:20]Write i2c OK [23:51:20]MH_I2C_Read... [23:51:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:20]Read from MH i2c: E2 [23:51:20]MH_I2C_Read... [23:51:20]Read from MH i2c: E2 E2 00 [23:51:20]MH_I2C_Read... [23:51:20]Read from MH i2c: E2 E2 00 01 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [23:51:20]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:20]wFMCommunicate OK [23:51:20]SAM_PROTO_GetFMData done [23:51:20]requested_item fm.sale_refund.total is exist - process it [23:51:20]requested_item fm.buy.total is exist - process it [23:51:20]requested_item shift.sale.total is exist - process it [23:51:20]SAM_PROTO_GetShiftData [23:51:20]wFMCommunicate request_size=4 [23:51:20]MH_SAM_APDU [23:51:20]CAPDU: 80 13 02 00 [23:51:20]Write to MH i2c: E2 08 00 02 1E 80 13 02 00 00 00 00 00 9E [23:51:20]Write i2c OK [23:51:20]MH_I2C_Read... [23:51:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:21]Read from MH i2c: E2 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 FD 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 FD 00 02 1E 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 24 [23:51:21]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:51:21]wFMCommunicate OK [23:51:21]wFMCommunicate request_size=4 [23:51:21]MH_SAM_APDU [23:51:21]CAPDU: 80 17 00 00 [23:51:21]Write to MH i2c: E2 08 00 03 1E 80 17 00 00 00 00 00 00 A1 [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:21]Read from MH i2c: E2 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 FD 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 FD 00 03 1E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 C3 [23:51:21]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:51:21]wFMCommunicate OK [23:51:21]wFMCommunicate request_size=4 [23:51:21]MH_SAM_APDU [23:51:21]CAPDU: 80 17 00 00 [23:51:21]Write to MH i2c: E2 08 00 04 1E 80 17 00 00 00 00 00 00 A2 [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:21]Read from MH i2c: E2 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 FD 00 [23:51:21]MH_I2C_Read... [23:51:21]Read from MH i2c: E2 FD 00 04 1E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 D4 [23:51:21]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:51:21]wFMCommunicate OK [23:51:21]wFMCommunicate request_size=4 [23:51:21]MH_SAM_APDU [23:51:21]CAPDU: 80 17 00 00 [23:51:21]Write to MH i2c: E2 08 00 05 1E 80 17 00 00 00 00 00 00 A3 [23:51:21]Write i2c OK [23:51:21]MH_I2C_Read... [23:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:22]Read from MH i2c: E2 [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: E2 FD 00 [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: E2 FD 00 05 1E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 1A [23:51:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:51:22]wFMCommunicate OK [23:51:22]wFMCommunicate request_size=4 [23:51:22]MH_SAM_APDU [23:51:22]CAPDU: 80 17 00 00 [23:51:22]Write to MH i2c: E2 08 00 06 1E 80 17 00 00 00 00 00 00 A4 [23:51:22]Write i2c OK [23:51:22]MH_I2C_Read... [23:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:51:22]Read from MH i2c: E2 [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: E2 DA 00 [23:51:22]MH_I2C_Read... [23:51:22]Read from MH i2c: E2 DA 00 06 1E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [23:51:22]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:22]wFMCommunicate OK [23:51:22]SAM_PROTO_GetShiftData done [23:51:22]requested_item shift.sale.total_cash is exist - process it [23:51:22]requested_item shift.sale_refund.total is exist - process it [23:51:22]requested_item shift.sale_refund.total_cash is exist - process it [23:51:22]requested_item shift.buy.total is exist - process it [23:51:22]requested_item shift.buy.total_cash is exist - process it [23:51:22]produce_requested_data done [23:51:22]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:51:22]process_action_free get_value [23:51:22]json_value_free [23:51:22]json_value_free done [23:51:22]process_json_proto returns [23:51:22]Send response to host [23:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:51:22]free response buf [23:51:22]execute_script done [23:51:22]execute_script returns [23:51:22]free content buf [23:51:22]Sock 7.Close socket [23:51:22]Sock 7.Thread stoped [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:41]accept exits with 9 [23:51:41]New connection [23:51:41]New thread 3066838372 created [23:51:41]Thread 3066695012 joined [23:51:41]Waiting for new connection... [23:51:41] Sock 9.Parse request [23:51:41]Sock 9.Check first char [23:51:41]Sock 9.First char is OK [23:51:41]request: POST /json_proto HTTP/1.0 [23:51:41]Method: POST [23:51:41]URL: /json_proto [23:51:41]Method is POST - this is cgi request [23:51:41]url: /json_proto [23:51:41]query_string will be loaded in cgi processing [23:51:41]execute_cgi json_proto POST (null) [23:51:41]execute_cgi path=json_proto method=POST [23:51:41]POST find Content-Length [23:51:41]Host: 172.17.45.7:8080 [23:51:41]Content-Length: 215 [23:51:41]Content-Type: application/json [23:51:41] [23:51:41]POST finish read [23:51:41]Found Content-Length = 215 [23:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:41]execute_script... [23:51:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:41]POST & json_proto [23:51:41]process_json_proto [23:51:41]json parsed OK: [23:51:41]protocol is kg_v1.0 [23:51:41]action value=get_value [23:51:41]process_action get_value [23:51:41]cmd_get_value [23:51:41]process_action get_value done [23:51:41]requested_data is exist [23:51:41]produce_requested_data [23:51:41]requested_item kkm.sn is exist - process it [23:51:41]requested_item kkm.ver is exist - process it [23:51:41]requested_item fm.sn is exist - process it [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 11 00 00 [23:51:41]Write to MH i2c: E2 08 00 07 1E 80 11 00 00 00 00 00 00 9F [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 17 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 17 00 07 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 FA [23:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:51:41]wFMCommunicate OK [23:51:41]requested_item fd.num is exist - process it [23:51:41]SAM_PROTO_GetFieldsCounters [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 13 00 00 [23:51:41]Write to MH i2c: E2 08 00 08 1E 80 13 00 00 00 00 00 00 A2 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 62 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 62 00 08 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [23:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:41]wFMCommunicate OK [23:51:41]SAM_PROTO_GetFieldsCounters done [23:51:41]requested_item shift.num is exist - process it [23:51:41]requested_item shift.opened is exist - process it [23:51:41]req_shift_opened [23:51:41]FM_GetShiftState [23:51:41]SAM_PROTO_GetShiftState [23:51:41]wFMCommunicate request_size=4 [23:51:41]MH_SAM_APDU [23:51:41]CAPDU: 80 13 01 00 [23:51:41]Write to MH i2c: E2 08 00 09 1E 80 13 01 00 00 00 00 00 A4 [23:51:41]Write i2c OK [23:51:41]MH_I2C_Read... [23:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:41]Read from MH i2c: E2 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 0E 00 [23:51:41]MH_I2C_Read... [23:51:41]Read from MH i2c: E2 0E 00 09 1E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 6F [23:51:41]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:51:41]wFMCommunicate OK [23:51:41]SAM_PROTO_GetShiftState done [23:51:41]FM_GetShiftState done [23:51:41]req_shift_opened done [23:51:41]requested_item shift.open_date is exist - process it [23:51:41]req_shift_open_date [23:51:41]req_shift_open_date done [23:51:41]produce_requested_data done [23:51:41]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:51:41]process_action_free get_value [23:51:41]json_value_free [23:51:41]json_value_free done [23:51:41]process_json_proto returns [23:51:41]Send response to host [23:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:51:41]free response buf [23:51:41]execute_script done [23:51:41]execute_script returns [23:51:41]free content buf [23:51:41]Sock 9.Close socket [23:51:41]Sock 9.Thread stoped [23:51:41]accept exits with 7 [23:51:41]New connection [23:51:41]New thread 3066695012 created [23:51:41]Thread 3066838372 joined [23:51:41]Waiting for new connection... [23:51:41] Sock 7.Parse request [23:51:41]Sock 7.Check first char [23:51:41]Sock 7.First char is OK [23:51:41]request: POST /json_proto HTTP/1.0 [23:51:41]Method: POST [23:51:41]URL: /json_proto [23:51:41]Method is POST - this is cgi request [23:51:41]url: /json_proto [23:51:41]query_string will be loaded in cgi processing [23:51:41]execute_cgi json_proto POST (null) [23:51:41]execute_cgi path=json_proto method=POST [23:51:41]POST find Content-Length [23:51:41]Host: 172.17.45.7:8080 [23:51:41]Content-Length: 331 [23:51:41]Content-Type: application/json [23:51:41] [23:51:41]POST finish read [23:51:41]Found Content-Length = 331 [23:51:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:41]execute_script... [23:51:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:42]POST & json_proto [23:51:42]process_json_proto [23:51:42]json parsed OK: [23:51:42]protocol is kg_v1.0 [23:51:42]action value=get_value [23:51:42]process_action get_value [23:51:42]cmd_get_value [23:51:42]process_action get_value done [23:51:42]requested_data is exist [23:51:42]produce_requested_data [23:51:42]requested_item fm.sale.total is exist - process it [23:51:42]SAM_PROTO_GetFMData [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 13 03 00 [23:51:42]Write to MH i2c: E2 08 00 0A 1E 80 13 03 00 00 00 00 00 A7 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 0A 1E 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 A0 [23:51:42]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 0B 1E 80 17 00 00 00 00 00 00 A9 [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:42]Read from MH i2c: E2 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 [23:51:42]MH_I2C_Read... [23:51:42]Read from MH i2c: E2 FD 00 0B 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 7F [23:51:42]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:51:42]wFMCommunicate OK [23:51:42]wFMCommunicate request_size=4 [23:51:42]MH_SAM_APDU [23:51:42]CAPDU: 80 17 00 00 [23:51:42]Write to MH i2c: E2 08 00 0C 1E 80 17 00 00 00 00 00 00 AA [23:51:42]Write i2c OK [23:51:42]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 0C 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 BC [23:51:43]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 0D 1E 80 17 00 00 00 00 00 00 AB [23:51:43]OFD Sender: No OFD packet to send [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 FD 00 0D 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 37 [23:51:43]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:51:43]wFMCommunicate OK [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 17 00 00 [23:51:43]Write to MH i2c: E2 08 00 0E 1E 80 17 00 00 00 00 00 00 AC [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:43]Read from MH i2c: E2 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 E2 00 [23:51:43]MH_I2C_Read... [23:51:43]Read from MH i2c: E2 E2 00 0E 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8A [23:51:43]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:43]wFMCommunicate OK [23:51:43]SAM_PROTO_GetFMData done [23:51:43]requested_item fm.sale_refund.total is exist - process it [23:51:43]requested_item fm.buy.total is exist - process it [23:51:43]requested_item shift.sale.total is exist - process it [23:51:43]SAM_PROTO_GetShiftData [23:51:43]wFMCommunicate request_size=4 [23:51:43]MH_SAM_APDU [23:51:43]CAPDU: 80 13 02 00 [23:51:43]Write to MH i2c: E2 08 00 0F 1E 80 13 02 00 00 00 00 00 AB [23:51:43]Write i2c OK [23:51:43]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 0F 1E 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 31 [23:51:44]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 17 00 00 [23:51:44]Write to MH i2c: E2 08 00 10 1E 80 17 00 00 00 00 00 00 AE [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 10 1E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 D0 [23:51:44]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 17 00 00 [23:51:44]Write to MH i2c: E2 08 00 11 1E 80 17 00 00 00 00 00 00 AF [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:44]Read from MH i2c: E2 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 [23:51:44]MH_I2C_Read... [23:51:44]Read from MH i2c: E2 FD 00 11 1E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 E1 [23:51:44]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:51:44]wFMCommunicate OK [23:51:44]wFMCommunicate request_size=4 [23:51:44]MH_SAM_APDU [23:51:44]CAPDU: 80 17 00 00 [23:51:44]Write to MH i2c: E2 08 00 12 1E 80 17 00 00 00 00 00 00 B0 [23:51:44]Write i2c OK [23:51:44]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 12 1E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 27 [23:51:45]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:51:45]wFMCommunicate OK [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 17 00 00 [23:51:45]Write to MH i2c: E2 08 00 13 1E 80 17 00 00 00 00 00 00 B1 [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 DA 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 DA 00 13 1E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [23:51:45]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:45]wFMCommunicate OK [23:51:45]SAM_PROTO_GetShiftData done [23:51:45]requested_item shift.sale.total_cash is exist - process it [23:51:45]requested_item shift.sale_refund.total is exist - process it [23:51:45]requested_item shift.sale_refund.total_cash is exist - process it [23:51:45]requested_item shift.buy.total is exist - process it [23:51:45]requested_item shift.buy.total_cash is exist - process it [23:51:45]produce_requested_data done [23:51:45]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:51:45]process_action_free get_value [23:51:45]json_value_free [23:51:45]json_value_free done [23:51:45]process_json_proto returns [23:51:45]Send response to host [23:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:51:45]free response buf [23:51:45]execute_script done [23:51:45]execute_script returns [23:51:45]free content buf [23:51:45]Sock 7.Close socket [23:51:45]Sock 7.Thread stoped [23:51:45]accept exits with 9 [23:51:45]New connection [23:51:45]New thread 3066838372 created [23:51:45]Thread 3066695012 joined [23:51:45]Waiting for new connection... [23:51:45] Sock 9.Parse request [23:51:45]Sock 9.Check first char [23:51:45]Sock 9.First char is OK [23:51:45]request: POST /json_proto HTTP/1.0 [23:51:45]Method: POST [23:51:45]URL: /json_proto [23:51:45]Method is POST - this is cgi request [23:51:45]url: /json_proto [23:51:45]query_string will be loaded in cgi processing [23:51:45]execute_cgi json_proto POST (null) [23:51:45]execute_cgi path=json_proto method=POST [23:51:45]POST find Content-Length [23:51:45]Host: 172.17.45.7:8080 [23:51:45]Content-Length: 331 [23:51:45]Content-Type: application/json [23:51:45] [23:51:45]POST finish read [23:51:45]Found Content-Length = 331 [23:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:45]execute_script... [23:51:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:51:45]POST & json_proto [23:51:45]process_json_proto [23:51:45]json parsed OK: [23:51:45]protocol is kg_v1.0 [23:51:45]action value=get_value [23:51:45]process_action get_value [23:51:45]cmd_get_value [23:51:45]process_action get_value done [23:51:45]requested_data is exist [23:51:45]produce_requested_data [23:51:45]requested_item fm.sale.total is exist - process it [23:51:45]SAM_PROTO_GetFMData [23:51:45]wFMCommunicate request_size=4 [23:51:45]MH_SAM_APDU [23:51:45]CAPDU: 80 13 03 00 [23:51:45]Write to MH i2c: E2 08 00 14 1E 80 13 03 00 00 00 00 00 B1 [23:51:45]Write i2c OK [23:51:45]MH_I2C_Read... [23:51:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:45]Read from MH i2c: E2 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 [23:51:45]MH_I2C_Read... [23:51:45]Read from MH i2c: E2 FD 00 14 1E 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 AA [23:51:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 15 1E 80 17 00 00 00 00 00 00 B3 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 15 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 89 [23:51:46]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 16 1E 80 17 00 00 00 00 00 00 B4 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:46]Read from MH i2c: E2 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 [23:51:46]MH_I2C_Read... [23:51:46]Read from MH i2c: E2 FD 00 16 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C6 [23:51:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:51:46]wFMCommunicate OK [23:51:46]wFMCommunicate request_size=4 [23:51:46]MH_SAM_APDU [23:51:46]CAPDU: 80 17 00 00 [23:51:46]Write to MH i2c: E2 08 00 17 1E 80 17 00 00 00 00 00 00 B5 [23:51:46]Write i2c OK [23:51:46]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 FD 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 FD 00 17 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 41 [23:51:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:51:47]wFMCommunicate OK [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 17 00 00 [23:51:47]Write to MH i2c: E2 08 00 18 1E 80 17 00 00 00 00 00 00 B6 [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 E2 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 E2 00 18 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [23:51:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:47]wFMCommunicate OK [23:51:47]SAM_PROTO_GetFMData done [23:51:47]requested_item fm.sale_refund.total is exist - process it [23:51:47]requested_item fm.buy.total is exist - process it [23:51:47]requested_item shift.sale.total is exist - process it [23:51:47]SAM_PROTO_GetShiftData [23:51:47]wFMCommunicate request_size=4 [23:51:47]MH_SAM_APDU [23:51:47]CAPDU: 80 13 02 00 [23:51:47]Write to MH i2c: E2 08 00 19 1E 80 13 02 00 00 00 00 00 B5 [23:51:47]Write i2c OK [23:51:47]MH_I2C_Read... [23:51:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:47]Read from MH i2c: E2 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 FD 00 [23:51:47]MH_I2C_Read... [23:51:47]Read from MH i2c: E2 FD 00 19 1E 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 3B [23:51:48]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:51:48]wFMCommunicate OK [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 17 00 00 [23:51:48]Write to MH i2c: E2 08 00 1A 1E 80 17 00 00 00 00 00 00 B8 [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:48]OFD Sender: No OFD packet to send [23:51:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:48]Read from MH i2c: E2 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 FD 00 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 FD 00 1A 1E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 DA [23:51:48]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:51:48]wFMCommunicate OK [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 17 00 00 [23:51:48]Write to MH i2c: E2 08 00 1B 1E 80 17 00 00 00 00 00 00 B9 [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:48]Read from MH i2c: E2 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 FD 00 [23:51:48]MH_I2C_Read... [23:51:48]Read from MH i2c: E2 FD 00 1B 1E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 EB [23:51:48]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:51:48]wFMCommunicate OK [23:51:48]wFMCommunicate request_size=4 [23:51:48]MH_SAM_APDU [23:51:48]CAPDU: 80 17 00 00 [23:51:48]Write to MH i2c: E2 08 00 1C 1E 80 17 00 00 00 00 00 00 BA [23:51:48]Write i2c OK [23:51:48]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 FD 00 1C 1E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 31 [23:51:49]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:51:49]wFMCommunicate OK [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 17 00 00 [23:51:49]Write to MH i2c: E2 08 00 1D 1E 80 17 00 00 00 00 00 00 BB [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 DA 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 DA 00 1D 1E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9C [23:51:49]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:49]wFMCommunicate OK [23:51:49]SAM_PROTO_GetShiftData done [23:51:49]requested_item shift.sale.total_cash is exist - process it [23:51:49]requested_item shift.sale_refund.total is exist - process it [23:51:49]requested_item shift.sale_refund.total_cash is exist - process it [23:51:49]requested_item shift.buy.total is exist - process it [23:51:49]requested_item shift.buy.total_cash is exist - process it [23:51:49]produce_requested_data done [23:51:49]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:51:49]process_action_free get_value [23:51:49]json_value_free [23:51:49]json_value_free done [23:51:49]process_json_proto returns [23:51:49]Send response to host [23:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:51:49]free response buf [23:51:49]execute_script done [23:51:49]execute_script returns [23:51:49]free content buf [23:51:49]Sock 9.Close socket [23:51:49]Sock 9.Thread stoped [23:51:49]accept exits with 7 [23:51:49]New connection [23:51:49]New thread 3066695012 created [23:51:49]Thread 3066838372 joined [23:51:49]Waiting for new connection... [23:51:49] Sock 7.Parse request [23:51:49]Sock 7.Check first char [23:51:49]Sock 7.First char is OK [23:51:49]request: POST /json_proto HTTP/1.0 [23:51:49]Method: POST [23:51:49]URL: /json_proto [23:51:49]Method is POST - this is cgi request [23:51:49]url: /json_proto [23:51:49]query_string will be loaded in cgi processing [23:51:49]execute_cgi json_proto POST (null) [23:51:49]execute_cgi path=json_proto method=POST [23:51:49]POST find Content-Length [23:51:49]Host: 172.17.45.7:8080 [23:51:49]Content-Length: 264 [23:51:49]Content-Type: application/json [23:51:49] [23:51:49]POST finish read [23:51:49]Found Content-Length = 264 [23:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:49]execute_script... [23:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:49]POST & json_proto [23:51:49]process_json_proto [23:51:49]json parsed OK: [23:51:49]protocol is kg_v1.0 [23:51:49]action value=x_report [23:51:49]process_action x_report [23:51:49]cmd_x_report [23:51:49]MH_GetDate [23:51:49]Write to MH i2c: F0 00 00 1E 1E 2B [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: F0 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: F0 09 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: F0 09 00 1E 1E 00 97 7C A9 66 90 0F 3E 66 99 [23:51:49]GetLastDocTimeStamp 1722383256 [23:51:49]current date 1722383511 [23:51:49]FM_GetShiftState [23:51:49]SAM_PROTO_GetShiftState [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 13 01 00 [23:51:49]Write to MH i2c: E2 08 00 1F 1E 80 13 01 00 00 00 00 00 BA [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 0E 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 0E 00 1F 1E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 85 [23:51:49]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:51:49]wFMCommunicate OK [23:51:49]SAM_PROTO_GetShiftState done [23:51:49]FM_GetShiftState done [23:51:49]KKMCreateXReportDocument [23:51:49]Load OK [23:51:49]Malloc new data [23:51:49]MH_GetDate [23:51:49]Write to MH i2c: F0 00 00 20 1E 2D [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: F0 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: F0 09 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: F0 09 00 20 1E 00 97 7C A9 66 90 0F 3E 66 9B [23:51:49]Malloc new data [23:51:49]Malloc new data [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 11 00 00 [23:51:49]Write to MH i2c: E2 08 00 21 1E 80 11 00 00 00 00 00 00 B9 [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:49]Read from MH i2c: E2 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 17 00 [23:51:49]MH_I2C_Read... [23:51:49]Read from MH i2c: E2 17 00 21 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 14 [23:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:51:49]wFMCommunicate OK [23:51:49]SAM_PROTO_GetFieldsCounters [23:51:49]wFMCommunicate request_size=4 [23:51:49]MH_SAM_APDU [23:51:49]CAPDU: 80 13 00 00 [23:51:49]Write to MH i2c: E2 08 00 22 1E 80 13 00 00 00 00 00 00 BC [23:51:49]Write i2c OK [23:51:49]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 62 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 62 00 22 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [23:51:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:50]wFMCommunicate OK [23:51:50]SAM_PROTO_GetFieldsCounters done [23:51:50]Malloc new data [23:51:50]Malloc new data [23:51:50]Malloc new data [23:51:50]KKMCreateXReportDocument OK [23:51:50]KKMSetXReportData OK [23:51:50]KKMPrepareXReportFMData [23:51:50]SAM_PROTO_GetShiftData [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 13 02 00 [23:51:50]Write to MH i2c: E2 08 00 23 1E 80 13 02 00 00 00 00 00 BF [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 23 1E 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 45 [23:51:50]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:51:50]wFMCommunicate OK [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 17 00 00 [23:51:50]Write to MH i2c: E2 08 00 24 1E 80 17 00 00 00 00 00 00 C2 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 FD 00 24 1E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 E4 [23:51:51]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 17 00 00 [23:51:51]Write to MH i2c: E2 08 00 25 1E 80 17 00 00 00 00 00 00 C3 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 FD 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 FD 00 25 1E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 F5 [23:51:51]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 17 00 00 [23:51:51]Write to MH i2c: E2 08 00 26 1E 80 17 00 00 00 00 00 00 C4 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 FD 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 FD 00 26 1E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 3B [23:51:51]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:51:52]wFMCommunicate OK [23:51:52]wFMCommunicate request_size=4 [23:51:52]MH_SAM_APDU [23:51:52]CAPDU: 80 17 00 00 [23:51:52]Write to MH i2c: E2 08 00 27 1E 80 17 00 00 00 00 00 00 C5 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:51:52]Read from MH i2c: E2 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 DA 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: E2 DA 00 27 1E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A6 [23:51:52]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:52]wFMCommunicate OK [23:51:52]SAM_PROTO_GetShiftData done [23:51:52]1194 (1209) - счетчики итогов смены [23:51:52] 1134 (4) - 319 - количество чеков со всеми признаками расчетов [23:51:52] 1129 (159) - счетчики операций «приход» [23:51:52] 1135 (4) - 309 - количество чеков по признаку расчетов [23:51:52] 1201 (4) - 575879.00 - общая итоговая сумма в чеках [23:51:52] 1136 (4) - 231261.00 - итоговая сумма в чеках наличными [23:51:52] 1138 (4) - 344618.00 - итоговая сумма в чеках безналичными [23:51:52] 1024 (123) - суммы налогов [23:51:52] 1006 (9) - суммы НДС [23:51:52] 1010 (1) - 0% - код ставки НДС [23:51:52] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:52] 1006 (12) - суммы НДС [23:51:52] 1010 (1) - 12% - код ставки НДС [23:51:52] 1011 (3) - 61166.41 - сумма НДС по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (12) - суммы НСП [23:51:52] 1014 (1) - 1% - код ставки НСП [23:51:52] 1015 (3) - 5096.99 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 2% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 3% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 5% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 1,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1130 (152) - счетчики операций «возврат прихода» [23:51:52] 1135 (4) - 10 - количество чеков по признаку расчетов [23:51:52] 1201 (3) - 13960.00 - общая итоговая сумма в чеках [23:51:52] 1136 (3) - 13960.00 - итоговая сумма в чеках наличными [23:51:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:52] 1024 (122) - суммы налогов [23:51:52] 1006 (9) - суммы НДС [23:51:52] 1010 (1) - 0% - код ставки НДС [23:51:52] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:52] 1006 (12) - суммы НДС [23:51:52] 1010 (1) - 12% - код ставки НДС [23:51:52] 1011 (3) - 1482.83 - сумма НДС по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (11) - суммы НСП [23:51:52] 1014 (1) - 1% - код ставки НСП [23:51:52] 1015 (2) - 123.57 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 2% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 3% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 5% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 1,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1131 (141) - счетчики операций «расход» [23:51:52] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:52] 1024 (117) - суммы налогов [23:51:52] 1006 (9) - суммы НДС [23:51:52] 1010 (1) - 0% - код ставки НДС [23:51:52] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:52] 1006 (9) - суммы НДС [23:51:52] 1010 (1) - 12% - код ставки НДС [23:51:52] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 1% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 2% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 3% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 5% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 1,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1132 (141) - счетчики операций «возврат расхода» [23:51:52] 1135 (4) - 0 - количество чеков по признаку расчетов [23:51:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:51:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:51:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:51:52] 1024 (117) - суммы налогов [23:51:52] 1006 (9) - суммы НДС [23:51:52] 1010 (1) - 0% - код ставки НДС [23:51:52] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:52] 1006 (9) - суммы НДС [23:51:52] 1010 (1) - 12% - код ставки НДС [23:51:52] 1011 (0) - 0.00 - сумма НДС по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 1% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 2% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 3% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 5% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 0,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1007 (9) - суммы НСП [23:51:52] 1014 (1) - 1,50% - код ставки НСП [23:51:52] 1015 (0) - 0.00 - сумма НСП по ставке [23:51:52] 1133 (588) - - счетчики коррекции - не используются [23:51:52]SetTLVBufToDocument [23:51:52]Processing tag 1194 (04AA) [23:51:52]Load OK [23:51:52]SetTLVBufToDocument [23:51:52]Processing tag 1134 (046E) [23:51:52]Malloc new data [23:51:52]Processing tag 1129 (0469) [23:51:52]Load OK [23:51:52]SetTLVBufToDocument [23:51:52]Processing tag 1135 (046F) [23:51:52]Malloc new data [23:51:52]Processing tag 1201 (04B1) [23:51:52]Malloc new data [23:51:52]Processing tag 1136 (0470) [23:51:52]Malloc new data [23:51:52]Processing tag 1138 (0472) [23:51:52]Malloc new data [23:51:52]Processing tag 1024 (0400) [23:51:52]Load OK [23:51:52]SetTLVBufToDocument [23:51:52]Processing tag 1006 (03EE) [23:51:52]Load OK [23:51:52]SetTLVBufToDocument [23:51:52]Processing tag 1010 (03F2) [23:51:52]Malloc new data [23:51:52]Processing tag 1011 (03F3) [23:51:52]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1130 (046A) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1135 (046F) [23:51:53]Malloc new data [23:51:53]Processing tag 1201 (04B1) [23:51:53]Malloc new data [23:51:53]Processing tag 1136 (0470) [23:51:53]Malloc new data [23:51:53]Processing tag 1138 (0472) [23:51:53]Malloc new data [23:51:53]Processing tag 1024 (0400) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1131 (046B) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1135 (046F) [23:51:53]Malloc new data [23:51:53]Processing tag 1201 (04B1) [23:51:53]Malloc new data [23:51:53]Processing tag 1136 (0470) [23:51:53]Malloc new data [23:51:53]Processing tag 1138 (0472) [23:51:53]Malloc new data [23:51:53]Processing tag 1024 (0400) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1132 (046C) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1135 (046F) [23:51:53]Malloc new data [23:51:53]Processing tag 1201 (04B1) [23:51:53]Malloc new data [23:51:53]Processing tag 1136 (0470) [23:51:53]Malloc new data [23:51:53]Processing tag 1138 (0472) [23:51:53]Malloc new data [23:51:53]Processing tag 1024 (0400) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1006 (03EE) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1010 (03F2) [23:51:53]Malloc new data [23:51:53]Processing tag 1011 (03F3) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1007 (03EF) [23:51:53]Load OK [23:51:53]SetTLVBufToDocument [23:51:53]Processing tag 1014 (03F6) [23:51:53]Malloc new data [23:51:53]Processing tag 1015 (03F7) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Processing tag 1133 (046D) [23:51:53]Malloc new data [23:51:53]SetTLVBufToDocument err=0 [23:51:53]SetTLVBufToDocument err=0 [23:51:53]Malloc new data [23:51:53]SAM_PROTO_GetFMData [23:51:53]wFMCommunicate request_size=4 [23:51:53]MH_SAM_APDU [23:51:53]CAPDU: 80 13 03 00 [23:51:53]Write to MH i2c: E2 08 00 28 1E 80 13 03 00 00 00 00 00 C5 [23:51:53]OFD Sender: No OFD packet to send [23:51:53]Write i2c OK [23:51:53]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 FD 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 FD 00 28 1E 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 BE [23:51:54]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:51:54]wFMCommunicate OK [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 17 00 00 [23:51:54]Write to MH i2c: E2 08 00 29 1E 80 17 00 00 00 00 00 00 C7 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 FD 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 FD 00 29 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9D [23:51:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:51:54]wFMCommunicate OK [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 17 00 00 [23:51:54]Write to MH i2c: E2 08 00 2A 1E 80 17 00 00 00 00 00 00 C8 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 FD 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 FD 00 2A 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 DA [23:51:55]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:51:55]wFMCommunicate OK [23:51:55]wFMCommunicate request_size=4 [23:51:55]MH_SAM_APDU [23:51:55]CAPDU: 80 17 00 00 [23:51:55]Write to MH i2c: E2 08 00 2B 1E 80 17 00 00 00 00 00 00 C9 [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:51:55]Read from MH i2c: E2 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 FD 00 [23:51:55]MH_I2C_Read... [23:51:55]Read from MH i2c: E2 FD 00 2B 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 55 [23:51:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:51:55]wFMCommunicate OK [23:51:55]wFMCommunicate request_size=4 [23:51:55]MH_SAM_APDU [23:51:55]CAPDU: 80 17 00 00 [23:51:55]Write to MH i2c: E2 08 00 2C 1E 80 17 00 00 00 00 00 00 CA [23:51:55]Write i2c OK [23:51:55]MH_I2C_Read... [23:51:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:51:56]Read from MH i2c: E2 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 E2 00 [23:51:56]MH_I2C_Read... [23:51:56]Read from MH i2c: E2 E2 00 2C 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A8 [23:51:56]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:51:56]wFMCommunicate OK [23:51:56]SAM_PROTO_GetFMData done [23:51:56]FM_GetFMData:85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 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 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:57]oper:6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:57]total:CC 20 76 7B 03 [23:51:57]Malloc new data [23:51:57]oper:6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 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 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:57]total:F8 3A 55 3B [23:51:57]Malloc new data [23:51:57]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:57]total: [23:51:57]Malloc new data [23:51:57]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:51:57]total: [23:51:57]Malloc new data [23:51:57]KKMPrepareXReportFMData err=0 [23:51:57]Х отчет ИНН: 02508201610067 Кассир: Айдарали у Б. 30.07.2024 23:51 Смена: 266 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Всего чеков: 319 ИТОГИ ПРИХОД Чеков: 309 Общий итог: 575879.00 Итого наличными: 231261.00 Итого безнал.: 344618.00 НДС 0% : 0.00 НДС 12% : 61166.41 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5096.99 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 10 Общий итог: 13960.00 Итого наличными: 13960.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1482.83 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 123.57 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 217301.00 НС Приход: 149562411.00 НС Возвр.Прихода: 9954414.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874939 [23:51:57]StoreToDocumentArchive [23:51:57]MH_GetDate [23:51:57]Write to MH i2c: F0 00 00 2D 1E 3A [23:51:57]Write i2c OK [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: F0 [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: F0 09 00 [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: F0 09 00 2D 1E 00 9F 7C A9 66 90 0F 3E 66 B0 [23:51:57]shift 266 fd 1722383519 [23:51:57]Create dir for shift 0266 [23:51:57]save to /storage/0266/doc_1722383519 [23:51:57]save last doc name /storage/0266/doc_1722383519 to /storage/kkm_last_doc_name [23:51:57]save OK [23:51:57]Clear old archive folders... [23:51:57]NVStorageSaveData kkm_last_timestamp [23:51:57]File name is /storage/kkm_last_timestamp [23:51:57]Write 4 bytes [23:51:57]NVStorageSaveData done [23:51:57]ExternCall_PrintAddStr [23:51:57]wPrintStart [23:51:57]Write to MH i2c: 01 00 00 2E 1E 4C [23:51:57]Write i2c OK [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: 01 [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: 01 07 00 [23:51:57]MH_I2C_Read... [23:51:57]Read from MH i2c: 01 07 00 2E 1E 00 00 00 00 00 FF 0F 61 [23:51:57]RasterBufferAndPrint [23:51:57]line Х отчет [23:51:57]line ИНН: 02508201610067 [23:51:57]line Кассир: Айдарали у Б. [23:51:57]line 30.07.2024 23:51 [23:51:57]line Смена: 266 [23:51:57]line РНМ: 0000000000092660 [23:51:57]line ЗНМ: 0300000044 [23:51:57]line СНО: Общий режим [23:51:57]line Всего чеков: 319 [23:51:57]line ИТОГИ ПРИХОД [23:51:57]line Чеков: 309 [23:51:57]line Общий итог: 575879.00 [23:51:57]line Итого наличными: 231261.00 [23:51:57]line Итого безнал.: 344618.00 [23:51:57]line НДС 0% : 0.00 [23:51:57]line НДС 12% : 61166.41 [23:51:57]line НСП 0% : 0.00 [23:51:57]line НСП 1,50% : 0.00 [23:51:57]line НСП 0,50% : 0.00 [23:51:57]line НСП 5% : 0.00 [23:51:57]line НСП 3% : 0.00 [23:51:57]line НСП 2% : 0.00 [23:51:57]line НСП 1% : 5096.99 [23:51:57]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:51:57]line Чеков: 10 [23:51:57]line Общий итог: 13960.00 [23:51:57]line Итого наличными: 13960.00 [23:51:57]line Итого безнал.: 0.00 [23:51:57]line НДС 0% : 0.00 [23:51:57]line НДС 12% : 1482.83 [23:51:57]line НСП 0% : 0.00 [23:51:57]line НСП 1,50% : 0.00 [23:51:57]line НСП 0,50% : 0.00 [23:51:57]line НСП 5% : 0.00 [23:51:57]line НСП 3% : 0.00 [23:51:57]line НСП 2% : 0.00 [23:51:57]line НСП 1% : 123.57 [23:51:57]line ИТОГИ РАСХОД [23:51:57]line Чеков: 0 [23:51:57]line Общий итог: 0.00 [23:51:57]line Итого наличными: 0.00 [23:51:57]line Итого безнал.: 0.00 [23:51:57]line НДС 0% : 0.00 [23:51:57]line НДС 12% : 0.00 [23:51:57]line НСП 0% : 0.00 [23:51:57]line НСП 1,50% : 0.00 [23:51:57]line НСП 0,50% : 0.00 [23:51:57]line НСП 5% : 0.00 [23:51:57]line НСП 3% : 0.00 [23:51:57]line НСП 2% : 0.00 [23:51:57]line НСП 1% : 0.00 [23:51:57]line ИТОГИ ВОЗВРАТ РАСХОДА [23:51:57]line Чеков: 0 [23:51:57]line Общий итог: 0.00 [23:51:57]line Итого наличными: 0.00 [23:51:57]line Итого безнал.: 0.00 [23:51:57]line НДС 0% : 0.00 [23:51:57]line НДС 12% : 0.00 [23:51:57]line НСП 0% : 0.00 [23:51:57]line НСП 1,50% : 0.00 [23:51:57]line НСП 0,50% : 0.00 [23:51:57]line НСП 5% : 0.00 [23:51:57]line НСП 3% : 0.00 [23:51:57]line НСП 2% : 0.00 [23:51:57]line НСП 1% : 0.00 [23:51:57]line Сумма внесений: 0.00 [23:51:57]line Сумма выплат: 0.00 [23:51:57]line Нал. в кассе: 217301.00 [23:51:57]line НС Приход: 149562411.00 [23:51:57]line НС Возвр.Прихода: 9954414.00 [23:51:57]line НС Расход: 0.00 [23:51:57]line НС Возвр.Расхода: 0.00 [23:51:57]line ФМ: 0000000000874939 [23:51:57]written 0, free lines is 4095 [23:51:58]Write to MH i2c: 01 00 00 79 1E 97 [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 07 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: 01 07 00 79 1E 00 00 00 00 00 BE 0A 66 [23:51:58]RasterBufferAndPrint [23:51:58]line [23:51:58]line [23:51:58]line [23:51:58]line [23:51:58]line [23:51:58]written 0, free lines is 2786 [23:51:58]MH_Cut [23:51:58]Write to MH i2c: D1 01 00 80 1E 01 70 [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: D1 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: D1 01 00 [23:51:58]MH_I2C_Read... [23:51:58]Read from MH i2c: D1 01 00 80 1E 00 6F [23:51:58]Write to MH i2c: 01 00 00 81 1E 9F [23:51:58]Write i2c OK [23:51:58]MH_I2C_Read... [23:51:58]OFD Sender: No OFD packet to send [23:51:59]*** Cut start [23:51:59]*** Partial cut [23:51:59]*** CUTSNS_PIN = 1 [23:51:59]*** CUTSNS_PIN = 0 [23:51:59]*** Brake cut motor [23:51:59]Read from MH i2c: 01 [23:51:59]MH_I2C_Read... [23:51:59]*** Stop cut motor [23:51:59]*** Cut end [23:51:59]Read from MH i2c: 01 07 00 [23:51:59]MH_I2C_Read... [23:51:59]Read from MH i2c: 01 07 00 81 1E 00 00 00 00 00 FF 0F B4 [23:51:59]process_action x_report done [23:51:59]requested_data is exist [23:51:59]produce_requested_data [23:51:59]requested_item fd.num is exist - process it [23:51:59]SAM_PROTO_GetFieldsCounters [23:51:59]wFMCommunicate request_size=4 [23:51:59]MH_SAM_APDU [23:51:59]CAPDU: 80 13 00 00 [23:51:59]Write to MH i2c: E2 08 00 82 1E 80 13 00 00 00 00 00 00 1C [23:52:00]Write i2c OK [23:52:00]MH_I2C_Read... [23:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:00]Read from MH i2c: E2 [23:52:00]MH_I2C_Read... [23:52:00]Read from MH i2c: E2 62 00 [23:52:00]MH_I2C_Read... [23:52:00]Read from MH i2c: E2 62 00 82 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:00]wFMCommunicate OK [23:52:00]SAM_PROTO_GetFieldsCounters done [23:52:00]requested_item shift.num is exist - process it [23:52:00]requested_item shift.opened is exist - process it [23:52:00]req_shift_opened [23:52:00]FM_GetShiftState [23:52:00]SAM_PROTO_GetShiftState [23:52:00]wFMCommunicate request_size=4 [23:52:00]MH_SAM_APDU [23:52:00]CAPDU: 80 13 01 00 [23:52:00]Write to MH i2c: E2 08 00 83 1E 80 13 01 00 00 00 00 00 1E [23:52:00]Write i2c OK [23:52:00]MH_I2C_Read... [23:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:00]Read from MH i2c: E2 [23:52:00]MH_I2C_Read... [23:52:00]Read from MH i2c: E2 0E 00 [23:52:00]MH_I2C_Read... [23:52:00]Read from MH i2c: E2 0E 00 83 1E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 E9 [23:52:00]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:52:00]wFMCommunicate OK [23:52:00]SAM_PROTO_GetShiftState done [23:52:00]FM_GetShiftState done [23:52:00]req_shift_opened done [23:52:00]requested_item shift.open_date is exist - process it [23:52:00]req_shift_open_date [23:52:00]req_shift_open_date done [23:52:00]produce_requested_data done [23:52:00]produce_requested_data return {"fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:52:00]process_action_free x_report [23:52:00]json_value_free [23:52:00]json_value_free done [23:52:00]process_json_proto returns [23:52:00]Send response to host [23:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:52:00]free response buf [23:52:00]execute_script done [23:52:00]execute_script returns [23:52:00]free content buf [23:52:00]Sock 7.Close socket [23:52:00]Sock 7.Thread stoped [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:22]accept exits with 9 [23:52:22]New connection [23:52:22]New thread 3066838372 created [23:52:22]Thread 3066695012 joined [23:52:22]Waiting for new connection... [23:52:22] Sock 9.Parse request [23:52:22]Sock 9.Check first char [23:52:22]Sock 9.First char is OK [23:52:22]request: POST /json_proto HTTP/1.0 [23:52:22]Method: POST [23:52:22]URL: /json_proto [23:52:22]Method is POST - this is cgi request [23:52:22]url: /json_proto [23:52:22]query_string will be loaded in cgi processing [23:52:22]execute_cgi json_proto POST (null) [23:52:22]execute_cgi path=json_proto method=POST [23:52:22]POST find Content-Length [23:52:22]Host: 172.17.45.7:8080 [23:52:22]Content-Length: 215 [23:52:22]Content-Type: application/json [23:52:22] [23:52:22]POST finish read [23:52:22]Found Content-Length = 215 [23:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:22]execute_script... [23:52:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:22]POST & json_proto [23:52:22]process_json_proto [23:52:22]json parsed OK: [23:52:22]protocol is kg_v1.0 [23:52:22]action value=get_value [23:52:22]process_action get_value [23:52:22]cmd_get_value [23:52:22]process_action get_value done [23:52:22]requested_data is exist [23:52:22]produce_requested_data [23:52:22]requested_item kkm.sn is exist - process it [23:52:22]requested_item kkm.ver is exist - process it [23:52:22]requested_item fm.sn is exist - process it [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 11 00 00 [23:52:22]Write to MH i2c: E2 08 00 84 1E 80 11 00 00 00 00 00 00 1C [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:22]Read from MH i2c: E2 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 17 00 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 17 00 84 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [23:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:52:22]wFMCommunicate OK [23:52:22]requested_item fd.num is exist - process it [23:52:22]SAM_PROTO_GetFieldsCounters [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 13 00 00 [23:52:22]Write to MH i2c: E2 08 00 85 1E 80 13 00 00 00 00 00 00 1F [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 62 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 62 00 85 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [23: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E3 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:23]wFMCommunicate OK [23:52:23]SAM_PROTO_GetFieldsCounters done [23:52:23]requested_item shift.num is exist - process it [23:52:23]requested_item shift.opened is exist - process it [23:52:23]req_shift_opened [23:52:23]FM_GetShiftState [23:52:23]SAM_PROTO_GetShiftState [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 13 01 00 [23:52:23]Write to MH i2c: E2 08 00 86 1E 80 13 01 00 00 00 00 00 21 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 0E 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 0E 00 86 1E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 EC [23:52:23]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:52:23]wFMCommunicate OK [23:52:23]SAM_PROTO_GetShiftState done [23:52:23]FM_GetShiftState done [23:52:23]req_shift_opened done [23:52:23]requested_item shift.open_date is exist - process it [23:52:23]req_shift_open_date [23:52:23]req_shift_open_date done [23:52:23]produce_requested_data done [23:52:23]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242} [23:52:23]process_action_free get_value [23:52:23]json_value_free [23:52:23]json_value_free done [23:52:23]process_json_proto returns [23:52:23]Send response to host [23:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119267,"shift.num":435,"shift.opened":1,"shift.open_date":1722298242}}} [23:52:23]free response buf [23:52:23]execute_script done [23:52:23]execute_script returns [23:52:23]free content buf [23:52:23]Sock 9.Close socket [23:52:23]Sock 9.Thread stoped [23:52:23]accept exits with 7 [23:52:23]New connection [23:52:23]New thread 3066695012 created [23:52:23]Thread 3066838372 joined [23:52:23]Waiting for new connection... [23:52:23] Sock 7.Parse request [23:52:23]Sock 7.Check first char [23:52:23]Sock 7.First char is OK [23:52:23]request: POST /json_proto HTTP/1.0 [23:52:23]Method: POST [23:52:23]URL: /json_proto [23:52:23]Method is POST - this is cgi request [23:52:23]url: /json_proto [23:52:23]query_string will be loaded in cgi processing [23:52:23]execute_cgi json_proto POST (null) [23:52:23]execute_cgi path=json_proto method=POST [23:52:23]POST find Content-Length [23:52:23]Host: 172.17.45.7:8080 [23:52:23]Content-Length: 331 [23:52:23]Content-Type: application/json [23:52:23] [23:52:23]POST finish read [23:52:23]Found Content-Length = 331 [23:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:23]execute_script... [23:52:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:23]POST & json_proto [23:52:23]process_json_proto [23:52:23]json parsed OK: [23:52:23]protocol is kg_v1.0 [23:52:23]action value=get_value [23:52:23]process_action get_value [23:52:23]cmd_get_value [23:52:23]process_action get_value done [23:52:23]requested_data is exist [23:52:23]produce_requested_data [23:52:23]requested_item fm.sale.total is exist - process it [23:52:23]SAM_PROTO_GetFMData [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 13 03 00 [23:52:23]Write to MH i2c: E2 08 00 87 1E 80 13 03 00 00 00 00 00 24 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 87 1E 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 1D [23:52:23]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:52:23]wFMCommunicate OK [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 17 00 00 [23:52:23]Write to MH i2c: E2 08 00 88 1E 80 17 00 00 00 00 00 00 26 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]OFD Sender: No OFD packet to send [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 88 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 FC [23:52:24]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:52:24]wFMCommunicate OK [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 17 00 00 [23:52:24]Write to MH i2c: E2 08 00 89 1E 80 17 00 00 00 00 00 00 27 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 89 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 39 [23:52:24]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:52:24]wFMCommunicate OK [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 17 00 00 [23:52:24]Write to MH i2c: E2 08 00 8A 1E 80 17 00 00 00 00 00 00 28 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 8A 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 B4 [23:52:24]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 8B 1E 80 17 00 00 00 00 00 00 29 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 E2 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 E2 00 8B 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [23:52:25]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:25]wFMCommunicate OK [23:52:25]SAM_PROTO_GetFMData done [23:52:25]requested_item fm.sale_refund.total is exist - process it [23:52:25]requested_item fm.buy.total is exist - process it [23:52:25]requested_item shift.sale.total is exist - process it [23:52:25]SAM_PROTO_GetShiftData [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 13 02 00 [23:52:25]Write to MH i2c: E2 08 00 8C 1E 80 13 02 00 00 00 00 00 28 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 8C 1E 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 AE [23:52:26]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:52:26]wFMCommunicate OK [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 17 00 00 [23:52:26]Write to MH i2c: E2 08 00 8D 1E 80 17 00 00 00 00 00 00 2B [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 8D 1E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 4D [23:52:26]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:52:26]wFMCommunicate OK [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 17 00 00 [23:52:26]Write to MH i2c: E2 08 00 8E 1E 80 17 00 00 00 00 00 00 2C [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 8E 1E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 5E [23:52:26]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 8F 1E 80 17 00 00 00 00 00 00 2D [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 8F 1E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A4 [23:52:27]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 90 1E 80 17 00 00 00 00 00 00 2E [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 DA 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 DA 00 90 1E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0F [23:52:27]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:27]wFMCommunicate OK [23:52:27]SAM_PROTO_GetShiftData done [23:52:27]requested_item shift.sale.total_cash is exist - process it [23:52:27]requested_item shift.sale_refund.total is exist - process it [23:52:27]requested_item shift.sale_refund.total_cash is exist - process it [23:52:27]requested_item shift.buy.total is exist - process it [23:52:27]requested_item shift.buy.total_cash is exist - process it [23:52:27]produce_requested_data done [23:52:27]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:52:27]process_action_free get_value [23:52:27]json_value_free [23:52:27]json_value_free done [23:52:27]process_json_proto returns [23:52:27]Send response to host [23:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:52:27]free response buf [23:52:27]execute_script done [23:52:27]execute_script returns [23:52:27]free content buf [23:52:27]Sock 7.Close socket [23:52:27]Sock 7.Thread stoped [23:52:27]accept exits with 9 [23:52:27]New connection [23:52:27]New thread 3066838372 created [23:52:27]Thread 3066695012 joined [23:52:27]Waiting for new connection... [23:52:27] Sock 9.Parse request [23:52:27]Sock 9.Check first char [23:52:27]Sock 9.First char is OK [23:52:27]request: POST /json_proto HTTP/1.0 [23:52:27]Method: POST [23:52:27]URL: /json_proto [23:52:27]Method is POST - this is cgi request [23:52:27]url: /json_proto [23:52:27]query_string will be loaded in cgi processing [23:52:27]execute_cgi json_proto POST (null) [23:52:27]execute_cgi path=json_proto method=POST [23:52:27]POST find Content-Length [23:52:27]Host: 172.17.45.7:8080 [23:52:27]Content-Length: 331 [23:52:27]Content-Type: application/json [23:52:27] [23:52:27]POST finish read [23:52:27]Found Content-Length = 331 [23:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:27]execute_script... [23:52:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:27]POST & json_proto [23:52:27]process_json_proto [23:52:27]json parsed OK: [23:52:27]protocol is kg_v1.0 [23:52:27]action value=get_value [23:52:27]process_action get_value [23:52:27]cmd_get_value [23:52:27]process_action get_value done [23:52:27]requested_data is exist [23:52:27]produce_requested_data [23:52:27]requested_item fm.sale.total is exist - process it [23:52:27]SAM_PROTO_GetFMData [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 13 03 00 [23:52:27]Write to MH i2c: E2 08 00 91 1E 80 13 03 00 00 00 00 00 2E [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 91 1E 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 27 [23:52:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 92 1E 80 17 00 00 00 00 00 00 30 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]OFD Sender: No OFD packet to send [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 92 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 06 [23:52:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 93 1E 80 17 00 00 00 00 00 00 31 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 93 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 43 [23:52:29]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 94 1E 80 17 00 00 00 00 00 00 32 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 94 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BE [23:52:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 17 00 00 [23:52:30]Write to MH i2c: E2 08 00 95 1E 80 17 00 00 00 00 00 00 33 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 E2 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 E2 00 95 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [23:52:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetFMData done [23:52:30]requested_item fm.sale_refund.total is exist - process it [23:52:30]requested_item fm.buy.total is exist - process it [23:52:30]requested_item shift.sale.total is exist - process it [23:52:30]SAM_PROTO_GetShiftData [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 02 00 [23:52:30]Write to MH i2c: E2 08 00 96 1E 80 13 02 00 00 00 00 00 32 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 96 1E 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 B8 [23:52:31]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [23:52:31]wFMCommunicate OK [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 17 00 00 [23:52:31]Write to MH i2c: E2 08 00 97 1E 80 17 00 00 00 00 00 00 35 [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 97 1E 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 57 [23:52:31]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:52:31]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 98 1E 80 17 00 00 00 00 00 00 36 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 98 1E 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 68 [23:52:32]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 99 1E 80 17 00 00 00 00 00 00 37 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 99 1E 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 AE [23:52:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 17 00 00 [23:52:33]Write to MH i2c: E2 08 00 9A 1E 80 17 00 00 00 00 00 00 38 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 DA 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 DA 00 9A 1E 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 [23:52:33]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_GetShiftData done [23:52:33]requested_item shift.sale.total_cash is exist - process it [23:52:33]requested_item shift.sale_refund.total is exist - process it [23:52:33]requested_item shift.sale_refund.total_cash is exist - process it [23:52:33]requested_item shift.buy.total is exist - process it [23:52:33]requested_item shift.buy.total_cash is exist - process it [23:52:33]produce_requested_data done [23:52:33]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:52:33]process_action_free get_value [23:52:33]json_value_free [23:52:33]json_value_free done [23:52:33]process_json_proto returns [23:52:33]Send response to host [23:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:52:33]free response buf [23:52:33]execute_script done [23:52:33]execute_script returns [23:52:33]free content buf [23:52:33]Sock 9.Close socket [23:52:33]Sock 9.Thread stoped [23:52:33]accept exits with 7 [23:52:33]New connection [23:52:33]New thread 3066695012 created [23:52:33]Thread 3066838372 joined [23:52:33]Waiting for new connection... [23:52:33] Sock 7.Parse request [23:52:33]Sock 7.Check first char [23:52:33]Sock 7.First char is OK [23:52:33]request: POST /json_proto HTTP/1.0 [23:52:33]Method: POST [23:52:33]URL: /json_proto [23:52:33]Method is POST - this is cgi request [23:52:33]url: /json_proto [23:52:33]query_string will be loaded in cgi processing [23:52:33]execute_cgi json_proto POST (null) [23:52:33]execute_cgi path=json_proto method=POST [23:52:33]POST find Content-Length [23:52:33]Host: 172.17.45.7:8080 [23:52:33]Content-Length: 267 [23:52:33]Content-Type: application/json [23:52:33] [23:52:33]POST finish read [23:52:33]Found Content-Length = 267 [23:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:33]execute_script... [23:52:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:33]POST & json_proto [23:52:33]process_json_proto [23:52:33]json parsed OK: [23:52:33]protocol is kg_v1.0 [23:52:33]action value=close_shift [23:52:33]process_action close_shift [23:52:33]cmd_close_shift [23:52:33]MH_GetDate [23:52:33]Write to MH i2c: F0 00 00 9B 1E A8 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: F0 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: F0 09 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: F0 09 00 9B 1E 00 C3 7C A9 66 90 0F 3E 66 42 [23:52:33]GetLastDocTimeStamp 1722383511 [23:52:33]current date 1722383555 [23:52:33]FM_GetShiftState [23:52:33]SAM_PROTO_GetShiftState [23:52:33]wFMCommunicate request_size=4 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 13 01 00 [23:52:33]Write to MH i2c: E2 08 00 9C 1E 80 13 01 00 00 00 00 00 37 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 0E 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 0E 00 9C 1E 00 09 00 01 82 2F A8 66 00 00 00 00 90 00 02 [23:52:33]RAPDU: 09 00 01 82 2F A8 66 00 00 00 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_GetShiftState done [23:52:33]FM_GetShiftState done [23:52:33]KKMCreateCloseShiftDocument [23:52:33]Load OK [23:52:33]Malloc new data [23:52:33]MH_GetDate [23:52:33]Write to MH i2c: F0 00 00 9D 1E AA [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: F0 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: F0 09 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: F0 09 00 9D 1E 00 C3 7C A9 66 90 0F 3E 66 44 [23:52:33]Malloc new data [23:52:33]Malloc new data [23:52:33]Malloc new data [23:52:33]Malloc new data [23:52:33]KKMCreateCloseShiftDocument OK [23:52:33]KKMSetCloseShiftData OK [23:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=74 [23:52:33]tlvbuf is 0176ED30 [23:52:33]KKMLoadAndSignCloseShiftData [23:52:33]SAM_PROTO_ProcessDocument [23:52:33]wFMCommunicate request_size=9 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 15 01 00 04 05 00 4A 00 [23:52:33]Write to MH i2c: E2 0C 00 9E 1E 80 15 01 00 04 00 05 00 4A 00 00 00 92 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 03 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [23:52:33]RAPDU: 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=23 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:52:33]Write to MH i2c: E2 1A 00 9F 1E 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 32 [23:52:33]Write i2c OK [23:52:33]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:33]OFD Sender: No OFD packet to send [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 03 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 03 00 9F 1E 00 90 00 31 [23:52:33]RAPDU: 90 00 [23:52:33]wFMCommunicate OK [23:52:33]wFMCommunicate request_size=33 [23:52:33]MH_SAM_APDU [23:52:33]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 [23:52:34]Write to MH i2c: E2 24 00 A0 1E 80 15 02 00 1C 00 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 00 00 A2 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 03 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 03 00 A0 1E 00 90 00 32 [23:52:34]RAPDU: 90 00 [23:52:34]wFMCommunicate OK [23:52:34]wFMCommunicate request_size=13 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 15 02 00 08 F4 03 04 00 C3 7C A9 66 [23:52:34]Write to MH i2c: E2 10 00 A1 1E 80 15 02 00 08 00 F4 03 04 00 C3 7C A9 66 00 00 98 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 03 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 03 00 A1 1E 00 90 00 33 [23:52:34]RAPDU: 90 00 [23:52:34]wFMCommunicate OK [23:52:34]wFMCommunicate request_size=25 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [23:52:34]Write to MH i2c: E2 1C 00 A2 1E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 A0 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 03 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 03 00 A2 1E 00 90 00 34 [23:52:34]RAPDU: 90 00 [23:52:34]wFMCommunicate OK [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 15 03 00 [23:52:34]Write to MH i2c: E2 08 00 A3 1E 80 15 03 00 00 00 00 00 42 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 A3 1E 00 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D1 01 00 0E 04 04 00 B3 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 90 00 46 [23:52:34]RAPDU: 00 05 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D1 01 00 0E 04 04 00 B3 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 90 00 [23:52:35]wFMCommunicate OK [23:52:35]SAM_PROTO_ProcessDocument answer len = 1280 [23:52:35]SAM_PROTO_ProcessDocument remain to read = 1032 [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 A4 1E 80 17 00 00 00 00 00 00 42 [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 A4 1E 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 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 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 1E [23:52:35]RAPDU: 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 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 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [23:52:35]wFMCommunicate OK [23:52:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:35]SAM_PROTO_ProcessDocument remain to read = 782 [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 A5 1E 80 17 00 00 00 00 00 00 43 [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 A5 1E 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 A9 [23:52:36]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [23:52:36]wFMCommunicate OK [23:52:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:36]SAM_PROTO_ProcessDocument remain to read = 532 [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 A6 1E 80 17 00 00 00 00 00 00 44 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 A6 1E 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 DB [23:52:36]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [23:52:36]wFMCommunicate OK [23:52:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:36]SAM_PROTO_ProcessDocument remain to read = 282 [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 A7 1E 80 17 00 00 00 00 00 00 45 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 FD 00 A7 1E 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 FB [23:52:37]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [23:52:37]wFMCommunicate OK [23:52:37]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:52:37]SAM_PROTO_ProcessDocument remain to read = 32 [23:52:37]wFMCommunicate request_size=4 [23:52:37]MH_SAM_APDU [23:52:37]CAPDU: 80 17 00 00 [23:52:37]Write to MH i2c: E2 08 00 A8 1E 80 17 00 00 00 00 00 00 46 [23:52:37]Write i2c OK [23:52:37]MH_I2C_Read... [23:52:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 32! [23:52:37]Read from MH i2c: E2 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 23 00 [23:52:37]MH_I2C_Read... [23:52:37]Read from MH i2c: E2 23 00 A8 1E 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D6 E6 6C 04 66 27 90 00 40 [23:52:37]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D6 E6 6C 04 66 27 90 00 [23:52:37]wFMCommunicate OK [23:52:37]SAM_PROTO_ProcessDocument received (without SW) 32 bytes [23:52:37]SAM_PROTO_ProcessDocument done [23:52:37]1209 (1) - 1.0 - номер версии ФФД [23:52:37]1041 (16) - 0000000000874939 - номер ФМ [23:52:37]1040 (4) - 119268 - номер ФД [23:52:37]1038 (4) - 435 - номер смены [23:52:37]1118 (4) - 319 - количество кассовых чеков за смену [23:52:37]1111 (4) - 321 - общее количество ФД за смену [23:52:37]1194 (1209) - счетчики итогов смены [23:52:37] 1134 (4) - 319 - количество чеков со всеми признаками расчетов [23:52:37] 1129 (159) - счетчики операций «приход» [23:52:37] 1135 (4) - 309 - количество чеков по признаку расчетов [23:52:37] 1201 (4) - 575879.00 - общая итоговая сумма в чеках [23:52:37] 1136 (4) - 231261.00 - итоговая сумма в чеках наличными [23:52:37] 1138 (4) - 344618.00 - итоговая сумма в чеках безналичными [23:52:37] 1024 (123) - суммы налогов [23:52:37] 1006 (9) - суммы НДС [23:52:37] 1010 (1) - 0% - код ставки НДС [23:52:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:37] 1006 (12) - суммы НДС [23:52:37] 1010 (1) - 12% - код ставки НДС [23:52:37] 1011 (3) - 61166.41 - сумма НДС по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 0% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (12) - суммы НСП [23:52:37] 1014 (1) - 1% - код ставки НСП [23:52:37] 1015 (3) - 5096.99 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 2% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 3% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 5% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 0,50% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 1,50% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1130 (152) - счетчики операций «возврат прихода» [23:52:37] 1135 (4) - 10 - количество чеков по признаку расчетов [23:52:37] 1201 (3) - 13960.00 - общая итоговая сумма в чеках [23:52:37] 1136 (3) - 13960.00 - итоговая сумма в чеках наличными [23:52:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:37] 1024 (122) - суммы налогов [23:52:37] 1006 (9) - суммы НДС [23:52:37] 1010 (1) - 0% - код ставки НДС [23:52:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:37] 1006 (12) - суммы НДС [23:52:37] 1010 (1) - 12% - код ставки НДС [23:52:37] 1011 (3) - 1482.83 - сумма НДС по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 0% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (11) - суммы НСП [23:52:37] 1014 (1) - 1% - код ставки НСП [23:52:37] 1015 (2) - 123.57 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 2% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 3% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 5% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 0,50% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 1,50% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1131 (141) - счетчики операций «расход» [23:52:37] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:37] 1024 (117) - суммы налогов [23:52:37] 1006 (9) - суммы НДС [23:52:37] 1010 (1) - 0% - код ставки НДС [23:52:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:37] 1006 (9) - суммы НДС [23:52:37] 1010 (1) - 12% - код ставки НДС [23:52:37] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:37] 1014 (1) - 0% - код ставки НСП [23:52:37] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:37] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 1% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 2% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 3% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 5% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 0,50% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 1,50% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1132 (141) - счетчики операций «возврат расхода» [23:52:38] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:38] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:38] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:38] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:38] 1024 (117) - суммы налогов [23:52:38] 1006 (9) - суммы НДС [23:52:38] 1010 (1) - 0% - код ставки НДС [23:52:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:38] 1006 (9) - суммы НДС [23:52:38] 1010 (1) - 12% - код ставки НДС [23:52:38] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 0% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 1% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 2% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 3% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 5% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 0,50% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1007 (9) - суммы НСП [23:52:38] 1014 (1) - 1,50% - код ставки НСП [23:52:38] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:38] 1133 (588) - - счетчики коррекции - не используются [23:52:38]1077 (6) - 236285143049767 - ФПД [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1209 (04B9) [23:52:38]Malloc new data [23:52:38]Processing tag 1041 (0411) [23:52:38]Processing tag 1040 (0410) [23:52:38]Malloc new data [23:52:38]Processing tag 1038 (040E) [23:52:38]Malloc new data [23:52:38]Processing tag 1118 (045E) [23:52:38]Malloc new data [23:52:38]Processing tag 1111 (0457) [23:52:38]Malloc new data [23:52:38]Processing tag 1194 (04AA) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1134 (046E) [23:52:38]Malloc new data [23:52:38]Processing tag 1129 (0469) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1135 (046F) [23:52:38]Malloc new data [23:52:38]Processing tag 1201 (04B1) [23:52:38]Malloc new data [23:52:38]Processing tag 1136 (0470) [23:52:38]Malloc new data [23:52:38]Processing tag 1138 (0472) [23:52:38]Malloc new data [23:52:38]Processing tag 1024 (0400) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1130 (046A) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1135 (046F) [23:52:38]Malloc new data [23:52:38]Processing tag 1201 (04B1) [23:52:38]Malloc new data [23:52:38]Processing tag 1136 (0470) [23:52:38]Malloc new data [23:52:38]Processing tag 1138 (0472) [23:52:38]Malloc new data [23:52:38]Processing tag 1024 (0400) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1131 (046B) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1135 (046F) [23:52:38]Malloc new data [23:52:38]Processing tag 1201 (04B1) [23:52:38]Malloc new data [23:52:38]Processing tag 1136 (0470) [23:52:38]Malloc new data [23:52:38]Processing tag 1138 (0472) [23:52:38]Malloc new data [23:52:38]Processing tag 1024 (0400) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1132 (046C) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1135 (046F) [23:52:38]Malloc new data [23:52:38]Processing tag 1201 (04B1) [23:52:38]Malloc new data [23:52:38]Processing tag 1136 (0470) [23:52:38]Malloc new data [23:52:38]Processing tag 1138 (0472) [23:52:38]Malloc new data [23:52:38]Processing tag 1024 (0400) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1006 (03EE) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1010 (03F2) [23:52:38]Malloc new data [23:52:38]Processing tag 1011 (03F3) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1007 (03EF) [23:52:38]Load OK [23:52:38]SetTLVBufToDocument [23:52:38]Processing tag 1014 (03F6) [23:52:38]Malloc new data [23:52:38]Processing tag 1015 (03F7) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1133 (046D) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Processing tag 1077 (0435) [23:52:38]Malloc new data [23:52:38]SetTLVBufToDocument err=0 [23:52:38]Malloc new data [23:52:38]SAM_PROTO_GetFMData [23:52:38]wFMCommunicate request_size=4 [23:52:38]MH_SAM_APDU [23:52:38]CAPDU: 80 13 03 00 [23:52:38]Write to MH i2c: E2 08 00 A9 1E 80 13 03 00 00 00 00 00 46 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:39]OFD Sender: No OFD packet to send [23:52:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 A9 1E 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 3F [23:52:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [23:52:39]wFMCommunicate OK [23:52:39]wFMCommunicate request_size=4 [23:52:39]MH_SAM_APDU [23:52:39]CAPDU: 80 17 00 00 [23:52:39]Write to MH i2c: E2 08 00 AA 1E 80 17 00 00 00 00 00 00 48 [23:52:39]Write i2c OK [23:52:39]MH_I2C_Read... [23:52:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:39]Read from MH i2c: E2 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 [23:52:39]MH_I2C_Read... [23:52:39]Read from MH i2c: E2 FD 00 AA 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1E [23:52:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 17 00 00 [23:52:40]Write to MH i2c: E2 08 00 AB 1E 80 17 00 00 00 00 00 00 49 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 FD 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 FD 00 AB 1E 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 5B [23:52:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [23:52:40]wFMCommunicate OK [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 17 00 00 [23:52:40]Write to MH i2c: E2 08 00 AC 1E 80 17 00 00 00 00 00 00 4A [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 FD 00 AC 1E 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D6 [23:52:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [23:52:41]wFMCommunicate OK [23:52:41]wFMCommunicate request_size=4 [23:52:41]MH_SAM_APDU [23:52:41]CAPDU: 80 17 00 00 [23:52:41]Write to MH i2c: E2 08 00 AD 1E 80 17 00 00 00 00 00 00 4B [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 E2 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 E2 00 AD 1E 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [23:52:42]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_GetFMData done [23:52:42]Malloc new data [23:52:42]Malloc new data [23:52:42]Malloc new data [23:52:42]Malloc new data [23:52:42]KKMLoadAndSignCloseShiftData err=0 [23:52:42]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Айдарали у Б. 30.07.2024 23:52 Смена: 435 РНМ: 0000000000092660 ЗНМ: 0300000044 СНО: Общий режим Чеков за смену: 319 ФД за смену: 321 Всего чеков: 319 ИТОГИ ПРИХОД Чеков: 309 Общий итог: 575879.00 Итого наличными: 231261.00 Итого безнал.: 344618.00 НДС 0% : 0.00 НДС 12% : 61166.41 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 5096.99 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 10 Общий итог: 13960.00 Итого наличными: 13960.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 1482.83 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 123.57 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 217301.00 НС Приход: 149562411.00 НС Возвр.Прихода: 9954414.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 119268 ФМ: 0000000000874939 ФПД: 236285143049767 [23:52:42]StoreToDocumentArchive [23:52:42]shift 435 fd 119268 [23:52:42]save to /storage/0435/doc_00119268 [23:52:42]save last doc name /storage/0435/doc_00119268 to /storage/kkm_last_doc_name [23:52:42]save OK [23:52:42]Clear old archive folders... [23:52:42]Remove dir /storage/0266 [23:52:42]opendir ok [23:52:42]file . [23:52:42]file .. [23:52:42]file doc_1722383519 [23:52:42]remove file /storage/0266/doc_1722383519 [23:52:42]remove dir /storage/0266 [23:52:42]NVStorageSaveData kkm_registers [23:52:42]File name is /storage/kkm_registers [23:52:42]Write 24 bytes [23:52:42]NVStorageSaveData done [23:52:42]NVStorageSaveData kkm_registers [23:52:42]File name is /storage/kkm_registers [23:52:42]Write 24 bytes [23:52:42]NVStorageSaveData done [23:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=1393 [23:52:42]tlvbuf is 015F9630 [23:52:42]SAM_PROTO_ClearQueue [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 09 00 00 [23:52:42]Write to MH i2c: E2 08 00 AE 1E 80 09 00 00 00 00 00 00 3E [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [23:52:42]RAPDU: 90 00 [23:52:42]wFMCommunicate OK [23:52:42]SAM_PROTO_ClearQueue done [23:52:42]KKMCreateOFDPacket [23:52:42]OFDProtocolAddRootSTLVToBuf [23:52:42]FM_MakeSignedData [23:52:42]FM_MakeSignedData [23:52:42]SAM_PROTO_SignData [23:52:42]wFMCommunicate request_size=4 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 0D 01 02 [23:52:42]Write to MH i2c: E2 08 00 AF 1E 80 0D 01 02 00 00 00 00 46 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:42]Read from MH i2c: E2 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [23:52:42]RAPDU: 90 00 [23:52:42]wFMCommunicate OK [23:52:42]wFMCommunicate request_size=255 [23:52:42]MH_SAM_APDU [23:52:42]CAPDU: 80 0D 02 02 FA 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 C3 7C A9 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 AA 04 E0 04 6E 04 04 00 3F 01 00 00 69 04 A6 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [23:52:42]Write to MH i2c: E2 02 01 B0 1E 80 0D 02 02 FA 00 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 C3 7C A9 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 AA 04 E0 04 6E 04 04 00 3F 01 00 00 69 04 A6 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 75 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [23:52:43]RAPDU: 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=255 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 03 C7 07 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 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 45 30 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 [23:52:43]Write to MH i2c: E2 02 01 B1 1E 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 03 C7 07 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 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 45 30 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 00 00 AC [23:52:43]Write i2c OK [23:52:43]MH_I2C_Read... [23:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:43]Read from MH i2c: E2 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 [23:52:43]MH_I2C_Read... [23:52:43]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [23:52:43]RAPDU: 90 00 [23:52:43]wFMCommunicate OK [23:52:43]wFMCommunicate request_size=255 [23:52:43]MH_SAM_APDU [23:52:43]CAPDU: 80 0D 02 02 FA 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 OFD Sender: No OFD packet to send [23:52:44]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 [23:52:44]Write to MH i2c: E2 02 01 B2 1E 80 0D 02 02 FA 00 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 00 00 11 [23:52:44]Write i2c OK [23:52:44]MH_I2C_Read... [23:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:44]Read from MH i2c: E2 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 03 00 [23:52:44]MH_I2C_Read... [23:52:44]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [23:52:44]RAPDU: 90 00 [23:52:44]wFMCommunicate OK [23:52:44]wFMCommunicate request_size=255 [23:52:44]MH_SAM_APDU [23:52:44]CAPDU: 80 0D 02 02 FA 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 [23:52:44]Write to MH i2c: E2 02 01 B3 1E 80 0D 02 02 FA 00 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 00 00 18 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:45]Read from MH i2c: E2 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 03 00 [23:52:45]MH_I2C_Read... [23:52:45]Read from MH i2c: E2 03 00 B3 1E 00 90 00 45 [23:52:45]RAPDU: 90 00 [23:52:45]wFMCommunicate OK [23:52:45]wFMCommunicate request_size=255 [23:52:45]MH_SAM_APDU [23:52:45]CAPDU: 80 0D 02 02 FA F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 [23:52:45]Write to MH i2c: E2 02 01 B4 1E 80 0D 02 02 FA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 00 E0 [23:52:45]Write i2c OK [23:52:45]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 B4 1E 00 90 00 46 [23:52:46]RAPDU: 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=152 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 0D 02 02 93 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 D6 E6 6C 04 66 27 [23:52:46]Write to MH i2c: E2 9B 00 B5 1E 80 0D 02 02 93 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 D6 E6 6C 04 66 27 00 00 01 [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [23:52:46]RAPDU: 90 00 [23:52:46]wFMCommunicate OK [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 0D 03 02 [23:52:46]Write to MH i2c: E2 08 00 B6 1E 80 0D 03 02 00 00 00 00 4F [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 0B 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 0B 00 B6 1E 00 95 F8 D3 95 21 90 06 8E 90 00 8A [23:52:46]RAPDU: 95 F8 D3 95 21 90 06 8E 90 00 [23:52:46]wFMCommunicate OK [23:52:46]SAM_PROTO_SignData done [23:52:46]FM_MakeSignedData done [23:52:46]CreateOFDProtocolMessage [23:52:46]wFMCommunicate request_size=4 [23:52:46]MH_SAM_APDU [23:52:46]CAPDU: 80 11 00 00 [23:52:46]Write to MH i2c: E2 08 00 B7 1E 80 11 00 00 00 00 00 00 4F [23:52:46]Write i2c OK [23:52:46]MH_I2C_Read... [23:52:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:46]Read from MH i2c: E2 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 17 00 [23:52:46]MH_I2C_Read... [23:52:46]Read from MH i2c: E2 17 00 B7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AA [23:52:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [23:52:46]wFMCommunicate OK [23:52:46]CreateOFDProtocolMessage done [23:52:46]OFDSenderStorePacket 119268 [23:52:46]StoreOFDPacket docnum=119268 [23:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 85 05 00 00 08 95 7D 05 1F E6 5A 05 01 00 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 C3 7C A9 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 AA 04 E0 04 6E 04 04 00 3F 01 00 00 69 04 A6 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 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 45 30 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 E4 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 D6 E6 6C 04 66 27 95 F8 D3 95 21 90 06 8E [23:52:47]CheckFolder [23:52:47]dirname=/storage/ofd_packets [23:52:47]CheckFolder done [23:52:47]ProducePacketName [23:52:47]name=ofd_packets/00119268 [23:52:47]NVStorageSaveData ofd_packets/00119268 [23:52:47]File name is /storage/ofd_packets/00119268 [23:52:47]Write 1443 bytes [23:52:47]NVStorageSaveData done [23:52:47]OFDSenderStorePacket done [23:52:47]KKMCreateOFDPacket done [23:52:47]NVStorageSaveData kkm_last_timestamp [23:52:47]File name is /storage/kkm_last_timestamp [23:52:47]Write 4 bytes [23:52:47]NVStorageSaveData done [23:52:47]ExternCall_PrintAddStr [23:52:47]wPrintStart [23:52:47]Write to MH i2c: 01 00 00 B8 1E D6 [23:52:47]Write i2c OK [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 07 00 [23:52:47]MH_I2C_Read... [23:52:47]Read from MH i2c: 01 07 00 B8 1E 00 00 00 00 00 FF 0F EB [23:52:47]RasterBufferAndPrint [23:52:47]line Отчет о закрытии смены [23:52:47]line ФФД: 1.0 [23:52:47]line ИНН: 02508201610067 [23:52:47]line Кассир: Айдарали у Б. [23:52:47]line 30.07.2024 23:52 [23:52:47]line Смена: 435 [23:52:47]line РНМ: 0000000000092660 [23:52:47]line ЗНМ: 0300000044 [23:52:47]line СНО: Общий режим [23:52:47]line Чеков за смену: 319 [23:52:47]line ФД за смену: 321 [23:52:47]line Всего чеков: 319 [23:52:47]line ИТОГИ ПРИХОД [23:52:47]line Чеков: 309 [23:52:47]line Общий итог: 575879.00 [23:52:47]line Итого наличными: 231261.00 [23:52:47]line Итого безнал.: 344618.00 [23:52:47]line НДС 0% : 0.00 [23:52:47]line НДС 12% : 61166.41 [23:52:47]line НСП 0% : 0.00 [23:52:47]line НСП 1,50% : 0.00 [23:52:47]line НСП 0,50% : 0.00 [23:52:47]line НСП 5% : 0.00 [23:52:47]line НСП 3% : 0.00 [23:52:47]line НСП 2% : 0.00 [23:52:47]line НСП 1% : 5096.99 [23:52:47]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:52:47]line Чеков: 10 [23:52:47]line Общий итог: 13960.00 [23:52:47]line Итого наличными: 13960.00 [23:52:47]line Итого безнал.: 0.00 [23:52:47]line НДС 0% : 0.00 [23:52:47]line НДС 12% : 1482.83 [23:52:47]line НСП 0% : 0.00 [23:52:47]line НСП 1,50% : 0.00 [23:52:47]line НСП 0,50% : 0.00 [23:52:47]line НСП 5% : 0.00 [23:52:47]line НСП 3% : 0.00 [23:52:47]line НСП 2% : 0.00 [23:52:47]line НСП 1% : 123.57 [23:52:47]line ИТОГИ РАСХОД [23:52:47]line Чеков: 0 [23:52:47]line Общий итог: 0.00 [23:52:47]line Итого наличными: 0.00 [23:52:47]line Итого безнал.: 0.00 [23:52:47]line НДС 0% : 0.00 [23:52:47]line НДС 12% : 0.00 [23:52:47]line НСП 0% : 0.00 [23:52:47]line НСП 1,50% : 0.00 [23:52:47]line НСП 0,50% : 0.00 [23:52:47]line НСП 5% : 0.00 [23:52:47]line НСП 3% : 0.00 [23:52:47]line НСП 2% : 0.00 [23:52:47]line НСП 1% : 0.00 [23:52:47]line ИТОГИ ВОЗВРАТ РАСХОДА [23:52:47]line Чеков: 0 [23:52:47]line Общий итог: 0.00 [23:52:47]line Итого наличными: 0.00 [23:52:47]line Итого безнал.: 0.00 [23:52:47]line НДС 0% : 0.00 [23:52:47]line НДС 12% : 0.00 [23:52:47]line НСП 0% : 0.00 [23:52:47]line НСП 1,50% : 0.00 [23:52:47]line НСП 0,50% : 0.00 [23:52:47]line НСП 5% : 0.00 [23:52:47]line НСП 3% : 0.00 [23:52:47]line НСП 2% : 0.00 [23:52:47]line НСП 1% : 0.00 [23:52:47]line Сумма внесений: 0.00 [23:52:47]line Сумма выплат: 0.00 [23:52:47]line Нал. в кассе: 217301.00 [23:52:47]line НС Приход: 149562411.00 [23:52:47]line НС Возвр.Прихода: 9954414.00 [23:52:47]line НС Расход: 0.00 [23:52:47]line НС Возвр.Расхода: 0.00 [23:52:47]line ФД: 119268 [23:52:47]line ФМ: 0000000000874939 [23:52:47]line ФПД: 236285143049767 [23:52:47]OFD Sender: Processing packet 119268 [packets to send 86, broken 85] [23:52:47]ProducePacketName [23:52:47]name=ofd_packets/00119268 [23:52:47]OFD Sender: To server: pG, [23:52:47]CommunicateWithHost lk.salyk.kg:30040 [23:52:47]ConnectInit lk.salyk.kg [23:52:47]written 0, free lines is 4095 [23:52:47]Connected sock=10 [23:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 85 05 00 00 08 95 7D 05 1F E6 5A 05 01 00 05 00 71 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F4 03 04 00 C3 7C A9 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 AA 04 E0 04 6E 04 04 00 3F 01 00 00 69 04 A6 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 6A 04 A0 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 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 45 30 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 Write to MH i2c: 03 01 0A 00 00 00 F2 08 03 1F 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 27 03 [23:52:48]01 Write i2c OK [23:52:48]00 MH_I2C_Read... [23:52:48]00 Read from MH i2c: F7 01 [23:52:48]03 MH_I2C_Read... [23:52:48]01 00 00 EF 03 0A 00 F6 03 Read from MH i2c: 01 01 00 07 06 00 F7 [23:52:48]03 MH_I2C_Read... [23:52:48]01 00 00 EF 03 0A 00 F6 03 01 00 05 Read from MH i2c: F7 01 03 07 01 00 00 08 00 1F EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 00 00 00 EF 00 03 00 0A FF 00 0A F6 37 03 [23:52:48]01 RasterBufferAndPrint [23:52:48]00 line [23:52:48]03 line [23:52:48]F7 line [23:52:48]03 line [23:52:48]01 line [23:52:48]00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 written 0, free lines is 2981 [23:52:48]F6 03 01 00 01 F7 03 01 00 00 6D 04 MH_Cut [23:52:48]4C Write to MH i2c: 02 D1 78 01 04 00 04 0F 00 1F 00 01 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 [23:52:48]00 00 B1 04 00 00 70 04 00 00 72 Write i2c OK [23:52:48]04 MH_I2C_Read... [23:52:48]00 Read from MH i2c: 00 D1 00 [23:52:48]04 MH_I2C_Read... [23:52:48]75 Read from MH i2c: 00 D1 01 EE 00 03 [23:52:48]09 MH_I2C_Read... [23:52:48]00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 F6 0F 03 1F 00 FF [23:52:48]Write to MH i2c: 01 00 00 10 1F 2F [23:52:48]01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 Write i2c OK [23:52:48]00 MH_I2C_Read... [23:52:48]00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 D6 E6 6C 04 66 27 95 F8 D3 95 21 90 06 8E [23:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 58 E8 47 00 A1 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 *** Cut start [23:52:49]34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E4 D1 01 00 F4 03 04 00 5B 2A A9 66 B6 04 01 00 00 CF EB 5D B3 85 69 93 06 [23:52:49]CommunicateWithHost err = 0 [23:52:49]CheckOFDResponse [23:52:49]1017 (14) - 77093643461234 [23:52:49]1041 (16) - 0000000000874939 [23:52:49]1040 (4) - 119268 [23:52:49]1012 (4) - 30.07.2024 18:00 [23:52:49]1206 (1) - 0 [23:52:49]OFD Sender: Remove packet 119268 [23:52:49]ProducePacketName [23:52:49]name=ofd_packets/00119268 [23:52:49]NVStorageDeleteData [23:52:49]*** Partial cut [23:52:49]*** CUTSNS_PIN = 1 [23:52:49]*** CUTSNS_PIN = 0 [23:52:49]*** Brake cut motor [23:52:49]Read from MH i2c: 01 [23:52:49]MH_I2C_Read... [23:52:49]*** Stop cut motor [23:52:49]*** Cut end [23:52:49]Read from MH i2c: 01 07 00 [23:52:49]MH_I2C_Read... [23:52:49]Read from MH i2c: 01 07 00 10 1F 00 00 00 00 00 FF 0F 44 [23:52:49]process_action close_shift done [23:52:49]requested_data is exist [23:52:49]produce_requested_data [23:52:49]requested_item fd.num is exist - process it [23:52:49]SAM_PROTO_GetFieldsCounters [23:52:49]wFMCommunicate request_size=4 [23:52:49]MH_SAM_APDU [23:52:49]CAPDU: 80 13 00 00 [23:52:49]Write to MH i2c: E2 08 00 11 1F 80 13 00 00 00 00 00 00 AC [23:52:49]Write i2c OK [23:52:49]MH_I2C_Read... [23:52:50]OFD Sender: No OFD packet to send [23:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 62 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 62 00 11 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [23:52:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:50]wFMCommunicate OK [23:52:50]SAM_PROTO_GetFieldsCounters done [23:52:50]requested_item shift.num is exist - process it [23:52:50]requested_item shift.opened is exist - process it [23:52:50]req_shift_opened [23:52:50]FM_GetShiftState [23:52:50]SAM_PROTO_GetShiftState [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 13 01 00 [23:52:50]Write to MH i2c: E2 08 00 12 1F 80 13 01 00 00 00 00 00 AE [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 0E 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 0E 00 12 1F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B9 [23:52:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:50]wFMCommunicate OK [23:52:50]SAM_PROTO_GetShiftState done [23:52:50]FM_GetShiftState done [23:52:50]req_shift_opened done [23:52:50]requested_item shift.open_date is exist - process it [23:52:50]req_shift_open_date [23:52:50]FM_GetShiftState [23:52:50]SAM_PROTO_GetShiftState [23:52:50]wFMCommunicate request_size=4 [23:52:50]MH_SAM_APDU [23:52:50]CAPDU: 80 13 01 00 [23:52:50]Write to MH i2c: E2 08 00 13 1F 80 13 01 00 00 00 00 00 AF [23:52:50]Write i2c OK [23:52:50]MH_I2C_Read... [23:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:50]Read from MH i2c: E2 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 0E 00 [23:52:50]MH_I2C_Read... [23:52:50]Read from MH i2c: E2 0E 00 13 1F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BA [23:52:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:52:50]wFMCommunicate OK [23:52:50]SAM_PROTO_GetShiftState done [23:52:50]FM_GetShiftState done [23:52:50]req_shift_open_date done [23:52:50]produce_requested_data done [23:52:50]produce_requested_data return {"fd.num":119268,"shift.num":435,"shift.opened":0,"shift.open_date":0} [23:52:50]process_action_free close_shift [23:52:50]json_value_free [23:52:50]json_value_free done [23:52:50]process_json_proto returns [23:52:50]Send response to host [23:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":119268,"shift.num":435,"shift.opened":0,"shift.open_date":0}}} [23:52:50]free response buf [23:52:50]execute_script done [23:52:50]execute_script returns [23:52:50]free content buf [23:52:50]Sock 7.Close socket [23:52:50]Sock 7.Thread stoped [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:20]OFD Sender: No OFD packet to send [00:08:25]OFD Sender: No OFD packet to send [00:08:30]OFD Sender: No OFD packet to send [00:08:35]OFD Sender: No OFD packet to send [00:08:41]OFD Sender: No OFD packet to send [00:08:46]OFD Sender: No OFD packet to send [00:08:51]OFD Sender: No OFD packet to send [00:08:56]OFD Sender: No OFD packet to send [00:09:01]OFD Sender: No OFD packet to send [00:09:06]OFD Sender: No OFD packet to send [00:09:11]OFD Sender: No OFD packet to send [00:09:16]OFD Sender: No OFD packet to send [00:09:21]OFD Sender: No OFD packet to send [00:09:26]OFD Sender: No OFD packet to send [00:09:31]OFD Sender: No OFD packet to send [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:46]OFD Sender: No OFD packet to send [00:09:51]OFD Sender: No OFD packet to send [00:09:56]OFD Sender: No OFD packet to send [00:10:01]OFD Sender: No OFD packet to send [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:31]accept exits with 9 [00:10:31]New connection [00:10:31]New thread 3066838372 created [00:10:31]Thread 3066695012 joined [00:10:31]Waiting for new connection... [00:10:31] Sock 9.Parse request [00:10:31]Sock 9.Check first char [00:10:31]Sock 9.First char is OK [00:10:31]request: POST /json_proto HTTP/1.0 [00:10:31]Method: POST [00:10:31]URL: /json_proto [00:10:31]Method is POST - this is cgi request [00:10:31]url: /json_proto [00:10:31]query_string will be loaded in cgi processing [00:10:31]execute_cgi json_proto POST (null) [00:10:31]execute_cgi path=json_proto method=POST [00:10:31]POST find Content-Length [00:10:31]Host: 172.17.45.7:8080 [00:10:31]Content-Length: 215 [00:10:31]Content-Type: application/json [00:10:31] [00:10:31]POST finish read [00:10:31]Found Content-Length = 215 [00:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:31]execute_script... [00:10:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:31]POST & json_proto [00:10:31]process_json_proto [00:10:31]json parsed OK: [00:10:31]protocol is kg_v1.0 [00:10:31]action value=get_value [00:10:31]process_action get_value [00:10:31]cmd_get_value [00:10:31]process_action get_value done [00:10:31]requested_data is exist [00:10:31]produce_requested_data [00:10:31]requested_item kkm.sn is exist - process it [00:10:31]requested_item kkm.ver is exist - process it [00:10:31]requested_item fm.sn is exist - process it [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 11 00 00 [00:10:31]Write to MH i2c: E2 08 00 14 1F 80 11 00 00 00 00 00 00 AD [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 17 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 17 00 14 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 08 [00:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:10:31]wFMCommunicate OK [00:10:31]requested_item fd.num is exist - process it [00:10:31]SAM_PROTO_GetFieldsCounters [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 13 00 00 [00:10:31]Write to MH i2c: E2 08 00 15 1F 80 13 00 00 00 00 00 00 B0 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 62 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 62 00 15 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E4 D1 01 00 0E 04 04 00 B3 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:31]wFMCommunicate OK [00:10:31]SAM_PROTO_GetFieldsCounters done [00:10:31]requested_item shift.num is exist - process it [00:10:31]requested_item shift.opened is exist - process it [00:10:31]req_shift_opened [00:10:31]FM_GetShiftState [00:10:31]SAM_PROTO_GetShiftState [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 13 01 00 [00:10:31]Write to MH i2c: E2 08 00 16 1F 80 13 01 00 00 00 00 00 B2 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 0E 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 0E 00 16 1F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BD [00:10:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:31]wFMCommunicate OK [00:10:31]SAM_PROTO_GetShiftState done [00:10:31]FM_GetShiftState done [00:10:31]req_shift_opened done [00:10:31]requested_item shift.open_date is exist - process it [00:10:31]req_shift_open_date [00:10:31]FM_GetShiftState [00:10:31]SAM_PROTO_GetShiftState [00:10:31]wFMCommunicate request_size=4 [00:10:31]MH_SAM_APDU [00:10:31]CAPDU: 80 13 01 00 [00:10:31]Write to MH i2c: E2 08 00 17 1F 80 13 01 00 00 00 00 00 B3 [00:10:31]Write i2c OK [00:10:31]MH_I2C_Read... [00:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:31]Read from MH i2c: E2 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 0E 00 [00:10:31]MH_I2C_Read... [00:10:31]Read from MH i2c: E2 0E 00 17 1F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BE [00:10:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:31]wFMCommunicate OK [00:10:31]SAM_PROTO_GetShiftState done [00:10:31]FM_GetShiftState done [00:10:31]req_shift_open_date done [00:10:31]produce_requested_data done [00:10:31]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119268,"shift.num":435,"shift.opened":0,"shift.open_date":0} [00:10:31]process_action_free get_value [00:10:31]json_value_free [00:10:31]json_value_free done [00:10:31]process_json_proto returns [00:10:31]Send response to host [00:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119268,"shift.num":435,"shift.opened":0,"shift.open_date":0}}} [00:10:31]free response buf [00:10:31]execute_script done [00:10:31]execute_script returns [00:10:31]free content buf [00:10:31]Sock 9.Close socket [00:10:31]Sock 9.Thread stoped [00:10:31]accept exits with 7 [00:10:31]New connection [00:10:31]New thread 3066695012 created [00:10:31]Thread 3066838372 joined [00:10:31]Waiting for new connection... [00:10:31] Sock 7.Parse request [00:10:31]Sock 7.Check first char [00:10:31]Sock 7.First char is OK [00:10:31]request: POST /json_proto HTTP/1.0 [00:10:31]Method: POST [00:10:31]URL: /json_proto [00:10:31]Method is POST - this is cgi request [00:10:31]url: /json_proto [00:10:31]query_string will be loaded in cgi processing [00:10:31]execute_cgi json_proto POST (null) [00:10:31]execute_cgi path=json_proto method=POST [00:10:31]POST find Content-Length [00:10:31]Host: 172.17.45.7:8080 [00:10:31]Content-Length: 331 [00:10:31]Content-Type: application/json [00:10:31] [00:10:31]POST finish read [00:10:31]Found Content-Length = 331 [00:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:31]execute_script... [00:10:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:32]POST & json_proto [00:10:32]process_json_proto [00:10:32]json parsed OK: [00:10:32]protocol is kg_v1.0 [00:10:32]action value=get_value [00:10:32]process_action get_value [00:10:32]cmd_get_value [00:10:32]process_action get_value done [00:10:32]requested_data is exist [00:10:32]produce_requested_data [00:10:32]requested_item fm.sale.total is exist - process it [00:10:32]SAM_PROTO_GetFMData [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 13 03 00 [00:10:32]Write to MH i2c: E2 08 00 18 1F 80 13 03 00 00 00 00 00 B6 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 18 1F 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 AF [00:10:32]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 19 1F 80 17 00 00 00 00 00 00 B8 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:32]Read from MH i2c: E2 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 [00:10:32]MH_I2C_Read... [00:10:32]Read from MH i2c: E2 FD 00 19 1F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8E [00:10:32]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:32]wFMCommunicate OK [00:10:32]wFMCommunicate request_size=4 [00:10:32]MH_SAM_APDU [00:10:32]CAPDU: 80 17 00 00 [00:10:32]Write to MH i2c: E2 08 00 1A 1F 80 17 00 00 00 00 00 00 B9 [00:10:32]Write i2c OK [00:10:32]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 1A 1F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 CB [00:10:33]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 1B 1F 80 17 00 00 00 00 00 00 BA [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 FD 00 1B 1F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 46 [00:10:33]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:33]wFMCommunicate OK [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 17 00 00 [00:10:33]Write to MH i2c: E2 08 00 1C 1F 80 17 00 00 00 00 00 00 BB [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:33]Read from MH i2c: E2 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 E2 00 [00:10:33]MH_I2C_Read... [00:10:33]Read from MH i2c: E2 E2 00 1C 1F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 99 [00:10:33]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:10:33]wFMCommunicate OK [00:10:33]SAM_PROTO_GetFMData done [00:10:33]requested_item fm.sale_refund.total is exist - process it [00:10:33]requested_item fm.buy.total is exist - process it [00:10:33]requested_item shift.sale.total is exist - process it [00:10:33]SAM_PROTO_GetShiftData [00:10:33]wFMCommunicate request_size=4 [00:10:33]MH_SAM_APDU [00:10:33]CAPDU: 80 13 02 00 [00:10:33]Write to MH i2c: E2 08 00 1D 1F 80 13 02 00 00 00 00 00 BA [00:10:33]Write i2c OK [00:10:33]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 1D 1F 00 BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 40 [00:10:34]RAPDU: BD 04 AA 04 B9 04 6E 04 04 00 3F 01 00 00 69 04 9F 00 6F 04 04 00 35 01 00 00 B1 04 04 00 BC B8 6E 03 70 04 04 00 54 E0 60 01 72 04 04 00 68 D8 0D 02 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 21 55 5D 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 03 C7 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 0A 00 00 00 B1 04 03 00 20 4D 15 70 04 03 00 20 4D 15 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 3B 43 02 EF 03 09 00 F6 03 01 00 00 F7 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 1E 1F 80 17 00 00 00 00 00 00 BD [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 1E 1F 00 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 DF [00:10:34]RAPDU: 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 45 30 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 1F 1F 80 17 00 00 00 00 00 00 BE [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 1F 1F 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 F0 [00:10:34]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [00:10:34]wFMCommunicate OK [00:10:34]wFMCommunicate request_size=4 [00:10:34]MH_SAM_APDU [00:10:34]CAPDU: 80 17 00 00 [00:10:34]Write to MH i2c: E2 08 00 20 1F 80 17 00 00 00 00 00 00 BF [00:10:34]Write i2c OK [00:10:34]MH_I2C_Read... [00:10:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:34]Read from MH i2c: E2 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 [00:10:34]MH_I2C_Read... [00:10:34]Read from MH i2c: E2 FD 00 20 1F 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 36 [00:10:34]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 17 00 00 [00:10:35]Write to MH i2c: E2 08 00 21 1F 80 17 00 00 00 00 00 00 C0 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 DA 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 DA 00 21 1F 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [00:10:35]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:10:35]wFMCommunicate OK [00:10:35]SAM_PROTO_GetShiftData done [00:10:35]requested_item shift.sale.total_cash is exist - process it [00:10:35]requested_item shift.sale_refund.total is exist - process it [00:10:35]requested_item shift.sale_refund.total_cash is exist - process it [00:10:35]requested_item shift.buy.total is exist - process it [00:10:35]requested_item shift.buy.total_cash is exist - process it [00:10:35]produce_requested_data done [00:10:35]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:35]process_action_free get_value [00:10:35]json_value_free [00:10:35]json_value_free done [00:10:35]process_json_proto returns [00:10:35]Send response to host [00:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":575879.00,"shift.sale.total_cash":231261.00,"shift.sale_refund.total":13960.00,"shift.sale_refund.total_cash":13960.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:35]free response buf [00:10:35]execute_script done [00:10:35]execute_script returns [00:10:35]free content buf [00:10:35]Sock 7.Close socket [00:10:35]Sock 7.Thread stoped [00:10:35]accept exits with 9 [00:10:35]New connection [00:10:35]New thread 3066838372 created [00:10:35]Thread 3066695012 joined [00:10:35]Waiting for new connection... [00:10:35] Sock 9.Parse request [00:10:35]Sock 9.Check first char [00:10:35]Sock 9.First char is OK [00:10:35]request: POST /json_proto HTTP/1.0 [00:10:35]Method: POST [00:10:35]URL: /json_proto [00:10:35]Method is POST - this is cgi request [00:10:35]url: /json_proto [00:10:35]query_string will be loaded in cgi processing [00:10:35]execute_cgi json_proto POST (null) [00:10:35]execute_cgi path=json_proto method=POST [00:10:35]POST find Content-Length [00:10:35]Host: 172.17.45.7:8080 [00:10:35]Content-Length: 253 [00:10:35]Content-Type: application/json [00:10:35] [00:10:35]POST finish read [00:10:35]Found Content-Length = 253 [00:10:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:35]execute_script... [00:10:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:35]POST & json_proto [00:10:35]process_json_proto [00:10:35]json parsed OK: [00:10:35]protocol is kg_v1.0 [00:10:35]action value=open_shift [00:10:35]process_action open_shift [00:10:35]cmd_open_shift [00:10:35]MH_GetDate [00:10:35]Write to MH i2c: F0 00 00 22 1F 30 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 09 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 09 00 22 1F 00 FD 80 A9 66 90 0F 3E 66 08 [00:10:35]GetLastDocTimeStamp 1722383555 [00:10:35]current date 1722384637 [00:10:35]FM_GetShiftState [00:10:35]SAM_PROTO_GetShiftState [00:10:35]wFMCommunicate request_size=4 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 13 01 00 [00:10:35]Write to MH i2c: E2 08 00 23 1F 80 13 01 00 00 00 00 00 BF [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 0E 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 0E 00 23 1F 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CA [00:10:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:35]wFMCommunicate OK [00:10:35]SAM_PROTO_GetShiftState done [00:10:35]FM_GetShiftState done [00:10:35]KKMCreateOpenShiftDocument [00:10:35]Load OK [00:10:35]Malloc new data [00:10:35]MH_GetDate [00:10:35]Write to MH i2c: F0 00 00 24 1F 32 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 09 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: F0 09 00 24 1F 00 FD 80 A9 66 90 0F 3E 66 0A [00:10:35]Malloc new data [00:10:35]KKMCreateOpenShiftDocument OK [00:10:35]KKMSetOpenShiftData OK [00:10:35]ProcessDocumentItem done err = 0, tmpTLVsize=166 [00:10:35]tlvbuf is 015FC3F0 [00:10:35]KKMLoadAndSignOpenShiftData [00:10:35]SAM_PROTO_ProcessDocument [00:10:35]wFMCommunicate request_size=9 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 15 01 00 04 02 00 A6 00 [00:10:35]Write to MH i2c: E2 0C 00 25 1F 80 15 01 00 04 00 02 00 A6 00 00 00 73 [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 25 1F 00 90 00 B8 [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=23 [00:10:35]MH_SAM_APDU [00:10: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:10:35]Write to MH i2c: E2 1A 00 26 1F 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 BA [00:10:35]Write i2c OK [00:10:35]MH_I2C_Read... [00:10:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:35]Read from MH i2c: E2 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 [00:10:35]MH_I2C_Read... [00:10:35]Read from MH i2c: E2 03 00 26 1F 00 90 00 B9 [00:10:35]RAPDU: 90 00 [00:10:35]wFMCommunicate OK [00:10:35]wFMCommunicate request_size=28 [00:10:35]MH_SAM_APDU [00:10:35]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 [00:10:35]Write to MH i2c: E2 1F 00 27 1F 80 15 02 00 17 00 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 00 00 5C [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 27 1F 00 90 00 BA [00:10:36]RAPDU: 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=56 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 15 02 00 33 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 [00:10:36]Write to MH i2c: E2 3B 00 28 1F 80 15 02 00 33 00 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 00 00 7C [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [00:10:36]RAPDU: 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=51 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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:10:36]Write to MH i2c: E2 36 00 29 1F 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 72 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]OFD Sender: No OFD packet to send [00:10:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 29 1F 00 90 00 BC [00:10:36]RAPDU: 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=13 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 15 02 00 08 F4 03 04 00 FD 80 A9 66 [00:10:36]Write to MH i2c: E2 10 00 2A 1F 80 15 02 00 08 00 F4 03 04 00 FD 80 A9 66 00 00 60 [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [00:10:36]RAPDU: 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=25 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 [00:10:36]Write to MH i2c: E2 1C 00 2B 1F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 00 00 2A [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [00:10:36]RAPDU: 90 00 [00:10:36]wFMCommunicate OK [00:10:36]wFMCommunicate request_size=4 [00:10:36]MH_SAM_APDU [00:10:36]CAPDU: 80 15 03 00 [00:10:36]Write to MH i2c: E2 08 00 2C 1F 80 15 03 00 00 00 00 00 CC [00:10:36]Write i2c OK [00:10:36]MH_I2C_Read... [00:10:36]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:10:36]Read from MH i2c: E2 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 38 00 [00:10:36]MH_I2C_Read... [00:10:36]Read from MH i2c: E2 38 00 2C 1F 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 35 04 06 00 9A 94 1E D6 10 7F 90 00 BD [00:10:36]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 35 04 06 00 9A 94 1E D6 10 7F 90 00 [00:10:36]wFMCommunicate OK [00:10:36]SAM_PROTO_ProcessDocument answer len = 51 [00:10:36]SAM_PROTO_ProcessDocument done [00:10:36]SetTLVBufToDocument [00:10:36]Processing tag 1209 (04B9) [00:10:36]Malloc new data [00:10:36]Processing tag 1041 (0411) [00:10:36]Processing tag 1040 (0410) [00:10:36]Malloc new data [00:10:36]Processing tag 1038 (040E) [00:10:36]Malloc new data [00:10:36]Processing tag 1077 (0435) [00:10:36]Malloc new data [00:10:36]SetTLVBufToDocument err=0 [00:10:36]KKMLoadAndSignOpenShiftData store KKM data [00:10:36]KKMLoadAndSignOpenShiftData err=0 [00:10:36]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Хошимов З. Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 Место: АЗС № 134 "Партнер Нефть" 31.07.2024 00:10 Смена: 436 РНМ: 0000000000092660 ЗНМ: 0300000044 ФД: 119269 ФМ: 0000000000874939 ФПД: 169960963182719 [00:10:36]StoreToDocumentArchive [00:10:36]shift 436 fd 119269 [00:10:36]Create dir for shift 0436 [00:10:36]save to /storage/0436/doc_00119269 [00:10:36]save last doc name /storage/0436/doc_00119269 to /storage/kkm_last_doc_name [00:10:36]save OK [00:10:36]Clear old archive folders... [00:10:36]Remove dir /storage/0435 [00:10:36]opendir ok [00:10:36]file . [00:10:36]file .. [00:10:36]file doc_00118948 [00:10:36]remove file /storage/0435/doc_00118948 [00:10:36]file doc_00118949 [00:10:36]remove file /storage/0435/doc_00118949 [00:10:36]file doc_00118950 [00:10:36]remove file /storage/0435/doc_00118950 [00:10:36]file doc_00118951 [00:10:36]remove file /storage/0435/doc_00118951 [00:10:36]file doc_00118952 [00:10:36]remove file /storage/0435/doc_00118952 [00:10:36]file doc_00118953 [00:10:36]remove file /storage/0435/doc_00118953 [00:10:36]file doc_00118954 [00:10:36]remove file /storage/0435/doc_00118954 [00:10:36]file doc_00118955 [00:10:36]remove file /storage/0435/doc_00118955 [00:10:36]file doc_00118956 [00:10:36]remove file /storage/0435/doc_00118956 [00:10:36]file doc_00118957 [00:10:36]remove file /storage/0435/doc_00118957 [00:10:36]file doc_00118958 [00:10:36]remove file /storage/0435/doc_00118958 [00:10:36]file doc_00118959 [00:10:36]remove file /storage/0435/doc_00118959 [00:10:36]file doc_00118960 [00:10:36]remove file /storage/0435/doc_00118960 [00:10:36]file doc_00118961 [00:10:36]remove file /storage/0435/doc_00118961 [00:10:36]file doc_00118962 [00:10:36]remove file /storage/0435/doc_00118962 [00:10:36]file doc_00118963 [00:10:36]remove file /storage/0435/doc_00118963 [00:10:36]file doc_00118964 [00:10:36]remove file /storage/0435/doc_00118964 [00:10:36]file doc_00118965 [00:10:36]remove file /storage/0435/doc_00118965 [00:10:36]file doc_00118966 [00:10:36]remove file /storage/0435/doc_00118966 [00:10:36]file doc_00118967 [00:10:36]remove file /storage/0435/doc_00118967 [00:10:36]file doc_00118968 [00:10:36]remove file /storage/0435/doc_00118968 [00:10:36]file doc_00118969 [00:10:36]remove file /storage/0435/doc_00118969 [00:10:36]file doc_00118970 [00:10:36]remove file /storage/0435/doc_00118970 [00:10:36]file doc_00118971 [00:10:36]remove file /storage/0435/doc_00118971 [00:10:36]file doc_00118972 [00:10:36]remove file /storage/0435/doc_00118972 [00:10:36]file doc_00118973 [00:10:36]remove file /storage/0435/doc_00118973 [00:10:36]file doc_00118974 [00:10:36]remove file /storage/0435/doc_00118974 [00:10:36]file doc_00118975 [00:10:36]remove file /storage/0435/doc_00118975 [00:10:36]file doc_00118976 [00:10:36]remove file /storage/0435/doc_00118976 [00:10:36]file doc_00118977 [00:10:36]remove file /storage/0435/doc_00118977 [00:10:36]file doc_00118978 [00:10:36]remove file /storage/0435/doc_00118978 [00:10:36]file doc_00118979 [00:10:36]remove file /storage/0435/doc_00118979 [00:10:36]file doc_00118980 [00:10:36]remove file /storage/0435/doc_00118980 [00:10:36]file doc_00118981 [00:10:36]remove file /storage/0435/doc_00118981 [00:10:36]file doc_00118982 [00:10:36]remove file /storage/0435/doc_00118982 [00:10:36]file doc_00118983 [00:10:36]remove file /storage/0435/doc_00118983 [00:10:36]file doc_00118984 [00:10:36]remove file /storage/0435/doc_00118984 [00:10:36]file doc_00118985 [00:10:36]remove file /storage/0435/doc_00118985 [00:10:36]file doc_00118986 [00:10:36]remove file /storage/0435/doc_00118986 [00:10:36]file doc_00118987 [00:10:36]remove file /storage/0435/doc_00118987 [00:10:36]file doc_00118988 [00:10:36]remove file /storage/0435/doc_00118988 [00:10:36]file doc_00118989 [00:10:36]remove file /storage/0435/doc_00118989 [00:10:36]file doc_00118990 [00:10:36]remove file /storage/0435/doc_00118990 [00:10:37]file doc_00118991 [00:10:37]remove file /storage/0435/doc_00118991 [00:10:37]file doc_00118992 [00:10:37]remove file /storage/0435/doc_00118992 [00:10:37]file doc_00118993 [00:10:37]remove file /storage/0435/doc_00118993 [00:10:37]file doc_00118994 [00:10:37]remove file /storage/0435/doc_00118994 [00:10:37]file doc_00118995 [00:10:37]remove file /storage/0435/doc_00118995 [00:10:37]file doc_00118996 [00:10:37]remove file /storage/0435/doc_00118996 [00:10:37]file doc_00118997 [00:10:37]remove file /storage/0435/doc_00118997 [00:10:37]file doc_00118998 [00:10:37]remove file /storage/0435/doc_00118998 [00:10:37]file doc_00118999 [00:10:37]remove file /storage/0435/doc_00118999 [00:10:37]file doc_00119000 [00:10:37]remove file /storage/0435/doc_00119000 [00:10:37]file doc_00119001 [00:10:37]remove file /storage/0435/doc_00119001 [00:10:37]file doc_00119002 [00:10:37]remove file /storage/0435/doc_00119002 [00:10:37]file doc_00119003 [00:10:37]remove file /storage/0435/doc_00119003 [00:10:37]file doc_00119004 [00:10:37]remove file /storage/0435/doc_00119004 [00:10:37]file doc_00119005 [00:10:37]remove file /storage/0435/doc_00119005 [00:10:37]file doc_00119006 [00:10:37]remove file /storage/0435/doc_00119006 [00:10:37]file doc_00119007 [00:10:37]remove file /storage/0435/doc_00119007 [00:10:37]file doc_00119008 [00:10:37]remove file /storage/0435/doc_00119008 [00:10:37]file doc_00119009 [00:10:37]remove file /storage/0435/doc_00119009 [00:10:37]file doc_00119010 [00:10:37]remove file /storage/0435/doc_00119010 [00:10:37]file doc_00119011 [00:10:37]remove file /storage/0435/doc_00119011 [00:10:37]file doc_00119012 [00:10:37]remove file /storage/0435/doc_00119012 [00:10:37]file doc_00119013 [00:10:37]remove file /storage/0435/doc_00119013 [00:10:37]file doc_00119014 [00:10:37]remove file /storage/0435/doc_00119014 [00:10:37]file doc_00119015 [00:10:37]remove file /storage/0435/doc_00119015 [00:10:37]file doc_00119016 [00:10:37]remove file /storage/0435/doc_00119016 [00:10:37]file doc_00119017 [00:10:37]remove file /storage/0435/doc_00119017 [00:10:37]file doc_00119018 [00:10:37]remove file /storage/0435/doc_00119018 [00:10:37]file doc_00119019 [00:10:37]remove file /storage/0435/doc_00119019 [00:10:37]file doc_00119020 [00:10:37]remove file /storage/0435/doc_00119020 [00:10:37]file doc_00119021 [00:10:37]remove file /storage/0435/doc_00119021 [00:10:37]file doc_00119022 [00:10:37]remove file /storage/0435/doc_00119022 [00:10:37]file doc_00119023 [00:10:37]remove file /storage/0435/doc_00119023 [00:10:37]file doc_00119024 [00:10:37]remove file /storage/0435/doc_00119024 [00:10:37]file doc_00119025 [00:10:37]remove file /storage/0435/doc_00119025 [00:10:37]file doc_00119026 [00:10:37]remove file /storage/0435/doc_00119026 [00:10:37]file doc_00119027 [00:10:37]remove file /storage/0435/doc_00119027 [00:10:37]file doc_00119028 [00:10:37]remove file /storage/0435/doc_00119028 [00:10:37]file doc_00119029 [00:10:37]remove file /storage/0435/doc_00119029 [00:10:37]file doc_00119030 [00:10:37]remove file /storage/0435/doc_00119030 [00:10:37]file doc_00119031 [00:10:37]remove file /storage/0435/doc_00119031 [00:10:37]file doc_00119032 [00:10:37]remove file /storage/0435/doc_00119032 [00:10:37]file doc_00119033 [00:10:37]remove file /storage/0435/doc_00119033 [00:10:37]file doc_00119034 [00:10:37]remove file /storage/0435/doc_00119034 [00:10:37]file doc_00119035 [00:10:37]remove file /storage/0435/doc_00119035 [00:10:37]file doc_00119036 [00:10:37]remove file /storage/0435/doc_00119036 [00:10:37]file doc_00119037 [00:10:37]remove file /storage/0435/doc_00119037 [00:10:37]file doc_00119038 [00:10:37]remove file /storage/0435/doc_00119038 [00:10:37]file doc_00119039 [00:10:37]remove file /storage/0435/doc_00119039 [00:10:37]file doc_00119040 [00:10:37]remove file /storage/0435/doc_00119040 [00:10:37]file doc_00119041 [00:10:37]remove file /storage/0435/doc_00119041 [00:10:37]file doc_00119042 [00:10:37]remove file /storage/0435/doc_00119042 [00:10:37]file doc_00119043 [00:10:37]remove file /storage/0435/doc_00119043 [00:10:37]file doc_00119044 [00:10:37]remove file /storage/0435/doc_00119044 [00:10:37]file doc_00119045 [00:10:37]remove file /storage/0435/doc_00119045 [00:10:37]file doc_00119046 [00:10:37]remove file /storage/0435/doc_00119046 [00:10:37]file doc_00119047 [00:10:37]remove file /storage/0435/doc_00119047 [00:10:37]file doc_00119048 [00:10:37]remove file /storage/0435/doc_00119048 [00:10:37]file doc_00119049 [00:10:37]remove file /storage/0435/doc_00119049 [00:10:37]file doc_00119050 [00:10:37]remove file /storage/0435/doc_00119050 [00:10:37]file doc_00119051 [00:10:37]remove file /storage/0435/doc_00119051 [00:10:37]file doc_00119052 [00:10:37]remove file /storage/0435/doc_00119052 [00:10:37]file doc_00119053 [00:10:37]remove file /storage/0435/doc_00119053 [00:10:37]file doc_00119054 [00:10:37]remove file /storage/0435/doc_00119054 [00:10:37]file doc_00119055 [00:10:37]remove file /storage/0435/doc_00119055 [00:10:37]file doc_00119056 [00:10:37]remove file /storage/0435/doc_00119056 [00:10:37]file doc_00119057 [00:10:37]remove file /storage/0435/doc_00119057 [00:10:37]file doc_00119058 [00:10:37]remove file /storage/0435/doc_00119058 [00:10:37]file doc_00119059 [00:10:37]remove file /storage/0435/doc_00119059 [00:10:37]file doc_00119060 [00:10:37]remove file /storage/0435/doc_00119060 [00:10:37]file doc_00119061 [00:10:37]remove file /storage/0435/doc_00119061 [00:10:37]file doc_00119062 [00:10:37]remove file /storage/0435/doc_00119062 [00:10:37]file doc_00119063 [00:10:37]remove file /storage/0435/doc_00119063 [00:10:37]file doc_00119064 [00:10:37]remove file /storage/0435/doc_00119064 [00:10:37]file doc_00119065 [00:10:37]remove file /storage/0435/doc_00119065 [00:10:37]file doc_00119066 [00:10:37]remove file /storage/0435/doc_00119066 [00:10:37]file doc_00119067 [00:10:37]remove file /storage/0435/doc_00119067 [00:10:37]file doc_00119068 [00:10:37]remove file /storage/0435/doc_00119068 [00:10:37]file doc_00119069 [00:10:37]remove file /storage/0435/doc_00119069 [00:10:37]file doc_00119070 [00:10:37]remove file /storage/0435/doc_00119070 [00:10:37]file doc_00119071 [00:10:37]remove file /storage/0435/doc_00119071 [00:10:37]file doc_00119072 [00:10:37]remove file /storage/0435/doc_00119072 [00:10:37]file doc_00119073 [00:10:37]remove file /storage/0435/doc_00119073 [00:10:37]file doc_00119074 [00:10:37]remove file /storage/0435/doc_00119074 [00:10:37]file doc_00119075 [00:10:37]remove file /storage/0435/doc_00119075 [00:10:37]file doc_00119076 [00:10:37]remove file /storage/0435/doc_00119076 [00:10:37]file doc_00119077 [00:10:37]remove file /storage/0435/doc_00119077 [00:10:37]file doc_00119078 [00:10:37]remove file /storage/0435/doc_00119078 [00:10:37]file doc_00119079 [00:10:37]remove file /storage/0435/doc_00119079 [00:10:37]file doc_00119080 [00:10:37]remove file /storage/0435/doc_00119080 [00:10:37]file doc_00119081 [00:10:37]remove file /storage/0435/doc_00119081 [00:10:37]file doc_00119082 [00:10:37]remove file /storage/0435/doc_00119082 [00:10:37]file doc_00119083 [00:10:37]remove file /storage/0435/doc_00119083 [00:10:37]file doc_00119084 [00:10:37]remove file /storage/0435/doc_00119084 [00:10:37]file doc_00119085 [00:10:37]remove file /storage/0435/doc_00119085 [00:10:37]file doc_00119086 [00:10:37]remove file /storage/0435/doc_00119086 [00:10:37]file doc_00119087 [00:10:37]remove file /storage/0435/doc_00119087 [00:10:37]file doc_00119088 [00:10:37]remove file /storage/0435/doc_00119088 [00:10:37]file doc_00119089 [00:10:37]remove file /storage/0435/doc_00119089 [00:10:37]file doc_00119090 [00:10:37]remove file /storage/0435/doc_00119090 [00:10:37]file doc_00119091 [00:10:37]remove file /storage/0435/doc_00119091 [00:10:37]file doc_00119092 [00:10:37]remove file /storage/0435/doc_00119092 [00:10:37]file doc_00119093 [00:10:37]remove file /storage/0435/doc_00119093 [00:10:37]file doc_00119094 [00:10:37]remove file /storage/0435/doc_00119094 [00:10:37]file doc_00119095 [00:10:37]remove file /storage/0435/doc_00119095 [00:10:37]file doc_00119096 [00:10:37]remove file /storage/0435/doc_00119096 [00:10:37]file doc_00119097 [00:10:37]remove file /storage/0435/doc_00119097 [00:10:37]file doc_00119098 [00:10:37]remove file /storage/0435/doc_00119098 [00:10:37]file doc_00119099 [00:10:37]remove file /storage/0435/doc_00119099 [00:10:37]file doc_00119100 [00:10:37]remove file /storage/0435/doc_00119100 [00:10:37]file doc_00119101 [00:10:37]remove file /storage/0435/doc_00119101 [00:10:37]file doc_00119102 [00:10:37]remove file /storage/0435/doc_00119102 [00:10:37]file doc_00119103 [00:10:37]remove file /storage/0435/doc_00119103 [00:10:37]file doc_00119104 [00:10:37]remove file /storage/0435/doc_00119104 [00:10:37]file doc_00119105 [00:10:37]remove file /storage/0435/doc_00119105 [00:10:37]file doc_00119106 [00:10:37]remove file /storage/0435/doc_00119106 [00:10:37]file doc_00119107 [00:10:37]remove file /storage/0435/doc_00119107 [00:10:37]file doc_00119108 [00:10:37]remove file /storage/0435/doc_00119108 [00:10:37]file doc_00119109 [00:10:37]remove file /storage/0435/doc_00119109 [00:10:37]file doc_00119110 [00:10:37]remove file /storage/0435/doc_00119110 [00:10:37]file doc_00119111 [00:10:37]remove file /storage/0435/doc_00119111 [00:10:37]file doc_00119112 [00:10:37]remove file /storage/0435/doc_00119112 [00:10:37]file doc_00119113 [00:10:37]remove file /storage/0435/doc_00119113 [00:10:37]file doc_00119114 [00:10:37]remove file /storage/0435/doc_00119114 [00:10:37]file doc_00119115 [00:10:37]remove file /storage/0435/doc_00119115 [00:10:37]file doc_00119116 [00:10:37]remove file /storage/0435/doc_00119116 [00:10:37]file doc_00119117 [00:10:37]remove file /storage/0435/doc_00119117 [00:10:37]file doc_00119118 [00:10:37]remove file /storage/0435/doc_00119118 [00:10:37]file doc_00119119 [00:10:37]remove file /storage/0435/doc_00119119 [00:10:37]file doc_00119120 [00:10:37]remove file /storage/0435/doc_00119120 [00:10:37]file doc_00119121 [00:10:37]remove file /storage/0435/doc_00119121 [00:10:37]file doc_00119122 [00:10:37]remove file /storage/0435/doc_00119122 [00:10:37]file doc_00119123 [00:10:37]remove file /storage/0435/doc_00119123 [00:10:37]file doc_00119124 [00:10:37]remove file /storage/0435/doc_00119124 [00:10:37]file doc_00119125 [00:10:37]remove file /storage/0435/doc_00119125 [00:10:37]file doc_00119126 [00:10:37]remove file /storage/0435/doc_00119126 [00:10:37]file doc_00119127 [00:10:37]remove file /storage/0435/doc_00119127 [00:10:37]file doc_00119128 [00:10:37]remove file /storage/0435/doc_00119128 [00:10:37]file doc_00119129 [00:10:37]remove file /storage/0435/doc_00119129 [00:10:37]file doc_00119130 [00:10:37]remove file /storage/0435/doc_00119130 [00:10:37]file doc_00119131 [00:10:37]remove file /storage/0435/doc_00119131 [00:10:37]file doc_00119132 [00:10:37]remove file /storage/0435/doc_00119132 [00:10:37]file doc_00119133 [00:10:37]remove file /storage/0435/doc_00119133 [00:10:37]file doc_00119134 [00:10:37]remove file /storage/0435/doc_00119134 [00:10:37]file doc_00119135 [00:10:37]remove file /storage/0435/doc_00119135 [00:10:37]file doc_00119136 [00:10:37]remove file /storage/0435/doc_00119136 [00:10:37]file doc_00119137 [00:10:37]remove file /storage/0435/doc_00119137 [00:10:37]file doc_00119138 [00:10:37]remove file /storage/0435/doc_00119138 [00:10:37]file doc_00119139 [00:10:37]remove file /storage/0435/doc_00119139 [00:10:37]file doc_00119140 [00:10:37]remove file /storage/0435/doc_00119140 [00:10:37]file doc_00119141 [00:10:37]remove file /storage/0435/doc_00119141 [00:10:37]file doc_00119142 [00:10:37]remove file /storage/0435/doc_00119142 [00:10:37]file doc_00119143 [00:10:37]remove file /storage/0435/doc_00119143 [00:10:37]file doc_00119144 [00:10:37]remove file /storage/0435/doc_00119144 [00:10:37]file doc_00119145 [00:10:37]remove file /storage/0435/doc_00119145 [00:10:37]file doc_00119146 [00:10:37]remove file /storage/0435/doc_00119146 [00:10:37]file doc_00119147 [00:10:37]remove file /storage/0435/doc_00119147 [00:10:37]file doc_00119148 [00:10:37]remove file /storage/0435/doc_00119148 [00:10:37]file doc_00119149 [00:10:37]remove file /storage/0435/doc_00119149 [00:10:37]file doc_00119150 [00:10:37]remove file /storage/0435/doc_00119150 [00:10:37]file doc_00119151 [00:10:37]remove file /storage/0435/doc_00119151 [00:10:37]file doc_00119152 [00:10:37]remove file /storage/0435/doc_00119152 [00:10:37]file doc_00119153 [00:10:37]remove file /storage/0435/doc_00119153 [00:10:37]file doc_00119154 [00:10:37]remove file /storage/0435/doc_00119154 [00:10:37]file doc_00119155 [00:10:37]remove file /storage/0435/doc_00119155 [00:10:37]file doc_00119156 [00:10:37]remove file /storage/0435/doc_00119156 [00:10:37]file doc_00119157 [00:10:37]remove file /storage/0435/doc_00119157 [00:10:37]file doc_00119158 [00:10:37]remove file /storage/0435/doc_00119158 [00:10:37]file doc_00119159 [00:10:37]remove file /storage/0435/doc_00119159 [00:10:37]file doc_00119160 [00:10:37]remove file /storage/0435/doc_00119160 [00:10:37]file doc_00119161 [00:10:37]remove file /storage/0435/doc_00119161 [00:10:37]file doc_00119162 [00:10:37]remove file /storage/0435/doc_00119162 [00:10:37]file doc_00119163 [00:10:37]remove file /storage/0435/doc_00119163 [00:10:37]file doc_00119164 [00:10:37]remove file /storage/0435/doc_00119164 [00:10:37]file doc_00119165 [00:10:37]remove file /storage/0435/doc_00119165 [00:10:37]file doc_00119166 [00:10:37]remove file /storage/0435/doc_00119166 [00:10:37]file doc_00119167 [00:10:37]remove file /storage/0435/doc_00119167 [00:10:37]file doc_00119168 [00:10:37]remove file /storage/0435/doc_00119168 [00:10:37]file doc_00119169 [00:10:37]remove file /storage/0435/doc_00119169 [00:10:37]file doc_00119170 [00:10:37]remove file /storage/0435/doc_00119170 [00:10:37]file doc_00119171 [00:10:37]remove file /storage/0435/doc_00119171 [00:10:37]file doc_00119172 [00:10:37]remove file /storage/0435/doc_00119172 [00:10:37]file doc_00119173 [00:10:37]remove file /storage/0435/doc_00119173 [00:10:37]file doc_00119174 [00:10:37]remove file /storage/0435/doc_00119174 [00:10:37]file doc_00119175 [00:10:37]remove file /storage/0435/doc_00119175 [00:10:37]file doc_00119176 [00:10:37]remove file /storage/0435/doc_00119176 [00:10:37]file doc_00119177 [00:10:37]remove file /storage/0435/doc_00119177 [00:10:37]file doc_00119178 [00:10:37]remove file /storage/0435/doc_00119178 [00:10:37]file doc_00119179 [00:10:37]remove file /storage/0435/doc_00119179 [00:10:37]file doc_00119180 [00:10:37]remove file /storage/0435/doc_00119180 [00:10:37]file doc_00119181 [00:10:37]remove file /storage/0435/doc_00119181 [00:10:37]file doc_00119182 [00:10:37]remove file /storage/0435/doc_00119182 [00:10:37]file doc_00119183 [00:10:37]remove file /storage/0435/doc_00119183 [00:10:37]file doc_00119184 [00:10:37]remove file /storage/0435/doc_00119184 [00:10:37]file doc_00119185 [00:10:37]remove file /storage/0435/doc_00119185 [00:10:37]file doc_00119186 [00:10:37]remove file /storage/0435/doc_00119186 [00:10:37]file doc_00119187 [00:10:37]remove file /storage/0435/doc_00119187 [00:10:37]file doc_00119188 [00:10:37]remove file /storage/0435/doc_00119188 [00:10:37]file doc_00119189 [00:10:37]remove file /storage/0435/doc_00119189 [00:10:37]file doc_00119190 [00:10:37]remove file /storage/0435/doc_00119190 [00:10:37]file doc_00119191 [00:10:37]remove file /storage/0435/doc_00119191 [00:10:37]file doc_00119192 [00:10:37]remove file /storage/0435/doc_00119192 [00:10:37]file doc_00119193 [00:10:37]remove file /storage/0435/doc_00119193 [00:10:37]file doc_00119194 [00:10:37]remove file /storage/0435/doc_00119194 [00:10:37]file doc_00119195 [00:10:37]remove file /storage/0435/doc_00119195 [00:10:37]file doc_00119196 [00:10:37]remove file /storage/0435/doc_00119196 [00:10:37]file doc_00119197 [00:10:37]remove file /storage/0435/doc_00119197 [00:10:37]file doc_00119198 [00:10:37]remove file /storage/0435/doc_00119198 [00:10:37]file doc_00119199 [00:10:37]remove file /storage/0435/doc_00119199 [00:10:37]file doc_00119200 [00:10:37]remove file /storage/0435/doc_00119200 [00:10:37]file doc_00119201 [00:10:37]remove file /storage/0435/doc_00119201 [00:10:37]file doc_00119202 [00:10:37]remove file /storage/0435/doc_00119202 [00:10:37]file doc_00119203 [00:10:37]remove file /storage/0435/doc_00119203 [00:10:37]file doc_00119204 [00:10:37]remove file /storage/0435/doc_00119204 [00:10:37]file doc_00119205 [00:10:37]remove file /storage/0435/doc_00119205 [00:10:37]file doc_00119206 [00:10:37]remove file /storage/0435/doc_00119206 [00:10:37]file doc_00119207 [00:10:37]remove file /storage/0435/doc_00119207 [00:10:37]file doc_00119208 [00:10:37]remove file /storage/0435/doc_00119208 [00:10:37]file doc_00119209 [00:10:37]remove file /storage/0435/doc_00119209 [00:10:37]file doc_00119210 [00:10:37]remove file /storage/0435/doc_00119210 [00:10:37]file doc_00119211 [00:10:37]remove file /storage/0435/doc_00119211 [00:10:37]file doc_00119212 [00:10:37]remove file /storage/0435/doc_00119212 [00:10:37]file doc_00119213 [00:10:37]remove file /storage/0435/doc_00119213 [00:10:37]file doc_00119214 [00:10:37]remove file /storage/0435/doc_00119214 [00:10:37]file doc_00119215 [00:10:37]remove file /storage/0435/doc_00119215 [00:10:37]file doc_00119216 [00:10:37]remove file /storage/0435/doc_00119216 [00:10:37]file doc_00119217 [00:10:37]remove file /storage/0435/doc_00119217 [00:10:37]file doc_00119218 [00:10:37]remove file /storage/0435/doc_00119218 [00:10:37]file doc_00119219 [00:10:37]remove file /storage/0435/doc_00119219 [00:10:37]file doc_00119220 [00:10:37]remove file /storage/0435/doc_00119220 [00:10:37]file doc_00119221 [00:10:37]remove file /storage/0435/doc_00119221 [00:10:37]file doc_00119222 [00:10:37]remove file /storage/0435/doc_00119222 [00:10:37]file doc_00119223 [00:10:37]remove file /storage/0435/doc_00119223 [00:10:37]file doc_00119224 [00:10:37]remove file /storage/0435/doc_00119224 [00:10:38]file doc_00119225 [00:10:38]remove file /storage/0435/doc_00119225 [00:10:38]file doc_00119226 [00:10:38]remove file /storage/0435/doc_00119226 [00:10:38]file doc_00119227 [00:10:38]remove file /storage/0435/doc_00119227 [00:10:38]file doc_00119228 [00:10:38]remove file /storage/0435/doc_00119228 [00:10:38]file doc_00119229 [00:10:38]remove file /storage/0435/doc_00119229 [00:10:38]file doc_00119230 [00:10:38]remove file /storage/0435/doc_00119230 [00:10:38]file doc_00119231 [00:10:38]remove file /storage/0435/doc_00119231 [00:10:38]file doc_00119232 [00:10:38]remove file /storage/0435/doc_00119232 [00:10:38]file doc_00119233 [00:10:38]remove file /storage/0435/doc_00119233 [00:10:38]file doc_00119234 [00:10:38]remove file /storage/0435/doc_00119234 [00:10:38]file doc_00119235 [00:10:38]remove file /storage/0435/doc_00119235 [00:10:38]file doc_00119236 [00:10:38]remove file /storage/0435/doc_00119236 [00:10:38]file doc_00119237 [00:10:38]remove file /storage/0435/doc_00119237 [00:10:38]file doc_00119238 [00:10:38]remove file /storage/0435/doc_00119238 [00:10:38]file doc_00119239 [00:10:38]remove file /storage/0435/doc_00119239 [00:10:38]file doc_00119240 [00:10:38]remove file /storage/0435/doc_00119240 [00:10:38]file doc_00119241 [00:10:38]remove file /storage/0435/doc_00119241 [00:10:38]file doc_00119242 [00:10:38]remove file /storage/0435/doc_00119242 [00:10:38]file doc_00119243 [00:10:38]remove file /storage/0435/doc_00119243 [00:10:38]file doc_00119244 [00:10:38]remove file /storage/0435/doc_00119244 [00:10:38]file doc_00119245 [00:10:38]remove file /storage/0435/doc_00119245 [00:10:38]file doc_00119246 [00:10:38]remove file /storage/0435/doc_00119246 [00:10:38]file doc_00119247 [00:10:38]remove file /storage/0435/doc_00119247 [00:10:38]file doc_00119248 [00:10:38]remove file /storage/0435/doc_00119248 [00:10:38]file doc_00119249 [00:10:38]remove file /storage/0435/doc_00119249 [00:10:38]file doc_00119250 [00:10:38]remove file /storage/0435/doc_00119250 [00:10:38]file doc_00119251 [00:10:38]remove file /storage/0435/doc_00119251 [00:10:38]file doc_00119252 [00:10:38]remove file /storage/0435/doc_00119252 [00:10:38]file doc_00119253 [00:10:38]remove file /storage/0435/doc_00119253 [00:10:38]file doc_00119254 [00:10:38]remove file /storage/0435/doc_00119254 [00:10:38]file doc_00119255 [00:10:38]remove file /storage/0435/doc_00119255 [00:10:38]file doc_00119256 [00:10:38]remove file /storage/0435/doc_00119256 [00:10:38]file doc_00119257 [00:10:38]remove file /storage/0435/doc_00119257 [00:10:38]file doc_00119258 [00:10:38]remove file /storage/0435/doc_00119258 [00:10:38]file doc_00119259 [00:10:38]remove file /storage/0435/doc_00119259 [00:10:38]file doc_00119260 [00:10:38]remove file /storage/0435/doc_00119260 [00:10:38]file doc_00119261 [00:10:38]remove file /storage/0435/doc_00119261 [00:10:38]file doc_00119262 [00:10:38]remove file /storage/0435/doc_00119262 [00:10:38]file doc_00119263 [00:10:38]remove file /storage/0435/doc_00119263 [00:10:38]file doc_00119264 [00:10:38]remove file /storage/0435/doc_00119264 [00:10:38]file doc_00119265 [00:10:38]remove file /storage/0435/doc_00119265 [00:10:38]file doc_00119266 [00:10:38]remove file /storage/0435/doc_00119266 [00:10:38]file doc_00119267 [00:10:38]remove file /storage/0435/doc_00119267 [00:10:38]file doc_00119268 [00:10:38]remove file /storage/0435/doc_00119268 [00:10:38]remove dir /storage/0435 [00:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=217 [00:10:38]tlvbuf is 0160FC10 [00:10:38]SAM_PROTO_ClearQueue [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 09 00 00 [00:10:38]Write to MH i2c: E2 08 00 2D 1F 80 09 00 00 00 00 00 00 BE [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 03 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [00:10:38]RAPDU: 90 00 [00:10:38]wFMCommunicate OK [00:10:38]SAM_PROTO_ClearQueue done [00:10:38]KKMCreateOFDPacket [00:10:38]OFDProtocolAddRootSTLVToBuf [00:10:38]FM_MakeSignedData [00:10:38]FM_MakeSignedData [00:10:38]SAM_PROTO_SignData [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 0D 01 02 [00:10:38]Write to MH i2c: E2 08 00 2E 1F 80 0D 01 02 00 00 00 00 C6 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 03 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [00:10:38]RAPDU: 90 00 [00:10:38]wFMCommunicate OK [00:10:38]wFMCommunicate request_size=226 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 0D 02 02 DD 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 FD 80 A9 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 9A 94 1E D6 10 7F [00:10:38]Write to MH i2c: E2 E5 00 2F 1F 80 0D 02 02 DD 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 FD 80 A9 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 9A 94 1E D6 10 7F 00 00 88 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 03 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [00:10:38]RAPDU: 90 00 [00:10:38]wFMCommunicate OK [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 0D 03 02 [00:10:38]Write to MH i2c: E2 08 00 30 1F 80 0D 03 02 00 00 00 00 CA [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 0B 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 0B 00 30 1F 00 0D 01 A3 93 26 99 DA 91 90 00 39 [00:10:38]RAPDU: 0D 01 A3 93 26 99 DA 91 90 00 [00:10:38]wFMCommunicate OK [00:10:38]SAM_PROTO_SignData done [00:10:38]FM_MakeSignedData done [00:10:38]CreateOFDProtocolMessage [00:10:38]wFMCommunicate request_size=4 [00:10:38]MH_SAM_APDU [00:10:38]CAPDU: 80 11 00 00 [00:10:38]Write to MH i2c: E2 08 00 31 1F 80 11 00 00 00 00 00 00 CA [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:38]Read from MH i2c: E2 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 17 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: E2 17 00 31 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 25 [00:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:10:38]wFMCommunicate OK [00:10:38]CreateOFDProtocolMessage done [00:10:38]OFDSenderStorePacket 119269 [00:10:38]StoreOFDPacket docnum=119269 [00:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 ED 00 00 00 BD 12 E5 00 B0 11 5A 02 01 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 FD 80 A9 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 9A 94 1E D6 10 7F 0D 01 A3 93 26 99 DA 91 [00:10:38]CheckFolder [00:10:38]dirname=/storage/ofd_packets [00:10:38]CheckFolder done [00:10:38]ProducePacketName [00:10:38]name=ofd_packets/00119269 [00:10:38]NVStorageSaveData ofd_packets/00119269 [00:10:38]File name is /storage/ofd_packets/00119269 [00:10:38]Write 267 bytes [00:10:38]NVStorageSaveData done [00:10:38]OFDSenderStorePacket done [00:10:38]KKMCreateOFDPacket done [00:10:38]NVStorageSaveData kkm_last_timestamp [00:10:38]File name is /storage/kkm_last_timestamp [00:10:38]Write 4 bytes [00:10:38]NVStorageSaveData done [00:10:38]ExternCall_PrintAddStr [00:10:38]wPrintStart [00:10:38]Write to MH i2c: 01 00 00 32 1F 51 [00:10:38]Write i2c OK [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: 01 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: 01 07 00 [00:10:38]MH_I2C_Read... [00:10:38]Read from MH i2c: 01 07 00 32 1F 00 00 00 00 00 FF 0F 66 [00:10:38]RasterBufferAndPrint [00:10:38]line Отчет об открытии смены [00:10:38]line ФФД: 1.0 [00:10:38]line ИНН: 02508201610067 [00:10:38]line Кассир: Хошимов З. [00:10:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:10:38]line Место: АЗС № 134 "Партнер Нефть" [00:10:38]line 31.07.2024 00:10 [00:10:38]line Смена: 436 [00:10:38]line РНМ: 0000000000092660 [00:10:38]line ЗНМ: 0300000044 [00:10:38]line ФД: 119269 [00:10:38]line ФМ: 0000000000874939 [00:10:38]line ФПД: 169960963182719 [00:10:38]written 0, free lines is 4095 [00:10:38]OFD Sender: Processing packet 119269 [packets to send 86, broken 85] [00:10:38]ProducePacketName [00:10:38]name=ofd_packets/00119269 [00:10:38]OFD Sender: To server: pG, [00:10:38]CommunicateWithHost lk.salyk.kg:30040 [00:10:38]ConnectInit lk.salyk.kg [00:10:39]Connected sock=10 [00:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 ED 00 00 00 BD 12 E5 00 B0 11 5A 02 01 00 02 00 D9 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 A5 D0 BE D1 88 D0 B8 D0 BC D0 BE D0 B2 20 D0 97 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 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 FD 80 A9 66 0E 04 04 00 B4 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 35 04 06 00 9A 94 1E D6 10 7F 0D 01 A3 93 26 99 DA 91 [00:10:39]Write to MH i2c: 01 00 00 43 1F 62 [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: 01 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: 01 07 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: 01 07 00 43 1F 00 00 00 00 00 6E 0E E5 [00:10:39]RasterBufferAndPrint [00:10:39]line [00:10:39]line [00:10:39]line [00:10:39]line [00:10:39]line [00:10:39]written 0, free lines is 3701 [00:10:39]MH_Cut [00:10:39]Write to MH i2c: D1 01 00 4A 1F 01 3B [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: D1 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: D1 01 00 [00:10:39]MH_I2C_Read... [00:10:39]Read from MH i2c: D1 01 00 4A 1F 00 3A [00:10:39]Write to MH i2c: 01 00 00 4B 1F 6A [00:10:39]Write i2c OK [00:10:39]MH_I2C_Read... [00:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 6A 51 47 00 35 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E5 D1 01 00 F4 03 04 00 89 2E A9 66 B6 04 01 00 00 D2 6E E6 82 F7 0F 9C 6C [00:10:39]CommunicateWithHost err = 0 [00:10:39]CheckOFDResponse [00:10:39]1017 (14) - 77093643461234 [00:10:39]1041 (16) - 0000000000874939 [00:10:39]1040 (4) - 119269 [00:10:39]1012 (4) - 30.07.2024 18:18 [00:10:39]1206 (1) - 0 [00:10:39]OFD Sender: Remove packet 119269 [00:10:39]ProducePacketName [00:10:39]name=ofd_packets/00119269 [00:10:39]NVStorageDeleteData [00:10:39]*** Cut start [00:10:39]*** Partial cut [00:10:39]*** CUTSNS_PIN = 1 [00:10:39]*** CUTSNS_PIN = 0 [00:10:39]OFD Sender: No OFD packet to send [00:10:39]*** Brake cut motor [00:10:40]Read from MH i2c: 01 [00:10:40]MH_I2C_Read... [00:10:40]*** Stop cut motor [00:10:40]*** Cut end [00:10:40]Read from MH i2c: 01 07 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: 01 07 00 4B 1F 00 00 00 00 00 FF 0F 7F [00:10:40]process_action open_shift done [00:10:40]requested_data is exist [00:10:40]produce_requested_data [00:10:40]requested_item fd.num is exist - process it [00:10:40]SAM_PROTO_GetFieldsCounters [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 13 00 00 [00:10:40]Write to MH i2c: E2 08 00 4C 1F 80 13 00 00 00 00 00 00 E7 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 62 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 62 00 4C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [00:10:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:40]wFMCommunicate OK [00:10:40]SAM_PROTO_GetFieldsCounters done [00:10:40]requested_item shift.num is exist - process it [00:10:40]requested_item shift.opened is exist - process it [00:10:40]req_shift_opened [00:10:40]FM_GetShiftState [00:10:40]SAM_PROTO_GetShiftState [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 13 01 00 [00:10:40]Write to MH i2c: E2 08 00 4D 1F 80 13 01 00 00 00 00 00 E9 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 0E 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 0E 00 4D 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 81 [00:10:40]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:10:40]wFMCommunicate OK [00:10:40]SAM_PROTO_GetShiftState done [00:10:40]FM_GetShiftState done [00:10:40]req_shift_opened done [00:10:40]requested_item shift.open_date is exist - process it [00:10:40]req_shift_open_date [00:10:40]req_shift_open_date done [00:10:40]produce_requested_data done [00:10:40]produce_requested_data return {"fd.num":119269,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:10:40]process_action_free open_shift [00:10:40]json_value_free [00:10:40]json_value_free done [00:10:40]process_json_proto returns [00:10:40]Send response to host [00:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":119269,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:10:40]free response buf [00:10:40]execute_script done [00:10:40]execute_script returns [00:10:40]free content buf [00:10:40]Sock 9.Close socket [00:10:40]Sock 9.Thread stoped [00:10:40]accept exits with 7 [00:10:40]New connection [00:10:40]New thread 3066695012 created [00:10:40]Thread 3066838372 joined [00:10:40]Waiting for new connection... [00:10:40] Sock 7.Parse request [00:10:40]Sock 7.Check first char [00:10:40]Sock 7.First char is OK [00:10:40]request: POST /json_proto HTTP/1.0 [00:10:40]Method: POST [00:10:40]URL: /json_proto [00:10:40]Method is POST - this is cgi request [00:10:40]url: /json_proto [00:10:40]query_string will be loaded in cgi processing [00:10:40]execute_cgi json_proto POST (null) [00:10:40]execute_cgi path=json_proto method=POST [00:10:40]POST find Content-Length [00:10:40]Host: 172.17.45.7:8080 [00:10:40]Content-Length: 331 [00:10:40]Content-Type: application/json [00:10:40] [00:10:40]POST finish read [00:10:40]Found Content-Length = 331 [00:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:40]execute_script... [00:10:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:10:40]POST & json_proto [00:10:40]process_json_proto [00:10:40]json parsed OK: [00:10:40]protocol is kg_v1.0 [00:10:40]action value=get_value [00:10:40]process_action get_value [00:10:40]cmd_get_value [00:10:40]process_action get_value done [00:10:40]requested_data is exist [00:10:40]produce_requested_data [00:10:40]requested_item fm.sale.total is exist - process it [00:10:40]SAM_PROTO_GetFMData [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 13 03 00 [00:10:40]Write to MH i2c: E2 08 00 4E 1F 80 13 03 00 00 00 00 00 EC [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 FD 00 4E 1F 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 E5 [00:10:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [00:10:41]wFMCommunicate OK [00:10:41]wFMCommunicate request_size=4 [00:10:41]MH_SAM_APDU [00:10:41]CAPDU: 80 17 00 00 [00:10:41]Write to MH i2c: E2 08 00 4F 1F 80 17 00 00 00 00 00 00 EE [00:10:41]Write i2c OK [00:10:41]MH_I2C_Read... [00:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:41]Read from MH i2c: E2 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 4F 1F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C4 [00:10:41]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:41]wFMCommunicate OK [00:10:41]wFMCommunicate request_size=4 [00:10:41]MH_SAM_APDU [00:10:41]CAPDU: 80 17 00 00 [00:10:41]Write to MH i2c: E2 08 00 50 1F 80 17 00 00 00 00 00 00 EF [00:10:41]Write i2c OK [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 [00:10:41]MH_I2C_Read... [00:10:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:41]Read from MH i2c: E2 FD 00 [00:10:41]MH_I2C_Read... [00:10:41]Read from MH i2c: E2 FD 00 50 1F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 01 [00:10:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:41]wFMCommunicate OK [00:10:41]wFMCommunicate request_size=4 [00:10:41]MH_SAM_APDU [00:10:41]CAPDU: 80 17 00 00 [00:10:41]Write to MH i2c: E2 08 00 51 1F 80 17 00 00 00 00 00 00 F0 [00:10:41]Write i2c OK [00:10:41]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 FD 00 51 1F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7C [00:10:42]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 17 00 00 [00:10:42]Write to MH i2c: E2 08 00 52 1F 80 17 00 00 00 00 00 00 F1 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 E2 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 E2 00 52 1F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:10:42]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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:10:42]wFMCommunicate OK [00:10:42]SAM_PROTO_GetFMData done [00:10:42]requested_item fm.sale_refund.total is exist - process it [00:10:42]requested_item fm.buy.total is exist - process it [00:10:42]requested_item shift.sale.total is exist - process it [00:10:42]SAM_PROTO_GetShiftData [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 13 02 00 [00:10:42]Write to MH i2c: E2 08 00 53 1F 80 13 02 00 00 00 00 00 F0 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:10:43]Read from MH i2c: E2 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 FD 00 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 FD 00 53 1F 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 63 [00:10:43]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:10:43]wFMCommunicate OK [00:10:43]wFMCommunicate request_size=4 [00:10:43]MH_SAM_APDU [00:10:43]CAPDU: 80 17 00 00 [00:10:43]Write to MH i2c: E2 08 00 54 1F 80 17 00 00 00 00 00 00 F3 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:43]Read from MH i2c: E2 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 FD 00 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: E2 FD 00 54 1F 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 FB [00:10:43]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:10:43]wFMCommunicate OK [00:10:43]wFMCommunicate request_size=4 [00:10:43]MH_SAM_APDU [00:10:43]CAPDU: 80 17 00 00 [00:10:43]Write to MH i2c: E2 08 00 55 1F 80 17 00 00 00 00 00 00 F4 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:44]Read from MH i2c: E2 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 FD 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 FD 00 55 1F 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 C6 [00:10:44]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:10:44]wFMCommunicate OK [00:10:44]wFMCommunicate request_size=4 [00:10:44]MH_SAM_APDU [00:10:44]CAPDU: 80 17 00 00 [00:10:44]Write to MH i2c: E2 08 00 56 1F 80 17 00 00 00 00 00 00 F5 [00:10:44]Write i2c OK [00:10:44]MH_I2C_Read... [00:10:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:44]Read from MH i2c: E2 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 FD 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 FD 00 56 1F 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 67 [00:10:44]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:10:44]wFMCommunicate OK [00:10:44]wFMCommunicate request_size=4 [00:10:44]MH_SAM_APDU [00:10:44]CAPDU: 80 17 00 00 [00:10:44]Write to MH i2c: E2 08 00 57 1F 80 17 00 00 00 00 00 00 F6 [00:10:44]Write i2c OK [00:10:44]MH_I2C_Read... [00:10:44]OFD Sender: No OFD packet to send [00:10:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:10:44]Read from MH i2c: E2 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 BD 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 BD 00 57 1F 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 DC [00:10:44]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:10:45]wFMCommunicate OK [00:10:45]SAM_PROTO_GetShiftData done [00:10:45]requested_item shift.sale.total_cash is exist - process it [00:10:45]requested_item shift.sale_refund.total is exist - process it [00:10:45]requested_item shift.sale_refund.total_cash is exist - process it [00:10:45]requested_item shift.buy.total is exist - process it [00:10:45]requested_item shift.buy.total_cash is exist - process it [00:10:45]produce_requested_data done [00:10:45]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.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:10:45]process_action_free get_value [00:10:45]json_value_free [00:10:45]json_value_free done [00:10:45]process_json_proto returns [00:10:45]Send response to host [00:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.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:10:45]free response buf [00:10:45]execute_script done [00:10:45]execute_script returns [00:10:45]free content buf [00:10:45]Sock 7.Close socket [00:10:45]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:02]accept exits with 9 [00:14:02]New connection [00:14:02]New thread 3066838372 created [00:14:02]Thread 3066695012 joined [00:14:02]Waiting for new connection... [00:14:02] Sock 9.Parse request [00:14:02]Sock 9.Check first char [00:14:02]Sock 9.First char is OK [00:14:02]request: POST /json_proto HTTP/1.0 [00:14:02]Method: POST [00:14:02]URL: /json_proto [00:14:02]Method is POST - this is cgi request [00:14:02]url: /json_proto [00:14:02]query_string will be loaded in cgi processing [00:14:02]execute_cgi json_proto POST (null) [00:14:02]execute_cgi path=json_proto method=POST [00:14:02]POST find Content-Length [00:14:02]Host: 172.17.45.7:8080 [00:14:02]Content-Length: 215 [00:14:02]Content-Type: application/json [00:14:02] [00:14:02]POST finish read [00:14:02]Found Content-Length = 215 [00:14:02]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:14:02]execute_script... [00:14:02]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:14:02]POST & json_proto [00:14:02]process_json_proto [00:14:02]json parsed OK: [00:14:02]protocol is kg_v1.0 [00:14:02]action value=get_value [00:14:02]process_action get_value [00:14:02]cmd_get_value [00:14:02]process_action get_value done [00:14:02]requested_data is exist [00:14:02]produce_requested_data [00:14:02]requested_item kkm.sn is exist - process it [00:14:02]requested_item kkm.ver is exist - process it [00:14:02]requested_item fm.sn is exist - process it [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 11 00 00 [00:14:02]Write to MH i2c: E2 08 00 58 1F 80 11 00 00 00 00 00 00 F1 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 17 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 17 00 58 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4C [00:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:14:02]wFMCommunicate OK [00:14:02]requested_item fd.num is exist - process it [00:14:02]SAM_PROTO_GetFieldsCounters [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 13 00 00 [00:14:02]Write to MH i2c: E2 08 00 59 1F 80 13 00 00 00 00 00 00 F4 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 62 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 62 00 59 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [00:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:02]wFMCommunicate OK [00:14:02]SAM_PROTO_GetFieldsCounters done [00:14:02]requested_item shift.num is exist - process it [00:14:02]requested_item shift.opened is exist - process it [00:14:02]req_shift_opened [00:14:02]FM_GetShiftState [00:14:02]SAM_PROTO_GetShiftState [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 13 01 00 [00:14:02]Write to MH i2c: E2 08 00 5A 1F 80 13 01 00 00 00 00 00 F6 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:02]Read from MH i2c: E2 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 0E 00 [00:14:02]MH_I2C_Read... [00:14:02]Read from MH i2c: E2 0E 00 5A 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 8E [00:14:02]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:14:02]wFMCommunicate OK [00:14:02]SAM_PROTO_GetShiftState done [00:14:02]FM_GetShiftState done [00:14:02]req_shift_opened done [00:14:02]requested_item shift.open_date is exist - process it [00:14:02]req_shift_open_date [00:14:02]req_shift_open_date done [00:14:02]produce_requested_data done [00:14:02]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119269,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:14:02]process_action_free get_value [00:14:02]json_value_free [00:14:02]json_value_free done [00:14:02]process_json_proto returns [00:14:02]Send response to host [00:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119269,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:14:02]free response buf [00:14:02]execute_script done [00:14:02]execute_script returns [00:14:02]free content buf [00:14:02]Sock 9.Close socket [00:14:02]Sock 9.Thread stoped [00:14:02]accept exits with 7 [00:14:02]New connection [00:14:02]New thread 3066695012 created [00:14:02]Thread 3066838372 joined [00:14:02]Waiting for new connection... [00:14:02] Sock 7.Parse request [00:14:02]Sock 7.Check first char [00:14:02]Sock 7.First char is OK [00:14:02]request: POST /json_proto HTTP/1.0 [00:14:02]Method: POST [00:14:02]URL: /json_proto [00:14:02]Method is POST - this is cgi request [00:14:02]url: /json_proto [00:14:02]query_string will be loaded in cgi processing [00:14:02]execute_cgi json_proto POST (null) [00:14:02]execute_cgi path=json_proto method=POST [00:14:02]POST find Content-Length [00:14:02]Host: 172.17.45.7:8080 [00:14:02]Content-Length: 331 [00:14:02]Content-Type: application/json [00:14:02] [00:14:02]POST finish read [00:14:02]Found Content-Length = 331 [00:14:02]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:14:02]execute_script... [00:14:02]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:14:02]POST & json_proto [00:14:02]process_json_proto [00:14:02]json parsed OK: [00:14:02]protocol is kg_v1.0 [00:14:02]action value=get_value [00:14:02]process_action get_value [00:14:02]cmd_get_value [00:14:02]process_action get_value done [00:14:02]requested_data is exist [00:14:02]produce_requested_data [00:14:02]requested_item fm.sale.total is exist - process it [00:14:02]SAM_PROTO_GetFMData [00:14:02]wFMCommunicate request_size=4 [00:14:02]MH_SAM_APDU [00:14:02]CAPDU: 80 13 03 00 [00:14:02]Write to MH i2c: E2 08 00 5B 1F 80 13 03 00 00 00 00 00 F9 [00:14:02]Write i2c OK [00:14:02]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 5B 1F 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 F2 [00:14:03]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [00:14:03]wFMCommunicate OK [00:14:03]wFMCommunicate request_size=4 [00:14:03]MH_SAM_APDU [00:14:03]CAPDU: 80 17 00 00 [00:14:03]Write to MH i2c: E2 08 00 5C 1F 80 17 00 00 00 00 00 00 FB [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 5C 1F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 D1 [00:14:03]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:14:03]wFMCommunicate OK [00:14:03]wFMCommunicate request_size=4 [00:14:03]MH_SAM_APDU [00:14:03]CAPDU: 80 17 00 00 [00:14:03]Write to MH i2c: E2 08 00 5D 1F 80 17 00 00 00 00 00 00 FC [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 5D 1F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0E [00:14:03]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:14:03]wFMCommunicate OK [00:14:03]wFMCommunicate request_size=4 [00:14:03]MH_SAM_APDU [00:14:03]CAPDU: 80 17 00 00 [00:14:03]Write to MH i2c: E2 08 00 5E 1F 80 17 00 00 00 00 00 00 FD [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:03]Read from MH i2c: E2 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 [00:14:03]MH_I2C_Read... [00:14:03]Read from MH i2c: E2 FD 00 5E 1F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 89 [00:14:03]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:14:03]wFMCommunicate OK [00:14:03]wFMCommunicate request_size=4 [00:14:03]MH_SAM_APDU [00:14:03]CAPDU: 80 17 00 00 [00:14:03]Write to MH i2c: E2 08 00 5F 1F 80 17 00 00 00 00 00 00 FE [00:14:03]Write i2c OK [00:14:03]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:14:04]Read from MH i2c: E2 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 E2 00 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 E2 00 5F 1F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [00:14:04]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:04]wFMCommunicate OK [00:14:04]SAM_PROTO_GetFMData done [00:14:04]requested_item fm.sale_refund.total is exist - process it [00:14:04]requested_item fm.buy.total is exist - process it [00:14:04]requested_item shift.sale.total is exist - process it [00:14:04]SAM_PROTO_GetShiftData [00:14:04]wFMCommunicate request_size=4 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 13 02 00 [00:14:04]Write to MH i2c: E2 08 00 60 1F 80 13 02 00 00 00 00 00 FD [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:04]Read from MH i2c: E2 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 FD 00 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 FD 00 60 1F 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 70 [00:14:04]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:14:04]wFMCommunicate OK [00:14:04]wFMCommunicate request_size=4 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 17 00 00 [00:14:04]Write to MH i2c: E2 08 00 61 1F 80 17 00 00 00 00 00 00 00 [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:04]Read from MH i2c: E2 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 FD 00 [00:14:04]MH_I2C_Read... [00:14:04]Read from MH i2c: E2 FD 00 61 1F 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 08 [00:14:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:14:04]wFMCommunicate OK [00:14:04]wFMCommunicate request_size=4 [00:14:04]MH_SAM_APDU [00:14:04]CAPDU: 80 17 00 00 [00:14:04]Write to MH i2c: E2 08 00 62 1F 80 17 00 00 00 00 00 00 01 [00:14:04]Write i2c OK [00:14:04]MH_I2C_Read... [00:14:05]OFD Sender: No OFD packet to send [00:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 FD 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 FD 00 62 1F 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 D3 [00:14:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:14:05]wFMCommunicate OK [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 17 00 00 [00:14:05]Write to MH i2c: E2 08 00 63 1F 80 17 00 00 00 00 00 00 02 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 FD 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 FD 00 63 1F 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 74 [00:14:05]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:14:05]wFMCommunicate OK [00:14:05]wFMCommunicate request_size=4 [00:14:05]MH_SAM_APDU [00:14:05]CAPDU: 80 17 00 00 [00:14:05]Write to MH i2c: E2 08 00 64 1F 80 17 00 00 00 00 00 00 03 [00:14:05]Write i2c OK [00:14:05]MH_I2C_Read... [00:14:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:14:05]Read from MH i2c: E2 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 BD 00 [00:14:05]MH_I2C_Read... [00:14:05]Read from MH i2c: E2 BD 00 64 1F 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 E9 [00:14:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:05]wFMCommunicate OK [00:14:05]SAM_PROTO_GetShiftData done [00:14:05]requested_item shift.sale.total_cash is exist - process it [00:14:05]requested_item shift.sale_refund.total is exist - process it [00:14:05]requested_item shift.sale_refund.total_cash is exist - process it [00:14:05]requested_item shift.buy.total is exist - process it [00:14:05]requested_item shift.buy.total_cash is exist - process it [00:14:05]produce_requested_data done [00:14:05]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:05]process_action_free get_value [00:14:05]json_value_free [00:14:05]json_value_free done [00:14:05]process_json_proto returns [00:14:05]Send response to host [00:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:05]free response buf [00:14:05]execute_script done [00:14:05]execute_script returns [00:14:05]free content buf [00:14:05]Sock 7.Close socket [00:14:05]Sock 7.Thread stoped [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:39]accept exits with 9 [00:14:39]New connection [00:14:39]New thread 3066838372 created [00:14:39]Thread 3066695012 joined [00:14:39]Waiting for new connection... [00:14:39] Sock 9.Parse request [00:14:39]Sock 9.Check first char [00:14:39]Sock 9.First char is OK [00:14:39]request: POST /json_proto HTTP/1.0 [00:14:39]Method: POST [00:14:39]URL: /json_proto [00:14:39]Method is POST - this is cgi request [00:14:39]url: /json_proto [00:14:39]query_string will be loaded in cgi processing [00:14:39]execute_cgi json_proto POST (null) [00:14:39]execute_cgi path=json_proto method=POST [00:14:39]POST find Content-Length [00:14:39]Host: 172.17.45.7:8080 [00:14:39]Content-Length: 215 [00:14:39]Content-Type: application/json [00:14:39] [00:14:39]POST finish read [00:14:39]Found Content-Length = 215 [00:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:39]execute_script... [00:14:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:39]POST & json_proto [00:14:39]process_json_proto [00:14:39]json parsed OK: [00:14:39]protocol is kg_v1.0 [00:14:39]action value=get_value [00:14:39]process_action get_value [00:14:39]cmd_get_value [00:14:39]process_action get_value done [00:14:39]requested_data is exist [00:14:39]produce_requested_data [00:14:39]requested_item kkm.sn is exist - process it [00:14:39]requested_item kkm.ver is exist - process it [00:14:39]requested_item fm.sn is exist - process it [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 11 00 00 [00:14:39]Write to MH i2c: E2 08 00 65 1F 80 11 00 00 00 00 00 00 FE [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 17 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 17 00 65 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 59 [00:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:14:39]wFMCommunicate OK [00:14:39]requested_item fd.num is exist - process it [00:14:39]SAM_PROTO_GetFieldsCounters [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 13 00 00 [00:14:39]Write to MH i2c: E2 08 00 66 1F 80 13 00 00 00 00 00 00 01 [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 62 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 62 00 66 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [00:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E5 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:39]wFMCommunicate OK [00:14:39]SAM_PROTO_GetFieldsCounters done [00:14:39]requested_item shift.num is exist - process it [00:14:39]requested_item shift.opened is exist - process it [00:14:39]req_shift_opened [00:14:39]FM_GetShiftState [00:14:39]SAM_PROTO_GetShiftState [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 13 01 00 [00:14:39]Write to MH i2c: E2 08 00 67 1F 80 13 01 00 00 00 00 00 03 [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 0E 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 0E 00 67 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 9B [00:14:39]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:14:39]wFMCommunicate OK [00:14:39]SAM_PROTO_GetShiftState done [00:14:39]FM_GetShiftState done [00:14:39]req_shift_opened done [00:14:39]requested_item shift.open_date is exist - process it [00:14:39]req_shift_open_date [00:14:39]req_shift_open_date done [00:14:39]produce_requested_data done [00:14:39]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119269,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:14:39]process_action_free get_value [00:14:39]json_value_free [00:14:39]json_value_free done [00:14:39]process_json_proto returns [00:14:39]Send response to host [00:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119269,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:14:39]free response buf [00:14:39]execute_script done [00:14:39]execute_script returns [00:14:39]free content buf [00:14:39]Sock 9.Close socket [00:14:39]Sock 9.Thread stoped [00:14:39]accept exits with 7 [00:14:39]New connection [00:14:39]New thread 3066695012 created [00:14:39]Thread 3066838372 joined [00:14:39]Waiting for new connection... [00:14:39] Sock 7.Parse request [00:14:39]Sock 7.Check first char [00:14:39]Sock 7.First char is OK [00:14:39]request: POST /json_proto HTTP/1.0 [00:14:39]Method: POST [00:14:39]URL: /json_proto [00:14:39]Method is POST - this is cgi request [00:14:39]url: /json_proto [00:14:39]query_string will be loaded in cgi processing [00:14:39]execute_cgi json_proto POST (null) [00:14:39]execute_cgi path=json_proto method=POST [00:14:39]POST find Content-Length [00:14:39]Host: 172.17.45.7:8080 [00:14:39]Content-Length: 331 [00:14:39]Content-Type: application/json [00:14:39] [00:14:39]POST finish read [00:14:39]Found Content-Length = 331 [00:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:39]execute_script... [00:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:14:40]POST & json_proto [00:14:40]process_json_proto [00:14:40]json parsed OK: [00:14:40]protocol is kg_v1.0 [00:14:40]action value=get_value [00:14:40]process_action get_value [00:14:40]cmd_get_value [00:14:40]process_action get_value done [00:14:40]requested_data is exist [00:14:40]produce_requested_data [00:14:40]requested_item fm.sale.total is exist - process it [00:14:40]SAM_PROTO_GetFMData [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 13 03 00 [00:14:40]Write to MH i2c: E2 08 00 68 1F 80 13 03 00 00 00 00 00 06 [00:14:40]OFD Sender: No OFD packet to send [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 68 1F 00 C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 FF [00:14:40]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 7D CE 01 00 69 04 A3 00 6F 04 04 00 E0 C0 01 00 B1 04 05 00 CC 20 76 7B 03 70 04 05 00 6C E5 79 AA 02 72 04 04 00 60 3B FC D0 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 E7 66 B1 5E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 82 FC E3 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [00:14:40]wFMCommunicate OK [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 17 00 00 [00:14:40]Write to MH i2c: E2 08 00 69 1F 80 17 00 00 00 00 00 00 08 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 FD 00 69 1F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DE [00:14:40]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:14:40]wFMCommunicate OK [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 17 00 00 [00:14:40]Write to MH i2c: E2 08 00 6A 1F 80 17 00 00 00 00 00 00 09 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 6A 1F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 1B [00:14:41]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 17 00 00 [00:14:41]Write to MH i2c: E2 08 00 6B 1F 80 17 00 00 00 00 00 00 0A [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 FD 00 6B 1F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 96 [00:14:41]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 17 00 00 [00:14:41]Write to MH i2c: E2 08 00 6C 1F 80 17 00 00 00 00 00 00 0B [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 E2 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 E2 00 6C 1F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E9 [00:14:41]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:41]wFMCommunicate OK [00:14:41]SAM_PROTO_GetFMData done [00:14:41]requested_item fm.sale_refund.total is exist - process it [00:14:41]requested_item fm.buy.total is exist - process it [00:14:41]requested_item shift.sale.total is exist - process it [00:14:41]SAM_PROTO_GetShiftData [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 13 02 00 [00:14:41]Write to MH i2c: E2 08 00 6D 1F 80 13 02 00 00 00 00 00 0A [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 6D 1F 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 7D [00:14:42]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:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 17 00 00 [00:14:42]Write to MH i2c: E2 08 00 6E 1F 80 17 00 00 00 00 00 00 0D [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 6E 1F 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 15 [00:14:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 17 00 00 [00:14:42]Write to MH i2c: E2 08 00 6F 1F 80 17 00 00 00 00 00 00 0E [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 FD 00 6F 1F 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 E0 [00:14:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 17 00 00 [00:14:42]Write to MH i2c: E2 08 00 70 1F 80 17 00 00 00 00 00 00 0F [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 FD 00 70 1F 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 81 [00:14:43]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:14:43]wFMCommunicate OK [00:14:43]wFMCommunicate request_size=4 [00:14:43]MH_SAM_APDU [00:14:43]CAPDU: 80 17 00 00 [00:14:43]Write to MH i2c: E2 08 00 71 1F 80 17 00 00 00 00 00 00 10 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 BD 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 BD 00 71 1F 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 F6 [00:14:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:14:43]wFMCommunicate OK [00:14:43]SAM_PROTO_GetShiftData done [00:14:43]requested_item shift.sale.total_cash is exist - process it [00:14:43]requested_item shift.sale_refund.total is exist - process it [00:14:43]requested_item shift.sale_refund.total_cash is exist - process it [00:14:43]requested_item shift.buy.total is exist - process it [00:14:43]requested_item shift.buy.total_cash is exist - process it [00:14:43]produce_requested_data done [00:14:43]produce_requested_data return {"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:14:43]process_action_free get_value [00:14:43]json_value_free [00:14:43]json_value_free done [00:14:43]process_json_proto returns [00:14:43]Send response to host [00:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149562411.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:14:43]free response buf [00:14:43]execute_script done [00:14:43]execute_script returns [00:14:43]free content buf [00:14:43]Sock 7.Close socket [00:14:43]Sock 7.Thread stoped [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:30]accept exits with 9 [00:27:30]New connection [00:27:30]New thread 3066838372 created [00:27:30]Thread 3066695012 joined [00:27:30]Waiting for new connection... [00:27:30] Sock 9.Parse request [00:27:30]Sock 9.Check first char [00:27:30]Sock 9.First char is OK [00:27:30]request: POST /json_proto HTTP/1.0 [00:27:30]Method: POST [00:27:30]URL: /json_proto [00:27:30]Method is POST - this is cgi request [00:27:30]url: /json_proto [00:27:30]query_string will be loaded in cgi processing [00:27:30]execute_cgi json_proto POST (null) [00:27:30]execute_cgi path=json_proto method=POST [00:27:30]POST find Content-Length [00:27:30]Host: 172.17.45.7:8080 [00:27:30]Content-Length: 682 [00:27:30]Content-Type: application/json [00:27:30] [00:27:30]POST finish read [00:27:30]Found Content-Length = 682 [00:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [00:27:30]execute_script... [00:27: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)950195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "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" ] } } [00:27:30]POST & json_proto [00:27:30]process_json_proto [00:27:30]json parsed OK: [00:27:30]protocol is kg_v1.0 [00:27:30]action value=close_receipt [00:27:30]process_action close_receipt [00:27:30]cmd_close_receipt [00:27:30]MH_GetDate [00:27:30]Write to MH i2c: F0 00 00 72 1F 80 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 72 1F 00 F4 84 A9 66 90 0F 3E 66 53 [00:27:30]GetLastDocTimeStamp 1722384637 [00:27:30]current date 1722385652 [00:27:30]FM_GetShiftState [00:27:30]SAM_PROTO_GetShiftState [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 01 00 [00:27:30]Write to MH i2c: E2 08 00 73 1F 80 13 01 00 00 00 00 00 0F [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 73 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A7 [00:27:30]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetShiftState done [00:27:30]FM_GetShiftState done [00:27:30]opened in 1722384637 [00:27:30]opened+sec_in_day 1722471037 [00:27:30]quantity*price = 120006 [00:27:30]sum+1 = 120007 [00:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 1 31.07.2024 00:27 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119270 ФПД: 39523615637227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T002732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119270&fm=39523615637227&tin=02508201610067®Number=0000000000092660&sum=120000 [00:27:31]StoreToDocumentArchive [00:27:31]shift 436 fd 119270 [00:27:31]save to /storage/0436/doc_00119270 [00:27:31]save last doc name /storage/0436/doc_00119270 to /storage/kkm_last_doc_name [00:27:31]save OK [00:27:31]Clear old archive folders... [00:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:31]tlvbuf is B6EBE950 [00:27:31]SAM_PROTO_ClearQueue [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 09 00 00 [00:27:31]Write to MH i2c: E2 08 00 80 1F 80 09 00 00 00 00 00 00 11 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 80 1F 00 90 00 13 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]SAM_PROTO_ClearQueue done [00:27:31]KKMCreateOFDPacket [00:27:31]OFDProtocolAddRootSTLVToBuf [00:27:31]FM_MakeSignedData [00:27:31]FM_MakeSignedData [00:27:31]SAM_PROTO_SignData [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 0D 01 02 [00:27:31]Write to MH i2c: E2 08 00 81 1F 80 0D 01 02 00 00 00 00 19 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 81 1F 00 90 00 14 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=255 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 01 00 00 00 F4 03 04 00 F4 84 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D1 01 00 35 04 06 00 23 [00:27:31]Write to MH i2c: E2 02 01 82 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 01 00 00 00 F4 03 04 00 F4 84 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D1 01 00 35 04 06 00 23 00 00 27 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 82 1F 00 90 00 15 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=10 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 0D 02 02 05 F2 4F 11 FE EB [00:27:31]Write to MH i2c: E2 0D 00 83 1F 80 0D 02 02 05 00 F2 4F 11 FE EB 00 00 61 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 03 00 83 1F 00 90 00 16 [00:27:31]RAPDU: 90 00 [00:27:31]wFMCommunicate OK [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 0D 03 02 [00:27:31]Write to MH i2c: E2 08 00 84 1F 80 0D 03 02 00 00 00 00 1E [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0B 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 0B 00 84 1F 00 ED F7 42 B1 9C 21 04 6B 90 00 22 [00:27:31]RAPDU: ED F7 42 B1 9C 21 04 6B 90 00 [00:27:31]wFMCommunicate OK [00:27:31]SAM_PROTO_SignData done [00:27:31]FM_MakeSignedData done [00:27:31]CreateOFDProtocolMessage [00:27:31]wFMCommunicate request_size=4 [00:27:31]MH_SAM_APDU [00:27:31]CAPDU: 80 11 00 00 [00:27:31]Write to MH i2c: E2 08 00 85 1F 80 11 00 00 00 00 00 00 1E [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:31]Read from MH i2c: E2 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 17 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: E2 17 00 85 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 79 [00:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:27:31]wFMCommunicate OK [00:27:31]CreateOFDProtocolMessage done [00:27:31]OFDSenderStorePacket 119270 [00:27:31]StoreOFDPacket docnum=119270 [00:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 55 25 07 01 56 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 01 00 00 00 F4 03 04 00 F4 84 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D1 01 00 35 04 06 00 23 F2 4F 11 FE EB ED F7 42 B1 9C 21 04 6B [00:27:31]CheckFolder [00:27:31]dirname=/storage/ofd_packets [00:27:31]CheckFolder done [00:27:31]ProducePacketName [00:27:31]name=ofd_packets/00119270 [00:27:31]NVStorageSaveData ofd_packets/00119270 [00:27:31]File name is /storage/ofd_packets/00119270 [00:27:31]Write 301 bytes [00:27:31]NVStorageSaveData done [00:27:31]OFDSenderStorePacket done [00:27:31]KKMCreateOFDPacket done [00:27:31]NVStorageSaveData kkm_last_timestamp [00:27:31]File name is /storage/kkm_last_timestamp [00:27:31]Write 4 bytes [00:27:31]NVStorageSaveData done [00:27:31]ExternCall_PrintAddStr [00:27:31]wPrintStart [00:27:31]Write to MH i2c: 01 00 00 86 1F A5 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 86 1F 00 00 00 00 00 FF 0F BA [00:27:31]RasterBufferAndPrint [00:27:31]line Счет N : (1)950195 [00:27:31]line ИНН: 02508201610067 [00:27:31]line Контрольно-Кассовый Чек [00:27:31]line ПРОДАЖА [00:27:31]line ТРК (МРК, ГНК) : 41 [00:27:31]line Товар: 2710124130 [00:27:31]line Аи-92-К-4 [00:27:31]line 17.700 * 67.80 [00:27:31]line = 1200.06 [00:27:31]line НДС 12% НСП 1% [00:27:31]line > о реализуемом товаре [00:27:31]line ОКРУГЛЕНИЕ: -0.06 [00:27:31]line ИТОГО: 1200.00 [00:27:31]line Внесено: 1200.00 [00:27:31]line СДАЧА: 0.00 [00:27:31]line НСП 1% : 10.62 [00:27:31]line НДС 12% : 127.44 [00:27:31]line Наличными: 1200.00 [00:27:31]line Безнал.: 0.00 [00:27:31]line Место: АЗС № 134 "Партнер Нефть" [00:27:31]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:27:31]line СНО: Общий режим [00:27:31]line Чек 1 31.07.2024 00:27 [00:27:31]line Смена: 436 ФФД: 1.0 [00:27:31]line ЗНМ: 0300000044 [00:27:31]line РНМ: 0000000000092660 [00:27:31]line Версия ККМ: 001 [00:27:31]line ФМ: 0000000000874939 [00:27:31]line ФД: 119270 [00:27:31]line ФПД: 39523615637227 [00:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T002732&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119270&fm=39523615637227&tin=02508201610067®Number=0000000000092660&sum=120000 [00:27:32]written 0, free lines is 4095 [00:27:32]OFD Sender: Processing packet 119270 [packets to send 86, broken 85] [00:27:32]ProducePacketName [00:27:32]name=ofd_packets/00119270 [00:27:32]OFD Sender: To server: pG, [00:27:32]CommunicateWithHost lk.salyk.kg:30040 [00:27:32]ConnectInit lk.salyk.kg [00:27:32]Connected sock=10 [00:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 55 25 07 01 56 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 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 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 C8 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 01 00 00 00 F4 03 04 00 F4 84 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D1 01 00 35 04 06 00 23 F2 4F 11 FE EB ED F7 42 B1 9C 21 04 6B [00:27:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5C 3D 47 00 E0 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E6 D1 01 00 F4 03 04 00 7E 32 A9 66 B6 04 01 00 00 73 C5 77 4C 90 58 47 0D [00:27:32]CommunicateWithHost err = 0 [00:27:32]CheckOFDResponse [00:27:32]1017 (14) - 77093643461234 [00:27:32]1041 (16) - 0000000000874939 [00:27:32]1040 (4) - 119270 [00:27:32]1012 (4) - 30.07.2024 18:35 [00:27:32]1206 (1) - 0 [00:27:32]OFD Sender: Remove packet 119270 [00:27:32]ProducePacketName [00:27:32]name=ofd_packets/00119270 [00:27:32]NVStorageDeleteData [00:27:32]Write to MH i2c: 01 00 00 B0 1F CF [00:27:32]Write i2c OK [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: 01 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: 01 07 00 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: 01 07 00 B0 1F 00 00 00 00 00 C9 0C AB [00:27:32]RasterBufferAndPrint [00:27:32]line [00:27:32]line [00:27:32]line [00:27:32]line [00:27:32]line [00:27:32]written 0, free lines is 3279 [00:27:32]MH_Cut [00:27:32]Write to MH i2c: D1 01 00 B7 1F 01 A8 [00:27:32]Write i2c OK [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: D1 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: D1 01 00 [00:27:32]MH_I2C_Read... [00:27:32]Read from MH i2c: D1 01 00 B7 1F 00 A7 [00:27:32]Write to MH i2c: 01 00 00 B8 1F D7 [00:27:32]Write i2c OK [00:27:32]MH_I2C_Read... [00:27:32]OFD Sender: No OFD packet to send [00:27:33]*** Cut start [00:27:33]*** Partial cut [00:27:33]*** CUTSNS_PIN = 1 [00:27:33]*** CUTSNS_PIN = 0 [00:27:33]*** Brake cut motor [00:27:33]Read from MH i2c: 01 [00:27:33]MH_I2C_Read... [00:27:33]*** Stop cut motor [00:27:33]*** Cut end [00:27:33]Read from MH i2c: 01 07 00 [00:27:33]MH_I2C_Read... [00:27:33]Read from MH i2c: 01 07 00 B8 1F 00 00 00 00 00 FF 0F EC [00:27:33]process_action close_receipt done [00:27:33]requested_data is exist [00:27:33]produce_requested_data [00:27:33]requested_item fm.sn is exist - process it [00:27:33]wFMCommunicate request_size=4 [00:27:33]MH_SAM_APDU [00:27:33]CAPDU: 80 11 00 00 [00:27:33]Write to MH i2c: E2 08 00 B9 1F 80 11 00 00 00 00 00 00 52 [00:27:33]Write i2c OK [00:27:33]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:34]Read from MH i2c: E2 17 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 17 00 B9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AD [00:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:27:34]wFMCommunicate OK [00:27:34]requested_item fd.num is exist - process it [00:27:34]SAM_PROTO_GetFieldsCounters [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 13 00 00 [00:27:34]Write to MH i2c: E2 08 00 BA 1F 80 13 00 00 00 00 00 00 55 [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 62 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 62 00 BA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [00:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_GetFieldsCounters done [00:27:34]requested_item shift.num is exist - process it [00:27:34]requested_item shift.opened is exist - process it [00:27:34]req_shift_opened [00:27:34]FM_GetShiftState [00:27:34]SAM_PROTO_GetShiftState [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 13 01 00 [00:27:34]Write to MH i2c: E2 08 00 BB 1F 80 13 01 00 00 00 00 00 57 [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 0E 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 0E 00 BB 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 EF [00:27:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_GetShiftState done [00:27:34]FM_GetShiftState done [00:27:34]req_shift_opened done [00:27:34]requested_item shift.open_date is exist - process it [00:27:34]req_shift_open_date [00:27:34]req_shift_open_date done [00:27:34]produce_requested_data done [00:27:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119270,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:27:34]process_action_free close_receipt [00:27:34]json_value_free [00:27:34]json_value_free done [00:27:34]process_json_proto returns [00:27:34]Send response to host [00:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119270,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:27:34]free response buf [00:27:34]execute_script done [00:27:34]execute_script returns [00:27:34]free content buf [00:27:34]Sock 9.Close socket [00:27:34]Sock 9.Thread stoped [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:18]accept exits with 7 [00:30:18]New connection [00:30:18]New thread 3066695012 created [00:30:18]Thread 3066838372 joined [00:30:18]Waiting for new connection... [00:30:18] Sock 7.Parse request [00:30:18]Sock 7.Check first char [00:30:18]Sock 7.First char is OK [00:30:18]request: POST /json_proto HTTP/1.0 [00:30:18]Method: POST [00:30:18]URL: /json_proto [00:30:18]Method is POST - this is cgi request [00:30:18]url: /json_proto [00:30:18]query_string will be loaded in cgi processing [00:30:18]execute_cgi json_proto POST (null) [00:30:18]execute_cgi path=json_proto method=POST [00:30:18]POST find Content-Length [00:30:18]Host: 172.17.45.7:8080 [00:30:18]Content-Length: 1195 [00:30:18]Content-Type: application/json [00:30:18] [00:30:18]POST finish read [00:30:18]Found Content-Length = 1195 [00:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950194\u000A31.07.2024 00:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3990969\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:18]execute_script... [00:30:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950194\u000A31.07.2024 00:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3990969\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:18]POST & json_proto [00:30:18]process_json_proto [00:30:18]json parsed OK: [00:30:18]protocol is kg_v1.0 [00:30:18]action value=print_text [00:30:18]process_action print_text [00:30:18]cmd_print_text [00:30:18]ExternCall_PrintAddStr [00:30:18]wPrintStart [00:30:18]Write to MH i2c: 01 00 00 BC 1F DB [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 07 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 07 00 BC 1F 00 00 00 00 00 FF 0F F0 [00:30:18]RasterBufferAndPrint [00:30:18]line *****ТОВАРНЫЙ ЧЕК***** [00:30:18]line АЗС-134 [00:30:18]line Партнер нефть [00:30:18]line 02508201610067 [00:30:18]line Кассир : Хошимов З. [00:30:18]line Счет N : (1)950194 [00:30:18]line 31.07.2024 00:27 [00:30:18]line ПРОДАЖА [00:30:18]line ТРК (МРК, ГНК): 11 [00:30:18]line Вид ГСМ : 2710194800 [00:30:18]line ДТ-К-5 [00:30:18]line 100.000 x 76.20 [00:30:18]line ИТОГ: 7620.00 [00:30:18]line Тип оплаты: Талоны: Топливные Талоны [00:30:18]line 3990969 [00:30:18]line ______________________ [00:30:18]line (подпись) [00:30:18]written 0, free lines is 4095 [00:30:18]Write to MH i2c: 01 00 00 D0 1F EF [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 07 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 0E 0E 12 [00:30:18]RasterBufferAndPrint [00:30:18]line [00:30:18]line [00:30:18]line [00:30:18]line [00:30:18]line [00:30:18]written 0, free lines is 3600 [00:30:18]MH_Cut [00:30:18]Write to MH i2c: D1 01 00 D7 1F 01 C8 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: D1 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: D1 01 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: D1 01 00 D7 1F 00 C7 [00:30:18]Write to MH i2c: 01 00 00 D8 1F F7 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:19]*** Cut start [00:30:19]*** Partial cut [00:30:19]*** CUTSNS_PIN = 1 [00:30:19]*** CUTSNS_PIN = 0 [00:30:19]*** Brake cut motor [00:30:19]Read from MH i2c: 01 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: 01 07 00 [00:30:19]MH_I2C_Read... [00:30:19]*** Stop cut motor [00:30:19]*** Cut end [00:30:19]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 FF 0F 0C [00:30:19]process_action print_text done [00:30:19]requested_data is exist [00:30:19]produce_requested_data [00:30:19]requested_item fm.sn is exist - process it [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 11 00 00 [00:30:19]Write to MH i2c: E2 08 00 D9 1F 80 11 00 00 00 00 00 00 72 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 17 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 17 00 D9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CD [00:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:30:19]wFMCommunicate OK [00:30:19]requested_item fd.num is exist - process it [00:30:19]SAM_PROTO_GetFieldsCounters [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 13 00 00 [00:30:19]Write to MH i2c: E2 08 00 DA 1F 80 13 00 00 00 00 00 00 75 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:19]Read from MH i2c: E2 62 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 62 00 DA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [00:30:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_GetFieldsCounters done [00:30:19]requested_item shift.num is exist - process it [00:30:19]requested_item shift.opened is exist - process it [00:30:19]req_shift_opened [00:30:19]FM_GetShiftState [00:30:19]SAM_PROTO_GetShiftState [00:30:19]wFMCommunicate request_size=4 [00:30:19]MH_SAM_APDU [00:30:19]CAPDU: 80 13 01 00 [00:30:19]Write to MH i2c: E2 08 00 DB 1F 80 13 01 00 00 00 00 00 77 [00:30:19]Write i2c OK [00:30:19]MH_I2C_Read... [00:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:19]Read from MH i2c: E2 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 0E 00 [00:30:19]MH_I2C_Read... [00:30:19]Read from MH i2c: E2 0E 00 DB 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0F [00:30:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:30:19]wFMCommunicate OK [00:30:19]SAM_PROTO_GetShiftState done [00:30:19]FM_GetShiftState done [00:30:19]req_shift_opened done [00:30:19]requested_item shift.open_date is exist - process it [00:30:19]req_shift_open_date [00:30:19]req_shift_open_date done [00:30:19]produce_requested_data done [00:30:19]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119270,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:30:19]process_action_free print_text [00:30:19]json_value_free [00:30:19]json_value_free done [00:30:19]process_json_proto returns [00:30:19]Send response to host [00:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119270,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:30:19]free response buf [00:30:19]execute_script done [00:30:19]execute_script returns [00:30:19]free content buf [00:30:19]Sock 7.Close socket [00:30:19]Sock 7.Thread stoped [00:30:23]OFD Sender: No OFD packet to send [00:30:24]accept exits with 9 [00:30:24]New connection [00:30:24]New thread 3066838372 created [00:30:24]Thread 3066695012 joined [00:30:24]Waiting for new connection... [00:30:24] Sock 9.Parse request [00:30:24]Sock 9.Check first char [00:30:24]Sock 9.First char is OK [00:30:24]request: POST /json_proto HTTP/1.0 [00:30:24]Method: POST [00:30:24]URL: /json_proto [00:30:24]Method is POST - this is cgi request [00:30:24]url: /json_proto [00:30:24]query_string will be loaded in cgi processing [00:30:24]execute_cgi json_proto POST (null) [00:30:24]execute_cgi path=json_proto method=POST [00:30:24]POST find Content-Length [00:30:24]Host: 172.17.45.7:8080 [00:30:24]Content-Length: 1195 [00:30:24]Content-Type: application/json [00:30:24] [00:30:24]POST finish read [00:30:24]Found Content-Length = 1195 [00:30:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950193\u000A31.07.2024 00:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:24]execute_script... [00:30:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-134\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0425\u043E\u0448\u0438\u043C\u043E\u0432 \u0417. \u000A\u0421\u0447\u0435\u0442 N : (1)950193\u000A31.07.2024 00:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194800\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 76.20\u000A\u0418\u0422\u041E\u0413: 7620.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3991022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:24]POST & json_proto [00:30:24]process_json_proto [00:30:24]json parsed OK: [00:30:24]protocol is kg_v1.0 [00:30:24]action value=print_text [00:30:24]process_action print_text [00:30:24]cmd_print_text [00:30:24]ExternCall_PrintAddStr [00:30:24]wPrintStart [00:30:24]Write to MH i2c: 01 00 00 DC 1F FB [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: 01 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: 01 07 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: 01 07 00 DC 1F 00 00 00 00 00 FF 0F 10 [00:30:24]RasterBufferAndPrint [00:30:24]line *****ТОВАРНЫЙ ЧЕК***** [00:30:24]line АЗС-134 [00:30:24]line Партнер нефть [00:30:24]line 02508201610067 [00:30:24]line Кассир : Хошимов З. [00:30:24]line Счет N : (1)950193 [00:30:24]line 31.07.2024 00:28 [00:30:24]line ПРОДАЖА [00:30:24]line ТРК (МРК, ГНК): 21 [00:30:24]line Вид ГСМ : 2710194800 [00:30:24]line ДТ-К-5 [00:30:24]line 100.000 x 76.20 [00:30:24]line ИТОГ: 7620.00 [00:30:24]line Тип оплаты: Талоны: Топливные Талоны [00:30:24]line 3991022 [00:30:24]line ______________________ [00:30:24]line (подпись) [00:30:24]written 0, free lines is 4095 [00:30:24]Write to MH i2c: 01 00 00 F0 1F 0F [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: 01 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: 01 07 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: 01 07 00 F0 1F 00 00 00 00 00 0E 0E 32 [00:30:24]RasterBufferAndPrint [00:30:24]line [00:30:24]line [00:30:24]line [00:30:24]line [00:30:24]line [00:30:24]written 0, free lines is 3599 [00:30:24]MH_Cut [00:30:24]Write to MH i2c: D1 01 00 F7 1F 01 E8 [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: D1 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: D1 01 00 [00:30:24]MH_I2C_Read... [00:30:24]Read from MH i2c: D1 01 00 F7 1F 00 E7 [00:30:24]Write to MH i2c: 01 00 00 F8 1F 17 [00:30:24]Write i2c OK [00:30:24]MH_I2C_Read... [00:30:25]*** Cut start [00:30:25]*** Partial cut [00:30:25]*** CUTSNS_PIN = 1 [00:30:25]*** CUTSNS_PIN = 0 [00:30:25]*** Brake cut motor [00:30:25]Read from MH i2c: 01 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: 01 07 00 [00:30:25]MH_I2C_Read... [00:30:25]*** Stop cut motor [00:30:25]*** Cut end [00:30:25]Read from MH i2c: 01 07 00 F8 1F 00 00 00 00 00 FF 0F 2C [00:30:25]process_action print_text done [00:30:25]requested_data is exist [00:30:25]produce_requested_data [00:30:25]requested_item fm.sn is exist - process it [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 11 00 00 [00:30:25]Write to MH i2c: E2 08 00 F9 1F 80 11 00 00 00 00 00 00 92 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 17 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 17 00 F9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 ED [00:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:30:25]wFMCommunicate OK [00:30:25]requested_item fd.num is exist - process it [00:30:25]SAM_PROTO_GetFieldsCounters [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 13 00 00 [00:30:25]Write to MH i2c: E2 08 00 FA 1F 80 13 00 00 00 00 00 00 95 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:25]Read from MH i2c: E2 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 62 00 [00:30:25]MH_I2C_Read... [00:30:25]Read from MH i2c: E2 62 00 FA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [00:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E6 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:25]wFMCommunicate OK [00:30:25]SAM_PROTO_GetFieldsCounters done [00:30:25]requested_item shift.num is exist - process it [00:30:25]requested_item shift.opened is exist - process it [00:30:25]req_shift_opened [00:30:25]FM_GetShiftState [00:30:25]SAM_PROTO_GetShiftState [00:30:25]wFMCommunicate request_size=4 [00:30:25]MH_SAM_APDU [00:30:25]CAPDU: 80 13 01 00 [00:30:25]Write to MH i2c: E2 08 00 FB 1F 80 13 01 00 00 00 00 00 97 [00:30:25]Write i2c OK [00:30:25]MH_I2C_Read... [00:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:26]Read from MH i2c: E2 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 0E 00 [00:30:26]MH_I2C_Read... [00:30:26]Read from MH i2c: E2 0E 00 FB 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 2F [00:30:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:30:26]wFMCommunicate OK [00:30:26]SAM_PROTO_GetShiftState done [00:30:26]FM_GetShiftState done [00:30:26]req_shift_opened done [00:30:26]requested_item shift.open_date is exist - process it [00:30:26]req_shift_open_date [00:30:26]req_shift_open_date done [00:30:26]produce_requested_data done [00:30:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119270,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:30:26]process_action_free print_text [00:30:26]json_value_free [00:30:26]json_value_free done [00:30:26]process_json_proto returns [00:30:26]Send response to host [00:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119270,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:30:26]free response buf [00:30:26]execute_script done [00:30:26]execute_script returns [00:30:26]free content buf [00:30:26]Sock 9.Close socket [00:30:26]Sock 9.Thread stoped [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:12]accept exits with 7 [00:48:12]New connection [00:48:12]New thread 3066695012 created [00:48:12]Thread 3066838372 joined [00:48:12]Waiting for new connection... [00:48:12] Sock 7.Parse request [00:48:12]Sock 7.Check first char [00:48:12]Sock 7.First char is OK [00:48:12]request: POST /json_proto HTTP/1.0 [00:48:12]Method: POST [00:48:12]URL: /json_proto [00:48:12]Method is POST - this is cgi request [00:48:12]url: /json_proto [00:48:12]query_string will be loaded in cgi processing [00:48:12]execute_cgi json_proto POST (null) [00:48:12]execute_cgi path=json_proto method=POST [00:48:12]POST find Content-Length [00:48:12]Host: 172.17.45.7:8080 [00:48:12]Content-Length: 677 [00:48:12]Content-Type: application/json [00:48:12] [00:48:12]POST finish read [00:48:12]Found Content-Length = 677 [00:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [00:48:12]execute_script... [00:48: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)950196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [00:48:12]POST & json_proto [00:48:12]process_json_proto [00:48:12]json parsed OK: [00:48:12]protocol is kg_v1.0 [00:48:12]action value=close_receipt [00:48:12]process_action close_receipt [00:48:12]cmd_close_receipt [00:48:12]MH_GetDate [00:48:12]Write to MH i2c: F0 00 00 FC 1F 0A [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: F0 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: F0 09 00 [00:48:12]MH_I2C_Read... [00:48:12]Read from MH i2c: F0 09 00 FC 1F 00 CF 89 A9 66 90 0F 3E 66 BD [00:48:12]GetLastDocTimeStamp 1722385652 [00:48:12]current date 1722386895 [00:48:12]FM_GetShiftState [00:48:12]SAM_PROTO_GetShiftState [00:48:12]wFMCommunicate request_size=4 [00:48:12]MH_SAM_APDU [00:48:12]CAPDU: 80 13 01 00 [00:48:12]Write to MH i2c: E2 08 00 FD 1F 80 13 01 00 00 00 00 00 99 [00:48:12]Write i2c OK [00:48:12]MH_I2C_Read... [00:48:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:13]Read from MH i2c: E2 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 0E 00 [00:48:13]MH_I2C_Read... [00:48:13]Read from MH i2c: E2 0E 00 FD 1F 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 31 [00:48:13]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:48:13]wFMCommunicate OK [00:48:13]SAM_PROTO_GetShiftState done [00:48:13]FM_GetShiftState done [00:48:13]opened in 1722384637 [00:48:13]opened+sec_in_day 1722471037 [00:48:13]quantity*price = 40002 [00:48:13]sum+1 = 40003 [00:48:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 2 31.07.2024 00:48 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119271 ФПД: 4415314082737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T004815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119271&fm=4415314082737&tin=02508201610067®Number=0000000000092660&sum=40000 [00:48:14]StoreToDocumentArchive [00:48:14]shift 436 fd 119271 [00:48:14]save to /storage/0436/doc_00119271 [00:48:14]save last doc name /storage/0436/doc_00119271 to /storage/kkm_last_doc_name [00:48:14]save OK [00:48:14]Clear old archive folders... [00:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:14]tlvbuf is 01620510 [00:48:14]SAM_PROTO_ClearQueue [00:48:14]wFMCommunicate request_size=4 [00:48:14]MH_SAM_APDU [00:48:14]CAPDU: 80 09 00 00 [00:48:14]Write to MH i2c: E2 08 00 0A 20 80 09 00 00 00 00 00 00 9C [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:14]Read from MH i2c: E2 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [00:48:14]RAPDU: 90 00 [00:48:14]wFMCommunicate OK [00:48:14]SAM_PROTO_ClearQueue done [00:48:14]KKMCreateOFDPacket [00:48:14]OFDProtocolAddRootSTLVToBuf [00:48:14]FM_MakeSignedData [00:48:14]FM_MakeSignedData [00:48:14]SAM_PROTO_SignData [00:48:14]wFMCommunicate request_size=4 [00:48:14]MH_SAM_APDU [00:48:14]CAPDU: 80 0D 01 02 [00:48:14]Write to MH i2c: E2 08 00 0B 20 80 0D 01 02 00 00 00 00 A4 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:14]Read from MH i2c: E2 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [00:48:14]RAPDU: 90 00 [00:48:14]wFMCommunicate OK [00:48:14]wFMCommunicate request_size=255 [00:48:14]MH_SAM_APDU [00:48: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 CF 89 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D1 01 00 35 04 06 00 04 [00:48:14]Write to MH i2c: E2 02 01 0C 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 CF 89 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D1 01 00 35 04 06 00 04 00 00 E8 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]OFD Sender: No OFD packet to send [00:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:14]Read from MH i2c: E2 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [00:48:14]RAPDU: 90 00 [00:48:14]wFMCommunicate OK [00:48:14]wFMCommunicate request_size=10 [00:48:14]MH_SAM_APDU [00:48:14]CAPDU: 80 0D 02 02 05 04 05 3A 3B B1 [00:48:14]Write to MH i2c: E2 0D 00 0D 20 80 0D 02 02 05 00 04 05 3A 3B B1 00 00 E0 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:14]Read from MH i2c: E2 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 03 00 0D 20 00 90 00 A1 [00:48:14]RAPDU: 90 00 [00:48:14]wFMCommunicate OK [00:48:14]wFMCommunicate request_size=4 [00:48:14]MH_SAM_APDU [00:48:14]CAPDU: 80 0D 03 02 [00:48:14]Write to MH i2c: E2 08 00 0E 20 80 0D 03 02 00 00 00 00 A9 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:14]Read from MH i2c: E2 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 0B 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 0B 00 0E 20 00 92 F6 F6 EE 0F AA D1 5E 90 00 FE [00:48:14]RAPDU: 92 F6 F6 EE 0F AA D1 5E 90 00 [00:48:14]wFMCommunicate OK [00:48:14]SAM_PROTO_SignData done [00:48:14]FM_MakeSignedData done [00:48:14]CreateOFDProtocolMessage [00:48:14]wFMCommunicate request_size=4 [00:48:14]MH_SAM_APDU [00:48:14]CAPDU: 80 11 00 00 [00:48:14]Write to MH i2c: E2 08 00 0F 20 80 11 00 00 00 00 00 00 A9 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:14]Read from MH i2c: E2 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 17 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: E2 17 00 0F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 04 [00:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:48:14]wFMCommunicate OK [00:48:14]CreateOFDProtocolMessage done [00:48:14]OFDSenderStorePacket 119271 [00:48:14]StoreOFDPacket docnum=119271 [00:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B F4 07 01 30 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 CF 89 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D1 01 00 35 04 06 00 04 04 05 3A 3B B1 92 F6 F6 EE 0F AA D1 5E [00:48:14]CheckFolder [00:48:14]dirname=/storage/ofd_packets [00:48:14]CheckFolder done [00:48:14]ProducePacketName [00:48:14]name=ofd_packets/00119271 [00:48:14]NVStorageSaveData ofd_packets/00119271 [00:48:14]File name is /storage/ofd_packets/00119271 [00:48:14]Write 301 bytes [00:48:14]NVStorageSaveData done [00:48:14]OFDSenderStorePacket done [00:48:14]KKMCreateOFDPacket done [00:48:14]NVStorageSaveData kkm_last_timestamp [00:48:14]File name is /storage/kkm_last_timestamp [00:48:14]Write 4 bytes [00:48:14]NVStorageSaveData done [00:48:14]ExternCall_PrintAddStr [00:48:14]wPrintStart [00:48:14]Write to MH i2c: 01 00 00 10 20 30 [00:48:14]Write i2c OK [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: 01 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: 01 07 00 [00:48:14]MH_I2C_Read... [00:48:14]Read from MH i2c: 01 07 00 10 20 00 00 00 00 00 FF 0F 45 [00:48:14]RasterBufferAndPrint [00:48:14]line Счет N : (1)950196 [00:48:14]line ИНН: 02508201610067 [00:48:14]line Контрольно-Кассовый Чек [00:48:14]line ПРОДАЖА [00:48:14]line ТРК (МРК, ГНК) : 41 [00:48:14]line Товар: 2710124130 [00:48:14]line Аи-92-К-4 [00:48:14]line 5.900 * 67.80 [00:48:14]line = 400.02 [00:48:14]line НДС 12% НСП 1% [00:48:14]line > о реализуемом товаре [00:48:14]line ОКРУГЛЕНИЕ: -0.02 [00:48:14]line ИТОГО: 400.00 [00:48:14]line Внесено: 400.00 [00:48:14]line СДАЧА: 0.00 [00:48:14]line НСП 1% : 3.54 [00:48:14]line НДС 12% : 42.48 [00:48:14]line Наличными: 400.00 [00:48:14]line Безнал.: 0.00 [00:48:14]line Место: АЗС № 134 "Партнер Нефть" [00:48:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:48:14]line СНО: Общий режим [00:48:14]line Чек 2 31.07.2024 00:48 [00:48:14]line Смена: 436 ФФД: 1.0 [00:48:14]line ЗНМ: 0300000044 [00:48:14]line РНМ: 0000000000092660 [00:48:14]line Версия ККМ: 001 [00:48:14]line ФМ: 0000000000874939 [00:48:14]line ФД: 119271 [00:48:14]line ФПД: 4415314082737 [00:48:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T004815&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119271&fm=4415314082737&tin=02508201610067®Number=0000000000092660&sum=40000 [00:48:15]OFD Sender: Processing packet 119271 [packets to send 86, broken 85] [00:48:15]ProducePacketName [00:48:15]name=ofd_packets/00119271 [00:48:15]OFD Sender: To server: pG, [00:48:15]CommunicateWithHost lk.salyk.kg:30040 [00:48:15]ConnectInit lk.salyk.kg [00:48:15]written 0, free lines is 4095 [00:48:15]Connected sock=10 [00:48:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B F4 07 01 30 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 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 02 00 00 00 F4 03 04 00 CF 89 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E7 D1 01 00 35 04 06 00 04 04 05 3A 3B B1 92 F6 F6 EE 0F AA D1 5E [00:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 5E A9 47 00 6C 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 34 39 33 39 10 04 04 00 E7 D1 01 00 F4 03 04 00 59 37 A9 66 B6 04 01 00 00 3F 62 63 59 8F A9 C8 8E [00:48:15]CommunicateWithHost err = 0 [00:48:15]CheckOFDResponse [00:48:15]1017 (14) - 77093643461234 [00:48:15]1041 (16) - 0000000000874939 [00:48:15]1040 (4) - 119271 [00:48:15]1012 (4) - 30.07.2024 18:56 [00:48:15]1206 (1) - 0 [00:48:15]OFD Sender: Remove packet 119271 [00:48:15]ProducePacketName [00:48:15]name=ofd_packets/00119271 [00:48:15]NVStorageDeleteData [00:48:15]Write to MH i2c: 01 00 00 3A 20 5A [00:48:15]Write i2c OK [00:48:15]MH_I2C_Read... [00:48:15]Read from MH i2c: 01 [00:48:15]MH_I2C_Read... [00:48:15]Read from MH i2c: 01 07 00 [00:48:15]MH_I2C_Read... [00:48:15]Read from MH i2c: 01 07 00 3A 20 00 00 00 00 00 C5 0C 32 [00:48:15]RasterBufferAndPrint [00:48:15]line [00:48:15]line [00:48:15]line [00:48:15]line [00:48:15]line [00:48:15]written 0, free lines is 3275 [00:48:15]MH_Cut [00:48:15]Write to MH i2c: D1 01 00 41 20 01 33 [00:48:15]Write i2c OK [00:48:15]MH_I2C_Read... [00:48:15]Read from MH i2c: D1 [00:48:15]MH_I2C_Read... [00:48:15]Read from MH i2c: D1 01 00 [00:48:15]MH_I2C_Read... [00:48:15]Read from MH i2c: D1 01 00 41 20 00 32 [00:48:15]Write to MH i2c: 01 00 00 42 20 62 [00:48:15]Write i2c OK [00:48:15]MH_I2C_Read... [00:48:15]OFD Sender: No OFD packet to send [00:48:16]*** Cut start [00:48:16]*** Partial cut [00:48:16]*** CUTSNS_PIN = 1 [00:48:16]*** CUTSNS_PIN = 0 [00:48:16]*** Brake cut motor [00:48:16]Read from MH i2c: 01 [00:48:16]MH_I2C_Read... [00:48:16]*** Stop cut motor [00:48:16]*** Cut end [00:48:16]Read from MH i2c: 01 07 00 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 FF 0F 77 [00:48:16]process_action close_receipt done [00:48:16]requested_data is exist [00:48:16]produce_requested_data [00:48:16]requested_item fm.sn is exist - process it [00:48:16]wFMCommunicate request_size=4 [00:48:16]MH_SAM_APDU [00:48:16]CAPDU: 80 11 00 00 [00:48:16]Write to MH i2c: E2 08 00 43 20 80 11 00 00 00 00 00 00 DD [00:48:16]Write i2c OK [00:48:16]MH_I2C_Read... [00:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:16]Read from MH i2c: E2 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 17 00 [00:48:16]MH_I2C_Read... [00:48:16]Read from MH i2c: E2 17 00 43 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 38 [00:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:48:16]wFMCommunicate OK [00:48:16]requested_item fd.num is exist - process it [00:48:16]SAM_PROTO_GetFieldsCounters [00:48:16]wFMCommunicate request_size=4 [00:48:16]MH_SAM_APDU [00:48:16]CAPDU: 80 13 00 00 [00:48:16]Write to MH i2c: E2 08 00 44 20 80 13 00 00 00 00 00 00 E0 [00:48:16]Write i2c OK [00:48:16]MH_I2C_Read... [00:48:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:17]Read from MH i2c: E2 [00:48:17]MH_I2C_Read... [00:48:17]Read from MH i2c: E2 62 00 [00:48:17]MH_I2C_Read... [00:48:17]Read from MH i2c: E2 62 00 44 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [00:48:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E7 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:17]wFMCommunicate OK [00:48:17]SAM_PROTO_GetFieldsCounters done [00:48:17]requested_item shift.num is exist - process it [00:48:17]requested_item shift.opened is exist - process it [00:48:17]req_shift_opened [00:48:17]FM_GetShiftState [00:48:17]SAM_PROTO_GetShiftState [00:48:17]wFMCommunicate request_size=4 [00:48:17]MH_SAM_APDU [00:48:17]CAPDU: 80 13 01 00 [00:48:17]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [00:48:17]Write i2c OK [00:48:17]MH_I2C_Read... [00:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:17]Read from MH i2c: E2 [00:48:17]MH_I2C_Read... [00:48:17]Read from MH i2c: E2 0E 00 [00:48:17]MH_I2C_Read... [00:48:17]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7A [00:48:17]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:48:17]wFMCommunicate OK [00:48:17]SAM_PROTO_GetShiftState done [00:48:17]FM_GetShiftState done [00:48:17]req_shift_opened done [00:48:17]requested_item shift.open_date is exist - process it [00:48:17]req_shift_open_date [00:48:17]req_shift_open_date done [00:48:17]produce_requested_data done [00:48:17]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119271,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:48:17]process_action_free close_receipt [00:48:17]json_value_free [00:48:17]json_value_free done [00:48:17]process_json_proto returns [00:48:17]Send response to host [00:48:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119271,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:48:17]free response buf [00:48:17]execute_script done [00:48:17]execute_script returns [00:48:17]free content buf [00:48:17]Sock 7.Close socket [00:48:17]Sock 7.Thread stoped [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51: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:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]accept exits with 9 [00:55:06]New connection [00:55:06]New thread 3066838372 created [00:55:06]Thread 3066695012 joined [00:55:06]Waiting for new connection... [00:55:06] Sock 9.Parse request [00:55:06]Sock 9.Check first char [00:55:06]Sock 9.First char is OK [00:55:06]request: POST /json_proto HTTP/1.0 [00:55:06]Method: POST [00:55:06]URL: /json_proto [00:55:06]Method is POST - this is cgi request [00:55:06]url: /json_proto [00:55:06]query_string will be loaded in cgi processing [00:55:06]execute_cgi json_proto POST (null) [00:55:06]execute_cgi path=json_proto method=POST [00:55:06]POST find Content-Length [00:55:06]Host: 172.17.45.7:8080 [00:55:06]Content-Length: 679 [00:55:06]Content-Type: application/json [00:55:06] [00:55:06]POST finish read [00:55:06]Found Content-Length = 679 [00:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:06]execute_script... [00:55: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)950197", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:06]POST & json_proto [00:55:06]process_json_proto [00:55:06]json parsed OK: [00:55:06]protocol is kg_v1.0 [00:55:06]action value=close_receipt [00:55:06]process_action close_receipt [00:55:06]cmd_close_receipt [00:55:06]MH_GetDate [00:55:06]Write to MH i2c: F0 00 00 46 20 55 [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: F0 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: F0 09 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: F0 09 00 46 20 00 6C 8B A9 66 90 0F 3E 66 A7 [00:55:06]GetLastDocTimeStamp 1722386895 [00:55:06]current date 1722387308 [00:55:06]FM_GetShiftState [00:55:06]SAM_PROTO_GetShiftState [00:55:06]wFMCommunicate request_size=4 [00:55:06]MH_SAM_APDU [00:55:06]CAPDU: 80 13 01 00 [00:55:06]Write to MH i2c: E2 08 00 47 20 80 13 01 00 00 00 00 00 E4 [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:06]Read from MH i2c: E2 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 0E 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 0E 00 47 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7C [00:55:06]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:55:06]wFMCommunicate OK [00:55:06]SAM_PROTO_GetShiftState done [00:55:06]FM_GetShiftState done [00:55:06]opened in 1722384637 [00:55:06]opened+sec_in_day 1722471037 [00:55:06]quantity*price = 100050 [00:55:06]sum+1 = 100052 [00:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 3 31.07.2024 00:55 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119272 ФПД: 193331805109433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T005508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119272&fm=193331805109433&tin=02508201610067®Number=0000000000092660&sum=100000 [00:55:07]StoreToDocumentArchive [00:55:07]shift 436 fd 119272 [00:55:07]save to /storage/0436/doc_00119272 [00:55:07]save last doc name /storage/0436/doc_00119272 to /storage/kkm_last_doc_name [00:55:07]save OK [00:55:07]Clear old archive folders... [00:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:55:07]tlvbuf is 0164BFF0 [00:55:07]SAM_PROTO_ClearQueue [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 09 00 00 [00:55:07]Write to MH i2c: E2 08 00 54 20 80 09 00 00 00 00 00 00 E6 [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [00:55:07]RAPDU: 90 00 [00:55:07]wFMCommunicate OK [00:55:07]SAM_PROTO_ClearQueue done [00:55:07]KKMCreateOFDPacket [00:55:07]OFDProtocolAddRootSTLVToBuf [00:55:07]FM_MakeSignedData [00:55:07]FM_MakeSignedData [00:55:07]SAM_PROTO_SignData [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 0D 01 02 [00:55:07]Write to MH i2c: E2 08 00 55 20 80 0D 01 02 00 00 00 00 EE [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [00:55:07]RAPDU: 90 00 [00:55:07]wFMCommunicate OK [00:55:07]wFMCommunicate request_size=255 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C 8B A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D1 01 00 35 04 06 00 AF D5 91 91 [00:55:07]Write to MH i2c: E2 02 01 56 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C 8B A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D1 01 00 35 04 06 00 AF D5 91 91 00 00 9C [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [00:55:07]RAPDU: 90 00 [00:55:07]wFMCommunicate OK [00:55:07]wFMCommunicate request_size=7 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 0D 02 02 02 3C B9 [00:55:07]Write to MH i2c: E2 0A 00 57 20 80 0D 02 02 02 00 3C B9 00 00 EA [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [00:55:07]RAPDU: 90 00 [00:55:07]wFMCommunicate OK [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 0D 03 02 [00:55:07]Write to MH i2c: E2 08 00 58 20 80 0D 03 02 00 00 00 00 F3 [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 0B 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 0B 00 58 20 00 8F 7A 1B AE 25 A4 D8 83 90 00 EA [00:55:07]RAPDU: 8F 7A 1B AE 25 A4 D8 83 90 00 [00:55:07]wFMCommunicate OK [00:55:07]SAM_PROTO_SignData done [00:55:07]FM_MakeSignedData done [00:55:07]CreateOFDProtocolMessage [00:55:07]wFMCommunicate request_size=4 [00:55:07]MH_SAM_APDU [00:55:07]CAPDU: 80 11 00 00 [00:55:07]Write to MH i2c: E2 08 00 59 20 80 11 00 00 00 00 00 00 F3 [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 17 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 17 00 59 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 4E [00:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:55:07]wFMCommunicate OK [00:55:07]CreateOFDProtocolMessage done [00:55:07]OFDSenderStorePacket 119272 [00:55:07]StoreOFDPacket docnum=119272 [00:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 46 E2 04 01 FD 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C 8B A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D1 01 00 35 04 06 00 AF D5 91 91 3C B9 8F 7A 1B AE 25 A4 D8 83 [00:55:07]CheckFolder [00:55:07]dirname=/storage/ofd_packets [00:55:07]CheckFolder done [00:55:07]ProducePacketName [00:55:07]name=ofd_packets/00119272 [00:55:07]NVStorageSaveData ofd_packets/00119272 [00:55:07]File name is /storage/ofd_packets/00119272 [00:55:07]Write 298 bytes [00:55:07]NVStorageSaveData done [00:55:07]OFDSenderStorePacket done [00:55:07]KKMCreateOFDPacket done [00:55:07]NVStorageSaveData kkm_last_timestamp [00:55:07]File name is /storage/kkm_last_timestamp [00:55:07]Write 4 bytes [00:55:07]NVStorageSaveData done [00:55:07]ExternCall_PrintAddStr [00:55:07]wPrintStart [00:55:07]Write to MH i2c: 01 00 00 5A 20 7A [00:55:07]Write i2c OK [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: 01 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: 01 07 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: 01 07 00 5A 20 00 00 00 00 00 FF 0F 8F [00:55:07]RasterBufferAndPrint [00:55:07]line Счет N : (1)950197 [00:55:07]line ИНН: 02508201610067 [00:55:07]line Контрольно-Кассовый Чек [00:55:07]line ПРОДАЖА [00:55:07]line ТРК (МРК, ГНК) : 11 [00:55:07]line Товар: 2710194800 [00:55:07]line ДТ-К-5 [00:55:07]line 13.130 * 76.20 [00:55:07]line = 1000.51 [00:55:07]line НДС 12% НСП 1% [00:55:07]line > о реализуемом товаре [00:55:07]line ОКРУГЛЕНИЕ: -0.51 [00:55:07]line ИТОГО: 1000.00 [00:55:07]line Внесено: 1000.00 [00:55:07]line СДАЧА: 0.00 [00:55:07]line НСП 1% : 8.85 [00:55:07]line НДС 12% : 106.25 [00:55:07]line Наличными: 1000.00 [00:55:07]line Безнал.: 0.00 [00:55:07]line Место: АЗС № 134 "Партнер Нефть" [00:55:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:55:07]line СНО: Общий режим [00:55:07]line Чек 3 31.07.2024 00:55 [00:55:07]line Смена: 436 ФФД: 1.0 [00:55:07]line ЗНМ: 0300000044 [00:55:07]line РНМ: 0000000000092660 [00:55:07]line Версия ККМ: 001 [00:55:07]line ФМ: 0000000000874939 [00:55:07]line ФД: 119272 [00:55:07]line ФПД: 193331805109433 [00:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T005508&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119272&fm=193331805109433&tin=02508201610067®Number=0000000000092660&sum=100000 [00:55:08]OFD Sender: Processing packet 119272 [packets to send 86, broken 85] [00:55:08]ProducePacketName [00:55:08]name=ofd_packets/00119272 [00:55:08]OFD Sender: To server: pG, [00:55:08]CommunicateWithHost lk.salyk.kg:30040 [00:55:08]ConnectInit lk.salyk.kg [00:55:08]written 0, free lines is 4095 [00:55:08]Connected sock=10 [00:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 46 E2 04 01 FD 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 6C 8B A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E8 D1 01 00 35 04 06 00 AF D5 91 91 3C B9 8F 7A 1B AE 25 A4 D8 83 [00:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 92 56 47 00 D0 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 34 39 33 39 10 04 04 00 E8 D1 01 00 F4 03 04 00 F6 38 A9 66 B6 04 01 00 00 04 E5 32 00 0F 3E 65 1D [00:55:08]CommunicateWithHost err = 0 [00:55:08]CheckOFDResponse [00:55:08]1017 (14) - 77093643461234 [00:55:08]1041 (16) - 0000000000874939 [00:55:08]1040 (4) - 119272 [00:55:08]1012 (4) - 30.07.2024 19:03 [00:55:08]1206 (1) - 0 [00:55:08]OFD Sender: Remove packet 119272 [00:55:08]ProducePacketName [00:55:08]name=ofd_packets/00119272 [00:55:08]NVStorageDeleteData [00:55:08]Write to MH i2c: 01 00 00 84 20 A4 [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 07 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: 01 07 00 84 20 00 00 00 00 00 C8 0C 7F [00:55:08]RasterBufferAndPrint [00:55:08]line [00:55:08]line [00:55:08]line [00:55:08]line [00:55:08]line [00:55:08]written 0, free lines is 3277 [00:55:08]MH_Cut [00:55:08]Write to MH i2c: D1 01 00 8B 20 01 7D [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: D1 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: D1 01 00 [00:55:08]MH_I2C_Read... [00:55:08]Read from MH i2c: D1 01 00 8B 20 00 7C [00:55:08]Write to MH i2c: 01 00 00 8C 20 AC [00:55:08]Write i2c OK [00:55:08]MH_I2C_Read... [00:55:08]OFD Sender: No OFD packet to send [00:55:09]*** Cut start [00:55:09]*** Partial cut [00:55:09]*** CUTSNS_PIN = 1 [00:55:09]*** CUTSNS_PIN = 0 [00:55:09]*** Brake cut motor [00:55:09]Read from MH i2c: 01 [00:55:09]MH_I2C_Read... [00:55:09]*** Stop cut motor [00:55:09]*** Cut end [00:55:09]Read from MH i2c: 01 07 00 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 FF 0F C1 [00:55:09]process_action close_receipt done [00:55:09]requested_data is exist [00:55:09]produce_requested_data [00:55:09]requested_item fm.sn is exist - process it [00:55:09]wFMCommunicate request_size=4 [00:55:09]MH_SAM_APDU [00:55:09]CAPDU: 80 11 00 00 [00:55:09]Write to MH i2c: E2 08 00 8D 20 80 11 00 00 00 00 00 00 27 [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:09]Read from MH i2c: E2 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: E2 17 00 [00:55:09]MH_I2C_Read... [00:55:09]Read from MH i2c: E2 17 00 8D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 82 [00:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [00:55:09]wFMCommunicate OK [00:55:09]requested_item fd.num is exist - process it [00:55:09]SAM_PROTO_GetFieldsCounters [00:55:09]wFMCommunicate request_size=4 [00:55:09]MH_SAM_APDU [00:55:09]CAPDU: 80 13 00 00 [00:55:09]Write to MH i2c: E2 08 00 8E 20 80 13 00 00 00 00 00 00 2A [00:55:09]Write i2c OK [00:55:09]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 62 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 62 00 8E 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [00:55: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E8 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:10]wFMCommunicate OK [00:55:10]SAM_PROTO_GetFieldsCounters done [00:55:10]requested_item shift.num is exist - process it [00:55:10]requested_item shift.opened is exist - process it [00:55:10]req_shift_opened [00:55:10]FM_GetShiftState [00:55:10]SAM_PROTO_GetShiftState [00:55:10]wFMCommunicate request_size=4 [00:55:10]MH_SAM_APDU [00:55:10]CAPDU: 80 13 01 00 [00:55:10]Write to MH i2c: E2 08 00 8F 20 80 13 01 00 00 00 00 00 2C [00:55:10]Write i2c OK [00:55:10]MH_I2C_Read... [00:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:10]Read from MH i2c: E2 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 0E 00 [00:55:10]MH_I2C_Read... [00:55:10]Read from MH i2c: E2 0E 00 8F 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C4 [00:55:10]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [00:55:10]wFMCommunicate OK [00:55:10]SAM_PROTO_GetShiftState done [00:55:10]FM_GetShiftState done [00:55:10]req_shift_opened done [00:55:10]requested_item shift.open_date is exist - process it [00:55:10]req_shift_open_date [00:55:10]req_shift_open_date done [00:55:10]produce_requested_data done [00:55:10]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119272,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [00:55:10]process_action_free close_receipt [00:55:10]json_value_free [00:55:10]json_value_free done [00:55:10]process_json_proto returns [00:55:10]Send response to host [00:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119272,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [00:55:10]free response buf [00:55:10]execute_script done [00:55:10]execute_script returns [00:55:10]free content buf [00:55:10]Sock 9.Close socket [00:55:10]Sock 9.Thread stoped [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:34]accept exits with 7 [01:01:34]New connection [01:01:34]New thread 3066695012 created [01:01:34]Thread 3066838372 joined [01:01:34]Waiting for new connection... [01:01:34] Sock 7.Parse request [01:01:34]Sock 7.Check first char [01:01:34]Sock 7.First char is OK [01:01:34]request: POST /json_proto HTTP/1.0 [01:01:34]Method: POST [01:01:34]URL: /json_proto [01:01:34]Method is POST - this is cgi request [01:01:34]url: /json_proto [01:01:34]query_string will be loaded in cgi processing [01:01:34]execute_cgi json_proto POST (null) [01:01:34]execute_cgi path=json_proto method=POST [01:01:34]POST find Content-Length [01:01:34]Host: 172.17.45.7:8080 [01:01:34]Content-Length: 819 [01:01:34]Content-Type: application/json [01:01:34] [01:01:34]POST finish read [01:01:34]Found Content-Length = 819 [01:01:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:34]execute_script... [01:01: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)950198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 85.310, "sum" : 6500.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "total" : 6500.00, "payments": [ { "type": 1, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:34]POST & json_proto [01:01:34]process_json_proto [01:01:34]json parsed OK: [01:01:34]protocol is kg_v1.0 [01:01:34]action value=close_receipt [01:01:34]process_action close_receipt [01:01:34]cmd_close_receipt [01:01:34]MH_GetDate [01:01:34]Write to MH i2c: F0 00 00 90 20 9F [01:01:34]Write i2c OK [01:01:34]MH_I2C_Read... [01:01:34]Read from MH i2c: F0 [01:01:34]MH_I2C_Read... [01:01:34]Read from MH i2c: F0 09 00 [01:01:34]MH_I2C_Read... [01:01:34]Read from MH i2c: F0 09 00 90 20 00 F1 8C A9 66 90 0F 3E 66 77 [01:01:34]GetLastDocTimeStamp 1722387308 [01:01:34]current date 1722387697 [01:01:34]FM_GetShiftState [01:01:34]SAM_PROTO_GetShiftState [01:01:34]wFMCommunicate request_size=4 [01:01:34]MH_SAM_APDU [01:01:34]CAPDU: 80 13 01 00 [01:01:34]Write to MH i2c: E2 08 00 91 20 80 13 01 00 00 00 00 00 2E [01:01:34]Write i2c OK [01:01:34]MH_I2C_Read... [01:01:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:34]Read from MH i2c: E2 [01:01:34]MH_I2C_Read... [01:01:34]Read from MH i2c: E2 0E 00 [01:01:34]MH_I2C_Read... [01:01:34]Read from MH i2c: E2 0E 00 91 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C6 [01:01:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [01:01:34]wFMCommunicate OK [01:01:34]SAM_PROTO_GetShiftState done [01:01:34]FM_GetShiftState done [01:01:34]opened in 1722384637 [01:01:34]opened+sec_in_day 1722471037 [01:01:34]quantity*price = 650062 [01:01:34]sum+1 = 650063 [01:01:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 6500.00 НСП 1% : 57.53 НДС 12% : 690.33 Наличными: 0.00 Безнал.: 6500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 4 31.07.2024 01:01 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119273 ФПД: 4831101619594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T010137&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119273&fm=4831101619594&tin=02508201610067®Number=0000000000092660&sum=650000 [01:01:36]StoreToDocumentArchive [01:01:36]shift 436 fd 119273 [01:01:36]save to /storage/0436/doc_00119273 [01:01:36]save last doc name /storage/0436/doc_00119273 to /storage/kkm_last_doc_name [01:01:36]save OK [01:01:36]Clear old archive folders... [01:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:01:36]tlvbuf is 016496D0 [01:01:36]SAM_PROTO_ClearQueue [01:01:36]wFMCommunicate request_size=4 [01:01:36]MH_SAM_APDU [01:01:36]CAPDU: 80 09 00 00 [01:01:36]Write to MH i2c: E2 08 00 9E 20 80 09 00 00 00 00 00 00 30 [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:36]Read from MH i2c: E2 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [01:01:36]RAPDU: 90 00 [01:01:36]wFMCommunicate OK [01:01:36]SAM_PROTO_ClearQueue done [01:01:36]KKMCreateOFDPacket [01:01:36]OFDProtocolAddRootSTLVToBuf [01:01:36]FM_MakeSignedData [01:01:36]FM_MakeSignedData [01:01:36]SAM_PROTO_SignData [01:01:36]wFMCommunicate request_size=4 [01:01:36]MH_SAM_APDU [01:01:36]CAPDU: 80 0D 01 02 [01:01:36]Write to MH i2c: E2 08 00 9F 20 80 0D 01 02 00 00 00 00 38 [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:36]Read from MH i2c: E2 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [01:01:36]RAPDU: 90 00 [01:01:36]wFMCommunicate OK [01:01:36]wFMCommunicate request_size=255 [01:01:36]MH_SAM_APDU [01:01:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 8C A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D1 01 00 35 04 06 00 04 64 D4 18 [01:01:36]Write to MH i2c: E2 02 01 A0 20 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 8C A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D1 01 00 35 04 06 00 04 64 D4 18 00 00 F1 [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 [01:01:36]MH_I2C_Read... [01:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:36]Read from MH i2c: E2 03 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [01:01:36]RAPDU: 90 00 [01:01:36]wFMCommunicate OK [01:01:36]wFMCommunicate request_size=7 [01:01:36]MH_SAM_APDU [01:01:36]CAPDU: 80 0D 02 02 02 8D 8A [01:01:36]Write to MH i2c: E2 0A 00 A1 20 80 0D 02 02 02 00 8D 8A 00 00 56 [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:36]Read from MH i2c: E2 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [01:01:36]RAPDU: 90 00 [01:01:36]wFMCommunicate OK [01:01:36]wFMCommunicate request_size=4 [01:01:36]MH_SAM_APDU [01:01:36]CAPDU: 80 0D 03 02 [01:01:36]Write to MH i2c: E2 08 00 A2 20 80 0D 03 02 00 00 00 00 3D [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:36]Read from MH i2c: E2 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 0B 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 0B 00 A2 20 00 97 BA BC D9 46 14 E2 E2 90 00 42 [01:01:36]RAPDU: 97 BA BC D9 46 14 E2 E2 90 00 [01:01:36]wFMCommunicate OK [01:01:36]SAM_PROTO_SignData done [01:01:36]FM_MakeSignedData done [01:01:36]CreateOFDProtocolMessage [01:01:36]wFMCommunicate request_size=4 [01:01:36]MH_SAM_APDU [01:01:36]CAPDU: 80 11 00 00 [01:01:36]Write to MH i2c: E2 08 00 A3 20 80 11 00 00 00 00 00 00 3D [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:36]Read from MH i2c: E2 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 17 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: E2 17 00 A3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 98 [01:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:01:36]wFMCommunicate OK [01:01:36]CreateOFDProtocolMessage done [01:01:36]OFDSenderStorePacket 119273 [01:01:36]StoreOFDPacket docnum=119273 [01:01:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DC 8B 04 01 41 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 8C A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D1 01 00 35 04 06 00 04 64 D4 18 8D 8A 97 BA BC D9 46 14 E2 E2 [01:01:36]CheckFolder [01:01:36]dirname=/storage/ofd_packets [01:01:36]CheckFolder done [01:01:36]ProducePacketName [01:01:36]name=ofd_packets/00119273 [01:01:36]NVStorageSaveData ofd_packets/00119273 [01:01:36]File name is /storage/ofd_packets/00119273 [01:01:36]Write 298 bytes [01:01:36]NVStorageSaveData done [01:01:36]OFDSenderStorePacket done [01:01:36]KKMCreateOFDPacket done [01:01:36]NVStorageSaveData kkm_last_timestamp [01:01:36]File name is /storage/kkm_last_timestamp [01:01:36]Write 4 bytes [01:01:36]NVStorageSaveData done [01:01:36]ExternCall_PrintAddStr [01:01:36]wPrintStart [01:01:36]Write to MH i2c: 01 00 00 A4 20 C4 [01:01:36]Write i2c OK [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: 01 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: 01 07 00 [01:01:36]MH_I2C_Read... [01:01:36]Read from MH i2c: 01 07 00 A4 20 00 00 00 00 00 FF 0F D9 [01:01:36]RasterBufferAndPrint [01:01:36]line Счет N : (1)950198 [01:01:36]line ИНН: 02508201610067 [01:01:36]line Контрольно-Кассовый Чек [01:01:36]line ПРОДАЖА [01:01:36]line ТРК (МРК, ГНК) : 34 [01:01:36]line Товар: 2710194800 [01:01:36]line ДТ-К-5 [01:01:36]line 85.310 * 76.20 [01:01:36]line = 6500.62 [01:01:36]line НДС 12% НСП 1% [01:01:36]line > о реализуемом товаре [01:01:36]line ОКРУГЛЕНИЕ: -0.62 [01:01:36]line ИТОГО: 6500.00 [01:01:36]line НСП 1% : 57.53 [01:01:36]line НДС 12% : 690.33 [01:01:36]line Наличными: 0.00 [01:01:36]line Безнал.: 6500.00 [01:01:36]line Место: АЗС № 134 "Партнер Нефть" [01:01:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [01:01:36]line СНО: Общий режим [01:01:36]line Чек 4 31.07.2024 01:01 [01:01:36]line Смена: 436 ФФД: 1.0 [01:01:36]line ЗНМ: 0300000044 [01:01:36]line РНМ: 0000000000092660 [01:01:36]line Версия ККМ: 001 [01:01:36]line Платежная система: O! деньги [01:01:36]line ФМ: 0000000000874939 [01:01:36]line ФД: 119273 [01:01:36]line ФПД: 4831101619594 [01:01:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T010137&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119273&fm=4831101619594&tin=02508201610067®Number=0000000000092660&sum=650000 [01:01:36]OFD Sender: Processing packet 119273 [packets to send 86, broken 85] [01:01:36]ProducePacketName [01:01:36]name=ofd_packets/00119273 [01:01:36]OFD Sender: To server: pG, [01:01:36]CommunicateWithHost lk.salyk.kg:30040 [01:01:36]ConnectInit lk.salyk.kg [01:01:36]written 0, free lines is 4095 [01:01:36]Connected sock=10 [01:01:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 DC 8B 04 01 41 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4D 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 4E EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 EB 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 8C A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D1 01 00 35 04 06 00 04 64 D4 18 8D 8A 97 BA BC D9 46 14 E2 E2 [01:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 B3 81 47 00 50 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 E9 D1 01 00 F4 03 04 00 7B 3A A9 66 B6 04 01 00 00 A2 C2 18 A6 BD E5 8D E1 [01:01:37]CommunicateWithHost err = 0 [01:01:37]CheckOFDResponse [01:01:37]1017 (14) - 77093643461234 [01:01:37]1041 (16) - 0000000000874939 [01:01:37]1040 (4) - 119273 [01:01:37]1012 (4) - 30.07.2024 19:09 [01:01:37]1206 (1) - 0 [01:01:37]OFD Sender: Remove packet 119273 [01:01:37]ProducePacketName [01:01:37]name=ofd_packets/00119273 [01:01:37]NVStorageDeleteData [01:01:37]Write to MH i2c: 01 00 00 CE 20 EE [01:01:37]Write i2c OK [01:01:37]MH_I2C_Read... [01:01:37]Read from MH i2c: 01 [01:01:37]MH_I2C_Read... [01:01:37]Read from MH i2c: 01 07 00 [01:01:37]MH_I2C_Read... [01:01:37]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 C9 0C CA [01:01:37]RasterBufferAndPrint [01:01:37]line [01:01:37]line [01:01:37]line [01:01:37]line [01:01:37]line [01:01:37]written 0, free lines is 3279 [01:01:37]MH_Cut [01:01:37]Write to MH i2c: D1 01 00 D5 20 01 C7 [01:01:37]Write i2c OK [01:01:37]MH_I2C_Read... [01:01:37]Read from MH i2c: D1 [01:01:37]MH_I2C_Read... [01:01:37]Read from MH i2c: D1 01 00 [01:01:37]MH_I2C_Read... [01:01:37]Read from MH i2c: D1 01 00 D5 20 00 C6 [01:01:37]Write to MH i2c: 01 00 00 D6 20 F6 [01:01:37]Write i2c OK [01:01:37]MH_I2C_Read... [01:01:37]OFD Sender: No OFD packet to send [01:01:38]*** Cut start [01:01:38]*** Partial cut [01:01:38]*** CUTSNS_PIN = 1 [01:01:38]*** CUTSNS_PIN = 0 [01:01:38]*** Brake cut motor [01:01:38]Read from MH i2c: 01 [01:01:38]MH_I2C_Read... [01:01:38]*** Stop cut motor [01:01:38]*** Cut end [01:01:38]Read from MH i2c: 01 07 00 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: 01 07 00 D6 20 00 00 00 00 00 FF 0F 0B [01:01:38]process_action close_receipt done [01:01:38]requested_data is exist [01:01:38]produce_requested_data [01:01:38]requested_item fm.sn is exist - process it [01:01:38]wFMCommunicate request_size=4 [01:01:38]MH_SAM_APDU [01:01:38]CAPDU: 80 11 00 00 [01:01:38]Write to MH i2c: E2 08 00 D7 20 80 11 00 00 00 00 00 00 71 [01:01:38]Write i2c OK [01:01:38]MH_I2C_Read... [01:01:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:38]Read from MH i2c: E2 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: E2 17 00 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: E2 17 00 D7 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 CC [01:01:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:01:38]wFMCommunicate OK [01:01:38]requested_item fd.num is exist - process it [01:01:38]SAM_PROTO_GetFieldsCounters [01:01:38]wFMCommunicate request_size=4 [01:01:38]MH_SAM_APDU [01:01:38]CAPDU: 80 13 00 00 [01:01:38]Write to MH i2c: E2 08 00 D8 20 80 13 00 00 00 00 00 00 74 [01:01:38]Write i2c OK [01:01:38]MH_I2C_Read... [01:01:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:38]Read from MH i2c: E2 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: E2 62 00 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: E2 62 00 D8 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [01:01:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 E9 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:01:38]wFMCommunicate OK [01:01:38]SAM_PROTO_GetFieldsCounters done [01:01:38]requested_item shift.num is exist - process it [01:01:38]requested_item shift.opened is exist - process it [01:01:38]req_shift_opened [01:01:38]FM_GetShiftState [01:01:38]SAM_PROTO_GetShiftState [01:01:38]wFMCommunicate request_size=4 [01:01:38]MH_SAM_APDU [01:01:38]CAPDU: 80 13 01 00 [01:01:38]Write to MH i2c: E2 08 00 D9 20 80 13 01 00 00 00 00 00 76 [01:01:38]Write i2c OK [01:01:38]MH_I2C_Read... [01:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:38]Read from MH i2c: E2 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: E2 0E 00 [01:01:38]MH_I2C_Read... [01:01:38]Read from MH i2c: E2 0E 00 D9 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 0E [01:01:38]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [01:01:38]wFMCommunicate OK [01:01:38]SAM_PROTO_GetShiftState done [01:01:38]FM_GetShiftState done [01:01:38]req_shift_opened done [01:01:38]requested_item shift.open_date is exist - process it [01:01:38]req_shift_open_date [01:01:38]req_shift_open_date done [01:01:38]produce_requested_data done [01:01:38]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119273,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [01:01:38]process_action_free close_receipt [01:01:38]json_value_free [01:01:38]json_value_free done [01:01:38]process_json_proto returns [01:01:38]Send response to host [01:01:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119273,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [01:01:38]free response buf [01:01:38]execute_script done [01:01:38]execute_script returns [01:01:38]free content buf [01:01:38]Sock 7.Close socket [01:01:38]Sock 7.Thread stoped [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]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:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06: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:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:37]accept exits with 9 [01:26:37]New connection [01:26:37]New thread 3066838372 created [01:26:37]Thread 3066695012 joined [01:26:37]Waiting for new connection... [01:26:37] Sock 9.Parse request [01:26:37]Sock 9.Check first char [01:26:37]Sock 9.First char is OK [01:26:37]request: POST /json_proto HTTP/1.0 [01:26:37]Method: POST [01:26:37]URL: /json_proto [01:26:37]Method is POST - this is cgi request [01:26:37]url: /json_proto [01:26:37]query_string will be loaded in cgi processing [01:26:37]execute_cgi json_proto POST (null) [01:26:37]execute_cgi path=json_proto method=POST [01:26:37]POST find Content-Length [01:26:37]Host: 172.17.45.7:8080 [01:26:37]Content-Length: 677 [01:26:37]Content-Type: application/json [01:26:37] [01:26:37]POST finish read [01:26:37]Found Content-Length = 677 [01:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:37]execute_script... [01:26: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)950199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:37]POST & json_proto [01:26:37]process_json_proto [01:26:37]json parsed OK: [01:26:37]protocol is kg_v1.0 [01:26:37]action value=close_receipt [01:26:37]process_action close_receipt [01:26:37]cmd_close_receipt [01:26:37]MH_GetDate [01:26:37]Write to MH i2c: F0 00 00 DA 20 E9 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: F0 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: F0 09 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: F0 09 00 DA 20 00 CF 92 A9 66 90 0F 3E 66 A5 [01:26:37]GetLastDocTimeStamp 1722387697 [01:26:37]current date 1722389199 [01:26:37]FM_GetShiftState [01:26:37]SAM_PROTO_GetShiftState [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 13 01 00 [01:26:37]Write to MH i2c: E2 08 00 DB 20 80 13 01 00 00 00 00 00 78 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 0E 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 0E 00 DB 20 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 10 [01:26:37]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [01:26:37]wFMCommunicate OK [01:26:37]SAM_PROTO_GetShiftState done [01:26:37]FM_GetShiftState done [01:26:37]opened in 1722384637 [01:26:37]opened+sec_in_day 1722471037 [01:26:37]quantity*price = 50036 [01:26:37]sum+1 = 50037 [01:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 5 31.07.2024 01:26 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119274 ФПД: 242412626874082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T012639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119274&fm=242412626874082&tin=02508201610067®Number=0000000000092660&sum=50000 [01:26:38]StoreToDocumentArchive [01:26:38]shift 436 fd 119274 [01:26:38]save to /storage/0436/doc_00119274 [01:26:38]save last doc name /storage/0436/doc_00119274 to /storage/kkm_last_doc_name [01:26:38]save OK [01:26:38]Clear old archive folders... [01:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:26:38]tlvbuf is B6F3C810 [01:26:38]SAM_PROTO_ClearQueue [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 09 00 00 [01:26:38]Write to MH i2c: E2 08 00 E8 20 80 09 00 00 00 00 00 00 7A [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [01:26:38]RAPDU: 90 00 [01:26:38]wFMCommunicate OK [01:26:38]SAM_PROTO_ClearQueue done [01:26:38]KKMCreateOFDPacket [01:26:38]OFDProtocolAddRootSTLVToBuf [01:26:38]FM_MakeSignedData [01:26:38]FM_MakeSignedData [01:26:38]SAM_PROTO_SignData [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 0D 01 02 [01:26:38]Write to MH i2c: E2 08 00 E9 20 80 0D 01 02 00 00 00 00 82 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 E9 20 00 90 00 7D [01:26:38]RAPDU: 90 00 [01:26:38]wFMCommunicate OK [01:26:38]wFMCommunicate request_size=255 [01:26:38]MH_SAM_APDU [01:26: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CF 92 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D1 01 00 35 04 06 00 DC [01:26:38]Write to MH i2c: E2 02 01 EA 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CF 92 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D1 01 00 35 04 06 00 DC 00 00 C8 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [01:26:38]RAPDU: 90 00 [01:26:38]wFMCommunicate OK [01:26:38]wFMCommunicate request_size=10 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 0D 02 02 05 79 16 83 8E E2 [01:26:38]Write to MH i2c: E2 0D 00 EB 20 80 0D 02 02 05 00 79 16 83 8E E2 00 00 11 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [01:26:38]RAPDU: 90 00 [01:26:38]wFMCommunicate OK [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 0D 03 02 [01:26:38]Write to MH i2c: E2 08 00 EC 20 80 0D 03 02 00 00 00 00 87 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 0B 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 0B 00 EC 20 00 D1 C6 0A C9 C8 61 7D F1 90 00 89 [01:26:38]RAPDU: D1 C6 0A C9 C8 61 7D F1 90 00 [01:26:38]wFMCommunicate OK [01:26:38]SAM_PROTO_SignData done [01:26:38]FM_MakeSignedData done [01:26:38]CreateOFDProtocolMessage [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 11 00 00 [01:26:38]Write to MH i2c: E2 08 00 ED 20 80 11 00 00 00 00 00 00 87 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 17 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 17 00 ED 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 E2 [01:26:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:26:38]wFMCommunicate OK [01:26:38]CreateOFDProtocolMessage done [01:26:38]OFDSenderStorePacket 119274 [01:26:38]StoreOFDPacket docnum=119274 [01:26:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF D5 07 01 EB 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CF 92 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D1 01 00 35 04 06 00 DC 79 16 83 8E E2 D1 C6 0A C9 C8 61 7D F1 [01:26:38]CheckFolder [01:26:38]dirname=/storage/ofd_packets [01:26:38]CheckFolder done [01:26:38]ProducePacketName [01:26:38]name=ofd_packets/00119274 [01:26:38]NVStorageSaveData ofd_packets/00119274 [01:26:38]File name is /storage/ofd_packets/00119274 [01:26:38]Write 301 bytes [01:26:38]NVStorageSaveData done [01:26:38]OFDSenderStorePacket done [01:26:38]KKMCreateOFDPacket done [01:26:38]NVStorageSaveData kkm_last_timestamp [01:26:38]File name is /storage/kkm_last_timestamp [01:26:38]Write 4 bytes [01:26:38]NVStorageSaveData done [01:26:38]ExternCall_PrintAddStr [01:26:38]wPrintStart [01:26:38]Write to MH i2c: 01 00 00 EE 20 0E [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 07 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: 01 07 00 EE 20 00 00 00 00 00 FF 0F 23 [01:26:38]RasterBufferAndPrint [01:26:38]line Счет N : (1)950199 [01:26:38]line ИНН: 02508201610067 [01:26:38]line Контрольно-Кассовый Чек [01:26:38]line ПРОДАЖА [01:26:38]line ТРК (МРК, ГНК) : 41 [01:26:38]line Товар: 2710124130 [01:26:38]line Аи-92-К-4 [01:26:38]line 7.380 * 67.80 [01:26:38]line = 500.36 [01:26:38]line НДС 12% НСП 1% [01:26:38]line > о реализуемом товаре [01:26:38]line ОКРУГЛЕНИЕ: -0.36 [01:26:38]line ИТОГО: 500.00 [01:26:38]line Внесено: 500.00 [01:26:38]line СДАЧА: 0.00 [01:26:38]line НСП 1% : 4.43 [01:26:38]line НДС 12% : 53.14 [01:26:38]line Наличными: 500.00 [01:26:38]line Безнал.: 0.00 [01:26:38]line Место: АЗС № 134 "Партнер Нефть" [01:26:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [01:26:38]line СНО: Общий режим [01:26:38]line Чек 5 31.07.2024 01:26 [01:26:38]line Смена: 436 ФФД: 1.0 [01:26:38]line ЗНМ: 0300000044 [01:26:38]line РНМ: 0000000000092660 [01:26:38]line Версия ККМ: 001 [01:26:38]line ФМ: 0000000000874939 [01:26:38]line ФД: 119274 [01:26:38]line ФПД: 242412626874082 [01:26:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T012639&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119274&fm=242412626874082&tin=02508201610067®Number=0000000000092660&sum=50000 [01:26:39]written 0, free lines is 4095 [01:26:39]OFD Sender: Processing packet 119274 [packets to send 86, broken 85] [01:26:39]ProducePacketName [01:26:39]name=ofd_packets/00119274 [01:26:39]OFD Sender: To server: pG, [01:26:39]CommunicateWithHost lk.salyk.kg:30040 [01:26:39]ConnectInit lk.salyk.kg [01:26:39]Connected sock=10 [01:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 FF D5 07 01 EB 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 CF 92 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D1 01 00 35 04 06 00 DC 79 16 83 8E E2 D1 C6 0A C9 C8 61 7D F1 [01:26:39]Write to MH i2c: 01 00 00 18 21 39 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: 01 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: 01 07 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: 01 07 00 18 21 00 00 00 00 00 DA 0C 26 [01:26:39]RasterBufferAndPrint [01:26:39]line [01:26:39]line [01:26:39]line [01:26:39]line [01:26:39]line [01:26:39]written 0, free lines is 3297 [01:26:39]MH_Cut [01:26:39]Write to MH i2c: D1 01 00 1F 21 01 12 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: D1 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: D1 01 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: D1 01 00 1F 21 00 11 [01:26:39]Write to MH i2c: 01 00 00 20 21 41 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1D 02 47 00 52 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EA D1 01 00 F4 03 04 00 59 40 A9 66 B6 04 01 00 00 55 F9 04 8C CB 7F 15 FE [01:26:39]CommunicateWithHost err = 0 [01:26:39]CheckOFDResponse [01:26:39]1017 (14) - 77093643461234 [01:26:39]1041 (16) - 0000000000874939 [01:26:39]1040 (4) - 119274 [01:26:39]1012 (4) - 30.07.2024 19:34 [01:26:39]1206 (1) - 0 [01:26:39]OFD Sender: Remove packet 119274 [01:26:39]ProducePacketName [01:26:39]name=ofd_packets/00119274 [01:26:39]NVStorageDeleteData [01:26:40]OFD Sender: No OFD packet to send [01:26:40]*** Cut start [01:26:40]*** Partial cut [01:26:40]*** CUTSNS_PIN = 1 [01:26:40]*** CUTSNS_PIN = 0 [01:26:40]*** Brake cut motor [01:26:40]Read from MH i2c: 01 [01:26:40]MH_I2C_Read... [01:26:40]*** Stop cut motor [01:26:40]*** Cut end [01:26:40]Read from MH i2c: 01 07 00 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: 01 07 00 20 21 00 00 00 00 00 FF 0F 56 [01:26:40]process_action close_receipt done [01:26:40]requested_data is exist [01:26:40]produce_requested_data [01:26:40]requested_item fm.sn is exist - process it [01:26:40]wFMCommunicate request_size=4 [01:26:40]MH_SAM_APDU [01:26:40]CAPDU: 80 11 00 00 [01:26:40]Write to MH i2c: E2 08 00 21 21 80 11 00 00 00 00 00 00 BC [01:26:40]Write i2c OK [01:26:40]MH_I2C_Read... [01:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:40]Read from MH i2c: E2 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 17 00 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 17 00 21 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 17 [01:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:26:40]wFMCommunicate OK [01:26:40]requested_item fd.num is exist - process it [01:26:40]SAM_PROTO_GetFieldsCounters [01:26:40]wFMCommunicate request_size=4 [01:26:40]MH_SAM_APDU [01:26:40]CAPDU: 80 13 00 00 [01:26:40]Write to MH i2c: E2 08 00 22 21 80 13 00 00 00 00 00 00 BF [01:26:40]Write i2c OK [01:26:40]MH_I2C_Read... [01:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:41]Read from MH i2c: E2 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 62 00 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 62 00 22 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [01:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EA D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:26:41]wFMCommunicate OK [01:26:41]SAM_PROTO_GetFieldsCounters done [01:26:41]requested_item shift.num is exist - process it [01:26:41]requested_item shift.opened is exist - process it [01:26:41]req_shift_opened [01:26:41]FM_GetShiftState [01:26:41]SAM_PROTO_GetShiftState [01:26:41]wFMCommunicate request_size=4 [01:26:41]MH_SAM_APDU [01:26:41]CAPDU: 80 13 01 00 [01:26:41]Write to MH i2c: E2 08 00 23 21 80 13 01 00 00 00 00 00 C1 [01:26:41]Write i2c OK [01:26:41]MH_I2C_Read... [01:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:41]Read from MH i2c: E2 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 0E 00 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 0E 00 23 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 59 [01:26:41]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [01:26:41]wFMCommunicate OK [01:26:41]SAM_PROTO_GetShiftState done [01:26:41]FM_GetShiftState done [01:26:41]req_shift_opened done [01:26:41]requested_item shift.open_date is exist - process it [01:26:41]req_shift_open_date [01:26:41]req_shift_open_date done [01:26:41]produce_requested_data done [01:26:41]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119274,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [01:26:41]process_action_free close_receipt [01:26:41]json_value_free [01:26:41]json_value_free done [01:26:41]process_json_proto returns [01:26:41]Send response to host [01:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119274,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [01:26:41]free response buf [01:26:41]execute_script done [01:26:41]execute_script returns [01:26:41]free content buf [01:26:41]Sock 9.Close socket [01:26:41]Sock 9.Thread stoped [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]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:11]accept exits with 7 [01:30:11]New connection [01:30:11]New thread 3066695012 created [01:30:11]Thread 3066838372 joined [01:30:11]Waiting for new connection... [01:30:11] Sock 7.Parse request [01:30:11]Sock 7.Check first char [01:30:11]Sock 7.First char is OK [01:30:11]request: POST /json_proto HTTP/1.0 [01:30:11]Method: POST [01:30:11]URL: /json_proto [01:30:11]Method is POST - this is cgi request [01:30:11]url: /json_proto [01:30:11]query_string will be loaded in cgi processing [01:30:11]execute_cgi json_proto POST (null) [01:30:11]execute_cgi path=json_proto method=POST [01:30:11]POST find Content-Length [01:30:11]Host: 172.17.45.7:8080 [01:30:11]Content-Length: 819 [01:30:11]Content-Type: application/json [01:30:11] [01:30:11]POST finish read [01:30:11]Found Content-Length = 819 [01:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:11]execute_script... [01:30: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)950200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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", "total" : 2500.00, "payments": [ { "type": 1, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:11]POST & json_proto [01:30:11]process_json_proto [01:30:11]json parsed OK: [01:30:11]protocol is kg_v1.0 [01:30:11]action value=close_receipt [01:30:11]process_action close_receipt [01:30:11]cmd_close_receipt [01:30:11]MH_GetDate [01:30:11]Write to MH i2c: F0 00 00 24 21 34 [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: F0 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: F0 09 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: F0 09 00 24 21 00 A5 93 A9 66 90 0F 3E 66 C7 [01:30:11]GetLastDocTimeStamp 1722389199 [01:30:11]current date 1722389413 [01:30:11]FM_GetShiftState [01:30:11]SAM_PROTO_GetShiftState [01:30:11]wFMCommunicate request_size=4 [01:30:11]MH_SAM_APDU [01:30:11]CAPDU: 80 13 01 00 [01:30:11]Write to MH i2c: E2 08 00 25 21 80 13 01 00 00 00 00 00 C3 [01:30:11]Write i2c OK [01:30:11]MH_I2C_Read... [01:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:11]Read from MH i2c: E2 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: E2 0E 00 [01:30:11]MH_I2C_Read... [01:30:11]Read from MH i2c: E2 0E 00 25 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 5B [01:30:11]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [01:30:11]wFMCommunicate OK [01:30:11]SAM_PROTO_GetShiftState done [01:30:11]FM_GetShiftState done [01:30:11]opened in 1722384637 [01:30:11]opened+sec_in_day 1722471037 [01:30:11]quantity*price = 250012 [01:30:11]sum+1 = 250013 [01:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 0.00 Безнал.: 2500.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 6 31.07.2024 01:30 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119275 ФПД: 163645171973251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T013013&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119275&fm=163645171973251&tin=02508201610067®Number=0000000000092660&sum=250000 [01:30:12]StoreToDocumentArchive [01:30:12]shift 436 fd 119275 [01:30:12]save to /storage/0436/doc_00119275 [01:30:12]save last doc name /storage/0436/doc_00119275 to /storage/kkm_last_doc_name [01:30:12]save OK [01:30:12]Clear old archive folders... [01:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:30:12]tlvbuf is 0166AAB0 [01:30:12]SAM_PROTO_ClearQueue [01:30:12]wFMCommunicate request_size=4 [01:30:12]MH_SAM_APDU [01:30:12]CAPDU: 80 09 00 00 [01:30:12]Write to MH i2c: E2 08 00 32 21 80 09 00 00 00 00 00 00 C5 [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:12]Read from MH i2c: E2 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [01:30:12]RAPDU: 90 00 [01:30:12]wFMCommunicate OK [01:30:12]SAM_PROTO_ClearQueue done [01:30:12]KKMCreateOFDPacket [01:30:12]OFDProtocolAddRootSTLVToBuf [01:30:12]FM_MakeSignedData [01:30:12]FM_MakeSignedData [01:30:12]SAM_PROTO_SignData [01:30:12]wFMCommunicate request_size=4 [01:30:12]MH_SAM_APDU [01:30:12]CAPDU: 80 0D 01 02 [01:30:12]Write to MH i2c: E2 08 00 33 21 80 0D 01 02 00 00 00 00 CD [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:12]Read from MH i2c: E2 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [01:30:12]RAPDU: 90 00 [01:30:12]wFMCommunicate OK [01:30:12]wFMCommunicate request_size=255 [01:30:12]MH_SAM_APDU [01:30:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A5 93 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D1 01 00 35 04 06 00 94 D5 9C 58 [01:30:12]Write to MH i2c: E2 02 01 34 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A5 93 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D1 01 00 35 04 06 00 94 D5 9C 58 00 00 DA [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:12]Read from MH i2c: E2 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 34 21 00 90 00 C9 [01:30:12]RAPDU: 90 00 [01:30:12]wFMCommunicate OK [01:30:12]wFMCommunicate request_size=7 [01:30:12]MH_SAM_APDU [01:30:12]CAPDU: 80 0D 02 02 02 3C 83 [01:30:12]Write to MH i2c: E2 0A 00 35 21 80 0D 02 02 02 00 3C 83 00 00 93 [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:12]Read from MH i2c: E2 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [01:30:12]RAPDU: 90 00 [01:30:12]wFMCommunicate OK [01:30:12]wFMCommunicate request_size=4 [01:30:12]MH_SAM_APDU [01:30:12]CAPDU: 80 0D 03 02 [01:30:12]Write to MH i2c: E2 08 00 36 21 80 0D 03 02 00 00 00 00 D2 [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:12]Read from MH i2c: E2 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 0B 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 0B 00 36 21 00 79 0D C0 46 5E F8 78 C1 90 00 EE [01:30:12]RAPDU: 79 0D C0 46 5E F8 78 C1 90 00 [01:30:12]wFMCommunicate OK [01:30:12]SAM_PROTO_SignData done [01:30:12]FM_MakeSignedData done [01:30:12]CreateOFDProtocolMessage [01:30:12]wFMCommunicate request_size=4 [01:30:12]MH_SAM_APDU [01:30:12]CAPDU: 80 11 00 00 [01:30:12]Write to MH i2c: E2 08 00 37 21 80 11 00 00 00 00 00 00 D2 [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:12]Read from MH i2c: E2 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 17 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: E2 17 00 37 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 2D [01:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:30:12]wFMCommunicate OK [01:30:12]CreateOFDProtocolMessage done [01:30:12]OFDSenderStorePacket 119275 [01:30:12]StoreOFDPacket docnum=119275 [01:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 42 2C 04 01 D6 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A5 93 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D1 01 00 35 04 06 00 94 D5 9C 58 3C 83 79 0D C0 46 5E F8 78 C1 [01:30:12]CheckFolder [01:30:12]dirname=/storage/ofd_packets [01:30:12]CheckFolder done [01:30:12]ProducePacketName [01:30:12]name=ofd_packets/00119275 [01:30:12]NVStorageSaveData ofd_packets/00119275 [01:30:12]File name is /storage/ofd_packets/00119275 [01:30:12]Write 298 bytes [01:30:12]NVStorageSaveData done [01:30:12]OFDSenderStorePacket done [01:30:12]KKMCreateOFDPacket done [01:30:12]NVStorageSaveData kkm_last_timestamp [01:30:12]File name is /storage/kkm_last_timestamp [01:30:12]Write 4 bytes [01:30:12]NVStorageSaveData done [01:30:12]ExternCall_PrintAddStr [01:30:12]wPrintStart [01:30:12]Write to MH i2c: 01 00 00 38 21 59 [01:30:12]Write i2c OK [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 07 00 [01:30:12]MH_I2C_Read... [01:30:12]Read from MH i2c: 01 07 00 38 21 00 00 00 00 00 FF 0F 6E [01:30:12]RasterBufferAndPrint [01:30:12]line Счет N : (1)950200 [01:30:12]line ИНН: 02508201610067 [01:30:12]line Контрольно-Кассовый Чек [01:30:12]line ПРОДАЖА [01:30:12]line ТРК (МРК, ГНК) : 64 [01:30:12]line Товар: 2710194800 [01:30:12]line ДТ-К-5 [01:30:12]line 32.810 * 76.20 [01:30:12]line = 2500.12 [01:30:12]line НДС 12% НСП 1% [01:30:12]line > о реализуемом товаре [01:30:12]line ОКРУГЛЕНИЕ: -0.12 [01:30:12]line ИТОГО: 2500.00 [01:30:12]line НСП 1% : 22.12 [01:30:12]line НДС 12% : 265.50 [01:30:12]line Наличными: 0.00 [01:30:12]line Безнал.: 2500.00 [01:30:12]line Место: АЗС № 134 "Партнер Нефть" [01:30:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [01:30:12]line СНО: Общий режим [01:30:12]line Чек 6 31.07.2024 01:30 [01:30:12]line Смена: 436 ФФД: 1.0 [01:30:12]line ЗНМ: 0300000044 [01:30:12]line РНМ: 0000000000092660 [01:30:12]line Версия ККМ: 001 [01:30:12]line Платежная система: O! деньги [01:30:12]line ФМ: 0000000000874939 [01:30:12]line ФД: 119275 [01:30:12]line ФПД: 163645171973251 [01:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T013013&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119275&fm=163645171973251&tin=02508201610067®Number=0000000000092660&sum=250000 [01:30:13]OFD Sender: Processing packet 119275 [packets to send 86, broken 85] [01:30:13]ProducePacketName [01:30:13]name=ofd_packets/00119275 [01:30:13]OFD Sender: To server: pG, [01:30:13]CommunicateWithHost lk.salyk.kg:30040 [01:30:13]ConnectInit lk.salyk.kg [01:30:13]written 0, free lines is 4095 [01:30:13]Connected sock=10 [01:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 42 2C 04 01 D6 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 A5 93 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EB D1 01 00 35 04 06 00 94 D5 9C 58 3C 83 79 0D C0 46 5E F8 78 C1 [01:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 BE 68 47 00 1B 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 34 39 33 39 10 04 04 00 EB D1 01 00 F4 03 04 00 2F 41 A9 66 B6 04 01 00 00 E5 E6 C2 2A DD 8B ED 7F [01:30:13]CommunicateWithHost err = 0 [01:30:13]CheckOFDResponse [01:30:13]1017 (14) - 77093643461234 [01:30:13]1041 (16) - 0000000000874939 [01:30:13]1040 (4) - 119275 [01:30:13]1012 (4) - 30.07.2024 19:38 [01:30:13]1206 (1) - 0 [01:30:13]OFD Sender: Remove packet 119275 [01:30:13]ProducePacketName [01:30:13]name=ofd_packets/00119275 [01:30:13]NVStorageDeleteData [01:30:13]Write to MH i2c: 01 00 00 62 21 83 [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 07 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: 01 07 00 62 21 00 00 00 00 00 C9 0C 5F [01:30:13]RasterBufferAndPrint [01:30:13]line [01:30:13]line [01:30:13]line [01:30:13]line [01:30:13]line [01:30:13]written 0, free lines is 3280 [01:30:13]MH_Cut [01:30:13]Write to MH i2c: D1 01 00 69 21 01 5C [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: D1 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: D1 01 00 [01:30:13]MH_I2C_Read... [01:30:13]Read from MH i2c: D1 01 00 69 21 00 5B [01:30:13]Write to MH i2c: 01 00 00 6A 21 8B [01:30:13]Write i2c OK [01:30:13]MH_I2C_Read... [01:30:14]OFD Sender: No OFD packet to send [01:30:14]*** Cut start [01:30:14]*** Partial cut [01:30:14]*** CUTSNS_PIN = 1 [01:30:14]*** CUTSNS_PIN = 0 [01:30:14]*** Brake cut motor [01:30:15]Read from MH i2c: 01 [01:30:15]MH_I2C_Read... [01:30:15]*** Stop cut motor [01:30:15]*** Cut end [01:30:15]Read from MH i2c: 01 07 00 [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: 01 07 00 6A 21 00 00 00 00 00 FF 0F A0 [01:30:15]process_action close_receipt done [01:30:15]requested_data is exist [01:30:15]produce_requested_data [01:30:15]requested_item fm.sn is exist - process it [01:30:15]wFMCommunicate request_size=4 [01:30:15]MH_SAM_APDU [01:30:15]CAPDU: 80 11 00 00 [01:30:15]Write to MH i2c: E2 08 00 6B 21 80 11 00 00 00 00 00 00 06 [01:30:15]Write i2c OK [01:30:15]MH_I2C_Read... [01:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:15]Read from MH i2c: E2 [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: E2 17 00 [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: E2 17 00 6B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 61 [01:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [01:30:15]wFMCommunicate OK [01:30:15]requested_item fd.num is exist - process it [01:30:15]SAM_PROTO_GetFieldsCounters [01:30:15]wFMCommunicate request_size=4 [01:30:15]MH_SAM_APDU [01:30:15]CAPDU: 80 13 00 00 [01:30:15]Write to MH i2c: E2 08 00 6C 21 80 13 00 00 00 00 00 00 09 [01:30:15]Write i2c OK [01:30:15]MH_I2C_Read... [01:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:15]Read from MH i2c: E2 [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: E2 62 00 [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: E2 62 00 6C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [01:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EB D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:15]wFMCommunicate OK [01:30:15]SAM_PROTO_GetFieldsCounters done [01:30:15]requested_item shift.num is exist - process it [01:30:15]requested_item shift.opened is exist - process it [01:30:15]req_shift_opened [01:30:15]FM_GetShiftState [01:30:15]SAM_PROTO_GetShiftState [01:30:15]wFMCommunicate request_size=4 [01:30:15]MH_SAM_APDU [01:30:15]CAPDU: 80 13 01 00 [01:30:15]Write to MH i2c: E2 08 00 6D 21 80 13 01 00 00 00 00 00 0B [01:30:15]Write i2c OK [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: E2 [01:30:15]MH_I2C_Read... [01:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:15]Read from MH i2c: E2 0E 00 [01:30:15]MH_I2C_Read... [01:30:15]Read from MH i2c: E2 0E 00 6D 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A3 [01:30:15]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [01:30:15]wFMCommunicate OK [01:30:15]SAM_PROTO_GetShiftState done [01:30:15]FM_GetShiftState done [01:30:15]req_shift_opened done [01:30:15]requested_item shift.open_date is exist - process it [01:30:15]req_shift_open_date [01:30:15]req_shift_open_date done [01:30:15]produce_requested_data done [01:30:15]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119275,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [01:30:15]process_action_free close_receipt [01:30:15]json_value_free [01:30:15]json_value_free done [01:30:15]process_json_proto returns [01:30:15]Send response to host [01:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119275,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [01:30:15]free response buf [01:30:15]execute_script done [01:30:15]execute_script returns [01:30:15]free content buf [01:30:15]Sock 7.Close socket [01:30:15]Sock 7.Thread stoped [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09: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:21]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:44]accept exits with 9 [02:17:44]New connection [02:17:44]New thread 3066838372 created [02:17:44]Thread 3066695012 joined [02:17:44]Waiting for new connection... [02:17:44] Sock 9.Parse request [02:17:44]Sock 9.Check first char [02:17:44]Sock 9.First char is OK [02:17:44]request: POST /json_proto HTTP/1.0 [02:17:44]Method: POST [02:17:44]URL: /json_proto [02:17:44]Method is POST - this is cgi request [02:17:44]url: /json_proto [02:17:44]query_string will be loaded in cgi processing [02:17:44]execute_cgi json_proto POST (null) [02:17:44]execute_cgi path=json_proto method=POST [02:17:44]POST find Content-Length [02:17:44]Host: 172.17.45.7:8080 [02:17:44]Content-Length: 819 [02:17:44]Content-Type: application/json [02:17:44] [02:17:44]POST finish read [02:17:44]Found Content-Length = 819 [02:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2600.00, "payments": [ { "type": 1, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:44]execute_script... [02:17:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 34.130, "sum" : 2600.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 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", "total" : 2600.00, "payments": [ { "type": 1, "sum" : 2600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:17:44]POST & json_proto [02:17:44]process_json_proto [02:17:44]json parsed OK: [02:17:44]protocol is kg_v1.0 [02:17:44]action value=close_receipt [02:17:44]process_action close_receipt [02:17:44]cmd_close_receipt [02:17:44]MH_GetDate [02:17:44]Write to MH i2c: F0 00 00 6E 21 7E [02:17:44]Write i2c OK [02:17:44]MH_I2C_Read... [02:17:44]Read from MH i2c: F0 [02:17:44]MH_I2C_Read... [02:17:44]Read from MH i2c: F0 09 00 [02:17:44]MH_I2C_Read... [02:17:44]Read from MH i2c: F0 09 00 6E 21 00 CB 9E A9 66 90 0F 3E 66 42 [02:17:44]GetLastDocTimeStamp 1722389413 [02:17:44]current date 1722392267 [02:17:44]FM_GetShiftState [02:17:44]SAM_PROTO_GetShiftState [02:17:44]wFMCommunicate request_size=4 [02:17:44]MH_SAM_APDU [02:17:44]CAPDU: 80 13 01 00 [02:17:44]Write to MH i2c: E2 08 00 6F 21 80 13 01 00 00 00 00 00 0D [02:17:44]Write i2c OK [02:17:44]MH_I2C_Read... [02:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:44]Read from MH i2c: E2 [02:17:44]MH_I2C_Read... [02:17:44]Read from MH i2c: E2 0E 00 [02:17:44]MH_I2C_Read... [02:17:44]Read from MH i2c: E2 0E 00 6F 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 A5 [02:17:44]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:17:44]wFMCommunicate OK [02:17:44]SAM_PROTO_GetShiftState done [02:17:44]FM_GetShiftState done [02:17:44]opened in 1722384637 [02:17:44]opened+sec_in_day 1722471037 [02:17:44]quantity*price = 260070 [02:17:44]sum+1 = 260072 [02:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 2600.00 НСП 1% : 23.01 НДС 12% : 276.18 Наличными: 0.00 Безнал.: 2600.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 7 31.07.2024 02:17 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874939 ФД: 119276 ФПД: 91661485847206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T021747&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119276&fm=91661485847206&tin=02508201610067®Number=0000000000092660&sum=260000 [02:17:45]StoreToDocumentArchive [02:17:45]shift 436 fd 119276 [02:17:45]save to /storage/0436/doc_00119276 [02:17:45]save last doc name /storage/0436/doc_00119276 to /storage/kkm_last_doc_name [02:17:45]save OK [02:17:45]Clear old archive folders... [02:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:17:45]tlvbuf is 01645560 [02:17:45]SAM_PROTO_ClearQueue [02:17:45]wFMCommunicate request_size=4 [02:17:45]MH_SAM_APDU [02:17:45]CAPDU: 80 09 00 00 [02:17:45]Write to MH i2c: E2 08 00 7C 21 80 09 00 00 00 00 00 00 0F [02:17:45]Write i2c OK [02:17:45]MH_I2C_Read... [02:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:17:46]Read from MH i2c: E2 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [02:17:46]RAPDU: 90 00 [02:17:46]wFMCommunicate OK [02:17:46]SAM_PROTO_ClearQueue done [02:17:46]KKMCreateOFDPacket [02:17:46]OFDProtocolAddRootSTLVToBuf [02:17:46]FM_MakeSignedData [02:17:46]FM_MakeSignedData [02:17:46]SAM_PROTO_SignData [02:17:46]wFMCommunicate request_size=4 [02:17:46]MH_SAM_APDU [02:17:46]CAPDU: 80 0D 01 02 [02:17:46]Write to MH i2c: E2 08 00 7D 21 80 0D 01 02 00 00 00 00 17 [02:17:46]Write i2c OK [02:17:46]MH_I2C_Read... [02:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:17:46]Read from MH i2c: E2 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [02:17:46]RAPDU: 90 00 [02:17:46]wFMCommunicate OK [02:17:46]wFMCommunicate request_size=255 [02:17:46]MH_SAM_APDU [02:17:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 CB 9E A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D1 01 00 35 04 06 00 53 5D 9A 4D [02:17:46]Write to MH i2c: E2 02 01 7E 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 CB 9E A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D1 01 00 35 04 06 00 53 5D 9A 4D 00 00 27 [02:17:46]Write i2c OK [02:17:46]MH_I2C_Read... [02:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:46]Read from MH i2c: E2 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [02:17:46]RAPDU: 90 00 [02:17:46]wFMCommunicate OK [02:17:46]wFMCommunicate request_size=7 [02:17:46]MH_SAM_APDU [02:17:46]CAPDU: 80 0D 02 02 02 B2 A6 [02:17:46]Write to MH i2c: E2 0A 00 7F 21 80 0D 02 02 02 00 B2 A6 00 00 76 [02:17:46]Write i2c OK [02:17:46]MH_I2C_Read... [02:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:17:46]Read from MH i2c: E2 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [02:17:46]RAPDU: 90 00 [02:17:46]wFMCommunicate OK [02:17:46]wFMCommunicate request_size=4 [02:17:46]MH_SAM_APDU [02:17:46]CAPDU: 80 0D 03 02 [02:17:46]Write to MH i2c: E2 08 00 80 21 80 0D 03 02 00 00 00 00 1C [02:17:46]Write i2c OK [02:17:46]MH_I2C_Read... [02:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:17:46]Read from MH i2c: E2 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 0B 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 0B 00 80 21 00 95 4E 9C 0F 8F 3A 07 A8 90 00 23 [02:17:46]RAPDU: 95 4E 9C 0F 8F 3A 07 A8 90 00 [02:17:46]wFMCommunicate OK [02:17:46]SAM_PROTO_SignData done [02:17:46]FM_MakeSignedData done [02:17:46]CreateOFDProtocolMessage [02:17:46]wFMCommunicate request_size=4 [02:17:46]MH_SAM_APDU [02:17:46]CAPDU: 80 11 00 00 [02:17:46]Write to MH i2c: E2 08 00 81 21 80 11 00 00 00 00 00 00 1C [02:17:46]Write i2c OK [02:17:46]MH_I2C_Read... [02:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:46]Read from MH i2c: E2 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 17 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: E2 17 00 81 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 77 [02:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:17:46]wFMCommunicate OK [02:17:46]CreateOFDProtocolMessage done [02:17:46]OFDSenderStorePacket 119276 [02:17:46]StoreOFDPacket docnum=119276 [02:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F 11 04 01 F8 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 CB 9E A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D1 01 00 35 04 06 00 53 5D 9A 4D B2 A6 95 4E 9C 0F 8F 3A 07 A8 [02:17:46]CheckFolder [02:17:46]dirname=/storage/ofd_packets [02:17:46]CheckFolder done [02:17:46]ProducePacketName [02:17:46]name=ofd_packets/00119276 [02:17:46]NVStorageSaveData ofd_packets/00119276 [02:17:46]File name is /storage/ofd_packets/00119276 [02:17:46]Write 298 bytes [02:17:46]NVStorageSaveData done [02:17:46]OFDSenderStorePacket done [02:17:46]KKMCreateOFDPacket done [02:17:46]NVStorageSaveData kkm_last_timestamp [02:17:46]File name is /storage/kkm_last_timestamp [02:17:46]Write 4 bytes [02:17:46]NVStorageSaveData done [02:17:46]ExternCall_PrintAddStr [02:17:46]wPrintStart [02:17:46]Write to MH i2c: 01 00 00 82 21 A3 [02:17:46]Write i2c OK [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: 01 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: 01 07 00 [02:17:46]MH_I2C_Read... [02:17:46]Read from MH i2c: 01 07 00 82 21 00 00 00 00 00 FF 0F B8 [02:17:46]RasterBufferAndPrint [02:17:46]line Счет N : (1)950201 [02:17:46]line ИНН: 02508201610067 [02:17:46]line Контрольно-Кассовый Чек [02:17:46]line ПРОДАЖА [02:17:46]line ТРК (МРК, ГНК) : 21 [02:17:46]line Товар: 2710194800 [02:17:46]line ДТ-К-5 [02:17:46]line 34.130 * 76.20 [02:17:46]line = 2600.71 [02:17:46]line НДС 12% НСП 1% [02:17:46]line > о реализуемом товаре [02:17:46]line ОКРУГЛЕНИЕ: -0.71 [02:17:46]line ИТОГО: 2600.00 [02:17:46]line НСП 1% : 23.01 [02:17:46]line НДС 12% : 276.18 [02:17:46]line Наличными: 0.00 [02:17:46]line Безнал.: 2600.00 [02:17:46]line Место: АЗС № 134 "Партнер Нефть" [02:17:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:17:46]line СНО: Общий режим [02:17:46]line Чек 7 31.07.2024 02:17 [02:17:46]line Смена: 436 ФФД: 1.0 [02:17:46]line ЗНМ: 0300000044 [02:17:46]line РНМ: 0000000000092660 [02:17:46]line Версия ККМ: 001 [02:17:46]line Платежная система: O! деньги [02:17:46]line ФМ: 0000000000874939 [02:17:46]line ФД: 119276 [02:17:46]line ФПД: 91661485847206 [02:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T021747&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119276&fm=91661485847206&tin=02508201610067®Number=0000000000092660&sum=260000 [02:17:46]OFD Sender: Processing packet 119276 [packets to send 86, broken 85] [02:17:46]ProducePacketName [02:17:46]name=ofd_packets/00119276 [02:17:46]OFD Sender: To server: pG, [02:17:46]CommunicateWithHost lk.salyk.kg:30040 [02:17:46]ConnectInit lk.salyk.kg [02:17:46]written 0, free lines is 4095 [02:17:46]Connected sock=10 [02:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 4F 11 04 01 F8 BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 85 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 6B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 F7 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 CB 9E A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D1 01 00 35 04 06 00 53 5D 9A 4D B2 A6 95 4E 9C 0F 8F 3A 07 A8 [02:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 07 7B 47 00 E2 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EC D1 01 00 F4 03 04 00 55 4C A9 66 B6 04 01 00 00 35 C4 F5 DA 4D 56 25 CC [02:17:47]CommunicateWithHost err = 0 [02:17:47]CheckOFDResponse [02:17:47]1017 (14) - 77093643461234 [02:17:47]1041 (16) - 0000000000874939 [02:17:47]1040 (4) - 119276 [02:17:47]1012 (4) - 30.07.2024 20:25 [02:17:47]1206 (1) - 0 [02:17:47]OFD Sender: Remove packet 119276 [02:17:47]ProducePacketName [02:17:47]name=ofd_packets/00119276 [02:17:47]NVStorageDeleteData [02:17:47]Write to MH i2c: 01 00 00 AC 21 CD [02:17:47]Write i2c OK [02:17:47]MH_I2C_Read... [02:17:47]Read from MH i2c: 01 [02:17:47]MH_I2C_Read... [02:17:47]Read from MH i2c: 01 07 00 [02:17:47]MH_I2C_Read... [02:17:47]Read from MH i2c: 01 07 00 AC 21 00 00 00 00 00 CC 0C AC [02:17:47]RasterBufferAndPrint [02:17:47]line [02:17:47]line [02:17:47]line [02:17:47]line [02:17:47]line [02:17:47]written 0, free lines is 3283 [02:17:47]MH_Cut [02:17:47]Write to MH i2c: D1 01 00 B3 21 01 A6 [02:17:47]Write i2c OK [02:17:47]MH_I2C_Read... [02:17:47]Read from MH i2c: D1 [02:17:47]MH_I2C_Read... [02:17:47]Read from MH i2c: D1 01 00 [02:17:47]MH_I2C_Read... [02:17:47]Read from MH i2c: D1 01 00 B3 21 00 A5 [02:17:47]Write to MH i2c: 01 00 00 B4 21 D5 [02:17:47]Write i2c OK [02:17:47]MH_I2C_Read... [02:17:47]OFD Sender: No OFD packet to send [02:17:48]*** Cut start [02:17:48]*** Partial cut [02:17:48]*** CUTSNS_PIN = 1 [02:17:48]*** CUTSNS_PIN = 0 [02:17:48]*** Brake cut motor [02:17:48]Read from MH i2c: 01 [02:17:48]MH_I2C_Read... [02:17:48]*** Stop cut motor [02:17:48]*** Cut end [02:17:48]Read from MH i2c: 01 07 00 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: 01 07 00 B4 21 00 00 00 00 00 FF 0F EA [02:17:48]process_action close_receipt done [02:17:48]requested_data is exist [02:17:48]produce_requested_data [02:17:48]requested_item fm.sn is exist - process it [02:17:48]wFMCommunicate request_size=4 [02:17:48]MH_SAM_APDU [02:17:48]CAPDU: 80 11 00 00 [02:17:48]Write to MH i2c: E2 08 00 B5 21 80 11 00 00 00 00 00 00 50 [02:17:48]Write i2c OK [02:17:48]MH_I2C_Read... [02:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:17:48]Read from MH i2c: E2 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: E2 17 00 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: E2 17 00 B5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 AB [02:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:17:48]wFMCommunicate OK [02:17:48]requested_item fd.num is exist - process it [02:17:48]SAM_PROTO_GetFieldsCounters [02:17:48]wFMCommunicate request_size=4 [02:17:48]MH_SAM_APDU [02:17:48]CAPDU: 80 13 00 00 [02:17:48]Write to MH i2c: E2 08 00 B6 21 80 13 00 00 00 00 00 00 53 [02:17:48]Write i2c OK [02:17:48]MH_I2C_Read... [02:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:17:48]Read from MH i2c: E2 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: E2 62 00 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: E2 62 00 B6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [02:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EC D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:17:48]wFMCommunicate OK [02:17:48]SAM_PROTO_GetFieldsCounters done [02:17:48]requested_item shift.num is exist - process it [02:17:48]requested_item shift.opened is exist - process it [02:17:48]req_shift_opened [02:17:48]FM_GetShiftState [02:17:48]SAM_PROTO_GetShiftState [02:17:48]wFMCommunicate request_size=4 [02:17:48]MH_SAM_APDU [02:17:48]CAPDU: 80 13 01 00 [02:17:48]Write to MH i2c: E2 08 00 B7 21 80 13 01 00 00 00 00 00 55 [02:17:48]Write i2c OK [02:17:48]MH_I2C_Read... [02:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:17:48]Read from MH i2c: E2 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: E2 0E 00 [02:17:48]MH_I2C_Read... [02:17:48]Read from MH i2c: E2 0E 00 B7 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 ED [02:17:48]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:17:48]wFMCommunicate OK [02:17:48]SAM_PROTO_GetShiftState done [02:17:48]FM_GetShiftState done [02:17:48]req_shift_opened done [02:17:48]requested_item shift.open_date is exist - process it [02:17:48]req_shift_open_date [02:17:48]req_shift_open_date done [02:17:48]produce_requested_data done [02:17:48]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119276,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:17:48]process_action_free close_receipt [02:17:48]json_value_free [02:17:48]json_value_free done [02:17:48]process_json_proto returns [02:17:48]Send response to host [02:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119276,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:17:48]free response buf [02:17:48]execute_script done [02:17:48]execute_script returns [02:17:48]free content buf [02:17:48]Sock 9.Close socket [02:17:48]Sock 9.Thread stoped [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:49]accept exits with 7 [02:21:49]New connection [02:21:49]New thread 3066695012 created [02:21:49]Thread 3066838372 joined [02:21:49]Waiting for new connection... [02:21:49] Sock 7.Parse request [02:21:49]Sock 7.Check first char [02:21:49]Sock 7.First char is OK [02:21:49]request: POST /json_proto HTTP/1.0 [02:21:49]Method: POST [02:21:49]URL: /json_proto [02:21:49]Method is POST - this is cgi request [02:21:49]url: /json_proto [02:21:49]query_string will be loaded in cgi processing [02:21:49]execute_cgi json_proto POST (null) [02:21:49]execute_cgi path=json_proto method=POST [02:21:49]POST find Content-Length [02:21:49]Host: 172.17.45.7:8080 [02:21:49]Content-Length: 677 [02:21:49]Content-Type: application/json [02:21:49] [02:21:49]POST finish read [02:21:49]Found Content-Length = 677 [02:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [02:21:49]execute_script... [02:21:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.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" ] } } [02:21:49]POST & json_proto [02:21:49]process_json_proto [02:21:49]json parsed OK: [02:21:49]protocol is kg_v1.0 [02:21:49]action value=close_receipt [02:21:49]process_action close_receipt [02:21:49]cmd_close_receipt [02:21:49]MH_GetDate [02:21:49]Write to MH i2c: F0 00 00 B8 21 C8 [02:21:49]Write i2c OK [02:21:49]MH_I2C_Read... [02:21:49]Read from MH i2c: F0 [02:21:49]MH_I2C_Read... [02:21:49]Read from MH i2c: F0 09 00 [02:21:49]MH_I2C_Read... [02:21:49]Read from MH i2c: F0 09 00 B8 21 00 BF 9F A9 66 90 0F 3E 66 81 [02:21:49]GetLastDocTimeStamp 1722392267 [02:21:49]current date 1722392511 [02:21:49]FM_GetShiftState [02:21:49]SAM_PROTO_GetShiftState [02:21:49]wFMCommunicate request_size=4 [02:21:49]MH_SAM_APDU [02:21:49]CAPDU: 80 13 01 00 [02:21:49]Write to MH i2c: E2 08 00 B9 21 80 13 01 00 00 00 00 00 57 [02:21:49]Write i2c OK [02:21:49]MH_I2C_Read... [02:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:49]Read from MH i2c: E2 [02:21:49]MH_I2C_Read... [02:21:49]Read from MH i2c: E2 0E 00 [02:21:49]MH_I2C_Read... [02:21:49]Read from MH i2c: E2 0E 00 B9 21 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 EF [02:21:49]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:21:49]wFMCommunicate OK [02:21:49]SAM_PROTO_GetShiftState done [02:21:49]FM_GetShiftState done [02:21:49]opened in 1722384637 [02:21:49]opened+sec_in_day 1722471037 [02:21:49]quantity*price = 60027 [02:21:49]sum+1 = 60029 [02:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 8 31.07.2024 02:21 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119277 ФПД: 171886392011823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T022151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119277&fm=171886392011823&tin=02508201610067®Number=0000000000092660&sum=60000 [02:21:50]StoreToDocumentArchive [02:21:50]shift 436 fd 119277 [02:21:50]save to /storage/0436/doc_00119277 [02:21:50]save last doc name /storage/0436/doc_00119277 to /storage/kkm_last_doc_name [02:21:50]save OK [02:21:50]Clear old archive folders... [02:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:21:50]tlvbuf is 016010A0 [02:21:50]SAM_PROTO_ClearQueue [02:21:50]wFMCommunicate request_size=4 [02:21:50]MH_SAM_APDU [02:21:50]CAPDU: 80 09 00 00 [02:21:50]Write to MH i2c: E2 08 00 C6 21 80 09 00 00 00 00 00 00 59 [02:21:50]Write i2c OK [02:21:50]MH_I2C_Read... [02:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:21:50]Read from MH i2c: E2 [02:21:50]MH_I2C_Read... [02:21:50]Read from MH i2c: E2 03 00 [02:21:50]MH_I2C_Read... [02:21:50]Read from MH i2c: E2 03 00 C6 21 00 90 00 5B [02:21:50]RAPDU: 90 00 [02:21:50]wFMCommunicate OK [02:21:50]SAM_PROTO_ClearQueue done [02:21:50]KKMCreateOFDPacket [02:21:50]OFDProtocolAddRootSTLVToBuf [02:21:50]FM_MakeSignedData [02:21:50]FM_MakeSignedData [02:21:50]SAM_PROTO_SignData [02:21:50]wFMCommunicate request_size=4 [02:21:50]MH_SAM_APDU [02:21:50]CAPDU: 80 0D 01 02 [02:21:50]Write to MH i2c: E2 08 00 C7 21 80 0D 01 02 00 00 00 00 61 [02:21:50]Write i2c OK [02:21:50]MH_I2C_Read... [02:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:21:50]Read from MH i2c: E2 [02:21:50]MH_I2C_Read... [02:21:50]Read from MH i2c: E2 03 00 [02:21:50]MH_I2C_Read... [02:21:50]Read from MH i2c: E2 03 00 C7 21 00 90 00 5C [02:21:50]RAPDU: 90 00 [02:21:50]wFMCommunicate OK [02:21:50]wFMCommunicate request_size=255 [02:21:50]MH_SAM_APDU [02:21:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 BF 9F A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D1 01 00 35 04 06 00 9C [02:21:50]Write to MH i2c: E2 02 01 C8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 BF 9F A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D1 01 00 35 04 06 00 9C 00 00 D7 [02:21:50]Write i2c OK [02:21:50]MH_I2C_Read... [02:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:50]Read from MH i2c: E2 [02:21:50]MH_I2C_Read... [02:21:50]Read from MH i2c: E2 03 00 [02:21:50]MH_I2C_Read... [02:21:50]Read from MH i2c: E2 03 00 C8 21 00 90 00 5D [02:21:50]RAPDU: 90 00 [02:21:50]wFMCommunicate OK [02:21:50]wFMCommunicate request_size=10 [02:21:50]MH_SAM_APDU [02:21:50]CAPDU: 80 0D 02 02 05 54 6B 56 6C 2F [02:21:50]Write to MH i2c: E2 0D 00 C9 21 80 0D 02 02 05 00 54 6B 56 6C 2F 00 00 1E [02:21:50]Write i2c OK [02:21:50]MH_I2C_Read... [02:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:51]Read from MH i2c: E2 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: E2 03 00 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: E2 03 00 C9 21 00 90 00 5E [02:21:51]RAPDU: 90 00 [02:21:51]wFMCommunicate OK [02:21:51]wFMCommunicate request_size=4 [02:21:51]MH_SAM_APDU [02:21:51]CAPDU: 80 0D 03 02 [02:21:51]Write to MH i2c: E2 08 00 CA 21 80 0D 03 02 00 00 00 00 66 [02:21:51]Write i2c OK [02:21:51]MH_I2C_Read... [02:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:21:51]Read from MH i2c: E2 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: E2 0B 00 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: E2 0B 00 CA 21 00 B3 2F 37 99 F1 2E 9B A3 90 00 76 [02:21:51]RAPDU: B3 2F 37 99 F1 2E 9B A3 90 00 [02:21:51]wFMCommunicate OK [02:21:51]SAM_PROTO_SignData done [02:21:51]FM_MakeSignedData done [02:21:51]CreateOFDProtocolMessage [02:21:51]wFMCommunicate request_size=4 [02:21:51]MH_SAM_APDU [02:21:51]CAPDU: 80 11 00 00 [02:21:51]Write to MH i2c: E2 08 00 CB 21 80 11 00 00 00 00 00 00 66 [02:21:51]Write i2c OK [02:21:51]MH_I2C_Read... [02:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:51]Read from MH i2c: E2 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: E2 17 00 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: E2 17 00 CB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 C1 [02:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:21:51]wFMCommunicate OK [02:21:51]CreateOFDProtocolMessage done [02:21:51]OFDSenderStorePacket 119277 [02:21:51]StoreOFDPacket docnum=119277 [02:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EC 55 07 01 F3 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 BF 9F A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D1 01 00 35 04 06 00 9C 54 6B 56 6C 2F B3 2F 37 99 F1 2E 9B A3 [02:21:51]CheckFolder [02:21:51]dirname=/storage/ofd_packets [02:21:51]CheckFolder done [02:21:51]ProducePacketName [02:21:51]name=ofd_packets/00119277 [02:21:51]NVStorageSaveData ofd_packets/00119277 [02:21:51]File name is /storage/ofd_packets/00119277 [02:21:51]Write 301 bytes [02:21:51]NVStorageSaveData done [02:21:51]OFDSenderStorePacket done [02:21:51]KKMCreateOFDPacket done [02:21:51]NVStorageSaveData kkm_last_timestamp [02:21:51]File name is /storage/kkm_last_timestamp [02:21:51]Write 4 bytes [02:21:51]NVStorageSaveData done [02:21:51]ExternCall_PrintAddStr [02:21:51]wPrintStart [02:21:51]Write to MH i2c: 01 00 00 CC 21 ED [02:21:51]Write i2c OK [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: 01 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: 01 07 00 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: 01 07 00 CC 21 00 00 00 00 00 FF 0F 02 [02:21:51]RasterBufferAndPrint [02:21:51]line Счет N : (1)950202 [02:21:51]line ИНН: 02508201610067 [02:21:51]line Контрольно-Кассовый Чек [02:21:51]line ПРОДАЖА [02:21:51]line ТРК (МРК, ГНК) : 53 [02:21:51]line Товар: 2710124500 [02:21:51]line Аи-95-К-3 [02:21:51]line 8.090 * 74.20 [02:21:51]line = 600.28 [02:21:51]line НДС 12% НСП 1% [02:21:51]line > о реализуемом товаре [02:21:51]line ОКРУГЛЕНИЕ: -0.28 [02:21:51]line ИТОГО: 600.00 [02:21:51]line Внесено: 600.00 [02:21:51]line СДАЧА: 0.00 [02:21:51]line НСП 1% : 5.31 [02:21:51]line НДС 12% : 63.75 [02:21:51]line Наличными: 600.00 [02:21:51]line Безнал.: 0.00 [02:21:51]line Место: АЗС № 134 "Партнер Нефть" [02:21:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:21:51]line СНО: Общий режим [02:21:51]line Чек 8 31.07.2024 02:21 [02:21:51]line Смена: 436 ФФД: 1.0 [02:21:51]line ЗНМ: 0300000044 [02:21:51]line РНМ: 0000000000092660 [02:21:51]line Версия ККМ: 001 [02:21:51]line ФМ: 0000000000874939 [02:21:51]line ФД: 119277 [02:21:51]line ФПД: 171886392011823 [02:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T022151&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119277&fm=171886392011823&tin=02508201610067®Number=0000000000092660&sum=60000 [02:21:51]OFD Sender: Processing packet 119277 [packets to send 86, broken 85] [02:21:51]ProducePacketName [02:21:51]name=ofd_packets/00119277 [02:21:51]OFD Sender: To server: pG, [02:21:51]CommunicateWithHost lk.salyk.kg:30040 [02:21:51]ConnectInit lk.salyk.kg [02:21:51]written 0, free lines is 4095 [02:21:51]Connected sock=10 [02:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 EC 55 07 01 F3 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 BF 9F A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D1 01 00 35 04 06 00 9C 54 6B 56 6C 2F B3 2F 37 99 F1 2E 9B A3 [02:21:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 AA 9B 47 00 4B 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 ED D1 01 00 F4 03 04 00 49 4D A9 66 B6 04 01 00 00 1B FC 22 B6 E5 6D 75 C9 [02:21:51]CommunicateWithHost err = 0 [02:21:51]CheckOFDResponse [02:21:51]1017 (14) - 77093643461234 [02:21:51]1041 (16) - 0000000000874939 [02:21:51]1040 (4) - 119277 [02:21:51]1012 (4) - 30.07.2024 20:30 [02:21:51]1206 (1) - 0 [02:21:51]OFD Sender: Remove packet 119277 [02:21:51]ProducePacketName [02:21:51]name=ofd_packets/00119277 [02:21:51]NVStorageDeleteData [02:21:51]Write to MH i2c: 01 00 00 F6 21 17 [02:21:51]Write i2c OK [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: 01 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: 01 07 00 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: 01 07 00 F6 21 00 00 00 00 00 C6 0C F0 [02:21:51]RasterBufferAndPrint [02:21:51]line [02:21:51]line [02:21:51]line [02:21:51]line [02:21:51]line [02:21:51]written 0, free lines is 3277 [02:21:51]MH_Cut [02:21:51]Write to MH i2c: D1 01 00 FD 21 01 F0 [02:21:51]Write i2c OK [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: D1 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: D1 01 00 [02:21:51]MH_I2C_Read... [02:21:51]Read from MH i2c: D1 01 00 FD 21 00 EF [02:21:51]Write to MH i2c: 01 00 00 FE 21 1F [02:21:51]Write i2c OK [02:21:51]MH_I2C_Read... [02:21:52]OFD Sender: No OFD packet to send [02:21:52]*** Cut start [02:21:52]*** Partial cut [02:21:52]*** CUTSNS_PIN = 1 [02:21:52]*** CUTSNS_PIN = 0 [02:21:52]*** Brake cut motor [02:21:53]Read from MH i2c: 01 [02:21:53]MH_I2C_Read... [02:21:53]*** Stop cut motor [02:21:53]*** Cut end [02:21:53]Read from MH i2c: 01 07 00 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: 01 07 00 FE 21 00 00 00 00 00 FF 0F 34 [02:21:53]process_action close_receipt done [02:21:53]requested_data is exist [02:21:53]produce_requested_data [02:21:53]requested_item fm.sn is exist - process it [02:21:53]wFMCommunicate request_size=4 [02:21:53]MH_SAM_APDU [02:21:53]CAPDU: 80 11 00 00 [02:21:53]Write to MH i2c: E2 08 00 FF 21 80 11 00 00 00 00 00 00 9A [02:21:53]Write i2c OK [02:21:53]MH_I2C_Read... [02:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:53]Read from MH i2c: E2 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: E2 17 00 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: E2 17 00 FF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 F5 [02:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:21:53]wFMCommunicate OK [02:21:53]requested_item fd.num is exist - process it [02:21:53]SAM_PROTO_GetFieldsCounters [02:21:53]wFMCommunicate request_size=4 [02:21:53]MH_SAM_APDU [02:21:53]CAPDU: 80 13 00 00 [02:21:53]Write to MH i2c: E2 08 00 00 22 80 13 00 00 00 00 00 00 9E [02:21:53]Write i2c OK [02:21:53]MH_I2C_Read... [02:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:21:53]Read from MH i2c: E2 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: E2 62 00 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: E2 62 00 00 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [02:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 ED D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:21:53]wFMCommunicate OK [02:21:53]SAM_PROTO_GetFieldsCounters done [02:21:53]requested_item shift.num is exist - process it [02:21:53]requested_item shift.opened is exist - process it [02:21:53]req_shift_opened [02:21:53]FM_GetShiftState [02:21:53]SAM_PROTO_GetShiftState [02:21:53]wFMCommunicate request_size=4 [02:21:53]MH_SAM_APDU [02:21:53]CAPDU: 80 13 01 00 [02:21:53]Write to MH i2c: E2 08 00 01 22 80 13 01 00 00 00 00 00 A0 [02:21:53]Write i2c OK [02:21:53]MH_I2C_Read... [02:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:53]Read from MH i2c: E2 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: E2 0E 00 [02:21:53]MH_I2C_Read... [02:21:53]Read from MH i2c: E2 0E 00 01 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 38 [02:21:53]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:21:53]wFMCommunicate OK [02:21:53]SAM_PROTO_GetShiftState done [02:21:53]FM_GetShiftState done [02:21:53]req_shift_opened done [02:21:53]requested_item shift.open_date is exist - process it [02:21:53]req_shift_open_date [02:21:53]req_shift_open_date done [02:21:53]produce_requested_data done [02:21:53]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119277,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:21:53]process_action_free close_receipt [02:21:53]json_value_free [02:21:53]json_value_free done [02:21:53]process_json_proto returns [02:21:53]Send response to host [02:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119277,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:21:53]free response buf [02:21:53]execute_script done [02:21:53]execute_script returns [02:21:53]free content buf [02:21:53]Sock 7.Close socket [02:21:53]Sock 7.Thread stoped [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:19]accept exits with 9 [02:24:19]New connection [02:24:19]New thread 3066838372 created [02:24:19]Thread 3066695012 joined [02:24:19]Waiting for new connection... [02:24:19] Sock 9.Parse request [02:24:19]Sock 9.Check first char [02:24:19]Sock 9.First char is OK [02:24:19]request: POST /json_proto HTTP/1.0 [02:24:19]Method: POST [02:24:19]URL: /json_proto [02:24:19]Method is POST - this is cgi request [02:24:19]url: /json_proto [02:24:19]query_string will be loaded in cgi processing [02:24:19]execute_cgi json_proto POST (null) [02:24:19]execute_cgi path=json_proto method=POST [02:24:19]POST find Content-Length [02:24:19]Host: 172.17.45.7:8080 [02:24:19]Content-Length: 677 [02:24:19]Content-Type: application/json [02:24:19] [02:24:19]POST finish read [02:24:19]Found Content-Length = 677 [02:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:24:19]execute_script... [02:24: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)950203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:24:19]POST & json_proto [02:24:19]process_json_proto [02:24:19]json parsed OK: [02:24:19]protocol is kg_v1.0 [02:24:19]action value=close_receipt [02:24:19]process_action close_receipt [02:24:19]cmd_close_receipt [02:24:19]MH_GetDate [02:24:19]Write to MH i2c: F0 00 00 02 22 13 [02:24:19]Write i2c OK [02:24:19]MH_I2C_Read... [02:24:19]Read from MH i2c: F0 [02:24:19]MH_I2C_Read... [02:24:19]Read from MH i2c: F0 09 00 [02:24:19]MH_I2C_Read... [02:24:19]Read from MH i2c: F0 09 00 02 22 00 56 A0 A9 66 90 0F 3E 66 64 [02:24:19]GetLastDocTimeStamp 1722392511 [02:24:19]current date 1722392662 [02:24:19]FM_GetShiftState [02:24:19]SAM_PROTO_GetShiftState [02:24:19]wFMCommunicate request_size=4 [02:24:19]MH_SAM_APDU [02:24:19]CAPDU: 80 13 01 00 [02:24:19]Write to MH i2c: E2 08 00 03 22 80 13 01 00 00 00 00 00 A2 [02:24:19]Write i2c OK [02:24:19]MH_I2C_Read... [02:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:19]Read from MH i2c: E2 [02:24:19]MH_I2C_Read... [02:24:19]Read from MH i2c: E2 0E 00 [02:24:19]MH_I2C_Read... [02:24:19]Read from MH i2c: E2 0E 00 03 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 3A [02:24:19]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:24:19]wFMCommunicate OK [02:24:19]SAM_PROTO_GetShiftState done [02:24:19]FM_GetShiftState done [02:24:19]opened in 1722384637 [02:24:19]opened+sec_in_day 1722471037 [02:24:19]quantity*price = 40068 [02:24:19]sum+1 = 40069 [02:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 9 31.07.2024 02:24 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119278 ФПД: 217601122917004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T022422&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119278&fm=217601122917004&tin=02508201610067®Number=0000000000092660&sum=40000 [02:24:20]StoreToDocumentArchive [02:24:20]shift 436 fd 119278 [02:24:20]save to /storage/0436/doc_00119278 [02:24:20]save last doc name /storage/0436/doc_00119278 to /storage/kkm_last_doc_name [02:24:20]save OK [02:24:20]Clear old archive folders... [02:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:24:20]tlvbuf is 0163A920 [02:24:20]SAM_PROTO_ClearQueue [02:24:20]wFMCommunicate request_size=4 [02:24:20]MH_SAM_APDU [02:24:20]CAPDU: 80 09 00 00 [02:24:20]Write to MH i2c: E2 08 00 10 22 80 09 00 00 00 00 00 00 A4 [02:24:20]Write i2c OK [02:24:20]MH_I2C_Read... [02:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:24:20]Read from MH i2c: E2 [02:24:20]MH_I2C_Read... [02:24:20]Read from MH i2c: E2 03 00 [02:24:20]MH_I2C_Read... [02:24:20]Read from MH i2c: E2 03 00 10 22 00 90 00 A6 [02:24:20]RAPDU: 90 00 [02:24:20]wFMCommunicate OK [02:24:20]SAM_PROTO_ClearQueue done [02:24:20]KKMCreateOFDPacket [02:24:20]OFDProtocolAddRootSTLVToBuf [02:24:20]FM_MakeSignedData [02:24:20]FM_MakeSignedData [02:24:20]SAM_PROTO_SignData [02:24:20]wFMCommunicate request_size=4 [02:24:20]MH_SAM_APDU [02:24:20]CAPDU: 80 0D 01 02 [02:24:20]Write to MH i2c: E2 08 00 11 22 80 0D 01 02 00 00 00 00 AC [02:24:20]Write i2c OK [02:24:20]MH_I2C_Read... [02:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:24:20]Read from MH i2c: E2 [02:24:20]MH_I2C_Read... [02:24:20]Read from MH i2c: E2 03 00 [02:24:20]MH_I2C_Read... [02:24:20]Read from MH i2c: E2 03 00 11 22 00 90 00 A7 [02:24:20]RAPDU: 90 00 [02:24:20]wFMCommunicate OK [02:24:20]wFMCommunicate request_size=255 [02:24:20]MH_SAM_APDU [02:24:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 56 A0 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D1 01 00 35 04 06 00 C5 [02:24:20]Write to MH i2c: E2 02 01 12 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 56 A0 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D1 01 00 35 04 06 00 C5 00 00 36 [02:24:20]Write i2c OK [02:24:20]MH_I2C_Read... [02:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:21]Read from MH i2c: E2 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 03 00 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 03 00 12 22 00 90 00 A8 [02:24:21]RAPDU: 90 00 [02:24:21]wFMCommunicate OK [02:24:21]wFMCommunicate request_size=10 [02:24:21]MH_SAM_APDU [02:24:21]CAPDU: 80 0D 02 02 05 E8 35 A2 5A 8C [02:24:21]Write to MH i2c: E2 0D 00 13 22 80 0D 02 02 05 00 E8 35 A2 5A 8C 00 00 5E [02:24:21]Write i2c OK [02:24:21]MH_I2C_Read... [02:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:24:21]Read from MH i2c: E2 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 03 00 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 03 00 13 22 00 90 00 A9 [02:24:21]RAPDU: 90 00 [02:24:21]wFMCommunicate OK [02:24:21]wFMCommunicate request_size=4 [02:24:21]MH_SAM_APDU [02:24:21]CAPDU: 80 0D 03 02 [02:24:21]Write to MH i2c: E2 08 00 14 22 80 0D 03 02 00 00 00 00 B1 [02:24:21]Write i2c OK [02:24:21]MH_I2C_Read... [02:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:24:21]Read from MH i2c: E2 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 0B 00 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 0B 00 14 22 00 06 63 40 A0 E8 04 49 CE 90 00 FE [02:24:21]RAPDU: 06 63 40 A0 E8 04 49 CE 90 00 [02:24:21]wFMCommunicate OK [02:24:21]SAM_PROTO_SignData done [02:24:21]FM_MakeSignedData done [02:24:21]CreateOFDProtocolMessage [02:24:21]wFMCommunicate request_size=4 [02:24:21]MH_SAM_APDU [02:24:21]CAPDU: 80 11 00 00 [02:24:21]Write to MH i2c: E2 08 00 15 22 80 11 00 00 00 00 00 00 B1 [02:24:21]Write i2c OK [02:24:21]MH_I2C_Read... [02:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:21]Read from MH i2c: E2 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 17 00 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: E2 17 00 15 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 0C [02:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:24:21]wFMCommunicate OK [02:24:21]CreateOFDProtocolMessage done [02:24:21]OFDSenderStorePacket 119278 [02:24:21]StoreOFDPacket docnum=119278 [02:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 DF 96 07 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 56 A0 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D1 01 00 35 04 06 00 C5 E8 35 A2 5A 8C 06 63 40 A0 E8 04 49 CE [02:24:21]CheckFolder [02:24:21]dirname=/storage/ofd_packets [02:24:21]CheckFolder done [02:24:21]ProducePacketName [02:24:21]name=ofd_packets/00119278 [02:24:21]NVStorageSaveData ofd_packets/00119278 [02:24:21]File name is /storage/ofd_packets/00119278 [02:24:21]Write 301 bytes [02:24:21]NVStorageSaveData done [02:24:21]OFDSenderStorePacket done [02:24:21]KKMCreateOFDPacket done [02:24:21]NVStorageSaveData kkm_last_timestamp [02:24:21]File name is /storage/kkm_last_timestamp [02:24:21]Write 4 bytes [02:24:21]NVStorageSaveData done [02:24:21]ExternCall_PrintAddStr [02:24:21]wPrintStart [02:24:21]Write to MH i2c: 01 00 00 16 22 38 [02:24:21]Write i2c OK [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: 01 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: 01 07 00 [02:24:21]MH_I2C_Read... [02:24:21]Read from MH i2c: 01 07 00 16 22 00 00 00 00 00 FF 0F 4D [02:24:21]RasterBufferAndPrint [02:24:21]line Счет N : (1)950203 [02:24:21]line ИНН: 02508201610067 [02:24:21]line Контрольно-Кассовый Чек [02:24:21]line ПРОДАЖА [02:24:21]line ТРК (МРК, ГНК) : 53 [02:24:21]line Товар: 2710124500 [02:24:21]line Аи-95-К-3 [02:24:21]line 5.400 * 74.20 [02:24:21]line = 400.68 [02:24:21]line НДС 12% НСП 1% [02:24:21]line > о реализуемом товаре [02:24:21]line ОКРУГЛЕНИЕ: -0.68 [02:24:21]line ИТОГО: 400.00 [02:24:21]line Внесено: 400.00 [02:24:21]line СДАЧА: 0.00 [02:24:21]line НСП 1% : 3.55 [02:24:21]line НДС 12% : 42.55 [02:24:21]line Наличными: 400.00 [02:24:21]line Безнал.: 0.00 [02:24:21]line Место: АЗС № 134 "Партнер Нефть" [02:24:21]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:24:21]line СНО: Общий режим [02:24:21]line Чек 9 31.07.2024 02:24 [02:24:21]line Смена: 436 ФФД: 1.0 [02:24:21]line ЗНМ: 0300000044 [02:24:21]line РНМ: 0000000000092660 [02:24:21]line Версия ККМ: 001 [02:24:21]line ФМ: 0000000000874939 [02:24:21]line ФД: 119278 [02:24:21]line ФПД: 217601122917004 [02:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T022422&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119278&fm=217601122917004&tin=02508201610067®Number=0000000000092660&sum=40000 [02:24:21]OFD Sender: Processing packet 119278 [packets to send 86, broken 85] [02:24:21]ProducePacketName [02:24:21]name=ofd_packets/00119278 [02:24:21]OFD Sender: To server: pG, [02:24:21]CommunicateWithHost lk.salyk.kg:30040 [02:24:21]ConnectInit lk.salyk.kg [02:24:21]written 0, free lines is 4095 [02:24:21]Connected sock=10 [02: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 34 39 33 39 0F 01 00 00 DF 96 07 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 56 A0 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D1 01 00 35 04 06 00 C5 E8 35 A2 5A 8C 06 63 40 A0 E8 04 49 CE [02:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 1E EC 47 00 F4 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EE D1 01 00 F4 03 04 00 DF 4D A9 66 B6 04 01 00 00 56 43 62 ED B1 F2 BB E0 [02:24:21]CommunicateWithHost err = 0 [02:24:21]CheckOFDResponse [02:24:21]1017 (14) - 77093643461234 [02:24:21]1041 (16) - 0000000000874939 [02:24:21]1040 (4) - 119278 [02:24:21]1012 (4) - 30.07.2024 20:32 [02:24:21]1206 (1) - 0 [02:24:21]OFD Sender: Remove packet 119278 [02:24:21]ProducePacketName [02:24:21]name=ofd_packets/00119278 [02:24:21]NVStorageDeleteData [02:24:22]Write to MH i2c: 01 00 00 40 22 62 [02:24:22]Write i2c OK [02:24:22]MH_I2C_Read... [02:24:22]Read from MH i2c: 01 [02:24:22]MH_I2C_Read... [02:24:22]Read from MH i2c: 01 07 00 [02:24:22]MH_I2C_Read... [02:24:22]Read from MH i2c: 01 07 00 40 22 00 00 00 00 00 CB 0C 40 [02:24:22]RasterBufferAndPrint [02:24:22]line [02:24:22]line [02:24:22]line [02:24:22]line [02:24:22]line [02:24:22]written 0, free lines is 3281 [02:24:22]MH_Cut [02:24:22]Write to MH i2c: D1 01 00 47 22 01 3B [02:24:22]Write i2c OK [02:24:22]MH_I2C_Read... [02:24:22]Read from MH i2c: D1 [02:24:22]MH_I2C_Read... [02:24:22]Read from MH i2c: D1 01 00 [02:24:22]MH_I2C_Read... [02:24:22]Read from MH i2c: D1 01 00 47 22 00 3A [02:24:22]Write to MH i2c: 01 00 00 48 22 6A [02:24:22]Write i2c OK [02:24:22]MH_I2C_Read... [02:24:22]OFD Sender: No OFD packet to send [02:24:22]*** Cut start [02:24:22]*** Partial cut [02:24:22]*** CUTSNS_PIN = 1 [02:24:22]*** CUTSNS_PIN = 0 [02:24:23]*** Brake cut motor [02:24:23]Read from MH i2c: 01 [02:24:23]MH_I2C_Read... [02:24:23]*** Stop cut motor [02:24:23]*** Cut end [02:24:23]Read from MH i2c: 01 07 00 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 FF 0F 7F [02:24:23]process_action close_receipt done [02:24:23]requested_data is exist [02:24:23]produce_requested_data [02:24:23]requested_item fm.sn is exist - process it [02:24:23]wFMCommunicate request_size=4 [02:24:23]MH_SAM_APDU [02:24:23]CAPDU: 80 11 00 00 [02:24:23]Write to MH i2c: E2 08 00 49 22 80 11 00 00 00 00 00 00 E5 [02:24:23]Write i2c OK [02:24:23]MH_I2C_Read... [02:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:24:23]Read from MH i2c: E2 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: E2 17 00 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: E2 17 00 49 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 40 [02:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:24:23]wFMCommunicate OK [02:24:23]requested_item fd.num is exist - process it [02:24:23]SAM_PROTO_GetFieldsCounters [02:24:23]wFMCommunicate request_size=4 [02:24:23]MH_SAM_APDU [02:24:23]CAPDU: 80 13 00 00 [02:24:23]Write to MH i2c: E2 08 00 4A 22 80 13 00 00 00 00 00 00 E8 [02:24:23]Write i2c OK [02:24:23]MH_I2C_Read... [02:24:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:24:23]Read from MH i2c: E2 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: E2 62 00 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: E2 62 00 4A 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [02:24:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:24:23]wFMCommunicate OK [02:24:23]SAM_PROTO_GetFieldsCounters done [02:24:23]requested_item shift.num is exist - process it [02:24:23]requested_item shift.opened is exist - process it [02:24:23]req_shift_opened [02:24:23]FM_GetShiftState [02:24:23]SAM_PROTO_GetShiftState [02:24:23]wFMCommunicate request_size=4 [02:24:23]MH_SAM_APDU [02:24:23]CAPDU: 80 13 01 00 [02:24:23]Write to MH i2c: E2 08 00 4B 22 80 13 01 00 00 00 00 00 EA [02:24:23]Write i2c OK [02:24:23]MH_I2C_Read... [02:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:24:23]Read from MH i2c: E2 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: E2 0E 00 [02:24:23]MH_I2C_Read... [02:24:23]Read from MH i2c: E2 0E 00 4B 22 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 82 [02:24:23]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:24:23]wFMCommunicate OK [02:24:23]SAM_PROTO_GetShiftState done [02:24:23]FM_GetShiftState done [02:24:23]req_shift_opened done [02:24:23]requested_item shift.open_date is exist - process it [02:24:23]req_shift_open_date [02:24:23]req_shift_open_date done [02:24:23]produce_requested_data done [02:24:23]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119278,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:24:23]process_action_free close_receipt [02:24:23]json_value_free [02:24:23]json_value_free done [02:24:23]process_json_proto returns [02:24:23]Send response to host [02:24:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119278,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:24:23]free response buf [02:24:23]execute_script done [02:24:23]execute_script returns [02:24:23]free content buf [02:24:23]Sock 9.Close socket [02:24:23]Sock 9.Thread stoped [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 DD [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 5400000000572538 (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: 7049570+1715343248=1722392818 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [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 38 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 DE [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 38 00 FF FF 57 [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 A0 A9 66 90 0F 3E 66 E4 [02:26:59]Current date/time: 31.07.2024 02:26 [02:26:59]FM_Init [02:26:59]wFMConnect [02:26:59]MH_SAM_On [02:26:59]Write to MH i2c: E0 00 00 08 00 E7 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_init finished! [02:26:59]*** atr: [02:26:59]*** 0F 3B D5 18 FF 81 91 FE [02:26:59]*** 1F C3 80 73 C8 21 10 0A [02:26:59]*** 00 00 00 00 00 00 00 00 [02:26:59]*** 00 00 00 00 00 00 00 00 [02:26:59]*** 00 00 00 00 00 00 00 00 [02:26:59]*** 00 00 00 00 00 00 00 00 [02:26:59]*** 00 00 00 00 00 00 00 00 [02:26:59]*** 00 00 00 00 00 00 00 00 [02:26:59]Read from MH i2c: E0 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E0 10 00 [02:26:59]MH_I2C_Read... [02:26: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 [02:26:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [02:26:59]wFMCommunicate request_size=10 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [02:26:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [02:26:59]RAPDU: 90 00 [02:26:59]wFMCommunicate OK [02:26:59]wFMCommunicate request_size=4 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 11 00 00 [02:26:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 17 00 [02:26:59]MH_I2C_Read... [02:26: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 34 39 33 39 90 00 DF [02:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:26:59]wFMCommunicate OK [02:26:59]Detected FM SN is 0000000000874939 [02:26:59]Stored FM SN is 0000000000874939 [02:26:59]wFMCommunicate request_size=9 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 16 00 00 04 38 32 00 00 [02:26:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 38 32 00 00 00 00 FC [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [02:26:59]RAPDU: 90 00 [02:26:59]wFMCommunicate OK [02:26:59]FM PIN OK [02:26:59]wFMCommunicate request_size=8 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 14 04 00 03 02 00 01 [02:26:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [02:26:59]RAPDU: 90 00 [02:26:59]wFMCommunicate OK [02:26:59]wFMCommunicate request_size=13 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [02:26: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 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [02:26:59]RAPDU: 90 00 [02:26:59]wFMCommunicate OK [02:26:59]wFMCommunicate request_size=4 [02:26:59]MH_SAM_APDU [02:26:59]CAPDU: 80 11 00 00 [02:26:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:26:59]Read from MH i2c: E2 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: E2 17 00 [02:26:59]MH_I2C_Read... [02:26:59]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 34 39 33 39 90 00 E3 [02:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:26:59]wFMCommunicate OK [02:26:59]DocumentArchiveInit [02:26:59]Start Httpd... [02:26:59]Httpd thread 3067624804 created [02:26:59]Write to MH i2c: 01 00 00 0F 00 0F [02:26:59]Write i2c OK [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: 01 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: 01 07 00 [02:26:59]MH_I2C_Read... [02:26:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [02:26:59]MH Int Process started [02:26:59]Allocated Socket 5 [02:26:59]Bind OK [02:26:59]Listen OK [02:26:59]httpd running on port 8080 [02:26:59]Waiting for new connection... [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:09]accept exits with 7 [02:27:09]New connection [02:27:09]New thread 3067338084 created [02:27:09]Waiting for new connection... [02:27:09] Sock 7.Parse request [02:27:09]Sock 7.Check first char [02:27:09]Sock 7.First char is OK [02:27:09]request: POST /json_proto HTTP/1.0 [02:27:09]Method: POST [02:27:09]URL: /json_proto [02:27:09]Method is POST - this is cgi request [02:27:09]url: /json_proto [02:27:09]query_string will be loaded in cgi processing [02:27:09]execute_cgi json_proto POST (null) [02:27:09]execute_cgi path=json_proto method=POST [02:27:09]POST find Content-Length [02:27:09]Host: 172.17.45.7:8080 [02:27:09]Content-Length: 215 [02:27:09]Content-Type: application/json [02:27:09] [02:27:09]POST finish read [02:27:09]Found Content-Length = 215 [02:27:09]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" ] } } [02:27:09]execute_script... [02:27:09]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" ] } } [02:27:09]POST & json_proto [02:27:09]process_json_proto [02:27:09]json parsed OK: [02:27:09]protocol is kg_v1.0 [02:27:09]action value=get_value [02:27:09]process_action get_value [02:27:09]cmd_get_value [02:27:09]process_action get_value done [02:27:09]requested_data is exist [02:27:09]produce_requested_data [02:27:09]requested_item kkm.sn is exist - process it [02:27:09]requested_item kkm.ver is exist - process it [02:27:09]requested_item fm.sn is exist - process it [02:27:09]wFMCommunicate request_size=4 [02:27:09]MH_SAM_APDU [02:27:09]CAPDU: 80 11 00 00 [02:27:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [02:27:09]Write i2c OK [02:27:09]MH_I2C_Read... [02:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:09]Read from MH i2c: E2 [02:27:09]MH_I2C_Read... [02:27:09]Read from MH i2c: E2 17 00 [02:27:09]MH_I2C_Read... [02:27:09]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 34 39 33 39 90 00 E5 [02:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:27:09]wFMCommunicate OK [02:27:09]requested_item fd.num is exist - process it [02:27:09]SAM_PROTO_GetFieldsCounters [02:27:09]wFMCommunicate request_size=4 [02:27:09]MH_SAM_APDU [02:27:09]CAPDU: 80 13 00 00 [02:27:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [02:27:09]Write i2c OK [02:27:09]MH_I2C_Read... [02:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:27:10]Read from MH i2c: E2 [02:27:10]MH_I2C_Read... [02:27:10]Read from MH i2c: E2 62 00 [02:27:10]MH_I2C_Read... [02:27:10]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [02:27: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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EE D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:27:10]wFMCommunicate OK [02:27:10]SAM_PROTO_GetFieldsCounters done [02:27:10]requested_item shift.num is exist - process it [02:27:10]requested_item shift.opened is exist - process it [02:27:10]req_shift_opened [02:27:10]FM_GetShiftState [02:27:10]SAM_PROTO_GetShiftState [02:27:10]wFMCommunicate request_size=4 [02:27:10]MH_SAM_APDU [02:27:10]CAPDU: 80 13 01 00 [02:27:10]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [02:27:10]Write i2c OK [02:27:10]MH_I2C_Read... [02:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:10]Read from MH i2c: E2 [02:27:10]MH_I2C_Read... [02:27:10]Read from MH i2c: E2 0E 00 [02:27:10]MH_I2C_Read... [02:27:10]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 27 [02:27:10]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:27:10]wFMCommunicate OK [02:27:10]SAM_PROTO_GetShiftState done [02:27:10]FM_GetShiftState done [02:27:10]req_shift_opened done [02:27:10]requested_item shift.open_date is exist - process it [02:27:10]req_shift_open_date [02:27:10]req_shift_open_date done [02:27:10]produce_requested_data done [02:27:10]produce_requested_data return {"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119278,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:27:10]process_action_free get_value [02:27:10]json_value_free [02:27:10]json_value_free done [02:27:10]process_json_proto returns [02:27:10]Send response to host [02:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000044","kkm.ver":"001","fm.sn":"0000000000874939","fd.num":119278,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:27:10]free response buf [02:27:10]execute_script done [02:27:10]execute_script returns [02:27:10]free content buf [02:27:10]Sock 7.Close socket [02:27:10]Sock 7.Thread stoped [02:27:14]OFD Sender: No OFD packet to send [02:27:14]accept exits with 9 [02:27:14]New connection [02:27:14]New thread 3067194724 created [02:27:14]Thread 3067338084 joined [02:27:14]Waiting for new connection... [02:27:14] Sock 9.Parse request [02:27:14]Sock 9.Check first char [02:27:14]Sock 9.First char is OK [02:27:14]request: POST /json_proto HTTP/1.0 [02:27:14]Method: POST [02:27:14]URL: /json_proto [02:27:14]Method is POST - this is cgi request [02:27:14]url: /json_proto [02:27:14]query_string will be loaded in cgi processing [02:27:14]execute_cgi json_proto POST (null) [02:27:14]execute_cgi path=json_proto method=POST [02:27:14]POST find Content-Length [02:27:14]Host: 172.17.45.7:8080 [02:27:14]Content-Length: 331 [02:27:14]Content-Type: application/json [02:27:14] [02:27:14]POST finish read [02:27:14]Found Content-Length = 331 [02:27:14]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" ] } } [02:27:14]execute_script... [02:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [02:27:14]POST & json_proto [02:27:14]process_json_proto [02:27:14]json parsed OK: [02:27:14]protocol is kg_v1.0 [02:27:14]action value=get_value [02:27:14]process_action get_value [02:27:14]cmd_get_value [02:27:14]process_action get_value done [02:27:14]requested_data is exist [02:27:14]produce_requested_data [02:27:14]requested_item fm.sale.total is exist - process it [02:27:14]SAM_PROTO_GetFMData [02:27:14]wFMCommunicate request_size=4 [02:27:14]MH_SAM_APDU [02:27:14]CAPDU: 80 13 03 00 [02:27:14]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [02:27:14]Write i2c OK [02:27:14]MH_I2C_Read... [02:27:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 86 CE 01 00 69 04 A3 00 6F 04 04 00 E9 C0 01 00 B1 04 05 00 9C 15 8E 7B 03 70 04 05 00 FC 26 80 AA 02 72 04 04 00 A0 EE 0D D1 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 51 F2 B3 5E 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 CA 32 E4 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 CE [02:27:15]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 86 CE 01 00 69 04 A3 00 6F 04 04 00 E9 C0 01 00 B1 04 05 00 9C 15 8E 7B 03 70 04 05 00 FC 26 80 AA 02 72 04 04 00 A0 EE 0D D1 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 51 F2 B3 5E 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 CA 32 E4 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 9D 0D 00 00 B1 04 04 00 F8 3A 55 3B 70 04 04 00 F8 3A 55 3B 72 04 00 00 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 B2 34 4D 06 EF 03 09 90 00 [02:27:15]wFMCommunicate OK [02:27:15]wFMCommunicate request_size=4 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 17 00 00 [02:27:15]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 6A [02:27:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2C 6E 86 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [02:27:15]wFMCommunicate OK [02:27:15]wFMCommunicate request_size=4 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 17 00 00 [02:27:15]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [02:27:15]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [02:27:15]wFMCommunicate OK [02:27:15]wFMCommunicate request_size=4 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 17 00 00 [02:27:15]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:27:15]Read from MH i2c: E2 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 [02:27:15]MH_I2C_Read... [02:27:15]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [02:27:15]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [02:27:15]wFMCommunicate OK [02:27:15]wFMCommunicate request_size=4 [02:27:15]MH_SAM_APDU [02:27:15]CAPDU: 80 17 00 00 [02:27:15]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [02:27:15]Write i2c OK [02:27:15]MH_I2C_Read... [02:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [02:27:16]Read from MH i2c: E2 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 E2 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [02:27:16]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [02:27:16]wFMCommunicate OK [02:27:16]SAM_PROTO_GetFMData done [02:27:16]requested_item fm.sale_refund.total is exist - process it [02:27:16]requested_item fm.buy.total is exist - process it [02:27:16]requested_item shift.sale.total is exist - process it [02:27:16]SAM_PROTO_GetShiftData [02:27:16]wFMCommunicate request_size=4 [02:27:16]MH_SAM_APDU [02:27:16]CAPDU: 80 13 02 00 [02:27:16]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [02:27:16]Read from MH i2c: E2 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 FD 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 09 00 00 00 69 04 9B 00 6F 04 04 00 09 00 00 00 B1 04 03 00 D0 F4 17 70 04 03 00 90 41 06 72 04 03 00 40 B3 11 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 6A 8B 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 48 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 94 [02:27:16]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 09 00 00 00 69 04 9B 00 6F 04 04 00 09 00 00 00 B1 04 03 00 D0 F4 17 70 04 03 00 90 41 06 72 04 03 00 40 B3 11 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 6A 8B 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 48 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 [02:27:16]wFMCommunicate OK [02:27:16]wFMCommunicate request_size=4 [02:27:16]MH_SAM_APDU [02:27:16]CAPDU: 80 17 00 00 [02:27:16]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:27:16]Read from MH i2c: E2 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 FD 00 [02:27:16]MH_I2C_Read... [02:27:16]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 BB [02:27:16]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 [02:27:16]wFMCommunicate OK [02:27:16]wFMCommunicate request_size=4 [02:27:16]MH_SAM_APDU [02:27:16]CAPDU: 80 17 00 00 [02:27:16]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [02:27:16]Write i2c OK [02:27:16]MH_I2C_Read... [02:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:27:17]Read from MH i2c: E2 [02:27:17]MH_I2C_Read... [02:27:17]Read from MH i2c: E2 FD 00 [02:27:17]MH_I2C_Read... [02:27:17]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 51 [02:27:17]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 [02:27:17]wFMCommunicate OK [02:27:17]wFMCommunicate request_size=4 [02:27:17]MH_SAM_APDU [02:27:17]CAPDU: 80 17 00 00 [02:27:17]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [02:27:17]Write i2c OK [02:27:17]MH_I2C_Read... [02:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:27:17]Read from MH i2c: E2 [02:27:17]MH_I2C_Read... [02:27:17]Read from MH i2c: E2 FD 00 [02:27:17]MH_I2C_Read... [02:27:17]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 0D [02:27:17]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 [02:27:17]wFMCommunicate OK [02:27:17]wFMCommunicate request_size=4 [02:27:17]MH_SAM_APDU [02:27:17]CAPDU: 80 17 00 00 [02:27:17]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [02:27:17]Write i2c OK [02:27:17]MH_I2C_Read... [02:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [02:27:17]Read from MH i2c: E2 [02:27:17]MH_I2C_Read... [02:27:17]Read from MH i2c: E2 CB 00 [02:27:17]MH_I2C_Read... [02:27:17]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [02:27:17]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 [02:27:17]wFMCommunicate OK [02:27:17]SAM_PROTO_GetShiftData done [02:27:17]requested_item shift.sale.total_cash is exist - process it [02:27:17]requested_item shift.sale_refund.total is exist - process it [02:27:17]requested_item shift.sale_refund.total_cash is exist - process it [02:27:17]requested_item shift.buy.total is exist - process it [02:27:17]requested_item shift.buy.total_cash is exist - process it [02:27:17]produce_requested_data done [02:27:17]produce_requested_data return {"fm.sale.total":149578111.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":15700.00,"shift.sale.total_cash":4100.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} [02:27:17]process_action_free get_value [02:27:17]json_value_free [02:27:17]json_value_free done [02:27:17]process_json_proto returns [02:27:17]Send response to host [02:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":149578111.00,"fm.sale_refund.total":9954414.00,"fm.buy.total":0.00,"shift.sale.total":15700.00,"shift.sale.total_cash":4100.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}}} [02:27:17]free response buf [02:27:17]execute_script done [02:27:17]execute_script returns [02:27:17]free content buf [02:27:17]Sock 9.Close socket [02:27:17]Sock 9.Thread stoped [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:30]accept exits with 8 [02:27:30]New connection [02:27:30]New thread 3067338084 created [02:27:30]Thread 3067194724 joined [02:27:30]Waiting for new connection... [02:27:30] Sock 8.Parse request [02:27:30]Sock 8.Check first char [02:27:30]Sock 8.First char is OK [02:27:30]request: POST /json_proto HTTP/1.0 [02:27:30]Method: POST [02:27:30]URL: /json_proto [02:27:30]Method is POST - this is cgi request [02:27:30]url: /json_proto [02:27:30]query_string will be loaded in cgi processing [02:27:30]execute_cgi json_proto POST (null) [02:27:30]execute_cgi path=json_proto method=POST [02:27:30]POST find Content-Length [02:27:30]Host: 172.17.45.7:8080 [02:27:30]Content-Length: 682 [02:27:30]Content-Type: application/json [02:27:30] [02:27:30]POST finish read [02:27:30]Found Content-Length = 682 [02:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 36.880, "sum" : 2500.46, "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" ] } } [02:27:30]execute_script... [02:27: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)950204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 67.80, "quantity" : 36.880, "sum" : 2500.46, "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" ] } } [02:27:30]POST & json_proto [02:27:30]process_json_proto [02:27:30]json parsed OK: [02:27:30]protocol is kg_v1.0 [02:27:30]action value=close_receipt [02:27:30]process_action close_receipt [02:27:30]cmd_close_receipt [02:27:30]MH_GetDate [02:27:30]Write to MH i2c: F0 00 00 1D 00 0C [02:27:30]Write i2c OK [02:27:30]MH_I2C_Read... [02:27:30]Read from MH i2c: F0 [02:27:30]MH_I2C_Read... [02:27:30]Read from MH i2c: F0 09 00 [02:27:30]MH_I2C_Read... [02:27:30]Read from MH i2c: F0 09 00 1D 00 00 13 A1 A9 66 90 0F 3E 66 1B [02:27:30]GetLastDocTimeStamp 1722392662 [02:27:30]current date 1722392851 [02:27:30]FM_GetShiftState [02:27:30]SAM_PROTO_GetShiftState [02:27:30]wFMCommunicate request_size=4 [02:27:30]MH_SAM_APDU [02:27:30]CAPDU: 80 13 01 00 [02:27:30]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [02:27:30]Write i2c OK [02:27:30]MH_I2C_Read... [02:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:30]Read from MH i2c: E2 [02:27:30]MH_I2C_Read... [02:27:30]Read from MH i2c: E2 0E 00 [02:27:30]MH_I2C_Read... [02:27:30]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 33 [02:27:30]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:27:30]wFMCommunicate OK [02:27:30]SAM_PROTO_GetShiftState done [02:27:30]FM_GetShiftState done [02:27:30]opened in 1722384637 [02:27:30]opened+sec_in_day 1722471037 [02:27:30]quantity*price = 250046 [02:27:30]sum+1 = 250047 [02:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 10 31.07.2024 02:27 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119279 ФПД: 139230291307838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T022731&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119279&fm=139230291307838&tin=02508201610067®Number=0000000000092660&sum=250000 [02:27:32]StoreToDocumentArchive [02:27:32]shift 436 fd 119279 [02:27:32]save to /storage/0436/doc_00119279 [02:27:32]save last doc name /storage/0436/doc_00119279 to /storage/kkm_last_doc_name [02:27:32]save OK [02:27:32]Clear old archive folders... [02:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:27:32]tlvbuf is 00ADAAC0 [02:27:32]SAM_PROTO_ClearQueue [02:27:32]wFMCommunicate request_size=4 [02:27:32]MH_SAM_APDU [02:27:32]CAPDU: 80 09 00 00 [02:27:32]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:27:32]Read from MH i2c: E2 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [02:27:32]RAPDU: 90 00 [02:27:32]wFMCommunicate OK [02:27:32]SAM_PROTO_ClearQueue done [02:27:32]KKMCreateOFDPacket [02:27:32]OFDProtocolAddRootSTLVToBuf [02:27:32]FM_MakeSignedData [02:27:32]FM_MakeSignedData [02:27:32]SAM_PROTO_SignData [02:27:32]wFMCommunicate request_size=4 [02:27:32]MH_SAM_APDU [02:27:32]CAPDU: 80 0D 01 02 [02:27:32]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:27:32]Read from MH i2c: E2 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [02:27:32]RAPDU: 90 00 [02:27:32]wFMCommunicate OK [02:27:32]wFMCommunicate request_size=255 [02:27:32]MH_SAM_APDU [02:27:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 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 0A 00 00 00 F4 03 04 00 13 A1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D1 01 00 35 04 06 00 7E [02:27:32]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 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 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 0A 00 00 00 F4 03 04 00 13 A1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D1 01 00 35 04 06 00 7E 00 00 D0 [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:32]Read from MH i2c: E2 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [02:27:32]RAPDU: 90 00 [02:27:32]wFMCommunicate OK [02:27:32]wFMCommunicate request_size=10 [02:27:32]MH_SAM_APDU [02:27:32]CAPDU: 80 0D 02 02 05 A1 14 0E 2D 3E [02:27:32]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 A1 14 0E 2D 3E 00 00 E0 [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:32]Read from MH i2c: E2 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [02:27:32]RAPDU: 90 00 [02:27:32]wFMCommunicate OK [02:27:32]wFMCommunicate request_size=4 [02:27:32]MH_SAM_APDU [02:27:32]CAPDU: 80 0D 03 02 [02:27:32]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:27:32]Read from MH i2c: E2 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 0B 00 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 0B 00 2F 00 00 43 EA BD B7 10 63 94 5C 90 00 AF [02:27:32]RAPDU: 43 EA BD B7 10 63 94 5C 90 00 [02:27:32]wFMCommunicate OK [02:27:32]SAM_PROTO_SignData done [02:27:32]FM_MakeSignedData done [02:27:32]CreateOFDProtocolMessage [02:27:32]wFMCommunicate request_size=4 [02:27:32]MH_SAM_APDU [02:27:32]CAPDU: 80 11 00 00 [02:27:32]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:32]Read from MH i2c: E2 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: E2 17 00 [02:27:32]MH_I2C_Read... [02:27:32]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 34 39 33 39 90 00 05 [02:27:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:27:32]wFMCommunicate OK [02:27:32]CreateOFDProtocolMessage done [02:27:32]OFDSenderStorePacket 119279 [02:27:32]StoreOFDPacket docnum=119279 [02:27:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 7F 07 01 09 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 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 0A 00 00 00 F4 03 04 00 13 A1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D1 01 00 35 04 06 00 7E A1 14 0E 2D 3E 43 EA BD B7 10 63 94 5C [02:27:32]CheckFolder [02:27:32]dirname=/storage/ofd_packets [02:27:32]CheckFolder done [02:27:32]ProducePacketName [02:27:32]name=ofd_packets/00119279 [02:27:32]NVStorageSaveData ofd_packets/00119279 [02:27:32]File name is /storage/ofd_packets/00119279 [02:27:32]Write 301 bytes [02:27:32]NVStorageSaveData done [02:27:32]OFDSenderStorePacket done [02:27:32]KKMCreateOFDPacket done [02:27:32]NVStorageSaveData kkm_last_timestamp [02:27:32]File name is /storage/kkm_last_timestamp [02:27:32]Write 4 bytes [02:27:32]NVStorageSaveData done [02:27:32]ExternCall_PrintAddStr [02:27:32]wPrintStart [02:27:32]Write to MH i2c: 01 00 00 31 00 31 [02:27:32]Write i2c OK [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: 01 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: 01 07 00 [02:27:32]MH_I2C_Read... [02:27:32]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [02:27:32]RasterBufferAndPrint [02:27:32]line Счет N : (1)950204 [02:27:32]line ИНН: 02508201610067 [02:27:32]line Контрольно-Кассовый Чек [02:27:32]line ПРОДАЖА [02:27:32]line ТРК (МРК, ГНК) : 31 [02:27:32]line Товар: 2710124130 [02:27:32]line Аи-92-К-4 [02:27:32]line 36.880 * 67.80 [02:27:32]line = 2500.46 [02:27:32]line НДС 12% НСП 1% [02:27:32]line > о реализуемом товаре [02:27:32]line ОКРУГЛЕНИЕ: -0.46 [02:27:32]line ИТОГО: 2500.00 [02:27:32]line Внесено: 2500.00 [02:27:32]line СДАЧА: 0.00 [02:27:32]line НСП 1% : 22.13 [02:27:32]line НДС 12% : 265.54 [02:27:32]line Наличными: 2500.00 [02:27:32]line Безнал.: 0.00 [02:27:32]line Место: АЗС № 134 "Партнер Нефть" [02:27:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:27:32]line СНО: Общий режим [02:27:32]line Чек 10 31.07.2024 02:27 [02:27:32]line Смена: 436 ФФД: 1.0 [02:27:32]line ЗНМ: 0300000044 [02:27:32]line РНМ: 0000000000092660 [02:27:32]line Версия ККМ: 001 [02:27:32]line ФМ: 0000000000874939 [02:27:32]line ФД: 119279 [02:27:32]line ФПД: 139230291307838 [02:27:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T022731&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119279&fm=139230291307838&tin=02508201610067®Number=0000000000092660&sum=250000 [02:27:32]written 0, free lines is 4095 [02:27:32]OFD Sender: Processing packet 119279 [packets to send 86, broken 85] [02:27:32]ProducePacketName [02:27:32]name=ofd_packets/00119279 [02:27:32]OFD Sender: To server: pG, [02:27:32]CommunicateWithHost lk.salyk.kg:30040 [02:27:32]ConnectInit lk.salyk.kg [02:27:32]Connected sock=10 [02:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0F 01 00 00 4B 7F 07 01 09 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 90 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BE 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 0A 00 00 00 F4 03 04 00 13 A1 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D1 01 00 35 04 06 00 7E A1 14 0E 2D 3E 43 EA BD B7 10 63 94 5C [02:27:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 52 A3 47 00 48 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 EF D1 01 00 F4 03 04 00 9C 4E A9 66 B6 04 01 00 00 78 01 F7 CB 4C E6 C2 46 [02:27:33]CommunicateWithHost err = 0 [02:27:33]CheckOFDResponse [02:27:33]1017 (14) - 77093643461234 [02:27:33]1041 (16) - 0000000000874939 [02:27:33]1040 (4) - 119279 [02:27:33]1012 (4) - 30.07.2024 20:35 [02:27:33]1206 (1) - 0 [02:27:33]OFD Sender: Remove packet 119279 [02:27:33]ProducePacketName [02:27:33]name=ofd_packets/00119279 [02:27:33]NVStorageDeleteData [02:27:33]Write to MH i2c: 01 00 00 5B 00 5B [02:27:33]Write i2c OK [02:27:33]MH_I2C_Read... [02:27:33]Read from MH i2c: 01 [02:27:33]MH_I2C_Read... [02:27:33]Read from MH i2c: 01 07 00 [02:27:33]MH_I2C_Read... [02:27:33]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 DD 0C 4B [02:27:33]RasterBufferAndPrint [02:27:33]line [02:27:33]line [02:27:33]line [02:27:33]line [02:27:33]line [02:27:33]written 0, free lines is 3299 [02:27:33]MH_Cut [02:27:33]Write to MH i2c: D1 01 00 62 00 01 34 [02:27:33]Write i2c OK [02:27:33]MH_I2C_Read... [02:27:33]Read from MH i2c: D1 [02:27:33]MH_I2C_Read... [02:27:33]Read from MH i2c: D1 01 00 [02:27:33]MH_I2C_Read... [02:27:33]Read from MH i2c: D1 01 00 62 00 00 33 [02:27:33]Write to MH i2c: 01 00 00 63 00 63 [02:27:33]Write i2c OK [02:27:33]MH_I2C_Read... [02:27:33]OFD Sender: No OFD packet to send [02:27:33]*** Cut start [02:27:33]*** Partial cut [02:27:33]*** CUTSNS_PIN = 1 [02:27:33]*** CUTSNS_PIN = 0 [02:27:34]*** Brake cut motor [02:27:34]Read from MH i2c: 01 [02:27:34]MH_I2C_Read... [02:27:34]*** Stop cut motor [02:27:34]*** Cut end [02:27:34]Read from MH i2c: 01 07 00 [02:27:34]MH_I2C_Read... [02:27:34]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [02:27:34]process_action close_receipt done [02:27:34]requested_data is exist [02:27:34]produce_requested_data [02:27:34]requested_item fm.sn is exist - process it [02:27:34]wFMCommunicate request_size=4 [02:27:34]MH_SAM_APDU [02:27:34]CAPDU: 80 11 00 00 [02:27:34]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [02:27:34]Write i2c OK [02:27:34]MH_I2C_Read... [02:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:34]Read from MH i2c: E2 [02:27:34]MH_I2C_Read... [02:27:34]Read from MH i2c: E2 17 00 [02:27:34]MH_I2C_Read... [02:27:34]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 34 39 33 39 90 00 39 [02:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:27:34]wFMCommunicate OK [02:27:34]requested_item fd.num is exist - process it [02:27:34]SAM_PROTO_GetFieldsCounters [02:27:34]wFMCommunicate request_size=4 [02:27:34]MH_SAM_APDU [02:27:34]CAPDU: 80 13 00 00 [02:27:34]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [02:27:34]Write i2c OK [02:27:34]MH_I2C_Read... [02:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:27:34]Read from MH i2c: E2 [02:27:34]MH_I2C_Read... [02:27:34]Read from MH i2c: E2 62 00 [02:27:34]MH_I2C_Read... [02:27:34]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [02:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 EF D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:27:34]wFMCommunicate OK [02:27:34]SAM_PROTO_GetFieldsCounters done [02:27:34]requested_item shift.num is exist - process it [02:27:34]requested_item shift.opened is exist - process it [02:27:34]req_shift_opened [02:27:34]FM_GetShiftState [02:27:34]SAM_PROTO_GetShiftState [02:27:34]wFMCommunicate request_size=4 [02:27:34]MH_SAM_APDU [02:27:34]CAPDU: 80 13 01 00 [02:27:34]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [02:27:34]Write i2c OK [02:27:34]MH_I2C_Read... [02:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:34]Read from MH i2c: E2 [02:27:34]MH_I2C_Read... [02:27:34]Read from MH i2c: E2 0E 00 [02:27:34]MH_I2C_Read... [02:27:34]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7B [02:27:34]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:27:34]wFMCommunicate OK [02:27:34]SAM_PROTO_GetShiftState done [02:27:34]FM_GetShiftState done [02:27:34]req_shift_opened done [02:27:34]requested_item shift.open_date is exist - process it [02:27:34]req_shift_open_date [02:27:34]req_shift_open_date done [02:27:34]produce_requested_data done [02:27:34]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119279,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:27:34]process_action_free close_receipt [02:27:34]json_value_free [02:27:34]json_value_free done [02:27:34]process_json_proto returns [02:27:34]Send response to host [02:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119279,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:27:34]free response buf [02:27:34]execute_script done [02:27:34]execute_script returns [02:27:34]free content buf [02:27:34]Sock 8.Close socket [02:27:34]Sock 8.Thread stoped [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:22]accept exits with 9 [02:48:22]New connection [02:48:22]New thread 3067194724 created [02:48:22]Thread 3067338084 joined [02:48:22]Waiting for new connection... [02:48:22] Sock 9.Parse request [02:48:22]Sock 9.Check first char [02:48:22]Sock 9.First char is OK [02:48:22]request: POST /json_proto HTTP/1.0 [02:48:22]Method: POST [02:48:22]URL: /json_proto [02:48:22]Method is POST - this is cgi request [02:48:22]url: /json_proto [02:48:22]query_string will be loaded in cgi processing [02:48:22]execute_cgi json_proto POST (null) [02:48:22]execute_cgi path=json_proto method=POST [02:48:22]POST find Content-Length [02:48:22]Host: 172.17.45.7:8080 [02:48:22]Content-Length: 674 [02:48:22]Content-Type: application/json [02:48:22] [02:48:22]POST finish read [02:48:22]Found Content-Length = 674 [02:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)950205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:22]execute_script... [02:48: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)950205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:48:22]POST & json_proto [02:48:22]process_json_proto [02:48:22]json parsed OK: [02:48:22]protocol is kg_v1.0 [02:48:22]action value=close_receipt [02:48:22]process_action close_receipt [02:48:22]cmd_close_receipt [02:48:22]MH_GetDate [02:48:22]Write to MH i2c: F0 00 00 67 00 56 [02:48:22]Write i2c OK [02:48:22]MH_I2C_Read... [02:48:22]Read from MH i2c: F0 [02:48:22]MH_I2C_Read... [02:48:22]Read from MH i2c: F0 09 00 [02:48:22]MH_I2C_Read... [02:48:22]Read from MH i2c: F0 09 00 67 00 00 F6 A5 A9 66 90 0F 3E 66 4C [02:48:22]GetLastDocTimeStamp 1722392851 [02:48:22]current date 1722394102 [02:48:22]FM_GetShiftState [02:48:22]SAM_PROTO_GetShiftState [02:48:22]wFMCommunicate request_size=4 [02:48:22]MH_SAM_APDU [02:48:22]CAPDU: 80 13 01 00 [02:48:22]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [02:48:22]Write i2c OK [02:48:22]MH_I2C_Read... [02:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:22]Read from MH i2c: E2 [02:48:22]MH_I2C_Read... [02:48:22]Read from MH i2c: E2 0E 00 [02:48:22]MH_I2C_Read... [02:48:22]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 7D [02:48:22]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:48:22]wFMCommunicate OK [02:48:22]SAM_PROTO_GetShiftState done [02:48:22]FM_GetShiftState done [02:48:22]opened in 1722384637 [02:48:22]opened+sec_in_day 1722471037 [02:48:22]quantity*price = 70027 [02:48:22]sum+1 = 70029 [02:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 11 31.07.2024 02:48 Смена: 436 ФФД: 1.0 ЗНМ: 0300000044 РНМ: 0000000000092660 Версия ККМ: 001 ФМ: 0000000000874939 ФД: 119280 ФПД: 31078455281241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T024822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119280&fm=31078455281241&tin=02508201610067®Number=0000000000092660&sum=70000 [02:48:23]StoreToDocumentArchive [02:48:23]shift 436 fd 119280 [02:48:23]save to /storage/0436/doc_00119280 [02:48:23]save last doc name /storage/0436/doc_00119280 to /storage/kkm_last_doc_name [02:48:23]save OK [02:48:23]Clear old archive folders... [02:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:48:23]tlvbuf is 00AF8B50 [02:48:23]SAM_PROTO_ClearQueue [02:48:23]wFMCommunicate request_size=4 [02:48:23]MH_SAM_APDU [02:48:23]CAPDU: 80 09 00 00 [02:48:23]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [02:48:23]Write i2c OK [02:48:23]MH_I2C_Read... [02:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:48:23]Read from MH i2c: E2 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [02:48:23]RAPDU: 90 00 [02:48:23]wFMCommunicate OK [02:48:23]SAM_PROTO_ClearQueue done [02:48:23]KKMCreateOFDPacket [02:48:23]OFDProtocolAddRootSTLVToBuf [02:48:23]FM_MakeSignedData [02:48:23]FM_MakeSignedData [02:48:23]SAM_PROTO_SignData [02:48:23]wFMCommunicate request_size=4 [02:48:23]MH_SAM_APDU [02:48:23]CAPDU: 80 0D 01 02 [02:48:23]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [02:48:23]Write i2c OK [02:48:23]MH_I2C_Read... [02:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:48:23]Read from MH i2c: E2 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [02:48:23]RAPDU: 90 00 [02:48:23]wFMCommunicate OK [02:48:23]wFMCommunicate request_size=255 [02:48:23]MH_SAM_APDU [02:48:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 A5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D1 01 00 35 04 06 00 1C 44 04 49 [02:48:23]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 A5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D1 01 00 35 04 06 00 1C 44 04 49 00 00 54 [02:48:23]Write i2c OK [02:48:23]MH_I2C_Read... [02:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:23]Read from MH i2c: E2 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [02:48:23]RAPDU: 90 00 [02:48:23]wFMCommunicate OK [02:48:23]wFMCommunicate request_size=7 [02:48:23]MH_SAM_APDU [02:48:23]CAPDU: 80 0D 02 02 02 86 59 [02:48:23]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 86 59 00 00 D5 [02:48:23]Write i2c OK [02:48:23]MH_I2C_Read... [02:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:48:23]Read from MH i2c: E2 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [02:48:23]RAPDU: 90 00 [02:48:23]wFMCommunicate OK [02:48:23]wFMCommunicate request_size=4 [02:48:23]MH_SAM_APDU [02:48:23]CAPDU: 80 0D 03 02 [02:48:23]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [02:48:23]Write i2c OK [02:48:23]MH_I2C_Read... [02:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:48:23]Read from MH i2c: E2 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 0B 00 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 0B 00 79 00 00 DD 6C CF 01 53 5D EA 8B 90 00 33 [02:48:23]RAPDU: DD 6C CF 01 53 5D EA 8B 90 00 [02:48:23]wFMCommunicate OK [02:48:23]SAM_PROTO_SignData done [02:48:23]FM_MakeSignedData done [02:48:23]CreateOFDProtocolMessage [02:48:23]wFMCommunicate request_size=4 [02:48:23]MH_SAM_APDU [02:48:23]CAPDU: 80 11 00 00 [02:48:23]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [02:48:23]Write i2c OK [02:48:23]MH_I2C_Read... [02:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:23]Read from MH i2c: E2 [02:48:23]MH_I2C_Read... [02:48:23]Read from MH i2c: E2 17 00 [02:48:23]MH_I2C_Read... [02:48:23]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 34 39 33 39 90 00 4F [02:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:48:23]wFMCommunicate OK [02:48:23]CreateOFDProtocolMessage done [02:48:23]OFDSenderStorePacket 119280 [02:48:23]StoreOFDPacket docnum=119280 [02:48:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 B6 04 01 50 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 A5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D1 01 00 35 04 06 00 1C 44 04 49 86 59 DD 6C CF 01 53 5D EA 8B [02:48:23]CheckFolder [02:48:23]dirname=/storage/ofd_packets [02:48:23]CheckFolder done [02:48:23]ProducePacketName [02:48:23]name=ofd_packets/00119280 [02:48:23]NVStorageSaveData ofd_packets/00119280 [02:48:23]File name is /storage/ofd_packets/00119280 [02:48:23]Write 298 bytes [02:48:23]NVStorageSaveData done [02:48:23]OFDSenderStorePacket done [02:48:23]KKMCreateOFDPacket done [02:48:23]NVStorageSaveData kkm_last_timestamp [02:48:23]File name is /storage/kkm_last_timestamp [02:48:23]Write 4 bytes [02:48:23]NVStorageSaveData done [02:48:24]ExternCall_PrintAddStr [02:48:24]wPrintStart [02:48:24]Write to MH i2c: 01 00 00 7B 00 7B [02:48:24]Write i2c OK [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: 01 [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: 01 07 00 [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [02:48:24]RasterBufferAndPrint [02:48:24]line Счет N : (1)950205 [02:48:24]line ИНН: 02508201610067 [02:48:24]line Контрольно-Кассовый Чек [02:48:24]line ПРОДАЖА [02:48:24]line ТРК (МРК, ГНК) : 21 [02:48:24]line Товар: 2710194800 [02:48:24]line ДТ-К-5 [02:48:24]line 9.190 * 76.20 [02:48:24]line = 700.28 [02:48:24]line НДС 12% НСП 1% [02:48:24]line > о реализуемом товаре [02:48:24]line ОКРУГЛЕНИЕ: -0.28 [02:48:24]line ИТОГО: 700.00 [02:48:24]line Внесено: 700.00 [02:48:24]line СДАЧА: 0.00 [02:48:24]line НСП 1% : 6.20 [02:48:24]line НДС 12% : 74.37 [02:48:24]line Наличными: 700.00 [02:48:24]line Безнал.: 0.00 [02:48:24]line Место: АЗС № 134 "Партнер Нефть" [02:48:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:48:24]line СНО: Общий режим [02:48:24]line Чек 11 31.07.2024 02:48 [02:48:24]line Смена: 436 ФФД: 1.0 [02:48:24]line ЗНМ: 0300000044 [02:48:24]line РНМ: 0000000000092660 [02:48:24]line Версия ККМ: 001 [02:48:24]line ФМ: 0000000000874939 [02:48:24]line ФД: 119280 [02:48:24]line ФПД: 31078455281241 [02:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240731T024822&type=1&operation_type=1&fn_number=0000000000874939&fd_number=119280&fm=31078455281241&tin=02508201610067®Number=0000000000092660&sum=70000 [02:48:24]OFD Sender: Processing packet 119280 [packets to send 86, broken 85] [02:48:24]ProducePacketName [02:48:24]name=ofd_packets/00119280 [02:48:24]OFD Sender: To server: pG, [02:48:24]CommunicateWithHost lk.salyk.kg:30040 [02:48:24]ConnectInit lk.salyk.kg [02:48:24]written 0, free lines is 4095 [02:48:24]Connected sock=10 [02:48:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0C 01 00 00 78 B6 04 01 50 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 A5 A9 66 0E 04 04 00 B4 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D1 01 00 35 04 06 00 1C 44 04 49 86 59 DD 6C CF 01 53 5D EA 8B [02:48:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 4F 00 00 00 D3 39 47 00 90 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 10 04 04 00 F0 D1 01 00 F4 03 04 00 80 53 A9 66 B6 04 01 00 00 5F 59 CB 55 84 40 4A D1 [02:48:24]CommunicateWithHost err = 0 [02:48:24]CheckOFDResponse [02:48:24]1017 (14) - 77093643461234 [02:48:24]1041 (16) - 0000000000874939 [02:48:24]1040 (4) - 119280 [02:48:24]1012 (4) - 30.07.2024 20:56 [02:48:24]1206 (1) - 0 [02:48:24]OFD Sender: Remove packet 119280 [02:48:24]ProducePacketName [02:48:24]name=ofd_packets/00119280 [02:48:24]NVStorageDeleteData [02:48:24]Write to MH i2c: 01 00 00 A5 00 A5 [02:48:24]Write i2c OK [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: 01 [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: 01 07 00 [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 D9 0C 91 [02:48:24]RasterBufferAndPrint [02:48:24]line [02:48:24]line [02:48:24]line [02:48:24]line [02:48:24]line [02:48:24]written 0, free lines is 3296 [02:48:24]MH_Cut [02:48:24]Write to MH i2c: D1 01 00 AC 00 01 7E [02:48:24]Write i2c OK [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: D1 [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: D1 01 00 [02:48:24]MH_I2C_Read... [02:48:24]Read from MH i2c: D1 01 00 AC 00 00 7D [02:48:24]Write to MH i2c: 01 00 00 AD 00 AD [02:48:24]Write i2c OK [02:48:24]MH_I2C_Read... [02:48:25]OFD Sender: No OFD packet to send [02:48:25]*** Cut start [02:48:25]*** Partial cut [02:48:25]*** CUTSNS_PIN = 1 [02:48:25]*** CUTSNS_PIN = 0 [02:48:25]*** Brake cut motor [02:48:26]Read from MH i2c: 01 [02:48:26]MH_I2C_Read... [02:48:26]*** Stop cut motor [02:48:26]*** Cut end [02:48:26]Read from MH i2c: 01 07 00 [02:48:26]MH_I2C_Read... [02:48:26]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [02:48:26]process_action close_receipt done [02:48:26]requested_data is exist [02:48:26]produce_requested_data [02:48:26]requested_item fm.sn is exist - process it [02:48:26]wFMCommunicate request_size=4 [02:48:26]MH_SAM_APDU [02:48:26]CAPDU: 80 11 00 00 [02:48:26]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [02:48:26]Write i2c OK [02:48:26]MH_I2C_Read... [02:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:48:26]Read from MH i2c: E2 [02:48:26]MH_I2C_Read... [02:48:26]Read from MH i2c: E2 17 00 [02:48:26]MH_I2C_Read... [02:48:26]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 34 39 33 39 90 00 83 [02:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 90 00 [02:48:26]wFMCommunicate OK [02:48:26]requested_item fd.num is exist - process it [02:48:26]SAM_PROTO_GetFieldsCounters [02:48:26]wFMCommunicate request_size=4 [02:48:26]MH_SAM_APDU [02:48:26]CAPDU: 80 13 00 00 [02:48:26]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [02:48:26]Write i2c OK [02:48:26]MH_I2C_Read... [02:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:48:26]Read from MH i2c: E2 [02:48:26]MH_I2C_Read... [02:48:26]Read from MH i2c: E2 62 00 [02:48:26]MH_I2C_Read... [02:48:26]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 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [02:48:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 30 10 04 04 00 F0 D1 01 00 0E 04 04 00 B4 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:48:26]wFMCommunicate OK [02:48:26]SAM_PROTO_GetFieldsCounters done [02:48:26]requested_item shift.num is exist - process it [02:48:26]requested_item shift.opened is exist - process it [02:48:26]req_shift_opened [02:48:26]FM_GetShiftState [02:48:26]SAM_PROTO_GetShiftState [02:48:26]wFMCommunicate request_size=4 [02:48:26]MH_SAM_APDU [02:48:26]CAPDU: 80 13 01 00 [02:48:26]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [02:48:26]Write i2c OK [02:48:26]MH_I2C_Read... [02:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:48:26]Read from MH i2c: E2 [02:48:26]MH_I2C_Read... [02:48:26]Read from MH i2c: E2 0E 00 [02:48:26]MH_I2C_Read... [02:48:26]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 FD 80 A9 66 00 00 00 00 90 00 C5 [02:48:26]RAPDU: 09 00 01 FD 80 A9 66 00 00 00 00 90 00 [02:48:26]wFMCommunicate OK [02:48:26]SAM_PROTO_GetShiftState done [02:48:26]FM_GetShiftState done [02:48:26]req_shift_opened done [02:48:26]requested_item shift.open_date is exist - process it [02:48:26]req_shift_open_date [02:48:26]req_shift_open_date done [02:48:26]produce_requested_data done [02:48:26]produce_requested_data return {"fm.sn":"0000000000874939","fd.num":119280,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637} [02:48:26]process_action_free close_receipt [02:48:26]json_value_free [02:48:26]json_value_free done [02:48:26]process_json_proto returns [02:48:26]Send response to host [02:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874939","fd.num":119280,"shift.num":436,"shift.opened":1,"shift.open_date":1722384637}}} [02:48:26]free response buf [02:48:26]execute_script done [02:48:26]execute_script returns [02:48:26]free content buf [02:48:26]Sock 9.Close socket [02:48:26]Sock 9.Thread stoped [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send